From 929dd28e95469fcb39e302726796e45a7a522a40 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 7 Aug 2020 00:38:13 +0000 Subject: [PATCH] Autogenerated update (2020-08-07) Delete: - webfonts_v1 Update: - appengine_v1 - appengine_v1alpha - appengine_v1beta - appsmarket_v2 - bigquerydatatransfer_v1 - bigqueryreservation_v1 - bigqueryreservation_v1beta1 - binaryauthorization_v1 - binaryauthorization_v1beta1 - chat_v1 - civicinfo_v2 - cloudbuild_v1 - cloudbuild_v1alpha1 - cloudbuild_v1alpha2 - cloudkms_v1 - cloudshell_v1 - cloudshell_v1alpha1 - cloudtrace_v1 - cloudtrace_v2 - cloudtrace_v2beta1 - datafusion_v1 - datafusion_v1beta1 - dataproc_v1beta2 - dfareporting_v3_4 - displayvideo_v1 - doubleclickbidmanager_v1 - doubleclickbidmanager_v1_1 - drive_v2 - drive_v3 - firestore_v1 - firestore_v1beta1 - genomics_v1 - genomics_v1alpha2 - genomics_v2alpha1 - monitoring_v1 - monitoring_v3 - osconfig_v1beta - oslogin_v1 - people_v1 - recommendationengine_v1beta1 - runtimeconfig_v1beta1 - safebrowsing_v4 - serviceconsumermanagement_v1 - serviceconsumermanagement_v1beta1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - sourcerepo_v1 - sql_v1beta4 - storage_v1 - testing_v1 - youtube_v3 --- api_names_out.yaml | 224 ++++ generated/google/apis/appengine_v1.rb | 2 +- generated/google/apis/appengine_v1/classes.rb | 73 +- .../apis/appengine_v1/representations.rb | 1 + generated/google/apis/appengine_v1/service.rb | 85 +- generated/google/apis/appengine_v1alpha.rb | 2 +- .../google/apis/appengine_v1alpha/classes.rb | 20 +- generated/google/apis/appengine_v1beta.rb | 2 +- .../google/apis/appengine_v1beta/classes.rb | 73 +- .../apis/appengine_v1beta/representations.rb | 1 + .../google/apis/appengine_v1beta/service.rb | 84 +- generated/google/apis/appsmarket_v2.rb | 2 +- .../google/apis/appsmarket_v2/classes.rb | 30 +- .../google/apis/bigquerydatatransfer_v1.rb | 2 +- .../apis/bigquerydatatransfer_v1/classes.rb | 290 ++--- .../apis/bigquerydatatransfer_v1/service.rb | 514 ++++---- .../google/apis/bigqueryreservation_v1.rb | 2 +- .../apis/bigqueryreservation_v1/classes.rb | 227 ++-- .../apis/bigqueryreservation_v1/service.rb | 320 ++--- .../apis/bigqueryreservation_v1beta1.rb | 2 +- .../bigqueryreservation_v1beta1/classes.rb | 179 ++- .../bigqueryreservation_v1beta1/service.rb | 265 ++-- .../google/apis/binaryauthorization_v1.rb | 2 +- .../apis/binaryauthorization_v1beta1.rb | 2 +- generated/google/apis/chat_v1.rb | 2 +- generated/google/apis/chat_v1/classes.rb | 205 ++- generated/google/apis/chat_v1/service.rb | 72 +- generated/google/apis/civicinfo_v2.rb | 2 +- generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 625 ++++----- .../google/apis/cloudbuild_v1/service.rb | 111 +- generated/google/apis/cloudbuild_v1alpha1.rb | 2 +- .../apis/cloudbuild_v1alpha1/classes.rb | 603 ++++----- .../apis/cloudbuild_v1alpha1/service.rb | 33 +- generated/google/apis/cloudbuild_v1alpha2.rb | 2 +- .../apis/cloudbuild_v1alpha2/classes.rb | 573 ++++---- .../apis/cloudbuild_v1alpha2/service.rb | 50 +- generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudkms_v1/classes.rb | 1153 +++++++---------- generated/google/apis/cloudkms_v1/service.rb | 386 +++--- generated/google/apis/cloudshell_v1.rb | 2 +- .../google/apis/cloudshell_v1/classes.rb | 263 +--- .../apis/cloudshell_v1/representations.rb | 67 - .../google/apis/cloudshell_v1/service.rb | 46 +- generated/google/apis/cloudshell_v1alpha1.rb | 2 +- .../apis/cloudshell_v1alpha1/classes.rb | 147 +-- .../apis/cloudshell_v1alpha1/service.rb | 44 +- generated/google/apis/cloudtrace_v1.rb | 2 +- .../google/apis/cloudtrace_v1/classes.rb | 100 +- .../google/apis/cloudtrace_v1/service.rb | 88 +- generated/google/apis/cloudtrace_v2.rb | 2 +- .../google/apis/cloudtrace_v2/classes.rb | 199 ++- .../google/apis/cloudtrace_v2/service.rb | 19 +- generated/google/apis/cloudtrace_v2beta1.rb | 2 +- .../google/apis/cloudtrace_v2beta1/classes.rb | 56 +- .../google/apis/cloudtrace_v2beta1/service.rb | 67 +- generated/google/apis/datafusion_v1.rb | 13 +- .../google/apis/datafusion_v1/classes.rb | 665 ++++------ .../apis/datafusion_v1/representations.rb | 3 + .../google/apis/datafusion_v1/service.rb | 165 ++- generated/google/apis/datafusion_v1beta1.rb | 13 +- .../google/apis/datafusion_v1beta1/classes.rb | 665 ++++------ .../datafusion_v1beta1/representations.rb | 3 + .../google/apis/datafusion_v1beta1/service.rb | 176 ++- generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 25 + .../apis/dataproc_v1beta2/representations.rb | 15 + generated/google/apis/dfareporting_v3_4.rb | 2 +- .../google/apis/dfareporting_v3_4/service.rb | 39 + generated/google/apis/displayvideo_v1.rb | 2 +- .../google/apis/doubleclickbidmanager_v1.rb | 5 +- .../apis/doubleclickbidmanager_v1/classes.rb | 105 +- .../apis/doubleclickbidmanager_v1/service.rb | 115 +- .../google/apis/doubleclickbidmanager_v1_1.rb | 5 +- .../doubleclickbidmanager_v1_1/classes.rb | 142 +- .../doubleclickbidmanager_v1_1/service.rb | 127 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 7 + .../google/apis/drive_v2/representations.rb | 1 + generated/google/apis/drive_v2/service.rb | 78 +- generated/google/apis/drive_v3.rb | 2 +- generated/google/apis/drive_v3/classes.rb | 7 + .../google/apis/drive_v3/representations.rb | 1 + generated/google/apis/drive_v3/service.rb | 54 +- generated/google/apis/firestore_v1.rb | 2 +- generated/google/apis/firestore_v1beta1.rb | 2 +- generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/genomics_v1/classes.rb | 146 +-- generated/google/apis/genomics_v1/service.rb | 71 +- generated/google/apis/genomics_v1alpha2.rb | 2 +- .../google/apis/genomics_v1alpha2/classes.rb | 513 ++++---- .../google/apis/genomics_v1alpha2/service.rb | 130 +- generated/google/apis/genomics_v2alpha1.rb | 2 +- .../google/apis/genomics_v2alpha1/classes.rb | 527 ++++---- .../apis/genomics_v2alpha1/representations.rb | 1 + .../google/apis/genomics_v2alpha1/service.rb | 113 +- generated/google/apis/monitoring_v1.rb | 2 +- .../google/apis/monitoring_v1/classes.rb | 47 +- .../google/apis/monitoring_v1/service.rb | 21 +- generated/google/apis/monitoring_v3.rb | 2 +- .../google/apis/monitoring_v3/classes.rb | 547 ++++---- .../google/apis/monitoring_v3/service.rb | 252 ++-- generated/google/apis/osconfig_v1beta.rb | 2 +- .../google/apis/osconfig_v1beta/classes.rb | 721 +++++++++++ .../apis/osconfig_v1beta/representations.rb | 337 +++++ generated/google/apis/oslogin_v1.rb | 2 +- generated/google/apis/oslogin_v1/classes.rb | 20 +- generated/google/apis/oslogin_v1/service.rb | 28 +- generated/google/apis/people_v1.rb | 2 +- generated/google/apis/people_v1/classes.rb | 52 +- .../google/apis/people_v1/representations.rb | 18 + generated/google/apis/people_v1/service.rb | 68 +- .../apis/{webfonts_v1.rb => pubsublite_v1.rb} | 21 +- .../google/apis/pubsublite_v1/classes.rb | 395 ++++++ .../apis/pubsublite_v1/representations.rb | 228 ++++ .../google/apis/pubsublite_v1/service.rb | 534 ++++++++ .../apis/recommendationengine_v1beta1.rb | 2 +- .../recommendationengine_v1beta1/classes.rb | 789 +++++------ .../representations.rb | 16 - .../recommendationengine_v1beta1/service.rb | 341 ++--- .../google/apis/runtimeconfig_v1beta1.rb | 2 +- .../apis/runtimeconfig_v1beta1/classes.rb | 707 +++++----- .../apis/runtimeconfig_v1beta1/service.rb | 294 ++--- generated/google/apis/safebrowsing_v4.rb | 2 +- .../google/apis/safebrowsing_v4/classes.rb | 119 +- .../google/apis/safebrowsing_v4/service.rb | 8 +- .../apis/serviceconsumermanagement_v1.rb | 2 +- .../serviceconsumermanagement_v1/classes.rb | 64 +- .../apis/serviceconsumermanagement_v1beta1.rb | 2 +- .../classes.rb | 64 +- generated/google/apis/servicenetworking_v1.rb | 2 +- .../apis/servicenetworking_v1/classes.rb | 64 +- .../google/apis/servicenetworking_v1beta.rb | 2 +- .../apis/servicenetworking_v1beta/classes.rb | 64 +- generated/google/apis/serviceusage_v1.rb | 2 +- .../google/apis/serviceusage_v1/classes.rb | 64 +- generated/google/apis/serviceusage_v1beta1.rb | 2 +- .../apis/serviceusage_v1beta1/classes.rb | 64 +- generated/google/apis/sourcerepo_v1.rb | 2 +- .../google/apis/sourcerepo_v1/classes.rb | 12 +- generated/google/apis/sql_v1beta4.rb | 2 +- generated/google/apis/sql_v1beta4/classes.rb | 64 +- generated/google/apis/sql_v1beta4/service.rb | 6 +- generated/google/apis/storage_v1.rb | 2 +- generated/google/apis/storage_v1/classes.rb | 15 +- .../google/apis/storage_v1/representations.rb | 4 +- generated/google/apis/testing_v1.rb | 2 +- generated/google/apis/testing_v1/classes.rb | 693 +++++----- generated/google/apis/testing_v1/service.rb | 50 +- generated/google/apis/webfonts_v1/classes.rb | 114 -- .../apis/webfonts_v1/representations.rb | 61 - generated/google/apis/webfonts_v1/service.rb | 92 -- generated/google/apis/youtube_v3.rb | 2 +- 153 files changed, 9266 insertions(+), 9113 deletions(-) rename generated/google/apis/{webfonts_v1.rb => pubsublite_v1.rb} (60%) create mode 100644 generated/google/apis/pubsublite_v1/classes.rb create mode 100644 generated/google/apis/pubsublite_v1/representations.rb create mode 100644 generated/google/apis/pubsublite_v1/service.rb delete mode 100644 generated/google/apis/webfonts_v1/classes.rb delete mode 100644 generated/google/apis/webfonts_v1/representations.rb delete mode 100644 generated/google/apis/webfonts_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 4adc382d7..8f0f1a820 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -11009,6 +11009,7 @@ "/appengine:v1/Resources": resources "/appengine:v1/Resources/cpu": cpu "/appengine:v1/Resources/diskGb": disk_gb +"/appengine:v1/Resources/kmsKeyReference": kms_key_reference "/appengine:v1/Resources/memoryGb": memory_gb "/appengine:v1/Resources/volumes": volumes "/appengine:v1/Resources/volumes/volume": volume @@ -11771,6 +11772,7 @@ "/appengine:v1beta/Resources": resources "/appengine:v1beta/Resources/cpu": cpu "/appengine:v1beta/Resources/diskGb": disk_gb +"/appengine:v1beta/Resources/kmsKeyReference": kms_key_reference "/appengine:v1beta/Resources/memoryGb": memory_gb "/appengine:v1beta/Resources/volumes": volumes "/appengine:v1beta/Resources/volumes/volume": volume @@ -58758,11 +58760,13 @@ "/datafusion:v1/Instance/networkConfig": network_config "/datafusion:v1/Instance/options": options "/datafusion:v1/Instance/options/option": option +"/datafusion:v1/Instance/p4ServiceAccount": p4_service_account "/datafusion:v1/Instance/privateInstance": private_instance "/datafusion:v1/Instance/serviceAccount": service_account "/datafusion:v1/Instance/serviceEndpoint": service_endpoint "/datafusion:v1/Instance/state": state "/datafusion:v1/Instance/stateMessage": state_message +"/datafusion:v1/Instance/tenantProjectId": tenant_project_id "/datafusion:v1/Instance/type": type "/datafusion:v1/Instance/updateTime": update_time "/datafusion:v1/Instance/version": version @@ -58836,6 +58840,8 @@ "/datafusion:v1/TestIamPermissionsResponse/permissions": permissions "/datafusion:v1/TestIamPermissionsResponse/permissions/permission": permission "/datafusion:v1/Version": version +"/datafusion:v1/Version/availableFeatures": available_features +"/datafusion:v1/Version/availableFeatures/available_feature": available_feature "/datafusion:v1/Version/defaultVersion": default_version "/datafusion:v1/Version/versionNumber": version_number "/datafusion:v1/datafusion.projects.locations.get": get_project_location @@ -58949,11 +58955,13 @@ "/datafusion:v1beta1/Instance/networkConfig": network_config "/datafusion:v1beta1/Instance/options": options "/datafusion:v1beta1/Instance/options/option": option +"/datafusion:v1beta1/Instance/p4ServiceAccount": p4_service_account "/datafusion:v1beta1/Instance/privateInstance": private_instance "/datafusion:v1beta1/Instance/serviceAccount": service_account "/datafusion:v1beta1/Instance/serviceEndpoint": service_endpoint "/datafusion:v1beta1/Instance/state": state "/datafusion:v1beta1/Instance/stateMessage": state_message +"/datafusion:v1beta1/Instance/tenantProjectId": tenant_project_id "/datafusion:v1beta1/Instance/type": type "/datafusion:v1beta1/Instance/updateTime": update_time "/datafusion:v1beta1/Instance/version": version @@ -59048,6 +59056,8 @@ "/datafusion:v1beta1/TestIamPermissionsResponse/permissions/permission": permission "/datafusion:v1beta1/UpgradeInstanceRequest": upgrade_instance_request "/datafusion:v1beta1/Version": version +"/datafusion:v1beta1/Version/availableFeatures": available_features +"/datafusion:v1beta1/Version/availableFeatures/available_feature": available_feature "/datafusion:v1beta1/Version/defaultVersion": default_version "/datafusion:v1beta1/Version/versionNumber": version_number "/datafusion:v1beta1/datafusion.projects.locations.get": get_project_location @@ -59793,6 +59803,7 @@ "/dataproc:v1beta2/ClusterConfig/initializationActions/initialization_action": initialization_action "/dataproc:v1beta2/ClusterConfig/lifecycleConfig": lifecycle_config "/dataproc:v1beta2/ClusterConfig/masterConfig": master_config +"/dataproc:v1beta2/ClusterConfig/metastoreConfig": metastore_config "/dataproc:v1beta2/ClusterConfig/secondaryWorkerConfig": secondary_worker_config "/dataproc:v1beta2/ClusterConfig/securityConfig": security_config "/dataproc:v1beta2/ClusterConfig/softwareConfig": software_config @@ -60013,6 +60024,8 @@ "/dataproc:v1beta2/ManagedGroupConfig": managed_group_config "/dataproc:v1beta2/ManagedGroupConfig/instanceGroupManagerName": instance_group_manager_name "/dataproc:v1beta2/ManagedGroupConfig/instanceTemplateName": instance_template_name +"/dataproc:v1beta2/MetastoreConfig": metastore_config +"/dataproc:v1beta2/MetastoreConfig/dataprocMetastoreService": dataproc_metastore_service "/dataproc:v1beta2/NamespacedGkeDeploymentTarget": namespaced_gke_deployment_target "/dataproc:v1beta2/NamespacedGkeDeploymentTarget/clusterNamespace": cluster_namespace "/dataproc:v1beta2/NamespacedGkeDeploymentTarget/targetGkeCluster": target_gke_cluster @@ -80662,6 +80675,9 @@ "/dfareporting:v3.4/dfareporting.reports.list/scope": scope "/dfareporting:v3.4/dfareporting.reports.list/sortField": sort_field "/dfareporting:v3.4/dfareporting.reports.list/sortOrder": sort_order +"/dfareporting:v3.4/dfareporting.reports.patch": patch_report +"/dfareporting:v3.4/dfareporting.reports.patch/profileId": profile_id +"/dfareporting:v3.4/dfareporting.reports.patch/reportId": report_id "/dfareporting:v3.4/dfareporting.reports.run": run_report "/dfareporting:v3.4/dfareporting.reports.run/profileId": profile_id "/dfareporting:v3.4/dfareporting.reports.run/reportId": report_id @@ -91247,6 +91263,7 @@ "/drive:v2/Permission/teamDrivePermissionDetails/team_drive_permission_detail/teamDrivePermissionType": team_drive_permission_type "/drive:v2/Permission/type": type "/drive:v2/Permission/value": value +"/drive:v2/Permission/view": view "/drive:v2/Permission/withLink": with_link "/drive:v2/PermissionId": permission_id "/drive:v2/PermissionId/id": id @@ -91378,6 +91395,7 @@ "/drive:v2/drive.changes.list/includeCorpusRemovals": include_corpus_removals "/drive:v2/drive.changes.list/includeDeleted": include_deleted "/drive:v2/drive.changes.list/includeItemsFromAllDrives": include_items_from_all_drives +"/drive:v2/drive.changes.list/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.changes.list/includeSubscribed": include_subscribed "/drive:v2/drive.changes.list/includeTeamDriveItems": include_team_drive_items "/drive:v2/drive.changes.list/maxResults": max_results @@ -91392,6 +91410,7 @@ "/drive:v2/drive.changes.watch/includeCorpusRemovals": include_corpus_removals "/drive:v2/drive.changes.watch/includeDeleted": include_deleted "/drive:v2/drive.changes.watch/includeItemsFromAllDrives": include_items_from_all_drives +"/drive:v2/drive.changes.watch/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.changes.watch/includeSubscribed": include_subscribed "/drive:v2/drive.changes.watch/includeTeamDriveItems": include_team_drive_items "/drive:v2/drive.changes.watch/maxResults": max_results @@ -91464,6 +91483,7 @@ "/drive:v2/drive.files.copy/convert": convert "/drive:v2/drive.files.copy/enforceSingleParent": enforce_single_parent "/drive:v2/drive.files.copy/fileId": file_id +"/drive:v2/drive.files.copy/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.copy/ocr": ocr "/drive:v2/drive.files.copy/ocrLanguage": ocr_language "/drive:v2/drive.files.copy/pinned": pinned @@ -91486,6 +91506,7 @@ "/drive:v2/drive.files.get": get_file "/drive:v2/drive.files.get/acknowledgeAbuse": acknowledge_abuse "/drive:v2/drive.files.get/fileId": file_id +"/drive:v2/drive.files.get/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.get/projection": projection "/drive:v2/drive.files.get/revisionId": revision_id "/drive:v2/drive.files.get/supportsAllDrives": supports_all_drives @@ -91494,6 +91515,7 @@ "/drive:v2/drive.files.insert": insert_file "/drive:v2/drive.files.insert/convert": convert "/drive:v2/drive.files.insert/enforceSingleParent": enforce_single_parent +"/drive:v2/drive.files.insert/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.insert/ocr": ocr "/drive:v2/drive.files.insert/ocrLanguage": ocr_language "/drive:v2/drive.files.insert/pinned": pinned @@ -91508,6 +91530,7 @@ "/drive:v2/drive.files.list/corpus": corpus "/drive:v2/drive.files.list/driveId": drive_id "/drive:v2/drive.files.list/includeItemsFromAllDrives": include_items_from_all_drives +"/drive:v2/drive.files.list/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.list/includeTeamDriveItems": include_team_drive_items "/drive:v2/drive.files.list/maxResults": max_results "/drive:v2/drive.files.list/orderBy": order_by @@ -91523,6 +91546,7 @@ "/drive:v2/drive.files.patch/convert": convert "/drive:v2/drive.files.patch/enforceSingleParent": enforce_single_parent "/drive:v2/drive.files.patch/fileId": file_id +"/drive:v2/drive.files.patch/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.patch/modifiedDateBehavior": modified_date_behavior "/drive:v2/drive.files.patch/newRevision": new_revision "/drive:v2/drive.files.patch/ocr": ocr @@ -91538,14 +91562,17 @@ "/drive:v2/drive.files.patch/useContentAsIndexableText": use_content_as_indexable_text "/drive:v2/drive.files.touch": touch_file "/drive:v2/drive.files.touch/fileId": file_id +"/drive:v2/drive.files.touch/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.touch/supportsAllDrives": supports_all_drives "/drive:v2/drive.files.touch/supportsTeamDrives": supports_team_drives "/drive:v2/drive.files.trash": trash_file "/drive:v2/drive.files.trash/fileId": file_id +"/drive:v2/drive.files.trash/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.trash/supportsAllDrives": supports_all_drives "/drive:v2/drive.files.trash/supportsTeamDrives": supports_team_drives "/drive:v2/drive.files.untrash": untrash_file "/drive:v2/drive.files.untrash/fileId": file_id +"/drive:v2/drive.files.untrash/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.untrash/supportsAllDrives": supports_all_drives "/drive:v2/drive.files.untrash/supportsTeamDrives": supports_team_drives "/drive:v2/drive.files.update": update_file @@ -91553,6 +91580,7 @@ "/drive:v2/drive.files.update/convert": convert "/drive:v2/drive.files.update/enforceSingleParent": enforce_single_parent "/drive:v2/drive.files.update/fileId": file_id +"/drive:v2/drive.files.update/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.update/modifiedDateBehavior": modified_date_behavior "/drive:v2/drive.files.update/newRevision": new_revision "/drive:v2/drive.files.update/ocr": ocr @@ -91569,6 +91597,7 @@ "/drive:v2/drive.files.watch": watch_file "/drive:v2/drive.files.watch/acknowledgeAbuse": acknowledge_abuse "/drive:v2/drive.files.watch/fileId": file_id +"/drive:v2/drive.files.watch/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.files.watch/projection": projection "/drive:v2/drive.files.watch/revisionId": revision_id "/drive:v2/drive.files.watch/supportsAllDrives": supports_all_drives @@ -91613,6 +91642,7 @@ "/drive:v2/drive.permissions.insert/useDomainAdminAccess": use_domain_admin_access "/drive:v2/drive.permissions.list": list_permissions "/drive:v2/drive.permissions.list/fileId": file_id +"/drive:v2/drive.permissions.list/includePermissionsForView": include_permissions_for_view "/drive:v2/drive.permissions.list/maxResults": max_results "/drive:v2/drive.permissions.list/pageToken": page_token "/drive:v2/drive.permissions.list/supportsAllDrives": supports_all_drives @@ -92023,6 +92053,7 @@ "/drive:v3/Permission/teamDrivePermissionDetails/team_drive_permission_detail/role": role "/drive:v3/Permission/teamDrivePermissionDetails/team_drive_permission_detail/teamDrivePermissionType": team_drive_permission_type "/drive:v3/Permission/type": type +"/drive:v3/Permission/view": view "/drive:v3/PermissionList": permission_list "/drive:v3/PermissionList/kind": kind "/drive:v3/PermissionList/nextPageToken": next_page_token @@ -92128,6 +92159,7 @@ "/drive:v3/drive.changes.list/driveId": drive_id "/drive:v3/drive.changes.list/includeCorpusRemovals": include_corpus_removals "/drive:v3/drive.changes.list/includeItemsFromAllDrives": include_items_from_all_drives +"/drive:v3/drive.changes.list/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.changes.list/includeRemoved": include_removed "/drive:v3/drive.changes.list/includeTeamDriveItems": include_team_drive_items "/drive:v3/drive.changes.list/pageSize": page_size @@ -92141,6 +92173,7 @@ "/drive:v3/drive.changes.watch/driveId": drive_id "/drive:v3/drive.changes.watch/includeCorpusRemovals": include_corpus_removals "/drive:v3/drive.changes.watch/includeItemsFromAllDrives": include_items_from_all_drives +"/drive:v3/drive.changes.watch/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.changes.watch/includeRemoved": include_removed "/drive:v3/drive.changes.watch/includeTeamDriveItems": include_team_drive_items "/drive:v3/drive.changes.watch/pageSize": page_size @@ -92192,6 +92225,7 @@ "/drive:v3/drive.files.copy/enforceSingleParent": enforce_single_parent "/drive:v3/drive.files.copy/fileId": file_id "/drive:v3/drive.files.copy/ignoreDefaultVisibility": ignore_default_visibility +"/drive:v3/drive.files.copy/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.files.copy/keepRevisionForever": keep_revision_forever "/drive:v3/drive.files.copy/ocrLanguage": ocr_language "/drive:v3/drive.files.copy/supportsAllDrives": supports_all_drives @@ -92199,6 +92233,7 @@ "/drive:v3/drive.files.create": create_file "/drive:v3/drive.files.create/enforceSingleParent": enforce_single_parent "/drive:v3/drive.files.create/ignoreDefaultVisibility": ignore_default_visibility +"/drive:v3/drive.files.create/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.files.create/keepRevisionForever": keep_revision_forever "/drive:v3/drive.files.create/ocrLanguage": ocr_language "/drive:v3/drive.files.create/supportsAllDrives": supports_all_drives @@ -92218,6 +92253,7 @@ "/drive:v3/drive.files.get": get_file "/drive:v3/drive.files.get/acknowledgeAbuse": acknowledge_abuse "/drive:v3/drive.files.get/fileId": file_id +"/drive:v3/drive.files.get/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.files.get/supportsAllDrives": supports_all_drives "/drive:v3/drive.files.get/supportsTeamDrives": supports_team_drives "/drive:v3/drive.files.list": list_files @@ -92225,6 +92261,7 @@ "/drive:v3/drive.files.list/corpus": corpus "/drive:v3/drive.files.list/driveId": drive_id "/drive:v3/drive.files.list/includeItemsFromAllDrives": include_items_from_all_drives +"/drive:v3/drive.files.list/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.files.list/includeTeamDriveItems": include_team_drive_items "/drive:v3/drive.files.list/orderBy": order_by "/drive:v3/drive.files.list/pageSize": page_size @@ -92238,6 +92275,7 @@ "/drive:v3/drive.files.update/addParents": add_parents "/drive:v3/drive.files.update/enforceSingleParent": enforce_single_parent "/drive:v3/drive.files.update/fileId": file_id +"/drive:v3/drive.files.update/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.files.update/keepRevisionForever": keep_revision_forever "/drive:v3/drive.files.update/ocrLanguage": ocr_language "/drive:v3/drive.files.update/removeParents": remove_parents @@ -92247,6 +92285,7 @@ "/drive:v3/drive.files.watch": watch_file "/drive:v3/drive.files.watch/acknowledgeAbuse": acknowledge_abuse "/drive:v3/drive.files.watch/fileId": file_id +"/drive:v3/drive.files.watch/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.files.watch/supportsAllDrives": supports_all_drives "/drive:v3/drive.files.watch/supportsTeamDrives": supports_team_drives "/drive:v3/drive.permissions.create": create_permission @@ -92273,6 +92312,7 @@ "/drive:v3/drive.permissions.get/useDomainAdminAccess": use_domain_admin_access "/drive:v3/drive.permissions.list": list_permissions "/drive:v3/drive.permissions.list/fileId": file_id +"/drive:v3/drive.permissions.list/includePermissionsForView": include_permissions_for_view "/drive:v3/drive.permissions.list/pageSize": page_size "/drive:v3/drive.permissions.list/pageToken": page_token "/drive:v3/drive.permissions.list/supportsAllDrives": supports_all_drives @@ -98469,6 +98509,7 @@ "/genomics:v2alpha1/CheckInRequest/events": events "/genomics:v2alpha1/CheckInRequest/events/event": event "/genomics:v2alpha1/CheckInRequest/result": result +"/genomics:v2alpha1/CheckInRequest/sosReport": sos_report "/genomics:v2alpha1/CheckInRequest/workerStatus": worker_status "/genomics:v2alpha1/CheckInResponse": check_in_response "/genomics:v2alpha1/CheckInResponse/deadline": deadline @@ -109949,6 +109990,17 @@ "/osconfig:v1beta/EffectiveGuestPolicySourcedSoftwareRecipe/softwareRecipe": software_recipe "/osconfig:v1beta/EffectiveGuestPolicySourcedSoftwareRecipe/source": source "/osconfig:v1beta/Empty": empty +"/osconfig:v1beta/ExecResource": exec_resource +"/osconfig:v1beta/ExecResource/enforce": enforce +"/osconfig:v1beta/ExecResource/validate": validate +"/osconfig:v1beta/ExecResourceExec": exec_resource_exec +"/osconfig:v1beta/ExecResourceExec/allowedSuccessCodes": allowed_success_codes +"/osconfig:v1beta/ExecResourceExec/allowedSuccessCodes/allowed_success_code": allowed_success_code +"/osconfig:v1beta/ExecResourceExec/args": args +"/osconfig:v1beta/ExecResourceExec/args/arg": arg +"/osconfig:v1beta/ExecResourceExec/file": file +"/osconfig:v1beta/ExecResourceExec/interpreter": interpreter +"/osconfig:v1beta/ExecResourceExec/script": script "/osconfig:v1beta/ExecStep": exec_step "/osconfig:v1beta/ExecStep/linuxExecStepConfig": linux_exec_step_config "/osconfig:v1beta/ExecStep/windowsExecStepConfig": windows_exec_step_config @@ -109966,6 +110018,30 @@ "/osconfig:v1beta/ExecutePatchJobRequest/instanceFilter": instance_filter "/osconfig:v1beta/ExecutePatchJobRequest/patchConfig": patch_config "/osconfig:v1beta/ExecutePatchJobRequest/rollout": rollout +"/osconfig:v1beta/ExtractArchiveResource": extract_archive_resource +"/osconfig:v1beta/ExtractArchiveResource/creates": creates +"/osconfig:v1beta/ExtractArchiveResource/destination": destination +"/osconfig:v1beta/ExtractArchiveResource/overwrite": overwrite +"/osconfig:v1beta/ExtractArchiveResource/source": source +"/osconfig:v1beta/ExtractArchiveResource/type": type +"/osconfig:v1beta/File": file +"/osconfig:v1beta/File/allowInsecure": allow_insecure +"/osconfig:v1beta/File/gcs": gcs +"/osconfig:v1beta/File/localPath": local_path +"/osconfig:v1beta/File/remote": remote +"/osconfig:v1beta/FileGcs": file_gcs +"/osconfig:v1beta/FileGcs/bucket": bucket +"/osconfig:v1beta/FileGcs/generation": generation +"/osconfig:v1beta/FileGcs/object": object +"/osconfig:v1beta/FileRemote": file_remote +"/osconfig:v1beta/FileRemote/sha256Checksum": sha256_checksum +"/osconfig:v1beta/FileRemote/uri": uri +"/osconfig:v1beta/FileResource": file_resource +"/osconfig:v1beta/FileResource/content": content +"/osconfig:v1beta/FileResource/file": file +"/osconfig:v1beta/FileResource/path": path +"/osconfig:v1beta/FileResource/permissions": permissions +"/osconfig:v1beta/FileResource/state": state "/osconfig:v1beta/FixedOrPercent": fixed_or_percent "/osconfig:v1beta/FixedOrPercent/fixed": fixed "/osconfig:v1beta/FixedOrPercent/percent": percent @@ -110024,6 +110100,35 @@ "/osconfig:v1beta/PackageRepository/goo": goo "/osconfig:v1beta/PackageRepository/yum": yum "/osconfig:v1beta/PackageRepository/zypper": zypper +"/osconfig:v1beta/PackageResource": package_resource +"/osconfig:v1beta/PackageResource/apt": apt +"/osconfig:v1beta/PackageResource/deb": deb +"/osconfig:v1beta/PackageResource/desiredState": desired_state +"/osconfig:v1beta/PackageResource/googet": googet +"/osconfig:v1beta/PackageResource/msi": msi +"/osconfig:v1beta/PackageResource/rpm": rpm +"/osconfig:v1beta/PackageResource/yum": yum +"/osconfig:v1beta/PackageResource/zypper": zypper +"/osconfig:v1beta/PackageResourceAPT": package_resource_apt +"/osconfig:v1beta/PackageResourceAPT/name": name +"/osconfig:v1beta/PackageResourceDeb": package_resource_deb +"/osconfig:v1beta/PackageResourceDeb/pullDeps": pull_deps +"/osconfig:v1beta/PackageResourceDeb/source": source +"/osconfig:v1beta/PackageResourceGooGet": package_resource_goo_get +"/osconfig:v1beta/PackageResourceGooGet/name": name +"/osconfig:v1beta/PackageResourceMSI": package_resource_msi +"/osconfig:v1beta/PackageResourceMSI/allowedSuccessCodes": allowed_success_codes +"/osconfig:v1beta/PackageResourceMSI/allowedSuccessCodes/allowed_success_code": allowed_success_code +"/osconfig:v1beta/PackageResourceMSI/flags": flags +"/osconfig:v1beta/PackageResourceMSI/flags/flag": flag +"/osconfig:v1beta/PackageResourceMSI/source": source +"/osconfig:v1beta/PackageResourceRPM": package_resource_rpm +"/osconfig:v1beta/PackageResourceRPM/pullDeps": pull_deps +"/osconfig:v1beta/PackageResourceRPM/source": source +"/osconfig:v1beta/PackageResourceYUM": package_resource_yum +"/osconfig:v1beta/PackageResourceYUM/name": name +"/osconfig:v1beta/PackageResourceZypper": package_resource_zypper +"/osconfig:v1beta/PackageResourceZypper/name": name "/osconfig:v1beta/PatchConfig": patch_config "/osconfig:v1beta/PatchConfig/apt": apt "/osconfig:v1beta/PatchConfig/goo": goo @@ -110109,6 +110214,34 @@ "/osconfig:v1beta/RecurringSchedule/timeOfDay": time_of_day "/osconfig:v1beta/RecurringSchedule/timeZone": time_zone "/osconfig:v1beta/RecurringSchedule/weekly": weekly +"/osconfig:v1beta/RepositoryResource": repository_resource +"/osconfig:v1beta/RepositoryResource/apt": apt +"/osconfig:v1beta/RepositoryResource/goo": goo +"/osconfig:v1beta/RepositoryResource/yum": yum +"/osconfig:v1beta/RepositoryResource/zypper": zypper +"/osconfig:v1beta/RepositoryResourceAptRepository": repository_resource_apt_repository +"/osconfig:v1beta/RepositoryResourceAptRepository/archiveType": archive_type +"/osconfig:v1beta/RepositoryResourceAptRepository/components": components +"/osconfig:v1beta/RepositoryResourceAptRepository/components/component": component +"/osconfig:v1beta/RepositoryResourceAptRepository/distribution": distribution +"/osconfig:v1beta/RepositoryResourceAptRepository/gpgKey": gpg_key +"/osconfig:v1beta/RepositoryResourceAptRepository/uri": uri +"/osconfig:v1beta/RepositoryResourceGooRepository": repository_resource_goo_repository +"/osconfig:v1beta/RepositoryResourceGooRepository/name": name +"/osconfig:v1beta/RepositoryResourceGooRepository/url": url +"/osconfig:v1beta/RepositoryResourceYumRepository": repository_resource_yum_repository +"/osconfig:v1beta/RepositoryResourceYumRepository/baseUrl": base_url +"/osconfig:v1beta/RepositoryResourceYumRepository/displayName": display_name +"/osconfig:v1beta/RepositoryResourceYumRepository/gpgKeys": gpg_keys +"/osconfig:v1beta/RepositoryResourceYumRepository/gpgKeys/gpg_key": gpg_key +"/osconfig:v1beta/RepositoryResourceYumRepository/id": id +"/osconfig:v1beta/RepositoryResourceZypperRepository": repository_resource_zypper_repository +"/osconfig:v1beta/RepositoryResourceZypperRepository/baseUrl": base_url +"/osconfig:v1beta/RepositoryResourceZypperRepository/displayName": display_name +"/osconfig:v1beta/RepositoryResourceZypperRepository/gpgKeys": gpg_keys +"/osconfig:v1beta/RepositoryResourceZypperRepository/gpgKeys/gpg_key": gpg_key +"/osconfig:v1beta/RepositoryResourceZypperRepository/id": id +"/osconfig:v1beta/ServiceResource": service_resource "/osconfig:v1beta/SoftwareRecipe": software_recipe "/osconfig:v1beta/SoftwareRecipe/artifacts": artifacts "/osconfig:v1beta/SoftwareRecipe/artifacts/artifact": artifact @@ -111407,6 +111540,10 @@ "/people:v1/CalendarUrl/metadata": metadata "/people:v1/CalendarUrl/type": type "/people:v1/CalendarUrl/url": url +"/people:v1/ClientData": client_data +"/people:v1/ClientData/key": key +"/people:v1/ClientData/metadata": metadata +"/people:v1/ClientData/value": value "/people:v1/ContactGroup": contact_group "/people:v1/ContactGroup/etag": etag "/people:v1/ContactGroup/formattedName": formatted_name @@ -111586,6 +111723,8 @@ "/people:v1/Person/braggingRights/bragging_right": bragging_right "/people:v1/Person/calendarUrls": calendar_urls "/people:v1/Person/calendarUrls/calendar_url": calendar_url +"/people:v1/Person/clientData": client_data +"/people:v1/Person/clientData/client_datum": client_datum "/people:v1/Person/coverPhotos": cover_photos "/people:v1/Person/coverPhotos/cover_photo": cover_photo "/people:v1/Person/emailAddresses": email_addresses @@ -114383,6 +114522,91 @@ "/pubsub:v1beta2/pubsub.projects.topics.testIamPermissions": test_topic_iam_permissions "/pubsub:v1beta2/pubsub.projects.topics.testIamPermissions/resource": resource "/pubsub:v1beta2/quotaUser": quota_user +"/pubsublite:v1/Capacity": capacity +"/pubsublite:v1/Capacity/publishMibPerSec": publish_mib_per_sec +"/pubsublite:v1/Capacity/subscribeMibPerSec": subscribe_mib_per_sec +"/pubsublite:v1/Cursor": cursor +"/pubsublite:v1/Cursor/offset": offset +"/pubsublite:v1/DeliveryConfig": delivery_config +"/pubsublite:v1/DeliveryConfig/deliveryRequirement": delivery_requirement +"/pubsublite:v1/Empty": empty +"/pubsublite:v1/ListPartitionCursorsResponse": list_partition_cursors_response +"/pubsublite:v1/ListPartitionCursorsResponse/nextPageToken": next_page_token +"/pubsublite:v1/ListPartitionCursorsResponse/partitionCursors": partition_cursors +"/pubsublite:v1/ListPartitionCursorsResponse/partitionCursors/partition_cursor": partition_cursor +"/pubsublite:v1/ListSubscriptionsResponse": list_subscriptions_response +"/pubsublite:v1/ListSubscriptionsResponse/nextPageToken": next_page_token +"/pubsublite:v1/ListSubscriptionsResponse/subscriptions": subscriptions +"/pubsublite:v1/ListSubscriptionsResponse/subscriptions/subscription": subscription +"/pubsublite:v1/ListTopicSubscriptionsResponse": list_topic_subscriptions_response +"/pubsublite:v1/ListTopicSubscriptionsResponse/nextPageToken": next_page_token +"/pubsublite:v1/ListTopicSubscriptionsResponse/subscriptions": subscriptions +"/pubsublite:v1/ListTopicSubscriptionsResponse/subscriptions/subscription": subscription +"/pubsublite:v1/ListTopicsResponse": list_topics_response +"/pubsublite:v1/ListTopicsResponse/nextPageToken": next_page_token +"/pubsublite:v1/ListTopicsResponse/topics": topics +"/pubsublite:v1/ListTopicsResponse/topics/topic": topic +"/pubsublite:v1/PartitionConfig": partition_config +"/pubsublite:v1/PartitionConfig/capacity": capacity +"/pubsublite:v1/PartitionConfig/count": count +"/pubsublite:v1/PartitionConfig/scale": scale +"/pubsublite:v1/PartitionCursor": partition_cursor +"/pubsublite:v1/PartitionCursor/cursor": cursor +"/pubsublite:v1/PartitionCursor/partition": partition +"/pubsublite:v1/RetentionConfig": retention_config +"/pubsublite:v1/RetentionConfig/perPartitionBytes": per_partition_bytes +"/pubsublite:v1/RetentionConfig/period": period +"/pubsublite:v1/Subscription": subscription +"/pubsublite:v1/Subscription/deliveryConfig": delivery_config +"/pubsublite:v1/Subscription/name": name +"/pubsublite:v1/Subscription/topic": topic +"/pubsublite:v1/Topic": topic +"/pubsublite:v1/Topic/name": name +"/pubsublite:v1/Topic/partitionConfig": partition_config +"/pubsublite:v1/Topic/retentionConfig": retention_config +"/pubsublite:v1/TopicPartitions": topic_partitions +"/pubsublite:v1/TopicPartitions/partitionCount": partition_count +"/pubsublite:v1/fields": fields +"/pubsublite:v1/key": key +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.create": create_admin_project_location_subscription +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.create/parent": parent +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.create/subscriptionId": subscription_id +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.delete": delete_admin_project_location_subscription +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.delete/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.get": get_admin_project_location_subscription +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.get/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.list": list_admin_project_location_subscriptions +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.list/pageSize": page_size +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.list/pageToken": page_token +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.list/parent": parent +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.patch": patch_admin_project_location_subscription +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.patch/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.subscriptions.patch/updateMask": update_mask +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.create": create_admin_project_location_topic +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.create/parent": parent +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.create/topicId": topic_id +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.delete": delete_admin_project_location_topic +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.delete/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.get": get_admin_project_location_topic +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.get/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.getPartitions": get_admin_project_location_topic_partitions +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.getPartitions/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.list": list_admin_project_location_topics +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.list/pageSize": page_size +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.list/pageToken": page_token +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.list/parent": parent +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.patch": patch_admin_project_location_topic +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.patch/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.patch/updateMask": update_mask +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.subscriptions.list": list_admin_project_location_topic_subscriptions +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.subscriptions.list/name": name +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.subscriptions.list/pageSize": page_size +"/pubsublite:v1/pubsublite.admin.projects.locations.topics.subscriptions.list/pageToken": page_token +"/pubsublite:v1/pubsublite.cursor.projects.locations.subscriptions.cursors.list": list_cursor_project_location_subscription_cursors +"/pubsublite:v1/pubsublite.cursor.projects.locations.subscriptions.cursors.list/pageSize": page_size +"/pubsublite:v1/pubsublite.cursor.projects.locations.subscriptions.cursors.list/pageToken": page_token +"/pubsublite:v1/pubsublite.cursor.projects.locations.subscriptions.cursors.list/parent": parent +"/pubsublite:v1/quotaUser": quota_user "/qpxExpress:v1/AircraftData": aircraft_data "/qpxExpress:v1/AircraftData/code": code "/qpxExpress:v1/AircraftData/kind": kind diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index d3cb5d6b9..244f1aef2 100644 --- a/generated/google/apis/appengine_v1.rb +++ b/generated/google/apis/appengine_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1 VERSION = 'V1' - REVISION = '20200715' + REVISION = '20200802' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1/classes.rb b/generated/google/apis/appengine_v1/classes.rb index 30eca9ae6..04e4f8349 100644 --- a/generated/google/apis/appengine_v1/classes.rb +++ b/generated/google/apis/appengine_v1/classes.rb @@ -489,15 +489,15 @@ module Google # Unencrypted PEM encoded RSA private key. This field is set once on certificate # creation and then encrypted. The key size must be 2048 bits or fewer. Must - # include the header and footer. Example:
 -----BEGIN RSA PRIVATE KEY----- <
-        # unencrypted_key_value> -----END RSA PRIVATE KEY----- 
@InputOnly + # include the header and footer. Example: -----BEGIN RSA PRIVATE KEY----- ----- + # END RSA PRIVATE KEY----- @InputOnly # Corresponds to the JSON property `privateKey` # @return [String] attr_accessor :private_key # PEM encoded x.509 public key certificate. This field is set once on - # certificate creation. Must include the header and footer. Example:
 -----
-        # BEGIN CERTIFICATE-----  -----END CERTIFICATE----- 
+ # certificate creation. Must include the header and footer. Example: -----BEGIN + # CERTIFICATE----- -----END CERTIFICATE----- # Corresponds to the JSON property `publicCertificate` # @return [String] attr_accessor :public_certificate @@ -658,11 +658,11 @@ module Google class DebugInstanceRequest include Google::Apis::Core::Hashable - # Public SSH key to add to the instance. Examples: - # [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] - # [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]","expireOn":" - # [EXPIRE_TIME]"`For more information, see Adding and Removing SSH Keys (https:// - # cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). + # Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa [KEY_VALUE] + # [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]", + # "expireOn":"[EXPIRE_TIME]"`For more information, see Adding and Removing SSH + # Keys (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys) + # . # Corresponds to the JSON property `sshKey` # @return [String] attr_accessor :ssh_key @@ -800,11 +800,9 @@ module Google # 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 ``. + # 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 Empty include Google::Apis::Core::Hashable @@ -969,7 +967,7 @@ module Google attr_accessor :sha1_sum # URL source to use to fetch this file. Must be a URL to a resource in Google - # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. + # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. # Corresponds to the JSON property `sourceUrl` # @return [String] attr_accessor :source_url @@ -1013,7 +1011,7 @@ module Google # IP address or range, defined using CIDR notation, of requests that this rule # applies to. You can use the wildcard character "*" to match all IPs equivalent # to "0/0" and "::/0" together. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001: - # db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334.

Truncation will be + # db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334. Truncation will be # silently performed on addresses which are not properly truncated. For example, # 1.2.3.4/24 is accepted as the same address as 1.2.3.0/24. Similarly, for IPv6, # 2001:db8::1/32 is accepted as the same address as 2001:db8::/32. @@ -1575,8 +1573,8 @@ module Google # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1721,18 +1719,16 @@ module Google # Google Cloud Platform sub-network where the virtual machines are created. # Specify the short name, not the resource path.If a subnetwork name is # specified, a network name will also be required unless it is for the default - # network. - # If the network that the instance is being created in is a Legacy network, then - # the IP address is allocated from the IPv4Range. - # If the network that the instance is being created in is an auto Subnet Mode - # Network, then only network name should be specified (not the subnetwork_name) - # and the IP address is created from the IPCidrRange of the subnetwork that - # exists in that zone for that network. - # If the network that the instance is being created in is a custom Subnet Mode - # Network, then the subnetwork_name must be specified and the IP address is - # created from the IPCidrRange of the subnetwork.If specified, the subnetwork - # must exist in the same region as the App Engine flexible environment - # application. + # network. If the network that the instance is being created in is a Legacy + # network, then the IP address is allocated from the IPv4Range. If the network + # that the instance is being created in is an auto Subnet Mode Network, then + # only network name should be specified (not the subnetwork_name) and the IP + # address is created from the IPCidrRange of the subnetwork that exists in that + # zone for that network. If the network that the instance is being created in is + # a custom Subnet Mode Network, then the subnetwork_name must be specified and + # the IP address is created from the IPCidrRange of the subnetwork.If specified, + # the subnetwork must exist in the same region as the App Engine flexible + # environment application. # Corresponds to the JSON property `subnetworkName` # @return [String] attr_accessor :subnetwork_name @@ -2191,6 +2187,12 @@ module Google # @return [Float] attr_accessor :disk_gb + # The name of the encryption key that is stored in Google Cloud KMS. Only should + # be used by Cloud Composer to encrypt the vm disk + # Corresponds to the JSON property `kmsKeyReference` + # @return [String] + attr_accessor :kms_key_reference + # Memory (GB) needed. # Corresponds to the JSON property `memoryGb` # @return [Float] @@ -2209,6 +2211,7 @@ module Google def update!(**args) @cpu = args[:cpu] if args.key?(:cpu) @disk_gb = args[:disk_gb] if args.key?(:disk_gb) + @kms_key_reference = args[:kms_key_reference] if args.key?(:kms_key_reference) @memory_gb = args[:memory_gb] if args.key?(:memory_gb) @volumes = args[:volumes] if args.key?(:volumes) end @@ -2722,9 +2725,9 @@ module Google attr_accessor :inbound_services # Instance class that is used to run this version. Valid values are: - # AutomaticScaling: F1, F2, F4, F4_1G - # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for - # AutomaticScaling and B1 for ManualScaling or BasicScaling. + # AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, B4, + # B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or + # BasicScaling. # Corresponds to the JSON property `instanceClass` # @return [String] attr_accessor :instance_class @@ -2782,7 +2785,7 @@ module Google # The version of the API in the given runtime environment. Please see the app. # yaml reference for valid values at https://cloud.google.com/appengine/docs/ - # standard//config/appref + # standard//config/appref # Corresponds to the JSON property `runtimeApiVersion` # @return [String] attr_accessor :runtime_api_version @@ -2944,7 +2947,7 @@ module Google attr_accessor :files_count # URL of the zip file to deploy from. Must be a URL to a resource in Google - # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. + # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. # Corresponds to the JSON property `sourceUrl` # @return [String] attr_accessor :source_url diff --git a/generated/google/apis/appengine_v1/representations.rb b/generated/google/apis/appengine_v1/representations.rb index d8f63ca77..cf3e48835 100644 --- a/generated/google/apis/appengine_v1/representations.rb +++ b/generated/google/apis/appengine_v1/representations.rb @@ -1004,6 +1004,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :cpu, as: 'cpu' property :disk_gb, as: 'diskGb' + property :kms_key_reference, as: 'kmsKeyReference' property :memory_gb, as: 'memoryGb' collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1::Volume, decorator: Google::Apis::AppengineV1::Volume::Representation diff --git a/generated/google/apis/appengine_v1/service.rb b/generated/google/apis/appengine_v1/service.rb index 2f424e8e5..1acc86679 100644 --- a/generated/google/apis/appengine_v1/service.rb +++ b/generated/google/apis/appengine_v1/service.rb @@ -48,12 +48,11 @@ module Google end # Creates an App Engine application for a Google Cloud Platform project. - # Required fields: - # id - The ID of the target Cloud Platform project. - # location - The region (https://cloud.google.com/appengine/docs/locations) - # where you want the App Engine application located.For more information about - # App Engine applications, see Managing Projects, Applications, and Billing ( - # https://cloud.google.com/appengine/docs/standard/python/console/). + # Required fields: id - The ID of the target Cloud Platform project. location - + # The region (https://cloud.google.com/appengine/docs/locations) where you want + # the App Engine application located.For more information about App Engine + # applications, see Managing Projects, Applications, and Billing (https://cloud. + # google.com/appengine/docs/standard/python/console/). # @param [Google::Apis::AppengineV1::Application] application_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -114,10 +113,9 @@ module Google end # Updates the specified Application resource. You can update the following - # fields: - # auth_domain - Google authentication domain for controlling user access to the - # application. - # default_cookie_expiration - Cookie expiration policy for the application. + # fields: auth_domain - Google authentication domain for controlling user access + # to the application. default_cookie_expiration - Cookie expiration policy for + # the application. # @param [String] apps_id # Part of `name`. Name of the Application resource to update. Example: apps/ # myapp. @@ -1296,50 +1294,43 @@ module Google # Updates the specified Version resource. You can specify the following fields # depending on the App Engine environment and type of scaling that the version - # resource uses:Standard environment - # instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1/apps.services.versions#Version.FIELDS.instance_class)automatic scaling - # in the standard environment: + # resource uses:Standard environment instance_class (https://cloud.google.com/ + # appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version. + # FIELDS.instance_class)automatic scaling in the standard environment: # automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/ - # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automaticScaling.standard_scheduler_settings.max_instances (https://cloud. - # google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions# - # StandardSchedulerSettings) - # automaticScaling.standard_scheduler_settings.min_instances (https://cloud. - # google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions# - # StandardSchedulerSettings) - # automaticScaling.standard_scheduler_settings.target_cpu_utilization (https:// - # cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services. - # versions#StandardSchedulerSettings) + # automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google. + # com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version. + # FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings. + # max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/ + # rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling. + # standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/ + # docs/admin-api/reference/rest/v1/apps.services.versions# + # StandardSchedulerSettings) automaticScaling.standard_scheduler_settings. + # target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/ + # reference/rest/v1/apps.services.versions#StandardSchedulerSettings) # automaticScaling.standard_scheduler_settings.target_throughput_utilization ( # https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps. # services.versions#StandardSchedulerSettings)basic scaling or manual scaling in - # the standard environment: - # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1/apps.services.versions#Version.FIELDS.serving_status) - # manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/ - # reference/rest/v1/apps.services.versions#manualscaling)Flexible environment - # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1/apps.services.versions#Version.FIELDS.serving_status)automatic scaling - # in the flexible environment: - # automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/ - # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling) + # the standard environment: serving_status (https://cloud.google.com/appengine/ + # docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. + # serving_status) manual_scaling.instances (https://cloud.google.com/appengine/ + # docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)Flexible + # environment serving_status (https://cloud.google.com/appengine/docs/admin-api/ + # reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) + # automatic scaling in the flexible environment: automatic_scaling. + # min_total_instances (https://cloud.google.com/appengine/docs/admin-api/ + # reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) # automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/ - # docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/ - # appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version. - # FIELDS.automatic_scaling)manual scaling in the flexible environment: - # manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/ - # reference/rest/v1/apps.services.versions#manualscaling) + # automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud. + # google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions# + # Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization. + # target_utilization (https://cloud.google.com/appengine/docs/admin-api/ + # reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) + # manual scaling in the flexible environment: manual_scaling.instances (https:// + # cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services. + # versions#manualscaling) # @param [String] apps_id # Part of `name`. Name of the resource to update. Example: apps/myapp/services/ # default/versions/1. diff --git a/generated/google/apis/appengine_v1alpha.rb b/generated/google/apis/appengine_v1alpha.rb index ea424d588..cdf63fa05 100644 --- a/generated/google/apis/appengine_v1alpha.rb +++ b/generated/google/apis/appengine_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1alpha VERSION = 'V1alpha' - REVISION = '20200329' + REVISION = '20200802' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1alpha/classes.rb b/generated/google/apis/appengine_v1alpha/classes.rb index c700d2e64..a25ddb43b 100644 --- a/generated/google/apis/appengine_v1alpha/classes.rb +++ b/generated/google/apis/appengine_v1alpha/classes.rb @@ -141,15 +141,15 @@ module Google # Unencrypted PEM encoded RSA private key. This field is set once on certificate # creation and then encrypted. The key size must be 2048 bits or fewer. Must - # include the header and footer. Example:
 -----BEGIN RSA PRIVATE KEY----- <
-        # unencrypted_key_value> -----END RSA PRIVATE KEY----- 
@InputOnly + # include the header and footer. Example: -----BEGIN RSA PRIVATE KEY----- ----- + # END RSA PRIVATE KEY----- @InputOnly # Corresponds to the JSON property `privateKey` # @return [String] attr_accessor :private_key # PEM encoded x.509 public key certificate. This field is set once on - # certificate creation. Must include the header and footer. Example:
 -----
-        # BEGIN CERTIFICATE-----  -----END CERTIFICATE----- 
+ # certificate creation. Must include the header and footer. Example: -----BEGIN + # CERTIFICATE----- -----END CERTIFICATE----- # Corresponds to the JSON property `publicCertificate` # @return [String] attr_accessor :public_certificate @@ -270,11 +270,9 @@ module Google # 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 ``. + # 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 Empty include Google::Apis::Core::Hashable @@ -422,8 +420,8 @@ module Google # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb index 61120d3ba..b8dc5e180 100644 --- a/generated/google/apis/appengine_v1beta.rb +++ b/generated/google/apis/appengine_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1beta VERSION = 'V1beta' - REVISION = '20200715' + REVISION = '20200802' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1beta/classes.rb b/generated/google/apis/appengine_v1beta/classes.rb index 314b560d9..6da1e8eac 100644 --- a/generated/google/apis/appengine_v1beta/classes.rb +++ b/generated/google/apis/appengine_v1beta/classes.rb @@ -515,15 +515,15 @@ module Google # Unencrypted PEM encoded RSA private key. This field is set once on certificate # creation and then encrypted. The key size must be 2048 bits or fewer. Must - # include the header and footer. Example:
 -----BEGIN RSA PRIVATE KEY----- <
-        # unencrypted_key_value> -----END RSA PRIVATE KEY----- 
@InputOnly + # include the header and footer. Example: -----BEGIN RSA PRIVATE KEY----- ----- + # END RSA PRIVATE KEY----- @InputOnly # Corresponds to the JSON property `privateKey` # @return [String] attr_accessor :private_key # PEM encoded x.509 public key certificate. This field is set once on - # certificate creation. Must include the header and footer. Example:
 -----
-        # BEGIN CERTIFICATE-----  -----END CERTIFICATE----- 
+ # certificate creation. Must include the header and footer. Example: -----BEGIN + # CERTIFICATE----- -----END CERTIFICATE----- # Corresponds to the JSON property `publicCertificate` # @return [String] attr_accessor :public_certificate @@ -731,11 +731,11 @@ module Google class DebugInstanceRequest include Google::Apis::Core::Hashable - # Public SSH key to add to the instance. Examples: - # [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] - # [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]","expireOn":" - # [EXPIRE_TIME]"`For more information, see Adding and Removing SSH Keys (https:// - # cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). + # Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa [KEY_VALUE] + # [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]", + # "expireOn":"[EXPIRE_TIME]"`For more information, see Adding and Removing SSH + # Keys (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys) + # . # Corresponds to the JSON property `sshKey` # @return [String] attr_accessor :ssh_key @@ -879,11 +879,9 @@ module Google # 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 ``. + # 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 Empty include Google::Apis::Core::Hashable @@ -1048,7 +1046,7 @@ module Google attr_accessor :sha1_sum # URL source to use to fetch this file. Must be a URL to a resource in Google - # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. + # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. # Corresponds to the JSON property `sourceUrl` # @return [String] attr_accessor :source_url @@ -1092,7 +1090,7 @@ module Google # IP address or range, defined using CIDR notation, of requests that this rule # applies to. You can use the wildcard character "*" to match all IPs equivalent # to "0/0" and "::/0" together. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001: - # db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334.

Truncation will be + # db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334. Truncation will be # silently performed on addresses which are not properly truncated. For example, # 1.2.3.4/24 is accepted as the same address as 1.2.3.0/24. Similarly, for IPv6, # 2001:db8::1/32 is accepted as the same address as 2001:db8::/32. @@ -1654,8 +1652,8 @@ module Google # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1800,18 +1798,16 @@ module Google # Google Cloud Platform sub-network where the virtual machines are created. # Specify the short name, not the resource path.If a subnetwork name is # specified, a network name will also be required unless it is for the default - # network. - # If the network that the instance is being created in is a Legacy network, then - # the IP address is allocated from the IPv4Range. - # If the network that the instance is being created in is an auto Subnet Mode - # Network, then only network name should be specified (not the subnetwork_name) - # and the IP address is created from the IPCidrRange of the subnetwork that - # exists in that zone for that network. - # If the network that the instance is being created in is a custom Subnet Mode - # Network, then the subnetwork_name must be specified and the IP address is - # created from the IPCidrRange of the subnetwork.If specified, the subnetwork - # must exist in the same region as the App Engine flexible environment - # application. + # network. If the network that the instance is being created in is a Legacy + # network, then the IP address is allocated from the IPv4Range. If the network + # that the instance is being created in is an auto Subnet Mode Network, then + # only network name should be specified (not the subnetwork_name) and the IP + # address is created from the IPCidrRange of the subnetwork that exists in that + # zone for that network. If the network that the instance is being created in is + # a custom Subnet Mode Network, then the subnetwork_name must be specified and + # the IP address is created from the IPCidrRange of the subnetwork.If specified, + # the subnetwork must exist in the same region as the App Engine flexible + # environment application. # Corresponds to the JSON property `subnetworkName` # @return [String] attr_accessor :subnetwork_name @@ -2270,6 +2266,12 @@ module Google # @return [Float] attr_accessor :disk_gb + # The name of the encryption key that is stored in Google Cloud KMS. Only should + # be used by Cloud Composer to encrypt the vm disk + # Corresponds to the JSON property `kmsKeyReference` + # @return [String] + attr_accessor :kms_key_reference + # Memory (GB) needed. # Corresponds to the JSON property `memoryGb` # @return [Float] @@ -2288,6 +2290,7 @@ module Google def update!(**args) @cpu = args[:cpu] if args.key?(:cpu) @disk_gb = args[:disk_gb] if args.key?(:disk_gb) + @kms_key_reference = args[:kms_key_reference] if args.key?(:kms_key_reference) @memory_gb = args[:memory_gb] if args.key?(:memory_gb) @volumes = args[:volumes] if args.key?(:volumes) end @@ -2801,9 +2804,9 @@ module Google attr_accessor :inbound_services # Instance class that is used to run this version. Valid values are: - # AutomaticScaling: F1, F2, F4, F4_1G - # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for - # AutomaticScaling and B1 for ManualScaling or BasicScaling. + # AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, B4, + # B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or + # BasicScaling. # Corresponds to the JSON property `instanceClass` # @return [String] attr_accessor :instance_class @@ -2861,7 +2864,7 @@ module Google # The version of the API in the given runtime environment. Please see the app. # yaml reference for valid values at https://cloud.google.com/appengine/docs/ - # standard//config/appref + # standard//config/appref # Corresponds to the JSON property `runtimeApiVersion` # @return [String] attr_accessor :runtime_api_version @@ -3023,7 +3026,7 @@ module Google attr_accessor :files_count # URL of the zip file to deploy from. Must be a URL to a resource in Google - # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. + # Cloud Storage in the form 'http(s)://storage.googleapis.com//'. # Corresponds to the JSON property `sourceUrl` # @return [String] attr_accessor :source_url diff --git a/generated/google/apis/appengine_v1beta/representations.rb b/generated/google/apis/appengine_v1beta/representations.rb index e6af713fa..9b56ea9a5 100644 --- a/generated/google/apis/appengine_v1beta/representations.rb +++ b/generated/google/apis/appengine_v1beta/representations.rb @@ -1038,6 +1038,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :cpu, as: 'cpu' property :disk_gb, as: 'diskGb' + property :kms_key_reference, as: 'kmsKeyReference' property :memory_gb, as: 'memoryGb' collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1beta::Volume, decorator: Google::Apis::AppengineV1beta::Volume::Representation diff --git a/generated/google/apis/appengine_v1beta/service.rb b/generated/google/apis/appengine_v1beta/service.rb index c62078c1c..862657cb0 100644 --- a/generated/google/apis/appengine_v1beta/service.rb +++ b/generated/google/apis/appengine_v1beta/service.rb @@ -48,12 +48,11 @@ module Google end # Creates an App Engine application for a Google Cloud Platform project. - # Required fields: - # id - The ID of the target Cloud Platform project. - # location - The region (https://cloud.google.com/appengine/docs/locations) - # where you want the App Engine application located.For more information about - # App Engine applications, see Managing Projects, Applications, and Billing ( - # https://cloud.google.com/appengine/docs/standard/python/console/). + # Required fields: id - The ID of the target Cloud Platform project. location - + # The region (https://cloud.google.com/appengine/docs/locations) where you want + # the App Engine application located.For more information about App Engine + # applications, see Managing Projects, Applications, and Billing (https://cloud. + # google.com/appengine/docs/standard/python/console/). # @param [Google::Apis::AppengineV1beta::Application] application_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -114,10 +113,9 @@ module Google end # Updates the specified Application resource. You can update the following - # fields: - # auth_domain - Google authentication domain for controlling user access to the - # application. - # default_cookie_expiration - Cookie expiration policy for the application. + # fields: auth_domain - Google authentication domain for controlling user access + # to the application. default_cookie_expiration - Cookie expiration policy for + # the application. # @param [String] apps_id # Part of `name`. Name of the Application resource to update. Example: apps/ # myapp. @@ -1296,51 +1294,43 @@ module Google # Updates the specified Version resource. You can specify the following fields # depending on the App Engine environment and type of scaling that the version - # resource uses:Standard environment - # instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1beta/apps.services.versions#Version.FIELDS.instance_class)automatic - # scaling in the standard environment: + # resource uses:Standard environment instance_class (https://cloud.google.com/ + # appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version. + # FIELDS.instance_class)automatic scaling in the standard environment: # automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/ - # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automaticScaling.standard_scheduler_settings.max_instances (https://cloud. - # google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services. - # versions#StandardSchedulerSettings) - # automaticScaling.standard_scheduler_settings.min_instances (https://cloud. - # google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services. - # versions#StandardSchedulerSettings) - # automaticScaling.standard_scheduler_settings.target_cpu_utilization (https:// - # cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services. - # versions#StandardSchedulerSettings) + # automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google. + # com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions# + # Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings. + # max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/ + # rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling. + # standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/ + # docs/admin-api/reference/rest/v1beta/apps.services.versions# + # StandardSchedulerSettings) automaticScaling.standard_scheduler_settings. + # target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/ + # reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) # automaticScaling.standard_scheduler_settings.target_throughput_utilization ( # https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps. # services.versions#StandardSchedulerSettings)basic scaling or manual scaling in - # the standard environment: - # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1beta/apps.services.versions#Version.FIELDS.serving_status) - # manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/ - # reference/rest/v1beta/apps.services.versions#manualscaling)Flexible - # environment - # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)automatic - # scaling in the flexible environment: + # the standard environment: serving_status (https://cloud.google.com/appengine/ + # docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. + # serving_status) manual_scaling.instances (https://cloud.google.com/appengine/ + # docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling) + # Flexible environment serving_status (https://cloud.google.com/appengine/docs/ + # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. + # serving_status)automatic scaling in the flexible environment: # automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/ + # automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google. + # com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions# + # Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec ( + # https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps. + # services.versions#Version.FIELDS.automatic_scaling) automatic_scaling. + # cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/ - # docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling) - # automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/ - # appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version. - # FIELDS.automatic_scaling)manual scaling in the flexible environment: - # manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/ - # reference/rest/v1beta/apps.services.versions#manualscaling) + # automatic_scaling)manual scaling in the flexible environment: manual_scaling. + # instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/ + # v1beta/apps.services.versions#manualscaling) # @param [String] apps_id # Part of `name`. Name of the resource to update. Example: apps/myapp/services/ # default/versions/1. diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index 5eb796db8..beb8fbebf 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/apps-marketplace module AppsmarketV2 VERSION = 'V2' - REVISION = '20200727' + REVISION = '20200803' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/appsmarket_v2/classes.rb b/generated/google/apis/appsmarket_v2/classes.rb index c0b8e4bf6..c9f2dfcbb 100644 --- a/generated/google/apis/appsmarket_v2/classes.rb +++ b/generated/google/apis/appsmarket_v2/classes.rb @@ -51,7 +51,9 @@ module Google # @return [String] attr_accessor :kind - # The customer's license status. + # The customer's license status. One of: - `ACTIVE`: The customer has a valid + # license. - `UNLICENSED`: There is no license: either this customer has never + # installed your application, or else has deleted it. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -196,8 +198,7 @@ module Google # @return [Array] attr_accessor :reassignments - # The time the event occurred, measuring in milliseconds since the UNIX - # epoch. + # The time the event occurred, measuring in milliseconds since the UNIX epoch. # Corresponds to the JSON property `timestamp` # @return [Fixnum] attr_accessor :timestamp @@ -235,12 +236,11 @@ module Google # @return [String] attr_accessor :next_page_token - # The list of notifications. One or more of: - # - provisions -- A new license of the application has been provisioned. - # - expiries -- A license of the application has expired. - # - deletions -- An application has been deleted from a domain. - # - reassignments -- An administrator has assigned or revoked a seat license - # for the application on the provided domain. + # The list of notifications. One or more of: - `provisions`: A new license of + # the application has been provisioned. - `expiries`: A license of the + # application has expired. - `deletions`: An application has been deleted from a + # domain. - `reassignments`: An administrator has assigned or revoked a seat + # license for the application on the provided domain. # Corresponds to the JSON property `notifications` # @return [Array] attr_accessor :notifications @@ -360,13 +360,11 @@ module Google # @return [String] attr_accessor :kind - # The user's licensing status. One of: - # - ACTIVE -- The user has a valid license and should be permitted to use the - # application. - # - UNLICENSED -- The administrator of this user's domain never assigned a - # seat for the application to this user. - # - EXPIRED -- The administrator assigned a seat to this user, but the - # license is expired. + # The user's licensing status. One of: - `ACTIVE`: The user has a valid license + # and should be permitted to use the application. - `UNLICENSED`: The + # administrator of this user's domain never assigned a seat for the application + # to this user. - `EXPIRED`: The administrator assigned a seat to this user, but + # the license is expired. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/bigquerydatatransfer_v1.rb b/generated/google/apis/bigquerydatatransfer_v1.rb index d2417f0b9..a5c2642bd 100644 --- a/generated/google/apis/bigquerydatatransfer_v1.rb +++ b/generated/google/apis/bigquerydatatransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigquerydatatransferV1 VERSION = 'V1' - REVISION = '20200616' + REVISION = '20200801' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquerydatatransfer_v1/classes.rb b/generated/google/apis/bigquerydatatransfer_v1/classes.rb index e9698af90..61cf6c2a3 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/classes.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/classes.rb @@ -22,12 +22,11 @@ module Google module Apis module BigquerydatatransferV1 - # A request to determine whether the user has valid credentials. This method - # is used to limit the number of OAuth popups in the user interface. The - # user id is inferred from the API call context. - # If the data source has the Google+ authorization type, this method - # returns false, as it cannot be determined whether the credentials are - # already valid merely based on the user id. + # A request to determine whether the user has valid credentials. This method is + # used to limit the number of OAuth popups in the user interface. The user id is + # inferred from the API call context. If the data source has the Google+ + # authorization type, this method returns false, as it cannot be determined + # whether the credentials are already valid merely based on the user id. class CheckValidCredsRequest include Google::Apis::Core::Hashable @@ -60,8 +59,8 @@ module Google end end - # Represents data source metadata. Metadata is sufficient to - # render UI and request proper OAuth tokens. + # Represents data source metadata. Metadata is sufficient to render UI and + # request proper OAuth tokens. class DataSource include Google::Apis::Core::Hashable @@ -75,10 +74,9 @@ module Google # @return [String] attr_accessor :client_id - # Specifies whether the data source supports automatic data refresh for the - # past few days, and how it's supported. - # For some data sources, data might not be complete until a few days later, - # so it's useful to refresh data automatically. + # Specifies whether the data source supports automatic data refresh for the past + # few days, and how it's supported. For some data sources, data might not be + # complete until a few days later, so it's useful to refresh data automatically. # Corresponds to the JSON property `dataRefreshType` # @return [String] attr_accessor :data_refresh_type @@ -88,17 +86,15 @@ module Google # @return [String] attr_accessor :data_source_id - # Default data refresh window on days. - # Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`. + # Default data refresh window on days. Only meaningful when `data_refresh_type` = + # `SLIDING_WINDOW`. # Corresponds to the JSON property `defaultDataRefreshWindowDays` # @return [Fixnum] attr_accessor :default_data_refresh_window_days - # Default data transfer schedule. - # Examples of valid schedules include: - # `1st,3rd monday of month 15:30`, - # `every wed,fri of jan,jun 13:15`, and - # `first sunday of quarter 00:00`. + # Default data transfer schedule. Examples of valid schedules include: `1st,3rd + # monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of + # quarter 00:00`. # Corresponds to the JSON property `defaultSchedule` # @return [String] attr_accessor :default_schedule @@ -118,8 +114,7 @@ module Google # @return [String] attr_accessor :help_url - # Disables backfilling and manual run scheduling - # for the data source. + # Disables backfilling and manual run scheduling for the data source. # Corresponds to the JSON property `manualRunsDisabled` # @return [Boolean] attr_accessor :manual_runs_disabled @@ -140,16 +135,16 @@ module Google # @return [Array] attr_accessor :parameters - # Api auth scopes for which refresh token needs to be obtained. These are - # scopes needed by a data source to prepare data and ingest them into - # BigQuery, e.g., https://www.googleapis.com/auth/bigquery + # Api auth scopes for which refresh token needs to be obtained. These are scopes + # needed by a data source to prepare data and ingest them into BigQuery, e.g., + # https://www.googleapis.com/auth/bigquery # Corresponds to the JSON property `scopes` # @return [Array] attr_accessor :scopes # Specifies whether the data source supports a user defined schedule, or - # operates on the default schedule. - # When set to `true`, user can override default schedule. + # operates on the default schedule. When set to `true`, user can override + # default schedule. # Corresponds to the JSON property `supportsCustomSchedule` # @return [Boolean] attr_accessor :supports_custom_schedule @@ -166,8 +161,8 @@ module Google # @return [String] attr_accessor :transfer_type - # The number of seconds to wait for an update from the data source - # before the Data Transfer Service marks the transfer as FAILED. + # The number of seconds to wait for an update from the data source before the + # Data Transfer Service marks the transfer as FAILED. # Corresponds to the JSON property `updateDeadlineSeconds` # @return [Fixnum] attr_accessor :update_deadline_seconds @@ -199,12 +194,11 @@ module Google end end - # Represents a data source parameter with validation rules, so that - # parameters can be rendered in the UI. These parameters are given to us by - # supported data sources, and include all needed information for rendering - # and validation. - # Thus, whoever uses this api can decide to generate either generic ui, - # or custom data source specific forms. + # Represents a data source parameter with validation rules, so that parameters + # can be rendered in the UI. These parameters are given to us by supported data + # sources, and include all needed information for rendering and validation. Thus, + # whoever uses this api can decide to generate either generic ui, or custom + # data source specific forms. class DataSourceParameter include Google::Apis::Core::Hashable @@ -213,8 +207,8 @@ module Google # @return [Array] attr_accessor :allowed_values - # If true, it should not be used in new transfers, and it should not be - # visible to users. + # If true, it should not be used in new transfers, and it should not be visible + # to users. # Corresponds to the JSON property `deprecated` # @return [Boolean] attr_accessor :deprecated @@ -320,8 +314,7 @@ module Google end end - # Represents preferences for sending email notifications for transfer run - # events. + # Represents preferences for sending email notifications for transfer run events. class EmailPreferences include Google::Apis::Core::Hashable @@ -341,13 +334,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -369,10 +360,9 @@ module Google # @return [Array] attr_accessor :data_sources - # Output only. The next-pagination token. For multiple-page list results, - # this token can be used as the - # `ListDataSourcesRequest.page_token` - # to request the next page of list results. + # Output only. The next-pagination token. For multiple-page list results, this + # token can be used as the `ListDataSourcesRequest.page_token` to request the + # next page of list results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -417,10 +407,9 @@ module Google class ListTransferConfigsResponse include Google::Apis::Core::Hashable - # Output only. The next-pagination token. For multiple-page list results, - # this token can be used as the - # `ListTransferConfigsRequest.page_token` - # to request the next page of list results. + # Output only. The next-pagination token. For multiple-page list results, this + # token can be used as the `ListTransferConfigsRequest.page_token` to request + # the next page of list results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -445,10 +434,9 @@ module Google class ListTransferLogsResponse include Google::Apis::Core::Hashable - # Output only. The next-pagination token. For multiple-page list results, - # this token can be used as the - # `GetTransferRunLogRequest.page_token` - # to request the next page of list results. + # Output only. The next-pagination token. For multiple-page list results, this + # token can be used as the `GetTransferRunLogRequest.page_token` to request the + # next page of list results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -473,10 +461,9 @@ module Google class ListTransferRunsResponse include Google::Apis::Core::Hashable - # Output only. The next-pagination token. For multiple-page list results, - # this token can be used as the - # `ListTransferRunsRequest.page_token` - # to request the next page of list results. + # Output only. The next-pagination token. For multiple-page list results, this + # token can be used as the `ListTransferRunsRequest.page_token` to request the + # next page of list results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -501,14 +488,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -524,8 +511,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -558,18 +545,17 @@ module Google alias_method :disable_auto_scheduling?, :disable_auto_scheduling # Defines time to stop scheduling transfer runs. A transfer run cannot be - # scheduled at or after the end time. The end time can be changed at any - # moment. The time when a data transfer can be trigerred manually is not - # limited by this option. + # scheduled at or after the end time. The end time can be changed at any moment. + # The time when a data transfer can be trigerred manually is not limited by this + # option. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time # Specifies time to start scheduling transfer runs. The first run will be - # scheduled at or after the start time according to a recurrence pattern - # defined in the schedule string. The start time can be changed at any - # moment. The time when a data transfer can be trigerred manually is not - # limited by this option. + # scheduled at or after the start time according to a recurrence pattern defined + # in the schedule string. The start time can be changed at any moment. The time + # when a data transfer can be trigerred manually is not limited by this option. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time @@ -590,14 +576,14 @@ module Google class ScheduleTransferRunsRequest include Google::Apis::Core::Hashable - # Required. End time of the range of transfer runs. For example, - # `"2017-05-30T00:00:00+00:00"`. + # Required. End time of the range of transfer runs. For example, `"2017-05-30T00: + # 00:00+00:00"`. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # Required. Start time of the range of transfer runs. For example, - # `"2017-05-25T00:00:00+00:00"`. + # Required. Start time of the range of transfer runs. For example, `"2017-05- + # 25T00:00:00+00:00"`. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time @@ -636,8 +622,8 @@ module Google class StartManualTransferRunsRequest include Google::Apis::Core::Hashable - # Specific run_time for a transfer run to be started. The - # requested_run_time must not be in the future. + # Specific run_time for a transfer run to be started. The requested_run_time + # must not be in the future. # Corresponds to the JSON property `requestedRunTime` # @return [String] attr_accessor :requested_run_time @@ -678,12 +664,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -692,15 +678,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -722,18 +708,18 @@ module Google class TimeRange include Google::Apis::Core::Hashable - # End time of the range of transfer runs. For example, - # `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future. - # Creates transfer runs where run_time is in the range between start_time - # (inclusive) and end_time (exclusive). + # End time of the range of transfer runs. For example, `"2017-05-30T00:00:00+00: + # 00"`. The end_time must not be in the future. Creates transfer runs where + # run_time is in the range between start_time (inclusive) and end_time ( + # exclusive). # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # Start time of the range of transfer runs. For example, - # `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than - # the end_time. Creates transfer runs where run_time is in the range - # between start_time (inclusive) and end_time (exclusive). + # Start time of the range of transfer runs. For example, `"2017-05-25T00:00:00+ + # 00:00"`. The start_time must be strictly less than the end_time. Creates + # transfer runs where run_time is in the range between start_time (inclusive) + # and end_time (exclusive). # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time @@ -749,21 +735,20 @@ module Google end end - # Represents a data transfer configuration. A transfer configuration - # contains all metadata needed to perform a data transfer. For example, - # `destination_dataset_id` specifies where data should be stored. - # When a new transfer configuration is created, the specified - # `destination_dataset_id` is created when needed and shared with the - # appropriate data source service account. + # Represents a data transfer configuration. A transfer configuration contains + # all metadata needed to perform a data transfer. For example, ` + # destination_dataset_id` specifies where data should be stored. When a new + # transfer configuration is created, the specified `destination_dataset_id` is + # created when needed and shared with the appropriate data source service + # account. class TransferConfig include Google::Apis::Core::Hashable - # The number of days to look back to automatically refresh the data. - # For example, if `data_refresh_window_days = 10`, then every day - # BigQuery reingests data for [today-10, today-1], rather than ingesting data - # for just [today-1]. - # Only valid if the data source supports the feature. Set the value to 0 - # to use the default value. + # The number of days to look back to automatically refresh the data. For example, + # if `data_refresh_window_days = 10`, then every day BigQuery reingests data + # for [today-10, today-1], rather than ingesting data for just [today-1]. Only + # valid if the data source supports the feature. Set the value to 0 to use the + # default value. # Corresponds to the JSON property `dataRefreshWindowDays` # @return [Fixnum] attr_accessor :data_refresh_window_days @@ -783,8 +768,8 @@ module Google # @return [String] attr_accessor :destination_dataset_id - # Is this config disabled. When set to true, no runs are scheduled - # for a given transfer. + # Is this config disabled. When set to true, no runs are scheduled for a given + # transfer. # Corresponds to the JSON property `disabled` # @return [Boolean] attr_accessor :disabled @@ -795,19 +780,17 @@ module Google # @return [String] attr_accessor :display_name - # Represents preferences for sending email notifications for transfer run - # events. + # Represents preferences for sending email notifications for transfer run events. # Corresponds to the JSON property `emailPreferences` # @return [Google::Apis::BigquerydatatransferV1::EmailPreferences] attr_accessor :email_preferences - # The resource name of the transfer config. - # Transfer config names have the form of - # `projects/`project_id`/locations/`region`/transferConfigs/`config_id``. - # The name is automatically generated based on the config_id specified in - # CreateTransferConfigRequest along with project_id and region. If config_id - # is not provided, usually a uuid, even though it is not guaranteed or - # required, will be generated for config_id. + # The resource name of the transfer config. Transfer config names have the form + # of `projects/`project_id`/locations/`region`/transferConfigs/`config_id``. The + # name is automatically generated based on the config_id specified in + # CreateTransferConfigRequest along with project_id and region. If config_id is + # not provided, usually a uuid, even though it is not guaranteed or required, + # will be generated for config_id. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -817,8 +800,8 @@ module Google # @return [String] attr_accessor :next_run_time - # Pub/Sub topic where notifications will be sent after transfer runs - # associated with this transfer config finish. + # Pub/Sub topic where notifications will be sent after transfer runs associated + # with this transfer config finish. # Corresponds to the JSON property `notificationPubsubTopic` # @return [String] attr_accessor :notification_pubsub_topic @@ -828,19 +811,14 @@ module Google # @return [Hash] attr_accessor :params - # Data transfer schedule. - # If the data source does not support a custom schedule, this should be - # empty. If it is empty, the default value for the data source will be - # used. - # The specified times are in UTC. - # Examples of valid format: - # `1st,3rd monday of month 15:30`, - # `every wed,fri of jan,jun 13:15`, and - # `first sunday of quarter 00:00`. - # See more explanation about the format here: - # https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with- - # cron-yaml#the_schedule_format - # NOTE: the granularity should be at least 8 hours, or less frequent. + # Data transfer schedule. If the data source does not support a custom schedule, + # this should be empty. If it is empty, the default value for the data source + # will be used. The specified times are in UTC. Examples of valid format: `1st, + # 3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first + # sunday of quarter 00:00`. See more explanation about the format here: https:// + # cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml# + # the_schedule_format NOTE: the granularity should be at least 8 hours, or less + # frequent. # Corresponds to the JSON property `schedule` # @return [String] attr_accessor :schedule @@ -935,33 +913,30 @@ module Google # @return [String] attr_accessor :destination_dataset_id - # Represents preferences for sending email notifications for transfer run - # events. + # Represents preferences for sending email notifications for transfer run events. # Corresponds to the JSON property `emailPreferences` # @return [Google::Apis::BigquerydatatransferV1::EmailPreferences] attr_accessor :email_preferences - # Output only. Time when transfer run ended. - # Parameter ignored by server for input requests. + # Output only. Time when transfer run ended. Parameter ignored by server for + # input requests. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # 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). + # 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 `errorStatus` # @return [Google::Apis::BigquerydatatransferV1::Status] attr_accessor :error_status - # The resource name of the transfer run. - # Transfer run names have the form - # `projects/`project_id`/locations/`location`/transferConfigs/`config_id`/runs/` - # run_id``. - # The name is ignored when creating a transfer run. + # The resource name of the transfer run. Transfer run names have the form ` + # projects/`project_id`/locations/`location`/transferConfigs/`config_id`/runs/` + # run_id``. The name is ignored when creating a transfer run. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -983,11 +958,10 @@ module Google # @return [String] attr_accessor :run_time - # Output only. Describes the schedule of this transfer run if it was - # created as part of a regular schedule. For batch transfer runs that are - # scheduled manually, this is empty. - # NOTE: the system might choose to delay the schedule depending on the - # current load, so `schedule_time` doesn't always match this. + # Output only. Describes the schedule of this transfer run if it was created as + # part of a regular schedule. For batch transfer runs that are scheduled + # manually, this is empty. NOTE: the system might choose to delay the schedule + # depending on the current load, so `schedule_time` doesn't always match this. # Corresponds to the JSON property `schedule` # @return [String] attr_accessor :schedule @@ -997,8 +971,8 @@ module Google # @return [String] attr_accessor :schedule_time - # Output only. Time when transfer run was started. - # Parameter ignored by server for input requests. + # Output only. Time when transfer run was started. Parameter ignored by server + # for input requests. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time diff --git a/generated/google/apis/bigquerydatatransfer_v1/service.rb b/generated/google/apis/bigquerydatatransfer_v1/service.rb index bb815f023..5eb23fec7 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/service.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/service.rb @@ -49,15 +49,14 @@ module Google end # Returns true if valid credentials exist for the given data source and - # requesting user. - # Some data sources doesn't support service account, so we need to talk to - # them on behalf of the end user. This API just checks whether we have OAuth - # token for the particular user, which is a pre-requisite before user can - # create a transfer config. + # requesting user. Some data sources doesn't support service account, so we need + # to talk to them on behalf of the end user. This API just checks whether we + # have OAuth token for the particular user, which is a pre-requisite before user + # can create a transfer config. # @param [String] name - # Required. The data source in the form: - # `projects/`project_id`/dataSources/`data_source_id`` or - # `projects/`project_id`/locations/`location_id`/dataSources/`data_source_id``. + # Required. The data source in the form: `projects/`project_id`/dataSources/` + # data_source_id`` or `projects/`project_id`/locations/`location_id`/dataSources/ + # `data_source_id``. # @param [Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest] check_valid_creds_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -88,12 +87,12 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a supported data source and returns its settings, - # which can be used for UI rendering. + # Retrieves a supported data source and returns its settings, which can be used + # for UI rendering. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/dataSources/`data_source_id`` or - # `projects/`project_id`/locations/`location_id`/dataSources/`data_source_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/dataSources/`data_source_id`` or `projects/`project_id`/ + # locations/`location_id`/dataSources/`data_source_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -121,19 +120,18 @@ module Google execute_or_queue_command(command, &block) end - # Lists supported data sources and returns their settings, - # which can be used for UI rendering. + # Lists supported data sources and returns their settings, which can be used for + # UI rendering. # @param [String] parent # Required. The BigQuery project id for which data sources should be returned. - # Must be in the form: `projects/`project_id`` or - # `projects/`project_id`/locations/`location_id` + # Must be in the form: `projects/`project_id`` or `projects/`project_id`/ + # locations/`location_id` # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListDataSourcesRequest` list results. For multiple-page - # results, `ListDataSourcesResponse` outputs - # a `next_page` token, which can be used as the + # Pagination token, which can be used to request a specific page of ` + # ListDataSourcesRequest` list results. For multiple-page results, ` + # ListDataSourcesResponse` outputs a `next_page` token, which can be used as the # `page_token` value to request the next page of list results. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -234,15 +232,14 @@ module Google end # Returns true if valid credentials exist for the given data source and - # requesting user. - # Some data sources doesn't support service account, so we need to talk to - # them on behalf of the end user. This API just checks whether we have OAuth - # token for the particular user, which is a pre-requisite before user can - # create a transfer config. + # requesting user. Some data sources doesn't support service account, so we need + # to talk to them on behalf of the end user. This API just checks whether we + # have OAuth token for the particular user, which is a pre-requisite before user + # can create a transfer config. # @param [String] name - # Required. The data source in the form: - # `projects/`project_id`/dataSources/`data_source_id`` or - # `projects/`project_id`/locations/`location_id`/dataSources/`data_source_id``. + # Required. The data source in the form: `projects/`project_id`/dataSources/` + # data_source_id`` or `projects/`project_id`/locations/`location_id`/dataSources/ + # `data_source_id``. # @param [Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest] check_valid_creds_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -273,12 +270,12 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a supported data source and returns its settings, - # which can be used for UI rendering. + # Retrieves a supported data source and returns its settings, which can be used + # for UI rendering. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/dataSources/`data_source_id`` or - # `projects/`project_id`/locations/`location_id`/dataSources/`data_source_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/dataSources/`data_source_id`` or `projects/`project_id`/ + # locations/`location_id`/dataSources/`data_source_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -306,19 +303,18 @@ module Google execute_or_queue_command(command, &block) end - # Lists supported data sources and returns their settings, - # which can be used for UI rendering. + # Lists supported data sources and returns their settings, which can be used for + # UI rendering. # @param [String] parent # Required. The BigQuery project id for which data sources should be returned. - # Must be in the form: `projects/`project_id`` or - # `projects/`project_id`/locations/`location_id` + # Must be in the form: `projects/`project_id`` or `projects/`project_id`/ + # locations/`location_id` # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListDataSourcesRequest` list results. For multiple-page - # results, `ListDataSourcesResponse` outputs - # a `next_page` token, which can be used as the + # Pagination token, which can be used to request a specific page of ` + # ListDataSourcesRequest` list results. For multiple-page results, ` + # ListDataSourcesResponse` outputs a `next_page` token, which can be used as the # `page_token` value to request the next page of list results. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -352,40 +348,33 @@ module Google # Creates a new data transfer configuration. # @param [String] parent # Required. The BigQuery project id where the transfer configuration should be - # created. - # Must be in the format projects/`project_id`/locations/`location_id` or - # projects/`project_id`. If specified location and location of the + # created. Must be in the format projects/`project_id`/locations/`location_id` + # or projects/`project_id`. If specified location and location of the # destination bigquery dataset do not match - the request will fail. # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object # @param [String] authorization_code # Optional OAuth2 authorization code to use with this transfer configuration. - # This is required if new credentials are needed, as indicated by - # `CheckValidCreds`. - # In order to obtain authorization_code, please make a - # request to - # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=< - # datatransferapiclientid>&scope=&redirect_uri= - # * client_id should be OAuth client_id of BigQuery DTS API for the given - # data source returned by ListDataSources method. - # * data_source_scopes are the scopes returned by ListDataSources method. - # * redirect_uri is an optional parameter. If not specified, then - # authorization code is posted to the opener of authorization flow window. - # Otherwise it will be sent to the redirect uri. A special value of - # urn:ietf:wg:oauth:2.0:oob means that authorization code should be - # returned in the title bar of the browser, with the page text prompting - # the user to copy the code and paste it in the application. + # This is required if new credentials are needed, as indicated by ` + # CheckValidCreds`. In order to obtain authorization_code, please make a request + # to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=& + # redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for + # the given data source returned by ListDataSources method. * data_source_scopes + # are the scopes returned by ListDataSources method. * redirect_uri is an + # optional parameter. If not specified, then authorization code is posted to the + # opener of authorization flow window. Otherwise it will be sent to the redirect + # uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization + # code should be returned in the title bar of the browser, with the page text + # prompting the user to copy the code and paste it in the application. # @param [String] service_account_name - # Optional service account name. If this field is set, transfer config will - # be created with this service account credentials. It requires that - # requesting user calling this API has permissions to act as this service - # account. + # Optional service account name. If this field is set, transfer config will be + # created with this service account credentials. It requires that requesting + # user calling this API has permissions to act as this service account. # @param [String] version_info - # Optional version info. If users want to find a very recent access token, - # that is, immediately after approving access, users have to set the - # version_info claim in the token request. To obtain the version_info, users - # must use the "none+gsession" response type. which be return a - # version_info back in the authorization response which be be put in a JWT - # claim in the token request. + # Optional version info. If users want to find a very recent access token, that + # is, immediately after approving access, users have to set the version_info + # claim in the token request. To obtain the version_info, users must use the " + # none+gsession" response type. which be return a version_info back in the + # authorization response which be be put in a JWT claim in the token request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -418,12 +407,12 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a data transfer configuration, - # including any associated transfer runs and logs. + # Deletes a data transfer configuration, including any associated transfer runs + # and logs. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`` or `projects/`project_id`/ + # locations/`location_id`/transferConfigs/`config_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -453,9 +442,9 @@ module Google # Returns information about a data transfer config. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`` or `projects/`project_id`/ + # locations/`location_id`/transferConfigs/`config_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -485,19 +474,17 @@ module Google # Returns information about all data transfers in the project. # @param [String] parent - # Required. The BigQuery project id for which data sources - # should be returned: `projects/`project_id`` or - # `projects/`project_id`/locations/`location_id`` + # Required. The BigQuery project id for which data sources should be returned: ` + # projects/`project_id`` or `projects/`project_id`/locations/`location_id`` # @param [Array, String] data_source_ids # When specified, only configurations of requested data sources are returned. # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListTransfersRequest` list results. For multiple-page - # results, `ListTransfersResponse` outputs - # a `next_page` token, which can be used as the - # `page_token` value to request the next page of list results. + # Pagination token, which can be used to request a specific page of ` + # ListTransfersRequest` list results. For multiple-page results, ` + # ListTransfersResponse` outputs a `next_page` token, which can be used as the ` + # page_token` value to request the next page of list results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -528,49 +515,42 @@ module Google execute_or_queue_command(command, &block) end - # Updates a data transfer configuration. - # All fields must be set, even if they are not updated. + # Updates a data transfer configuration. All fields must be set, even if they + # are not updated. # @param [String] name - # The resource name of the transfer config. - # Transfer config names have the form of - # `projects/`project_id`/locations/`region`/transferConfigs/`config_id``. - # The name is automatically generated based on the config_id specified in - # CreateTransferConfigRequest along with project_id and region. If config_id - # is not provided, usually a uuid, even though it is not guaranteed or - # required, will be generated for config_id. + # The resource name of the transfer config. Transfer config names have the form + # of `projects/`project_id`/locations/`region`/transferConfigs/`config_id``. The + # name is automatically generated based on the config_id specified in + # CreateTransferConfigRequest along with project_id and region. If config_id is + # not provided, usually a uuid, even though it is not guaranteed or required, + # will be generated for config_id. # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object # @param [String] authorization_code - # Optional OAuth2 authorization code to use with this transfer configuration. - # If it is provided, the transfer configuration will be associated with the - # authorizing user. - # In order to obtain authorization_code, please make a - # request to - # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=< - # datatransferapiclientid>&scope=&redirect_uri= - # * client_id should be OAuth client_id of BigQuery DTS API for the given - # data source returned by ListDataSources method. - # * data_source_scopes are the scopes returned by ListDataSources method. - # * redirect_uri is an optional parameter. If not specified, then - # authorization code is posted to the opener of authorization flow window. - # Otherwise it will be sent to the redirect uri. A special value of - # urn:ietf:wg:oauth:2.0:oob means that authorization code should be - # returned in the title bar of the browser, with the page text prompting - # the user to copy the code and paste it in the application. + # Optional OAuth2 authorization code to use with this transfer configuration. If + # it is provided, the transfer configuration will be associated with the + # authorizing user. In order to obtain authorization_code, please make a request + # to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=& + # redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for + # the given data source returned by ListDataSources method. * data_source_scopes + # are the scopes returned by ListDataSources method. * redirect_uri is an + # optional parameter. If not specified, then authorization code is posted to the + # opener of authorization flow window. Otherwise it will be sent to the redirect + # uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization + # code should be returned in the title bar of the browser, with the page text + # prompting the user to copy the code and paste it in the application. # @param [String] service_account_name - # Optional service account name. If this field is set and - # "service_account_name" is set in update_mask, transfer config will be - # updated to use this service account credentials. It requires that - # requesting user calling this API has permissions to act as this service - # account. + # Optional service account name. If this field is set and "service_account_name" + # is set in update_mask, transfer config will be updated to use this service + # account credentials. It requires that requesting user calling this API has + # permissions to act as this service account. # @param [String] update_mask # Required. Required list of fields to be updated in this request. # @param [String] version_info - # Optional version info. If users want to find a very recent access token, - # that is, immediately after approving access, users have to set the - # version_info claim in the token request. To obtain the version_info, users - # must use the "none+gsession" response type. which be return a - # version_info back in the authorization response which be be put in a JWT - # claim in the token request. + # Optional version info. If users want to find a very recent access token, that + # is, immediately after approving access, users have to set the version_info + # claim in the token request. To obtain the version_info, users must use the " + # none+gsession" response type. which be return a version_info back in the + # authorization response which be be put in a JWT claim in the token request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -604,15 +584,14 @@ module Google execute_or_queue_command(command, &block) end - # Creates transfer runs for a time range [start_time, end_time]. - # For each date - or whatever granularity the data source supports - in the - # range, one transfer run is created. - # Note that runs are created per UTC time in the time range. + # Creates transfer runs for a time range [start_time, end_time]. For each date - + # or whatever granularity the data source supports - in the range, one transfer + # run is created. Note that runs are created per UTC time in the time range. # DEPRECATED: use StartManualTransferRuns instead. # @param [String] parent - # Required. Transfer configuration name in the form: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id``. + # Required. Transfer configuration name in the form: `projects/`project_id`/ + # transferConfigs/`config_id`` or `projects/`project_id`/locations/`location_id`/ + # transferConfigs/`config_id``. # @param [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest] schedule_transfer_runs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -645,12 +624,12 @@ module Google # Start manual transfer runs to be executed now with schedule_time equal to # current time. The transfer runs can be created for a time range where the - # run_time is between start_time (inclusive) and end_time (exclusive), or for - # a specific run_time. + # run_time is between start_time (inclusive) and end_time (exclusive), or for a + # specific run_time. # @param [String] parent - # Transfer configuration name in the form: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id``. + # Transfer configuration name in the form: `projects/`project_id`/ + # transferConfigs/`config_id`` or `projects/`project_id`/locations/`location_id`/ + # transferConfigs/`config_id``. # @param [Google::Apis::BigquerydatatransferV1::StartManualTransferRunsRequest] start_manual_transfer_runs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -683,10 +662,9 @@ module Google # Deletes the specified transfer run. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`/ - # runs/`run_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or `projects/` + # project_id`/locations/`location_id`/transferConfigs/`config_id`/runs/`run_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -716,10 +694,9 @@ module Google # Returns information about the particular transfer run. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`/ - # runs/`run_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or `projects/` + # project_id`/locations/`location_id`/transferConfigs/`config_id`/runs/`run_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -750,18 +727,16 @@ module Google # Returns information about running and completed jobs. # @param [String] parent # Required. Name of transfer configuration for which transfer runs should be - # retrieved. - # Format of transfer configuration resource name is: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id``. + # retrieved. Format of transfer configuration resource name is: `projects/` + # project_id`/transferConfigs/`config_id`` or `projects/`project_id`/locations/` + # location_id`/transferConfigs/`config_id``. # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListTransferRunsRequest` list results. For multiple-page - # results, `ListTransferRunsResponse` outputs - # a `next_page` token, which can be used as the - # `page_token` value to request the next page of list results. + # Pagination token, which can be used to request a specific page of ` + # ListTransferRunsRequest` list results. For multiple-page results, ` + # ListTransferRunsResponse` outputs a `next_page` token, which can be used as + # the `page_token` value to request the next page of list results. # @param [String] run_attempt # Indicates how run attempts are to be pulled. # @param [Array, String] states @@ -799,21 +774,19 @@ module Google # Returns user facing log messages for the data transfer run. # @param [String] parent - # Required. Transfer run name in the form: - # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`/ - # runs/`run_id`` + # Required. Transfer run name in the form: `projects/`project_id`/ + # transferConfigs/`config_id`/runs/`run_id`` or `projects/`project_id`/locations/ + # `location_id`/transferConfigs/`config_id`/runs/`run_id`` # @param [Array, String] message_types - # Message types to return. If not populated - INFO, WARNING and ERROR - # messages are returned. + # Message types to return. If not populated - INFO, WARNING and ERROR messages + # are returned. # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListTransferLogsRequest` list results. For multiple-page - # results, `ListTransferLogsResponse` outputs - # a `next_page` token, which can be used as the - # `page_token` value to request the next page of list results. + # Pagination token, which can be used to request a specific page of ` + # ListTransferLogsRequest` list results. For multiple-page results, ` + # ListTransferLogsResponse` outputs a `next_page` token, which can be used as + # the `page_token` value to request the next page of list results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -847,40 +820,33 @@ module Google # Creates a new data transfer configuration. # @param [String] parent # Required. The BigQuery project id where the transfer configuration should be - # created. - # Must be in the format projects/`project_id`/locations/`location_id` or - # projects/`project_id`. If specified location and location of the + # created. Must be in the format projects/`project_id`/locations/`location_id` + # or projects/`project_id`. If specified location and location of the # destination bigquery dataset do not match - the request will fail. # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object # @param [String] authorization_code # Optional OAuth2 authorization code to use with this transfer configuration. - # This is required if new credentials are needed, as indicated by - # `CheckValidCreds`. - # In order to obtain authorization_code, please make a - # request to - # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=< - # datatransferapiclientid>&scope=&redirect_uri= - # * client_id should be OAuth client_id of BigQuery DTS API for the given - # data source returned by ListDataSources method. - # * data_source_scopes are the scopes returned by ListDataSources method. - # * redirect_uri is an optional parameter. If not specified, then - # authorization code is posted to the opener of authorization flow window. - # Otherwise it will be sent to the redirect uri. A special value of - # urn:ietf:wg:oauth:2.0:oob means that authorization code should be - # returned in the title bar of the browser, with the page text prompting - # the user to copy the code and paste it in the application. + # This is required if new credentials are needed, as indicated by ` + # CheckValidCreds`. In order to obtain authorization_code, please make a request + # to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=& + # redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for + # the given data source returned by ListDataSources method. * data_source_scopes + # are the scopes returned by ListDataSources method. * redirect_uri is an + # optional parameter. If not specified, then authorization code is posted to the + # opener of authorization flow window. Otherwise it will be sent to the redirect + # uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization + # code should be returned in the title bar of the browser, with the page text + # prompting the user to copy the code and paste it in the application. # @param [String] service_account_name - # Optional service account name. If this field is set, transfer config will - # be created with this service account credentials. It requires that - # requesting user calling this API has permissions to act as this service - # account. + # Optional service account name. If this field is set, transfer config will be + # created with this service account credentials. It requires that requesting + # user calling this API has permissions to act as this service account. # @param [String] version_info - # Optional version info. If users want to find a very recent access token, - # that is, immediately after approving access, users have to set the - # version_info claim in the token request. To obtain the version_info, users - # must use the "none+gsession" response type. which be return a - # version_info back in the authorization response which be be put in a JWT - # claim in the token request. + # Optional version info. If users want to find a very recent access token, that + # is, immediately after approving access, users have to set the version_info + # claim in the token request. To obtain the version_info, users must use the " + # none+gsession" response type. which be return a version_info back in the + # authorization response which be be put in a JWT claim in the token request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -913,12 +879,12 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a data transfer configuration, - # including any associated transfer runs and logs. + # Deletes a data transfer configuration, including any associated transfer runs + # and logs. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`` or `projects/`project_id`/ + # locations/`location_id`/transferConfigs/`config_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -948,9 +914,9 @@ module Google # Returns information about a data transfer config. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`` or `projects/`project_id`/ + # locations/`location_id`/transferConfigs/`config_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -980,19 +946,17 @@ module Google # Returns information about all data transfers in the project. # @param [String] parent - # Required. The BigQuery project id for which data sources - # should be returned: `projects/`project_id`` or - # `projects/`project_id`/locations/`location_id`` + # Required. The BigQuery project id for which data sources should be returned: ` + # projects/`project_id`` or `projects/`project_id`/locations/`location_id`` # @param [Array, String] data_source_ids # When specified, only configurations of requested data sources are returned. # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListTransfersRequest` list results. For multiple-page - # results, `ListTransfersResponse` outputs - # a `next_page` token, which can be used as the - # `page_token` value to request the next page of list results. + # Pagination token, which can be used to request a specific page of ` + # ListTransfersRequest` list results. For multiple-page results, ` + # ListTransfersResponse` outputs a `next_page` token, which can be used as the ` + # page_token` value to request the next page of list results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1023,49 +987,42 @@ module Google execute_or_queue_command(command, &block) end - # Updates a data transfer configuration. - # All fields must be set, even if they are not updated. + # Updates a data transfer configuration. All fields must be set, even if they + # are not updated. # @param [String] name - # The resource name of the transfer config. - # Transfer config names have the form of - # `projects/`project_id`/locations/`region`/transferConfigs/`config_id``. - # The name is automatically generated based on the config_id specified in - # CreateTransferConfigRequest along with project_id and region. If config_id - # is not provided, usually a uuid, even though it is not guaranteed or - # required, will be generated for config_id. + # The resource name of the transfer config. Transfer config names have the form + # of `projects/`project_id`/locations/`region`/transferConfigs/`config_id``. The + # name is automatically generated based on the config_id specified in + # CreateTransferConfigRequest along with project_id and region. If config_id is + # not provided, usually a uuid, even though it is not guaranteed or required, + # will be generated for config_id. # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object # @param [String] authorization_code - # Optional OAuth2 authorization code to use with this transfer configuration. - # If it is provided, the transfer configuration will be associated with the - # authorizing user. - # In order to obtain authorization_code, please make a - # request to - # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=< - # datatransferapiclientid>&scope=&redirect_uri= - # * client_id should be OAuth client_id of BigQuery DTS API for the given - # data source returned by ListDataSources method. - # * data_source_scopes are the scopes returned by ListDataSources method. - # * redirect_uri is an optional parameter. If not specified, then - # authorization code is posted to the opener of authorization flow window. - # Otherwise it will be sent to the redirect uri. A special value of - # urn:ietf:wg:oauth:2.0:oob means that authorization code should be - # returned in the title bar of the browser, with the page text prompting - # the user to copy the code and paste it in the application. + # Optional OAuth2 authorization code to use with this transfer configuration. If + # it is provided, the transfer configuration will be associated with the + # authorizing user. In order to obtain authorization_code, please make a request + # to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=& + # redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for + # the given data source returned by ListDataSources method. * data_source_scopes + # are the scopes returned by ListDataSources method. * redirect_uri is an + # optional parameter. If not specified, then authorization code is posted to the + # opener of authorization flow window. Otherwise it will be sent to the redirect + # uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization + # code should be returned in the title bar of the browser, with the page text + # prompting the user to copy the code and paste it in the application. # @param [String] service_account_name - # Optional service account name. If this field is set and - # "service_account_name" is set in update_mask, transfer config will be - # updated to use this service account credentials. It requires that - # requesting user calling this API has permissions to act as this service - # account. + # Optional service account name. If this field is set and "service_account_name" + # is set in update_mask, transfer config will be updated to use this service + # account credentials. It requires that requesting user calling this API has + # permissions to act as this service account. # @param [String] update_mask # Required. Required list of fields to be updated in this request. # @param [String] version_info - # Optional version info. If users want to find a very recent access token, - # that is, immediately after approving access, users have to set the - # version_info claim in the token request. To obtain the version_info, users - # must use the "none+gsession" response type. which be return a - # version_info back in the authorization response which be be put in a JWT - # claim in the token request. + # Optional version info. If users want to find a very recent access token, that + # is, immediately after approving access, users have to set the version_info + # claim in the token request. To obtain the version_info, users must use the " + # none+gsession" response type. which be return a version_info back in the + # authorization response which be be put in a JWT claim in the token request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1099,15 +1056,14 @@ module Google execute_or_queue_command(command, &block) end - # Creates transfer runs for a time range [start_time, end_time]. - # For each date - or whatever granularity the data source supports - in the - # range, one transfer run is created. - # Note that runs are created per UTC time in the time range. + # Creates transfer runs for a time range [start_time, end_time]. For each date - + # or whatever granularity the data source supports - in the range, one transfer + # run is created. Note that runs are created per UTC time in the time range. # DEPRECATED: use StartManualTransferRuns instead. # @param [String] parent - # Required. Transfer configuration name in the form: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id``. + # Required. Transfer configuration name in the form: `projects/`project_id`/ + # transferConfigs/`config_id`` or `projects/`project_id`/locations/`location_id`/ + # transferConfigs/`config_id``. # @param [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest] schedule_transfer_runs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1140,12 +1096,12 @@ module Google # Start manual transfer runs to be executed now with schedule_time equal to # current time. The transfer runs can be created for a time range where the - # run_time is between start_time (inclusive) and end_time (exclusive), or for - # a specific run_time. + # run_time is between start_time (inclusive) and end_time (exclusive), or for a + # specific run_time. # @param [String] parent - # Transfer configuration name in the form: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id``. + # Transfer configuration name in the form: `projects/`project_id`/ + # transferConfigs/`config_id`` or `projects/`project_id`/locations/`location_id`/ + # transferConfigs/`config_id``. # @param [Google::Apis::BigquerydatatransferV1::StartManualTransferRunsRequest] start_manual_transfer_runs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1178,10 +1134,9 @@ module Google # Deletes the specified transfer run. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`/ - # runs/`run_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or `projects/` + # project_id`/locations/`location_id`/transferConfigs/`config_id`/runs/`run_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1211,10 +1166,9 @@ module Google # Returns information about the particular transfer run. # @param [String] name - # Required. The field will contain name of the resource requested, for example: - # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`/ - # runs/`run_id`` + # Required. The field will contain name of the resource requested, for example: ` + # projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or `projects/` + # project_id`/locations/`location_id`/transferConfigs/`config_id`/runs/`run_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1245,18 +1199,16 @@ module Google # Returns information about running and completed jobs. # @param [String] parent # Required. Name of transfer configuration for which transfer runs should be - # retrieved. - # Format of transfer configuration resource name is: - # `projects/`project_id`/transferConfigs/`config_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id``. + # retrieved. Format of transfer configuration resource name is: `projects/` + # project_id`/transferConfigs/`config_id`` or `projects/`project_id`/locations/` + # location_id`/transferConfigs/`config_id``. # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListTransferRunsRequest` list results. For multiple-page - # results, `ListTransferRunsResponse` outputs - # a `next_page` token, which can be used as the - # `page_token` value to request the next page of list results. + # Pagination token, which can be used to request a specific page of ` + # ListTransferRunsRequest` list results. For multiple-page results, ` + # ListTransferRunsResponse` outputs a `next_page` token, which can be used as + # the `page_token` value to request the next page of list results. # @param [String] run_attempt # Indicates how run attempts are to be pulled. # @param [Array, String] states @@ -1294,21 +1246,19 @@ module Google # Returns user facing log messages for the data transfer run. # @param [String] parent - # Required. Transfer run name in the form: - # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id`` or - # `projects/`project_id`/locations/`location_id`/transferConfigs/`config_id`/ - # runs/`run_id`` + # Required. Transfer run name in the form: `projects/`project_id`/ + # transferConfigs/`config_id`/runs/`run_id`` or `projects/`project_id`/locations/ + # `location_id`/transferConfigs/`config_id`/runs/`run_id`` # @param [Array, String] message_types - # Message types to return. If not populated - INFO, WARNING and ERROR - # messages are returned. + # Message types to return. If not populated - INFO, WARNING and ERROR messages + # are returned. # @param [Fixnum] page_size # Page size. The default page size is the maximum value of 1000 results. # @param [String] page_token - # Pagination token, which can be used to request a specific page - # of `ListTransferLogsRequest` list results. For multiple-page - # results, `ListTransferLogsResponse` outputs - # a `next_page` token, which can be used as the - # `page_token` value to request the next page of list results. + # Pagination token, which can be used to request a specific page of ` + # ListTransferLogsRequest` list results. For multiple-page results, ` + # ListTransferLogsResponse` outputs a `next_page` token, which can be used as + # the `page_token` value to request the next page of list results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/bigqueryreservation_v1.rb b/generated/google/apis/bigqueryreservation_v1.rb index bfd10ff6a..4c626f2ce 100644 --- a/generated/google/apis/bigqueryreservation_v1.rb +++ b/generated/google/apis/bigqueryreservation_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryreservationV1 VERSION = 'V1' - REVISION = '20200702' + REVISION = '20200801' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryreservation_v1/classes.rb b/generated/google/apis/bigqueryreservation_v1/classes.rb index bae2cea83..80ed411d9 100644 --- a/generated/google/apis/bigqueryreservation_v1/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1/classes.rb @@ -22,13 +22,13 @@ module Google module Apis module BigqueryreservationV1 - # A Assignment allows a project to submit jobs - # of a certain type using slots from the specified reservation. + # A Assignment allows a project to submit jobs of a certain type using slots + # from the specified reservation. class Assignment include Google::Apis::Core::Hashable - # The resource which will use the reservation. E.g. - # `projects/myproject`, `folders/123`, or `organizations/456`. + # The resource which will use the reservation. E.g. `projects/myproject`, ` + # folders/123`, or `organizations/456`. # Corresponds to the JSON property `assignee` # @return [String] attr_accessor :assignee @@ -38,8 +38,8 @@ module Google # @return [String] attr_accessor :job_type - # Output only. Name of the resource. E.g.: - # `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. + # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/ + # reservations/team1-prod/assignments/123`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -66,9 +66,8 @@ module Google class BiReservation include Google::Apis::Core::Hashable - # The resource name of the singleton BI reservation. - # Reservation names have the form - # `projects/`project_id`/locations/`location_id`/bireservation`. + # The resource name of the singleton BI reservation. Reservation names have the + # form `projects/`project_id`/locations/`location_id`/bireservation`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -95,43 +94,39 @@ module Google end end - # Capacity commitment is a way to purchase compute capacity for BigQuery jobs - # (in the form of slots) with some committed period of usage. Annual - # commitments renew by default. Commitments can be removed after their - # commitment end time passes. - # In order to remove annual commitment, its plan needs to be changed - # to monthly or flex first. - # A capacity commitment resource exists as a child resource of the admin - # project. + # Capacity commitment is a way to purchase compute capacity for BigQuery jobs ( + # in the form of slots) with some committed period of usage. Annual commitments + # renew by default. Commitments can be removed after their commitment end time + # passes. In order to remove annual commitment, its plan needs to be changed to + # monthly or flex first. A capacity commitment resource exists as a child + # resource of the admin project. class CapacityCommitment include Google::Apis::Core::Hashable # Output only. The end of the current commitment period. It is applicable only - # for ACTIVE - # capacity commitments. + # for ACTIVE capacity commitments. # Corresponds to the JSON property `commitmentEndTime` # @return [String] attr_accessor :commitment_end_time # Output only. The start of the current commitment period. It is applicable only - # for - # ACTIVE capacity commitments. + # for ACTIVE capacity commitments. # Corresponds to the JSON property `commitmentStartTime` # @return [String] attr_accessor :commitment_start_time - # 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). + # 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 `failureStatus` # @return [Google::Apis::BigqueryreservationV1::Status] attr_accessor :failure_status - # Output only. The resource name of the capacity commitment, e.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Output only. The resource name of the capacity commitment, e.g., `projects/ + # myproject/locations/US/capacityCommitments/123` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -175,13 +170,12 @@ module Google end end - # The metadata for operation returned from - # ReservationService.CreateSlotPool. + # The metadata for operation returned from ReservationService.CreateSlotPool. class CreateSlotPoolMetadata include Google::Apis::Core::Hashable - # Resource name of the slot pool that is being created. E.g., - # projects/myproject/locations/us-central1/reservations/foo/slotPools/123 + # Resource name of the slot pool that is being created. E.g., projects/myproject/ + # locations/us-central1/reservations/foo/slotPools/123 # Corresponds to the JSON property `slotPool` # @return [String] attr_accessor :slot_pool @@ -196,13 +190,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -224,8 +216,8 @@ module Google # @return [Array] attr_accessor :assignments - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -250,8 +242,8 @@ module Google # @return [Array] attr_accessor :capacity_commitments - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -296,8 +288,8 @@ module Google class ListReservationsResponse include Google::Apis::Core::Hashable - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -322,11 +314,10 @@ module Google class MergeCapacityCommitmentsRequest include Google::Apis::Core::Hashable - # Ids of capacity commitments to merge. - # These capacity commitments must exist under admin project and location - # specified in the parent. - # ID is the last portion of capacity commitment name e.g., 'abc' for - # projects/myproject/locations/US/capacityCommitments/abc + # Ids of capacity commitments to merge. These capacity commitments must exist + # under admin project and location specified in the parent. ID is the last + # portion of capacity commitment name e.g., 'abc' for projects/myproject/ + # locations/US/capacityCommitments/abc # Corresponds to the JSON property `capacityCommitmentIds` # @return [Array] attr_accessor :capacity_commitment_ids @@ -341,18 +332,15 @@ module Google end end - # The request for - # ReservationService.MoveAssignment. - # **Note**: "bigquery.reservationAssignments.create" permission is required on - # the destination_id. - # **Note**: "bigquery.reservationAssignments.create" and - # "bigquery.reservationAssignments.delete" permission are required on the - # related assignee. + # The request for ReservationService.MoveAssignment. **Note**: "bigquery. + # reservationAssignments.create" permission is required on the destination_id. ** + # Note**: "bigquery.reservationAssignments.create" and "bigquery. + # reservationAssignments.delete" permission are required on the related assignee. class MoveAssignmentRequest include Google::Apis::Core::Hashable - # The new reservation ID, e.g.: - # `projects/myotherproject/locations/US/reservations/team2-prod` + # The new reservation ID, e.g.: `projects/myotherproject/locations/US/ + # reservations/team2-prod` # Corresponds to the JSON property `destinationId` # @return [String] attr_accessor :destination_id @@ -372,47 +360,45 @@ module Google class Operation 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. + # 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). + # 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::BigqueryreservationV1::Status] 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. + # 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``. + # 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`. + # 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 @@ -443,20 +429,19 @@ module Google attr_accessor :ignore_idle_slots alias_method :ignore_idle_slots?, :ignore_idle_slots - # The resource name of the reservation, e.g., - # `projects/*/locations/*/reservations/team1-prod`. + # The resource name of the reservation, e.g., `projects/*/locations/*/ + # reservations/team1-prod`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Minimum slots available to this reservation. A slot is a unit of - # computational power in BigQuery, and serves as the unit of parallelism. - # Queries using this reservation might use more slots during runtime if - # ignore_idle_slots is set to false. - # If the new reservation's slot capacity exceed the parent's slot capacity or - # if total slot capacity of the new reservation and its siblings exceeds the - # parent's slot capacity, the request will fail with - # `google.rpc.Code.RESOURCE_EXHAUSTED`. + # Minimum slots available to this reservation. A slot is a unit of computational + # power in BigQuery, and serves as the unit of parallelism. Queries using this + # reservation might use more slots during runtime if ignore_idle_slots is set to + # false. If the new reservation's slot capacity exceed the parent's slot + # capacity or if total slot capacity of the new reservation and its siblings + # exceeds the parent's slot capacity, the request will fail with `google.rpc. + # Code.RESOURCE_EXHAUSTED`. # Corresponds to the JSON property `slotCapacity` # @return [Fixnum] attr_accessor :slot_capacity @@ -482,8 +467,8 @@ module Google # @return [Array] attr_accessor :assignments - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -508,8 +493,8 @@ module Google # @return [Array] attr_accessor :assignments - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -548,26 +533,22 @@ module Google class SplitCapacityCommitmentResponse include Google::Apis::Core::Hashable - # Capacity commitment is a way to purchase compute capacity for BigQuery jobs - # (in the form of slots) with some committed period of usage. Annual - # commitments renew by default. Commitments can be removed after their - # commitment end time passes. - # In order to remove annual commitment, its plan needs to be changed - # to monthly or flex first. - # A capacity commitment resource exists as a child resource of the admin - # project. + # Capacity commitment is a way to purchase compute capacity for BigQuery jobs ( + # in the form of slots) with some committed period of usage. Annual commitments + # renew by default. Commitments can be removed after their commitment end time + # passes. In order to remove annual commitment, its plan needs to be changed to + # monthly or flex first. A capacity commitment resource exists as a child + # resource of the admin project. # Corresponds to the JSON property `first` # @return [Google::Apis::BigqueryreservationV1::CapacityCommitment] attr_accessor :first - # Capacity commitment is a way to purchase compute capacity for BigQuery jobs - # (in the form of slots) with some committed period of usage. Annual - # commitments renew by default. Commitments can be removed after their - # commitment end time passes. - # In order to remove annual commitment, its plan needs to be changed - # to monthly or flex first. - # A capacity commitment resource exists as a child resource of the admin - # project. + # Capacity commitment is a way to purchase compute capacity for BigQuery jobs ( + # in the form of slots) with some committed period of usage. Annual commitments + # renew by default. Commitments can be removed after their commitment end time + # passes. In order to remove annual commitment, its plan needs to be changed to + # monthly or flex first. A capacity commitment resource exists as a child + # resource of the admin project. # Corresponds to the JSON property `second` # @return [Google::Apis::BigqueryreservationV1::CapacityCommitment] attr_accessor :second @@ -583,12 +564,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -597,15 +578,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 diff --git a/generated/google/apis/bigqueryreservation_v1/service.rb b/generated/google/apis/bigqueryreservation_v1/service.rb index 1340b90fe..ab1d479b9 100644 --- a/generated/google/apis/bigqueryreservation_v1/service.rb +++ b/generated/google/apis/bigqueryreservation_v1/service.rb @@ -47,10 +47,10 @@ module Google @batch_path = 'batch' end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -80,15 +80,14 @@ module Google 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. + # 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 @@ -129,8 +128,8 @@ module Google # Retrieves a BI reservation. # @param [String] name - # Required. Name of the requested reservation, for example: - # `projects/`project_id`/locations/`location_id`/bireservation` + # Required. Name of the requested reservation, for example: `projects/` + # project_id`/locations/`location_id`/bireservation` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -158,36 +157,27 @@ module Google execute_or_queue_command(command, &block) end - # Looks up assignments for a specified resource for a particular region. - # If the request is about a project: - # 1. Assignments created on the project will be returned if they exist. - # 2. Otherwise assignments created on the closest ancestor will be - # returned. - # 3. Assignments for different JobTypes will all be returned. - # The same logic applies if the request is about a folder. - # If the request is about an organization, then assignments created on the - # organization will be returned (organization doesn't have ancestors). - # Comparing to ListAssignments, there are some behavior - # differences: - # 1. permission on the assignee will be verified in this API. - # 2. Hierarchy lookup (project->folder->organization) happens in this API. - # 3. Parent here is `projects/*/locations/*`, instead of - # `projects/*/locations/*reservations/*`. + # Looks up assignments for a specified resource for a particular region. If the + # request is about a project: 1. Assignments created on the project will be + # returned if they exist. 2. Otherwise assignments created on the closest + # ancestor will be returned. 3. Assignments for different JobTypes will all be + # returned. The same logic applies if the request is about a folder. If the + # request is about an organization, then assignments created on the organization + # will be returned (organization doesn't have ancestors). Comparing to + # ListAssignments, there are some behavior differences: 1. permission on the + # assignee will be verified in this API. 2. Hierarchy lookup (project->folder-> + # organization) happens in this API. 3. Parent here is `projects/*/locations/*`, + # instead of `projects/*/locations/*reservations/*`. # @param [String] parent # Required. The resource name with location (project name could be the wildcard ' - # -'), - # e.g.: - # `projects/-/locations/US`. + # -'), e.g.: `projects/-/locations/US`. # @param [Fixnum] page_size # The maximum number of items to return per page. # @param [String] page_token # The next_page_token value returned from a previous List request, if any. # @param [String] query - # Please specify resource name as assignee in the query. - # Examples: - # * `assignee=projects/myproject` - # * `assignee=folders/123` - # * `assignee=organizations/456` + # Please specify resource name as assignee in the query. Examples: * `assignee= + # projects/myproject` * `assignee=folders/123` * `assignee=organizations/456` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -218,38 +208,28 @@ module Google execute_or_queue_command(command, &block) end - # Looks up assignments for a specified resource for a particular region. - # If the request is about a project: - # 1. Assignments created on the project will be returned if they exist. - # 2. Otherwise assignments created on the closest ancestor will be - # returned. - # 3. Assignments for different JobTypes will all be returned. - # The same logic applies if the request is about a folder. - # If the request is about an organization, then assignments created on the - # organization will be returned (organization doesn't have ancestors). - # Comparing to ListAssignments, there are some behavior - # differences: - # 1. permission on the assignee will be verified in this API. - # 2. Hierarchy lookup (project->folder->organization) happens in this API. - # 3. Parent here is `projects/*/locations/*`, instead of - # `projects/*/locations/*reservations/*`. - # **Note** "-" cannot be used for projects - # nor locations. + # Looks up assignments for a specified resource for a particular region. If the + # request is about a project: 1. Assignments created on the project will be + # returned if they exist. 2. Otherwise assignments created on the closest + # ancestor will be returned. 3. Assignments for different JobTypes will all be + # returned. The same logic applies if the request is about a folder. If the + # request is about an organization, then assignments created on the organization + # will be returned (organization doesn't have ancestors). Comparing to + # ListAssignments, there are some behavior differences: 1. permission on the + # assignee will be verified in this API. 2. Hierarchy lookup (project->folder-> + # organization) happens in this API. 3. Parent here is `projects/*/locations/*`, + # instead of `projects/*/locations/*reservations/*`. **Note** "-" cannot be used + # for projects nor locations. # @param [String] parent # Required. The resource name of the admin project(containing project and - # location), - # e.g.: - # `projects/myproject/locations/US`. + # location), e.g.: `projects/myproject/locations/US`. # @param [Fixnum] page_size # The maximum number of items to return per page. # @param [String] page_token # The next_page_token value returned from a previous List request, if any. # @param [String] query - # Please specify resource name as assignee in the query. - # Examples: - # * `assignee=projects/myproject` - # * `assignee=folders/123` - # * `assignee=organizations/456` + # Please specify resource name as assignee in the query. Examples: * `assignee= + # projects/myproject` * `assignee=folders/123` * `assignee=organizations/456` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -280,16 +260,13 @@ module Google execute_or_queue_command(command, &block) end - # Updates a BI reservation. - # Only fields specified in the `field_mask` are updated. - # A singleton BI reservation always exists with default size 0. - # In order to reserve BI capacity it needs to be updated to an amount - # greater than 0. In order to release BI capacity reservation size - # must be set to 0. + # Updates a BI reservation. Only fields specified in the `field_mask` are + # updated. A singleton BI reservation always exists with default size 0. In + # order to reserve BI capacity it needs to be updated to an amount greater than + # 0. In order to release BI capacity reservation size must be set to 0. # @param [String] name - # The resource name of the singleton BI reservation. - # Reservation names have the form - # `projects/`project_id`/locations/`location_id`/bireservation`. + # The resource name of the singleton BI reservation. Reservation names have the + # form `projects/`project_id`/locations/`location_id`/bireservation`. # @param [Google::Apis::BigqueryreservationV1::BiReservation] bi_reservation_object # @param [String] update_mask # A list of fields to be updated in this request. @@ -325,8 +302,8 @@ module Google # Creates a new capacity commitment resource. # @param [String] parent - # Required. Resource name of the parent reservation. E.g., - # `projects/myproject/locations/US` + # Required. Resource name of the parent reservation. E.g., `projects/myproject/ + # locations/US` # @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object # @param [Boolean] enforce_single_admin_project_per_org # If true, fail the request if another project in the organization has a @@ -361,12 +338,12 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a capacity commitment. Attempting to delete capacity commitment - # before its commitment_end_time will fail with the error code - # `google.rpc.Code.FAILED_PRECONDITION`. + # Deletes a capacity commitment. Attempting to delete capacity commitment before + # its commitment_end_time will fail with the error code `google.rpc.Code. + # FAILED_PRECONDITION`. # @param [String] name - # Required. Resource name of the capacity commitment to delete. E.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Required. Resource name of the capacity commitment to delete. E.g., `projects/ + # myproject/locations/US/capacityCommitments/123` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -396,8 +373,8 @@ module Google # Returns information about the capacity commitment. # @param [String] name - # Required. Resource name of the capacity commitment to retrieve. E.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Required. Resource name of the capacity commitment to retrieve. E.g., ` + # projects/myproject/locations/US/capacityCommitments/123` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -427,8 +404,8 @@ module Google # Lists all the capacity commitments for the admin project. # @param [String] parent - # Required. Resource name of the parent reservation. E.g., - # `projects/myproject/locations/US` + # Required. Resource name of the parent reservation. E.g., `projects/myproject/ + # locations/US` # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token @@ -462,14 +439,14 @@ module Google execute_or_queue_command(command, &block) end - # Merges capacity commitments of the same plan into a single commitment. - # The resulting capacity commitment has the greater commitment_end_time - # out of the to-be-merged capacity commitments. - # Attempting to merge capacity commitments of different plan will fail - # with the error code `google.rpc.Code.FAILED_PRECONDITION`. + # Merges capacity commitments of the same plan into a single commitment. The + # resulting capacity commitment has the greater commitment_end_time out of the + # to-be-merged capacity commitments. Attempting to merge capacity commitments of + # different plan will fail with the error code `google.rpc.Code. + # FAILED_PRECONDITION`. # @param [String] parent - # Parent resource that identifies admin project and location e.g., - # `projects/myproject/locations/us` + # Parent resource that identifies admin project and location e.g., `projects/ + # myproject/locations/us` # @param [Google::Apis::BigqueryreservationV1::MergeCapacityCommitmentsRequest] merge_capacity_commitments_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -500,14 +477,13 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing capacity commitment. - # Only `plan` and `renewal_plan` fields can be updated. - # Plan can only be changed to a plan of a longer commitment period. - # Attempting to change to a plan with shorter commitment period will fail - # with the error code `google.rpc.Code.FAILED_PRECONDITION`. + # Updates an existing capacity commitment. Only `plan` and `renewal_plan` fields + # can be updated. Plan can only be changed to a plan of a longer commitment + # period. Attempting to change to a plan with shorter commitment period will + # fail with the error code `google.rpc.Code.FAILED_PRECONDITION`. # @param [String] name - # Output only. The resource name of the capacity commitment, e.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Output only. The resource name of the capacity commitment, e.g., `projects/ + # myproject/locations/US/capacityCommitments/123` # @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object # @param [String] update_mask # Standard field mask for the set of fields to be updated. @@ -541,15 +517,14 @@ module Google execute_or_queue_command(command, &block) end - # Splits capacity commitment to two commitments of the same plan and - # `commitment_end_time`. - # A common use case is to enable downgrading commitments. - # For example, in order to downgrade from 10000 slots to 8000, you might - # split a 10000 capacity commitment into commitments of 2000 and 8000. Then, - # you would change the plan of the first one to `FLEX` and then delete it. + # Splits capacity commitment to two commitments of the same plan and ` + # commitment_end_time`. A common use case is to enable downgrading commitments. + # For example, in order to downgrade from 10000 slots to 8000, you might split a + # 10000 capacity commitment into commitments of 2000 and 8000. Then, you would + # change the plan of the first one to `FLEX` and then delete it. # @param [String] name - # Required. The resource name e.g.,: - # `projects/myproject/locations/US/capacityCommitments/123` + # Required. The resource name e.g.,: `projects/myproject/locations/US/ + # capacityCommitments/123` # @param [Google::Apis::BigqueryreservationV1::SplitCapacityCommitmentRequest] split_capacity_commitment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -582,8 +557,7 @@ module Google # Creates a new reservation resource. # @param [String] parent - # Required. Project, location. E.g., - # `projects/myproject/locations/US` + # Required. Project, location. E.g., `projects/myproject/locations/US` # @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object # @param [String] reservation_id # The reservation ID. This field must only contain lower case alphanumeric @@ -618,12 +592,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a reservation. - # Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has - # assignments. + # Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when + # reservation has assignments. # @param [String] name - # Required. Resource name of the reservation to retrieve. E.g., - # `projects/myproject/locations/US/reservations/team1-prod` + # Required. Resource name of the reservation to retrieve. E.g., `projects/ + # myproject/locations/US/reservations/team1-prod` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -653,8 +626,8 @@ module Google # Returns information about the reservation. # @param [String] name - # Required. Resource name of the reservation to retrieve. E.g., - # `projects/myproject/locations/US/reservations/team1-prod` + # Required. Resource name of the reservation to retrieve. E.g., `projects/ + # myproject/locations/US/reservations/team1-prod` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -684,8 +657,8 @@ module Google # Lists all the reservations for the project in the specified location. # @param [String] parent - # Required. The parent resource name containing project and location, e.g.: - # `projects/myproject/locations/US` + # Required. The parent resource name containing project and location, e.g.: ` + # projects/myproject/locations/US` # @param [Fixnum] page_size # The maximum number of items to return per page. # @param [String] page_token @@ -721,8 +694,8 @@ module Google # Updates an existing reservation resource. # @param [String] name - # The resource name of the reservation, e.g., - # `projects/*/locations/*/reservations/team1-prod`. + # The resource name of the reservation, e.g., `projects/*/locations/*/ + # reservations/team1-prod`. # @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object # @param [String] update_mask # Standard field mask for the set of fields to be updated. @@ -756,32 +729,26 @@ module Google execute_or_queue_command(command, &block) end - # Creates an assignment object which allows the given project to submit jobs - # of a certain type using slots from the specified reservation. - # Currently a - # resource (project, folder, organization) can only have one assignment per - # each (job_type, location) combination, and that reservation will be used - # for all jobs of the matching type. - # Different assignments can be created on different levels of the - # projects, folders or organization hierarchy. During query execution, - # the assignment is looked up at the project, folder and organization levels - # in that order. The first assignment found is applied to the query. - # When creating assignments, it does not matter if other assignments exist at - # higher levels. - # Example: - # * The organization `organizationA` contains two projects, `project1` - # and `project2`. - # * Assignments for all three entities (`organizationA`, `project1`, and - # `project2`) could all be created and mapped to the same or different - # reservations. - # Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have - # 'bigquery.admin' permissions on the project using the reservation - # and the project that owns this reservation. - # Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment - # does not match location of the reservation. + # Creates an assignment object which allows the given project to submit jobs of + # a certain type using slots from the specified reservation. Currently a + # resource (project, folder, organization) can only have one assignment per each + # (job_type, location) combination, and that reservation will be used for all + # jobs of the matching type. Different assignments can be created on different + # levels of the projects, folders or organization hierarchy. During query + # execution, the assignment is looked up at the project, folder and organization + # levels in that order. The first assignment found is applied to the query. When + # creating assignments, it does not matter if other assignments exist at higher + # levels. Example: * The organization `organizationA` contains two projects, ` + # project1` and `project2`. * Assignments for all three entities (`organizationA` + # , `project1`, and `project2`) could all be created and mapped to the same or + # different reservations. Returns `google.rpc.Code.PERMISSION_DENIED` if user + # does not have 'bigquery.admin' permissions on the project using the + # reservation and the project that owns this reservation. Returns `google.rpc. + # Code.INVALID_ARGUMENT` when location of the assignment does not match location + # of the reservation. # @param [String] parent - # Required. The parent resource name of the assignment - # E.g. `projects/myproject/locations/US/reservations/team1-prod` + # Required. The parent resource name of the assignment E.g. `projects/myproject/ + # locations/US/reservations/team1-prod` # @param [Google::Apis::BigqueryreservationV1::Assignment] assignment_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -812,21 +779,17 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a assignment. No expansion will happen. - # Example: - # * Organization `organizationA` contains two projects, `project1` and - # `project2`. - # * Reservation `res1` exists and was created previously. - # * CreateAssignment was used previously to define the following - # associations between entities and reservations: `` - # and `` - # In this example, deletion of the `` assignment won't - # affect the other assignment ``. After said deletion, - # queries from `project1` will still use `res1` while queries from - # `project2` will switch to use on-demand mode. + # Deletes a assignment. No expansion will happen. Example: * Organization ` + # organizationA` contains two projects, `project1` and `project2`. * Reservation + # `res1` exists and was created previously. * CreateAssignment was used + # previously to define the following associations between entities and + # reservations: `` and `` In this example, deletion of the `` assignment won't + # affect the other assignment ``. After said deletion, queries from `project1` + # will still use `res1` while queries from `project2` will switch to use on- + # demand mode. # @param [String] name - # Required. Name of the resource, e.g. - # `projects/myproject/locations/US/reservations/team1-prod/assignments/123` + # Required. Name of the resource, e.g. `projects/myproject/locations/US/ + # reservations/team1-prod/assignments/123` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -854,26 +817,19 @@ module Google execute_or_queue_command(command, &block) end - # Lists assignments. - # Only explicitly created assignments will be returned. - # Example: - # * Organization `organizationA` contains two projects, `project1` and - # `project2`. - # * Reservation `res1` exists and was created previously. - # * CreateAssignment was used previously to define the following - # associations between entities and reservations: `` - # and `` - # In this example, ListAssignments will just return the above two assignments - # for reservation `res1`, and no expansion/merge will happen. - # The wildcard "-" can be used for - # reservations in the request. In that case all assignments belongs to the - # specified project and location will be listed. - # **Note** "-" cannot be used for projects nor locations. + # Lists assignments. Only explicitly created assignments will be returned. + # Example: * Organization `organizationA` contains two projects, `project1` and ` + # project2`. * Reservation `res1` exists and was created previously. * + # CreateAssignment was used previously to define the following associations + # between entities and reservations: `` and `` In this example, ListAssignments + # will just return the above two assignments for reservation `res1`, and no + # expansion/merge will happen. The wildcard "-" can be used for reservations in + # the request. In that case all assignments belongs to the specified project and + # location will be listed. **Note** "-" cannot be used for projects nor + # locations. # @param [String] parent - # Required. The parent resource name e.g.: - # `projects/myproject/locations/US/reservations/team1-prod` - # Or: - # `projects/myproject/locations/US/reservations/-` + # Required. The parent resource name e.g.: `projects/myproject/locations/US/ + # reservations/team1-prod` Or: `projects/myproject/locations/US/reservations/-` # @param [Fixnum] page_size # The maximum number of items to return per page. # @param [String] page_token @@ -907,14 +863,12 @@ module Google execute_or_queue_command(command, &block) end - # Moves an assignment under a new reservation. - # This differs from removing an existing assignment and recreating a new one - # by providing a transactional change that ensures an assignee always has an - # associated reservation. + # Moves an assignment under a new reservation. This differs from removing an + # existing assignment and recreating a new one by providing a transactional + # change that ensures an assignee always has an associated reservation. # @param [String] name - # Required. The resource name of the assignment, - # e.g. - # `projects/myproject/locations/US/reservations/team1-prod/assignments/123` + # Required. The resource name of the assignment, e.g. `projects/myproject/ + # locations/US/reservations/team1-prod/assignments/123` # @param [Google::Apis::BigqueryreservationV1::MoveAssignmentRequest] move_assignment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/bigqueryreservation_v1beta1.rb b/generated/google/apis/bigqueryreservation_v1beta1.rb index 732c82421..1d16e6bdd 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryreservationV1beta1 VERSION = 'V1beta1' - REVISION = '20200702' + REVISION = '20200801' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryreservation_v1beta1/classes.rb b/generated/google/apis/bigqueryreservation_v1beta1/classes.rb index 06fbff9e2..050483e26 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/classes.rb @@ -22,13 +22,13 @@ module Google module Apis module BigqueryreservationV1beta1 - # A Assignment allows a project to submit jobs - # of a certain type using slots from the specified reservation. + # A Assignment allows a project to submit jobs of a certain type using slots + # from the specified reservation. class Assignment include Google::Apis::Core::Hashable - # The resource which will use the reservation. E.g. - # `projects/myproject`, `folders/123`, or `organizations/456`. + # The resource which will use the reservation. E.g. `projects/myproject`, ` + # folders/123`, or `organizations/456`. # Corresponds to the JSON property `assignee` # @return [String] attr_accessor :assignee @@ -38,8 +38,8 @@ module Google # @return [String] attr_accessor :job_type - # Output only. Name of the resource. E.g.: - # `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. + # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/ + # reservations/team1-prod/assignments/123`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -66,9 +66,8 @@ module Google class BiReservation include Google::Apis::Core::Hashable - # The resource name of the singleton BI reservation. - # Reservation names have the form - # `projects/`project_id`/locations/`location_id`/bireservation`. + # The resource name of the singleton BI reservation. Reservation names have the + # form `projects/`project_id`/locations/`location_id`/bireservation`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -95,43 +94,39 @@ module Google end end - # Capacity commitment is a way to purchase compute capacity for BigQuery jobs - # (in the form of slots) with some committed period of usage. Annual - # commitments renew by default. Commitments can be removed after their - # commitment end time passes. - # In order to remove annual commitment, its plan needs to be changed - # to monthly or flex first. - # A capacity commitment resource exists as a child resource of the admin - # project. + # Capacity commitment is a way to purchase compute capacity for BigQuery jobs ( + # in the form of slots) with some committed period of usage. Annual commitments + # renew by default. Commitments can be removed after their commitment end time + # passes. In order to remove annual commitment, its plan needs to be changed to + # monthly or flex first. A capacity commitment resource exists as a child + # resource of the admin project. class CapacityCommitment include Google::Apis::Core::Hashable # Output only. The end of the current commitment period. It is applicable only - # for ACTIVE - # capacity commitments. + # for ACTIVE capacity commitments. # Corresponds to the JSON property `commitmentEndTime` # @return [String] attr_accessor :commitment_end_time # Output only. The start of the current commitment period. It is applicable only - # for - # ACTIVE capacity commitments. + # for ACTIVE capacity commitments. # Corresponds to the JSON property `commitmentStartTime` # @return [String] attr_accessor :commitment_start_time - # 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). + # 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 `failureStatus` # @return [Google::Apis::BigqueryreservationV1beta1::Status] attr_accessor :failure_status - # Output only. The resource name of the capacity commitment, e.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Output only. The resource name of the capacity commitment, e.g., `projects/ + # myproject/locations/US/capacityCommitments/123` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -175,13 +170,12 @@ module Google end end - # The metadata for operation returned from - # ReservationService.CreateSlotPool. + # The metadata for operation returned from ReservationService.CreateSlotPool. class CreateSlotPoolMetadata include Google::Apis::Core::Hashable - # Resource name of the slot pool that is being created. E.g., - # projects/myproject/locations/us-central1/reservations/foo/slotPools/123 + # Resource name of the slot pool that is being created. E.g., projects/myproject/ + # locations/us-central1/reservations/foo/slotPools/123 # Corresponds to the JSON property `slotPool` # @return [String] attr_accessor :slot_pool @@ -196,13 +190,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -224,8 +216,8 @@ module Google # @return [Array] attr_accessor :assignments - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -250,8 +242,8 @@ module Google # @return [Array] attr_accessor :capacity_commitments - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -271,8 +263,8 @@ module Google class ListReservationsResponse include Google::Apis::Core::Hashable - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -297,11 +289,10 @@ module Google class MergeCapacityCommitmentsRequest include Google::Apis::Core::Hashable - # Ids of capacity commitments to merge. - # These capacity commitments must exist under admin project and location - # specified in the parent. - # ID is the last portion of capacity commitment name e.g., 'abc' for - # projects/myproject/locations/US/capacityCommitments/abc + # Ids of capacity commitments to merge. These capacity commitments must exist + # under admin project and location specified in the parent. ID is the last + # portion of capacity commitment name e.g., 'abc' for projects/myproject/ + # locations/US/capacityCommitments/abc # Corresponds to the JSON property `capacityCommitmentIds` # @return [Array] attr_accessor :capacity_commitment_ids @@ -316,18 +307,15 @@ module Google end end - # The request for - # ReservationService.MoveAssignment. - # **Note**: "bigquery.reservationAssignments.create" permission is required on - # the destination_id. - # **Note**: "bigquery.reservationAssignments.create" and - # "bigquery.reservationAssignments.delete" permission are required on the - # related assignee. + # The request for ReservationService.MoveAssignment. **Note**: "bigquery. + # reservationAssignments.create" permission is required on the destination_id. ** + # Note**: "bigquery.reservationAssignments.create" and "bigquery. + # reservationAssignments.delete" permission are required on the related assignee. class MoveAssignmentRequest include Google::Apis::Core::Hashable - # The new reservation ID, e.g.: - # `projects/myotherproject/locations/US/reservations/team2-prod` + # The new reservation ID, e.g.: `projects/myotherproject/locations/US/ + # reservations/team2-prod` # Corresponds to the JSON property `destinationId` # @return [String] attr_accessor :destination_id @@ -354,20 +342,19 @@ module Google attr_accessor :ignore_idle_slots alias_method :ignore_idle_slots?, :ignore_idle_slots - # The resource name of the reservation, e.g., - # `projects/*/locations/*/reservations/team1-prod`. + # The resource name of the reservation, e.g., `projects/*/locations/*/ + # reservations/team1-prod`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Minimum slots available to this reservation. A slot is a unit of - # computational power in BigQuery, and serves as the unit of parallelism. - # Queries using this reservation might use more slots during runtime if - # ignore_idle_slots is set to false. - # If the new reservation's slot capacity exceed the parent's slot capacity or - # if total slot capacity of the new reservation and its siblings exceeds the - # parent's slot capacity, the request will fail with - # `google.rpc.Code.RESOURCE_EXHAUSTED`. + # Minimum slots available to this reservation. A slot is a unit of computational + # power in BigQuery, and serves as the unit of parallelism. Queries using this + # reservation might use more slots during runtime if ignore_idle_slots is set to + # false. If the new reservation's slot capacity exceed the parent's slot + # capacity or if total slot capacity of the new reservation and its siblings + # exceeds the parent's slot capacity, the request will fail with `google.rpc. + # Code.RESOURCE_EXHAUSTED`. # Corresponds to the JSON property `slotCapacity` # @return [Fixnum] attr_accessor :slot_capacity @@ -393,8 +380,8 @@ module Google # @return [Array] attr_accessor :assignments - # Token to retrieve the next page of results, or empty if there are no - # more results in the list. + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -433,26 +420,22 @@ module Google class SplitCapacityCommitmentResponse include Google::Apis::Core::Hashable - # Capacity commitment is a way to purchase compute capacity for BigQuery jobs - # (in the form of slots) with some committed period of usage. Annual - # commitments renew by default. Commitments can be removed after their - # commitment end time passes. - # In order to remove annual commitment, its plan needs to be changed - # to monthly or flex first. - # A capacity commitment resource exists as a child resource of the admin - # project. + # Capacity commitment is a way to purchase compute capacity for BigQuery jobs ( + # in the form of slots) with some committed period of usage. Annual commitments + # renew by default. Commitments can be removed after their commitment end time + # passes. In order to remove annual commitment, its plan needs to be changed to + # monthly or flex first. A capacity commitment resource exists as a child + # resource of the admin project. # Corresponds to the JSON property `first` # @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] attr_accessor :first - # Capacity commitment is a way to purchase compute capacity for BigQuery jobs - # (in the form of slots) with some committed period of usage. Annual - # commitments renew by default. Commitments can be removed after their - # commitment end time passes. - # In order to remove annual commitment, its plan needs to be changed - # to monthly or flex first. - # A capacity commitment resource exists as a child resource of the admin - # project. + # Capacity commitment is a way to purchase compute capacity for BigQuery jobs ( + # in the form of slots) with some committed period of usage. Annual commitments + # renew by default. Commitments can be removed after their commitment end time + # passes. In order to remove annual commitment, its plan needs to be changed to + # monthly or flex first. A capacity commitment resource exists as a child + # resource of the admin project. # Corresponds to the JSON property `second` # @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] attr_accessor :second @@ -468,12 +451,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -482,15 +465,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 diff --git a/generated/google/apis/bigqueryreservation_v1beta1/service.rb b/generated/google/apis/bigqueryreservation_v1beta1/service.rb index c218e45ef..c673c75aa 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/service.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/service.rb @@ -49,8 +49,8 @@ module Google # Retrieves a BI reservation. # @param [String] name - # Required. Name of the requested reservation, for example: - # `projects/`project_id`/locations/`location_id`/bireservation` + # Required. Name of the requested reservation, for example: `projects/` + # project_id`/locations/`location_id`/bireservation` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -78,38 +78,28 @@ module Google execute_or_queue_command(command, &block) end - # Looks up assignments for a specified resource for a particular region. - # If the request is about a project: - # 1. Assignments created on the project will be returned if they exist. - # 2. Otherwise assignments created on the closest ancestor will be - # returned. - # 3. Assignments for different JobTypes will all be returned. - # The same logic applies if the request is about a folder. - # If the request is about an organization, then assignments created on the - # organization will be returned (organization doesn't have ancestors). - # Comparing to ListAssignments, there are some behavior - # differences: - # 1. permission on the assignee will be verified in this API. - # 2. Hierarchy lookup (project->folder->organization) happens in this API. - # 3. Parent here is `projects/*/locations/*`, instead of - # `projects/*/locations/*reservations/*`. - # **Note** "-" cannot be used for projects - # nor locations. + # Looks up assignments for a specified resource for a particular region. If the + # request is about a project: 1. Assignments created on the project will be + # returned if they exist. 2. Otherwise assignments created on the closest + # ancestor will be returned. 3. Assignments for different JobTypes will all be + # returned. The same logic applies if the request is about a folder. If the + # request is about an organization, then assignments created on the organization + # will be returned (organization doesn't have ancestors). Comparing to + # ListAssignments, there are some behavior differences: 1. permission on the + # assignee will be verified in this API. 2. Hierarchy lookup (project->folder-> + # organization) happens in this API. 3. Parent here is `projects/*/locations/*`, + # instead of `projects/*/locations/*reservations/*`. **Note** "-" cannot be used + # for projects nor locations. # @param [String] parent # Required. The resource name of the admin project(containing project and - # location), - # e.g.: - # `projects/myproject/locations/US`. + # location), e.g.: `projects/myproject/locations/US`. # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token # The next_page_token value returned from a previous List request, if any. # @param [String] query - # Please specify resource name as assignee in the query. - # Examples: - # * `assignee=projects/myproject` - # * `assignee=folders/123` - # * `assignee=organizations/456` + # Please specify resource name as assignee in the query. Examples: * `assignee= + # projects/myproject` * `assignee=folders/123` * `assignee=organizations/456` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -140,16 +130,13 @@ module Google execute_or_queue_command(command, &block) end - # Updates a BI reservation. - # Only fields specified in the `field_mask` are updated. - # A singleton BI reservation always exists with default size 0. - # In order to reserve BI capacity it needs to be updated to an amount - # greater than 0. In order to release BI capacity reservation size - # must be set to 0. + # Updates a BI reservation. Only fields specified in the `field_mask` are + # updated. A singleton BI reservation always exists with default size 0. In + # order to reserve BI capacity it needs to be updated to an amount greater than + # 0. In order to release BI capacity reservation size must be set to 0. # @param [String] name - # The resource name of the singleton BI reservation. - # Reservation names have the form - # `projects/`project_id`/locations/`location_id`/bireservation`. + # The resource name of the singleton BI reservation. Reservation names have the + # form `projects/`project_id`/locations/`location_id`/bireservation`. # @param [Google::Apis::BigqueryreservationV1beta1::BiReservation] bi_reservation_object # @param [String] update_mask # A list of fields to be updated in this request. @@ -185,8 +172,8 @@ module Google # Creates a new capacity commitment resource. # @param [String] parent - # Required. Resource name of the parent reservation. E.g., - # `projects/myproject/locations/US` + # Required. Resource name of the parent reservation. E.g., `projects/myproject/ + # locations/US` # @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object # @param [Boolean] enforce_single_admin_project_per_org # If true, fail the request if another project in the organization has a @@ -221,12 +208,12 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a capacity commitment. Attempting to delete capacity commitment - # before its commitment_end_time will fail with the error code - # `google.rpc.Code.FAILED_PRECONDITION`. + # Deletes a capacity commitment. Attempting to delete capacity commitment before + # its commitment_end_time will fail with the error code `google.rpc.Code. + # FAILED_PRECONDITION`. # @param [String] name - # Required. Resource name of the capacity commitment to delete. E.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Required. Resource name of the capacity commitment to delete. E.g., `projects/ + # myproject/locations/US/capacityCommitments/123` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -256,8 +243,8 @@ module Google # Returns information about the capacity commitment. # @param [String] name - # Required. Resource name of the capacity commitment to retrieve. E.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Required. Resource name of the capacity commitment to retrieve. E.g., ` + # projects/myproject/locations/US/capacityCommitments/123` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -287,8 +274,8 @@ module Google # Lists all the capacity commitments for the admin project. # @param [String] parent - # Required. Resource name of the parent reservation. E.g., - # `projects/myproject/locations/US` + # Required. Resource name of the parent reservation. E.g., `projects/myproject/ + # locations/US` # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token @@ -322,14 +309,14 @@ module Google execute_or_queue_command(command, &block) end - # Merges capacity commitments of the same plan into a single commitment. - # The resulting capacity commitment has the greater commitment_end_time - # out of the to-be-merged capacity commitments. - # Attempting to merge capacity commitments of different plan will fail - # with the error code `google.rpc.Code.FAILED_PRECONDITION`. + # Merges capacity commitments of the same plan into a single commitment. The + # resulting capacity commitment has the greater commitment_end_time out of the + # to-be-merged capacity commitments. Attempting to merge capacity commitments of + # different plan will fail with the error code `google.rpc.Code. + # FAILED_PRECONDITION`. # @param [String] parent - # Parent resource that identifies admin project and location e.g., - # `projects/myproject/locations/us` + # Parent resource that identifies admin project and location e.g., `projects/ + # myproject/locations/us` # @param [Google::Apis::BigqueryreservationV1beta1::MergeCapacityCommitmentsRequest] merge_capacity_commitments_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -360,14 +347,13 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing capacity commitment. - # Only `plan` and `renewal_plan` fields can be updated. - # Plan can only be changed to a plan of a longer commitment period. - # Attempting to change to a plan with shorter commitment period will fail - # with the error code `google.rpc.Code.FAILED_PRECONDITION`. + # Updates an existing capacity commitment. Only `plan` and `renewal_plan` fields + # can be updated. Plan can only be changed to a plan of a longer commitment + # period. Attempting to change to a plan with shorter commitment period will + # fail with the error code `google.rpc.Code.FAILED_PRECONDITION`. # @param [String] name - # Output only. The resource name of the capacity commitment, e.g., - # `projects/myproject/locations/US/capacityCommitments/123` + # Output only. The resource name of the capacity commitment, e.g., `projects/ + # myproject/locations/US/capacityCommitments/123` # @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object # @param [String] update_mask # Standard field mask for the set of fields to be updated. @@ -401,15 +387,14 @@ module Google execute_or_queue_command(command, &block) end - # Splits capacity commitment to two commitments of the same plan and - # `commitment_end_time`. - # A common use case is to enable downgrading commitments. - # For example, in order to downgrade from 10000 slots to 8000, you might - # split a 10000 capacity commitment into commitments of 2000 and 8000. Then, - # you would change the plan of the first one to `FLEX` and then delete it. + # Splits capacity commitment to two commitments of the same plan and ` + # commitment_end_time`. A common use case is to enable downgrading commitments. + # For example, in order to downgrade from 10000 slots to 8000, you might split a + # 10000 capacity commitment into commitments of 2000 and 8000. Then, you would + # change the plan of the first one to `FLEX` and then delete it. # @param [String] name - # Required. The resource name e.g.,: - # `projects/myproject/locations/US/capacityCommitments/123` + # Required. The resource name e.g.,: `projects/myproject/locations/US/ + # capacityCommitments/123` # @param [Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentRequest] split_capacity_commitment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -442,8 +427,7 @@ module Google # Creates a new reservation resource. # @param [String] parent - # Required. Project, location. E.g., - # `projects/myproject/locations/US` + # Required. Project, location. E.g., `projects/myproject/locations/US` # @param [Google::Apis::BigqueryreservationV1beta1::Reservation] reservation_object # @param [String] reservation_id # The reservation ID. This field must only contain lower case alphanumeric @@ -478,12 +462,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a reservation. - # Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has - # assignments. + # Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when + # reservation has assignments. # @param [String] name - # Required. Resource name of the reservation to retrieve. E.g., - # `projects/myproject/locations/US/reservations/team1-prod` + # Required. Resource name of the reservation to retrieve. E.g., `projects/ + # myproject/locations/US/reservations/team1-prod` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -513,8 +496,8 @@ module Google # Returns information about the reservation. # @param [String] name - # Required. Resource name of the reservation to retrieve. E.g., - # `projects/myproject/locations/US/reservations/team1-prod` + # Required. Resource name of the reservation to retrieve. E.g., `projects/ + # myproject/locations/US/reservations/team1-prod` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -544,14 +527,13 @@ module Google # Lists all the reservations for the project in the specified location. # @param [String] parent - # Required. The parent resource name containing project and location, e.g.: - # `projects/myproject/locations/US` + # Required. The parent resource name containing project and location, e.g.: ` + # projects/myproject/locations/US` # @param [String] filter # Can be used to filter out reservations based on names, capacity, etc, e.g.: - # filter="reservation.slot_capacity > 200" - # filter="reservation.name = \"*dev/*\"" - # Advanced filtering syntax can be - # [here](https://cloud.google.com/logging/docs/view/advanced-filters). + # filter="reservation.slot_capacity > 200" filter="reservation.name = \"*dev/*\"" + # Advanced filtering syntax can be [here](https://cloud.google.com/logging/docs/ + # view/advanced-filters). # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token @@ -588,8 +570,8 @@ module Google # Updates an existing reservation resource. # @param [String] name - # The resource name of the reservation, e.g., - # `projects/*/locations/*/reservations/team1-prod`. + # The resource name of the reservation, e.g., `projects/*/locations/*/ + # reservations/team1-prod`. # @param [Google::Apis::BigqueryreservationV1beta1::Reservation] reservation_object # @param [String] update_mask # Standard field mask for the set of fields to be updated. @@ -623,32 +605,26 @@ module Google execute_or_queue_command(command, &block) end - # Creates an assignment object which allows the given project to submit jobs - # of a certain type using slots from the specified reservation. - # Currently a - # resource (project, folder, organization) can only have one assignment per - # each (job_type, location) combination, and that reservation will be used - # for all jobs of the matching type. - # Different assignments can be created on different levels of the - # projects, folders or organization hierarchy. During query execution, - # the assignment is looked up at the project, folder and organization levels - # in that order. The first assignment found is applied to the query. - # When creating assignments, it does not matter if other assignments exist at - # higher levels. - # Example: - # * The organization `organizationA` contains two projects, `project1` - # and `project2`. - # * Assignments for all three entities (`organizationA`, `project1`, and - # `project2`) could all be created and mapped to the same or different - # reservations. - # Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have - # 'bigquery.admin' permissions on the project using the reservation - # and the project that owns this reservation. - # Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment - # does not match location of the reservation. + # Creates an assignment object which allows the given project to submit jobs of + # a certain type using slots from the specified reservation. Currently a + # resource (project, folder, organization) can only have one assignment per each + # (job_type, location) combination, and that reservation will be used for all + # jobs of the matching type. Different assignments can be created on different + # levels of the projects, folders or organization hierarchy. During query + # execution, the assignment is looked up at the project, folder and organization + # levels in that order. The first assignment found is applied to the query. When + # creating assignments, it does not matter if other assignments exist at higher + # levels. Example: * The organization `organizationA` contains two projects, ` + # project1` and `project2`. * Assignments for all three entities (`organizationA` + # , `project1`, and `project2`) could all be created and mapped to the same or + # different reservations. Returns `google.rpc.Code.PERMISSION_DENIED` if user + # does not have 'bigquery.admin' permissions on the project using the + # reservation and the project that owns this reservation. Returns `google.rpc. + # Code.INVALID_ARGUMENT` when location of the assignment does not match location + # of the reservation. # @param [String] parent - # Required. The parent resource name of the assignment - # E.g. `projects/myproject/locations/US/reservations/team1-prod` + # Required. The parent resource name of the assignment E.g. `projects/myproject/ + # locations/US/reservations/team1-prod` # @param [Google::Apis::BigqueryreservationV1beta1::Assignment] assignment_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -679,21 +655,17 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a assignment. No expansion will happen. - # Example: - # * Organization `organizationA` contains two projects, `project1` and - # `project2`. - # * Reservation `res1` exists and was created previously. - # * CreateAssignment was used previously to define the following - # associations between entities and reservations: `` - # and `` - # In this example, deletion of the `` assignment won't - # affect the other assignment ``. After said deletion, - # queries from `project1` will still use `res1` while queries from - # `project2` will switch to use on-demand mode. + # Deletes a assignment. No expansion will happen. Example: * Organization ` + # organizationA` contains two projects, `project1` and `project2`. * Reservation + # `res1` exists and was created previously. * CreateAssignment was used + # previously to define the following associations between entities and + # reservations: `` and `` In this example, deletion of the `` assignment won't + # affect the other assignment ``. After said deletion, queries from `project1` + # will still use `res1` while queries from `project2` will switch to use on- + # demand mode. # @param [String] name - # Required. Name of the resource, e.g. - # `projects/myproject/locations/US/reservations/team1-prod/assignments/123` + # Required. Name of the resource, e.g. `projects/myproject/locations/US/ + # reservations/team1-prod/assignments/123` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -721,26 +693,19 @@ module Google execute_or_queue_command(command, &block) end - # Lists assignments. - # Only explicitly created assignments will be returned. - # Example: - # * Organization `organizationA` contains two projects, `project1` and - # `project2`. - # * Reservation `res1` exists and was created previously. - # * CreateAssignment was used previously to define the following - # associations between entities and reservations: `` - # and `` - # In this example, ListAssignments will just return the above two assignments - # for reservation `res1`, and no expansion/merge will happen. - # The wildcard "-" can be used for - # reservations in the request. In that case all assignments belongs to the - # specified project and location will be listed. - # **Note** "-" cannot be used for projects nor locations. + # Lists assignments. Only explicitly created assignments will be returned. + # Example: * Organization `organizationA` contains two projects, `project1` and ` + # project2`. * Reservation `res1` exists and was created previously. * + # CreateAssignment was used previously to define the following associations + # between entities and reservations: `` and `` In this example, ListAssignments + # will just return the above two assignments for reservation `res1`, and no + # expansion/merge will happen. The wildcard "-" can be used for reservations in + # the request. In that case all assignments belongs to the specified project and + # location will be listed. **Note** "-" cannot be used for projects nor + # locations. # @param [String] parent - # Required. The parent resource name e.g.: - # `projects/myproject/locations/US/reservations/team1-prod` - # Or: - # `projects/myproject/locations/US/reservations/-` + # Required. The parent resource name e.g.: `projects/myproject/locations/US/ + # reservations/team1-prod` Or: `projects/myproject/locations/US/reservations/-` # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token @@ -774,14 +739,12 @@ module Google execute_or_queue_command(command, &block) end - # Moves an assignment under a new reservation. - # This differs from removing an existing assignment and recreating a new one - # by providing a transactional change that ensures an assignee always has an - # associated reservation. + # Moves an assignment under a new reservation. This differs from removing an + # existing assignment and recreating a new one by providing a transactional + # change that ensures an assignee always has an associated reservation. # @param [String] name - # Required. The resource name of the assignment, - # e.g. - # `projects/myproject/locations/US/reservations/team1-prod/assignments/123` + # Required. The resource name of the assignment, e.g. `projects/myproject/ + # locations/US/reservations/team1-prod/assignments/123` # @param [Google::Apis::BigqueryreservationV1beta1::MoveAssignmentRequest] move_assignment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/binaryauthorization_v1.rb b/generated/google/apis/binaryauthorization_v1.rb index f4da70525..2c4b835af 100644 --- a/generated/google/apis/binaryauthorization_v1.rb +++ b/generated/google/apis/binaryauthorization_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1 VERSION = 'V1' - REVISION = '20200605' + REVISION = '20200731' # 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/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb index fe33cda34..0887d4812 100644 --- a/generated/google/apis/binaryauthorization_v1beta1.rb +++ b/generated/google/apis/binaryauthorization_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1beta1 VERSION = 'V1beta1' - REVISION = '20200501' + REVISION = '20200731' # 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/chat_v1.rb b/generated/google/apis/chat_v1.rb index 27a03f212..5869816f7 100644 --- a/generated/google/apis/chat_v1.rb +++ b/generated/google/apis/chat_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/hangouts/chat module ChatV1 VERSION = 'V1' - REVISION = '20200722' + REVISION = '20200801' end end end diff --git a/generated/google/apis/chat_v1/classes.rb b/generated/google/apis/chat_v1/classes.rb index b6d80a81a..21f71f028 100644 --- a/generated/google/apis/chat_v1/classes.rb +++ b/generated/google/apis/chat_v1/classes.rb @@ -22,10 +22,10 @@ module Google module Apis module ChatV1 - # List of string parameters to supply when the action method is invoked. - # For example, consider three snooze buttons: snooze now, snooze 1 day, - # snooze next week. You might use action method = snooze(), passing the - # snooze type and snooze time in the list of string parameters. + # List of string parameters to supply when the action method is invoked. For + # example, consider three snooze buttons: snooze now, snooze 1 day, snooze next + # week. You might use action method = snooze(), passing the snooze type and + # snooze time in the list of string parameters. class ActionParameter include Google::Apis::Core::Hashable @@ -75,28 +75,12 @@ module Google end end - # Annotations associated with the plain-text body of the message. - # Example plain-text message body: - # ``` - # Hello @FooBot how are you!" - # ``` - # The corresponding annotations metadata: - # ``` - # "annotations":[` - # "type":"USER_MENTION", - # "startIndex":6, - # "length":7, - # "userMention": ` - # "user": ` - # "name":"users/107946847022116401880", - # "displayName":"FooBot", - # "avatarUrl":"https://goo.gl/aeDtrS", - # "type":"BOT" - # `, - # "type":"MENTION" - # ` - # `] - # ``` + # Annotations associated with the plain-text body of the message. Example plain- + # text message body: ``` Hello @FooBot how are you!" ``` The corresponding + # annotations metadata: ``` "annotations":[` "type":"USER_MENTION", "startIndex": + # 6, "length":7, "userMention": ` "user": ` "name":"users/107946847022116401880", + # "displayName":"FooBot", "avatarUrl":"https://goo.gl/aeDtrS", "type":"BOT" `, " + # type":"MENTION" ` `] ``` class Annotation include Google::Apis::Core::Hashable @@ -155,8 +139,8 @@ module Google attr_accessor :content_type # Output only. The download URL which should be used to allow a human user to - # download the attachment. Bots should not use this URL to download - # attachment content. + # download the attachment. Bots should not use this URL to download attachment + # content. # Corresponds to the JSON property `downloadUri` # @return [String] attr_accessor :download_uri @@ -166,8 +150,8 @@ module Google # @return [Google::Apis::ChatV1::DriveDataRef] attr_accessor :drive_data_ref - # Resource name of the attachment, in the form - # "spaces/*/messages/*/attachments/*". + # Resource name of the attachment, in the form "spaces/*/messages/*/attachments/* + # ". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -177,9 +161,8 @@ module Google # @return [String] attr_accessor :source - # Output only. The thumbnail URL which should be used to preview the - # attachment to a human user. Bots should not use this URL to download - # attachment content. + # Output only. The thumbnail URL which should be used to preview the attachment + # to a human user. Bots should not use this URL to download attachment content. # Corresponds to the JSON property `thumbnailUri` # @return [String] attr_accessor :thumbnail_uri @@ -205,8 +188,8 @@ module Google class AttachmentDataRef include Google::Apis::Core::Hashable - # The resource name of the attachment data. This is used with the media API - # to download the attachment data. + # The resource name of the attachment data. This is used with the media API to + # download the attachment data. # Corresponds to the JSON property `resourceName` # @return [String] attr_accessor :resource_name @@ -283,10 +266,9 @@ module Google end end - # A card action is - # the action associated with the card. For an invoice card, a - # typical action would be: delete invoice, email invoice or open the - # invoice in browser. + # A card action is the action associated with the card. For an invoice card, a + # typical action would be: delete invoice, email invoice or open the invoice in + # browser. class CardAction include Google::Apis::Core::Hashable @@ -330,9 +312,9 @@ module Google # @return [String] attr_accessor :subtitle - # The title must be specified. The header has a fixed height: if both a - # title and subtitle is specified, each will take up 1 line. If only the - # title is specified, it will take up both lines. + # The title must be specified. The header has a fixed height: if both a title + # and subtitle is specified, each will take up 1 line. If only the title is + # specified, it will take up both lines. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -354,16 +336,16 @@ module Google class DeprecatedEvent include Google::Apis::Core::Hashable - # A form action describes the behavior when the form is submitted. - # For example, an Apps Script can be invoked to handle the form. + # A form action describes the behavior when the form is submitted. For example, + # an Apps Script can be invoked to handle the form. # Corresponds to the JSON property `action` # @return [Google::Apis::ChatV1::FormAction] attr_accessor :action # The URL the bot should redirect the user to after they have completed an - # authorization or configuration flow outside of Hangouts Chat. See the - # [Authorizing access to 3p services guide](/hangouts/chat/how-tos/auth-3p) - # for more information. + # authorization or configuration flow outside of Hangouts Chat. See the [ + # Authorizing access to 3p services guide](/hangouts/chat/how-tos/auth-3p) for + # more information. # Corresponds to the JSON property `configCompleteRedirectUrl` # @return [String] attr_accessor :config_complete_redirect_url @@ -383,17 +365,16 @@ module Google # @return [Google::Apis::ChatV1::Space] attr_accessor :space - # The bot-defined key for the thread related to the event. See the - # thread_key field of the - # `spaces.message.create` request for more information. + # The bot-defined key for the thread related to the event. See the thread_key + # field of the `spaces.message.create` request for more information. # Corresponds to the JSON property `threadKey` # @return [String] attr_accessor :thread_key # A secret value that bots can use to verify if a request is from Google. The # token is randomly generated by Google, remains static, and can be obtained - # from the Hangouts Chat API configuration page in the Cloud Console. - # Developers can revoke/regenerate it if needed from the same page. + # from the Hangouts Chat API configuration page in the Cloud Console. Developers + # can revoke/regenerate it if needed from the same page. # Corresponds to the JSON property `token` # @return [String] attr_accessor :token @@ -445,13 +426,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -464,15 +443,15 @@ module Google end end - # A form action describes the behavior when the form is submitted. - # For example, an Apps Script can be invoked to handle the form. + # A form action describes the behavior when the form is submitted. For example, + # an Apps Script can be invoked to handle the form. class FormAction include Google::Apis::Core::Hashable - # The method name is used to identify which part of the form triggered the - # form submission. This information is echoed back to the bot as part of - # the card click event. The same method name can be used for several - # elements that trigger a common behavior if desired. + # The method name is used to identify which part of the form triggered the form + # submission. This information is echoed back to the bot as part of the card + # click event. The same method name can be used for several elements that + # trigger a common behavior if desired. # Corresponds to the JSON property `actionMethodName` # @return [String] attr_accessor :action_method_name @@ -497,10 +476,10 @@ module Google class Image include Google::Apis::Core::Hashable - # The aspect ratio of this image (width/height). This field allows clients - # to reserve the right height for the image while waiting for it to load. - # It's not meant to override the native aspect ratio of the image. - # If unset, the server fills it by prefetching the image. + # The aspect ratio of this image (width/height). This field allows clients to + # reserve the right height for the image while waiting for it to load. It's not + # meant to override the native aspect ratio of the image. If unset, the server + # fills it by prefetching the image. # Corresponds to the JSON property `aspectRatio` # @return [Float] attr_accessor :aspect_ratio @@ -531,8 +510,7 @@ module Google class ImageButton include Google::Apis::Core::Hashable - # The icon specified by an enum that indices to an icon provided by Chat - # API. + # The icon specified by an enum that indices to an icon provided by Chat API. # Corresponds to the JSON property `icon` # @return [String] attr_accessor :icon @@ -542,8 +520,8 @@ module Google # @return [String] attr_accessor :icon_url - # The name of this image_button which will be used for accessibility. - # Default value will be provided if developers don't specify. + # The name of this image_button which will be used for accessibility. Default + # value will be provided if developers don't specify. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -566,8 +544,8 @@ module Google end end - # A UI element contains a key (label) and a value (content). And this - # element may also contain some actions such as onclick button. + # A UI element contains a key (label) and a value (content). And this element + # may also contain some actions such as onclick button. class KeyValue include Google::Apis::Core::Hashable @@ -592,8 +570,8 @@ module Google attr_accessor :content_multiline alias_method :content_multiline?, :content_multiline - # An enum value that will be replaced by the Chat API with the - # corresponding icon image. + # An enum value that will be replaced by the Chat API with the corresponding + # icon image. # Corresponds to the JSON property `icon` # @return [String] attr_accessor :icon @@ -639,8 +617,8 @@ module Google # @return [Array] attr_accessor :memberships - # Continuation token to retrieve the next page of results. It will be empty - # for the last page of results. + # Continuation token to retrieve the next page of results. It will be empty for + # the last page of results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -660,9 +638,9 @@ module Google class ListSpacesResponse include Google::Apis::Core::Hashable - # Continuation token to retrieve the next page of results. It will be empty - # for the last page of results. Tokens expire in an hour. An error is thrown - # if an expired token is passed. + # Continuation token to retrieve the next page of results. It will be empty for + # the last page of results. Tokens expire in an hour. An error is thrown if an + # expired token is passed. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -706,8 +684,8 @@ module Google class Membership include Google::Apis::Core::Hashable - # The creation time of the membership a.k.a the time at which the member - # joined the space, if applicable. + # The creation time of the membership a.k.a the time at which the member joined + # the space, if applicable. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -717,8 +695,8 @@ module Google # @return [Google::Apis::ChatV1::User] attr_accessor :member - # Resource name of the membership, in the form "spaces/*/members/*". - # Example: spaces/AAAAMpdlehY/members/105115627578887013105 + # Resource name of the membership, in the form "spaces/*/members/*". Example: + # spaces/AAAAMpdlehY/members/105115627578887013105 # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -765,15 +743,14 @@ module Google # @return [Array] attr_accessor :attachment - # Rich, formatted and interactive cards that can be used to display UI - # elements such as: formatted texts, buttons, clickable images. Cards are - # normally displayed below the plain-text body of the message. + # Rich, formatted and interactive cards that can be used to display UI elements + # such as: formatted texts, buttons, clickable images. Cards are normally + # displayed below the plain-text body of the message. # Corresponds to the JSON property `cards` # @return [Array] attr_accessor :cards - # Output only. The time at which the message was created in Hangouts Chat - # server. + # Output only. The time at which the message was created in Hangouts Chat server. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -784,15 +761,15 @@ module Google # @return [String] attr_accessor :fallback_text - # Resource name, in the form "spaces/*/messages/*". - # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 + # Resource name, in the form "spaces/*/messages/*". Example: spaces/AAAAMpdlehY/ + # messages/UMxbHmzDlr4.UMxbHmzDlr4 # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Text for generating preview chips. This text will not be displayed to the - # user, but any links to images, web pages, videos, etc. included here will - # generate preview chips. + # Text for generating preview chips. This text will not be displayed to the user, + # but any links to images, web pages, videos, etc. included here will generate + # preview chips. # Corresponds to the JSON property `previewText` # @return [String] attr_accessor :preview_text @@ -843,8 +820,8 @@ module Google class OnClick include Google::Apis::Core::Hashable - # A form action describes the behavior when the form is submitted. - # For example, an Apps Script can be invoked to handle the form. + # A form action describes the behavior when the form is submitted. For example, + # an Apps Script can be invoked to handle the form. # Corresponds to the JSON property `action` # @return [Google::Apis::ChatV1::FormAction] attr_accessor :action @@ -884,10 +861,9 @@ module Google end end - # A section contains a collection of widgets that are rendered - # (vertically) in the order that they are specified. Across all platforms, - # cards have a narrow fixed width, so - # there is currently no need for layout properties (e.g. float). + # A section contains a collection of widgets that are rendered (vertically) in + # the order that they are specified. Across all platforms, cards have a narrow + # fixed width, so there is currently no need for layout properties (e.g. float). class Section include Google::Apis::Core::Hashable @@ -916,15 +892,14 @@ module Google class Space include Google::Apis::Core::Hashable - # Output only. The display name (only if the space is a room). - # Please note that this field might not be populated in direct messages - # between humans. + # Output only. The display name (only if the space is a room). Please note that + # this field might not be populated in direct messages between humans. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Resource name of the space, in the form "spaces/*". - # Example: spaces/AAAAMpdlehYs + # Resource name of the space, in the form "spaces/*". Example: spaces/ + # AAAAMpdlehYs # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -941,8 +916,8 @@ module Google attr_accessor :threaded alias_method :threaded?, :threaded - # Output only. The type of a space. - # This is deprecated. Use `single_user_bot_dm` instead. + # Output only. The type of a space. This is deprecated. Use `single_user_bot_dm` + # instead. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1009,8 +984,8 @@ module Google class Thread include Google::Apis::Core::Hashable - # Resource name, in the form "spaces/*/threads/*". - # Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4 + # Resource name, in the form "spaces/*/threads/*". Example: spaces/AAAAMpdlehY/ + # threads/UMxbHmzDlr4 # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1091,8 +1066,8 @@ module Google class WidgetMarkup include Google::Apis::Core::Hashable - # A list of buttons. Buttons is also oneof data and only one of these - # fields should be set. + # A list of buttons. Buttons is also oneof data and only one of these fields + # should be set. # Corresponds to the JSON property `buttons` # @return [Array] attr_accessor :buttons @@ -1102,8 +1077,8 @@ module Google # @return [Google::Apis::ChatV1::Image] attr_accessor :image - # A UI element contains a key (label) and a value (content). And this - # element may also contain some actions such as onclick button. + # A UI element contains a key (label) and a value (content). And this element + # may also contain some actions such as onclick button. # Corresponds to the JSON property `keyValue` # @return [Google::Apis::ChatV1::KeyValue] attr_accessor :key_value diff --git a/generated/google/apis/chat_v1/service.rb b/generated/google/apis/chat_v1/service.rb index bf91e3f05..5fc5c65fc 100644 --- a/generated/google/apis/chat_v1/service.rb +++ b/generated/google/apis/chat_v1/service.rb @@ -47,11 +47,10 @@ module Google @batch_path = 'batch' end - # Downloads media. Download is supported - # on the URI `/v1/media/`+name`?alt=media`. + # Downloads media. Download is supported on the URI `/v1/media/`+name`?alt=media` + # . # @param [String] resource_name - # Name of the media that is being downloaded. See - # ReadRequest.resource_name. + # Name of the media that is being downloaded. See ReadRequest.resource_name. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -88,8 +87,8 @@ module Google # Returns a space. # @param [String] name - # Required. Resource name of the space, in the form "spaces/*". - # Example: spaces/AAAAMpdlehY + # Required. Resource name of the space, in the form "spaces/*". Example: spaces/ + # AAAAMpdlehY # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -119,9 +118,8 @@ module Google # Lists spaces the caller is a member of. # @param [Fixnum] page_size - # Requested page size. The value is capped at 1000. - # Server may return fewer results than requested. - # If unspecified, server will default to 100. + # Requested page size. The value is capped at 1000. Server may return fewer + # results than requested. If unspecified, server will default to 100. # @param [String] page_token # A token identifying a page of results the server should return. # @param [String] fields @@ -154,9 +152,8 @@ module Google # Returns a membership. # @param [String] name - # Required. Resource name of the membership to be retrieved, in the form - # "spaces/*/members/*". - # Example: spaces/AAAAMpdlehY/members/105115627578887013105 + # Required. Resource name of the membership to be retrieved, in the form "spaces/ + # */members/*". Example: spaces/AAAAMpdlehY/members/105115627578887013105 # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -187,12 +184,10 @@ module Google # Lists human memberships in a space. # @param [String] parent # Required. The resource name of the space for which membership list is to be - # fetched, in the form "spaces/*". - # Example: spaces/AAAAMpdlehY + # fetched, in the form "spaces/*". Example: spaces/AAAAMpdlehY # @param [Fixnum] page_size - # Requested page size. The value is capped at 1000. - # Server may return fewer results than requested. - # If unspecified, server will default to 100. + # Requested page size. The value is capped at 1000. Server may return fewer + # results than requested. If unspecified, server will default to 100. # @param [String] page_token # A token identifying a page of results the server should return. # @param [String] fields @@ -226,18 +221,16 @@ module Google # Creates a message. # @param [String] parent - # Required. Space resource name, in the form "spaces/*". - # Example: spaces/AAAAMpdlehY + # Required. Space resource name, in the form "spaces/*". Example: spaces/ + # AAAAMpdlehY # @param [Google::Apis::ChatV1::Message] message_object # @param [String] thread_key - # Opaque thread identifier string that can be specified to group messages - # into a single thread. If this is the first message with a given thread - # identifier, a new thread is created. Subsequent messages with the same - # thread identifier will be posted into the same thread. This relieves bots - # and webhooks from having to store the Hangouts Chat thread ID of a thread ( - # created earlier by them) to post - # further updates to it. - # Has no effect if thread field, + # Opaque thread identifier string that can be specified to group messages into a + # single thread. If this is the first message with a given thread identifier, a + # new thread is created. Subsequent messages with the same thread identifier + # will be posted into the same thread. This relieves bots and webhooks from + # having to store the Hangouts Chat thread ID of a thread (created earlier by + # them) to post further updates to it. Has no effect if thread field, # corresponding to an existing thread, is set in message. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -271,9 +264,8 @@ module Google # Deletes a message. # @param [String] name - # Required. Resource name of the message to be deleted, in the form - # "spaces/*/messages/*" - # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 + # Required. Resource name of the message to be deleted, in the form "spaces/*/ + # messages/*" Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -303,9 +295,8 @@ module Google # Returns a message. # @param [String] name - # Required. Resource name of the message to be retrieved, in the form - # "spaces/*/messages/*". - # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 + # Required. Resource name of the message to be retrieved, in the form "spaces/*/ + # messages/*". Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -335,15 +326,12 @@ module Google # Updates a message. # @param [String] name - # Resource name, in the form "spaces/*/messages/*". - # Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 + # Resource name, in the form "spaces/*/messages/*". Example: spaces/AAAAMpdlehY/ + # messages/UMxbHmzDlr4.UMxbHmzDlr4 # @param [Google::Apis::ChatV1::Message] message_object # @param [String] update_mask - # Required. The field paths to be updated, comma separated if there are - # multiple. - # Currently supported field paths: - # * text - # * cards + # Required. The field paths to be updated, comma separated if there are multiple. + # Currently supported field paths: * text * cards # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -377,8 +365,8 @@ module Google # Gets the metadata of a message attachment. The attachment data is fetched # using the media API. # @param [String] name - # Resource name of the attachment, in the form - # "spaces/*/messages/*/attachments/*". + # Resource name of the attachment, in the form "spaces/*/messages/*/attachments/* + # ". # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/civicinfo_v2.rb b/generated/google/apis/civicinfo_v2.rb index 0e1ec64ad..42eff2dfa 100644 --- a/generated/google/apis/civicinfo_v2.rb +++ b/generated/google/apis/civicinfo_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/civic-information/ module CivicinfoV2 VERSION = 'V2' - REVISION = '20200706' + REVISION = '20200804' end end end diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 350c79bdc..98e8a0479 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20200720' + REVISION = '20200801' # 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 93425c15f..a5d5b98fa 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -22,17 +22,15 @@ module Google module Apis module CloudbuildV1 - # Files in the workspace to upload to Cloud Storage upon successful - # completion of all build steps. + # Files in the workspace to upload to Cloud Storage upon successful completion + # of all build steps. class ArtifactObjects include Google::Apis::Core::Hashable - # Cloud Storage bucket and optional object path, in the form - # "gs://bucket/path/to/somewhere/". (see [Bucket Name - # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) - # ). - # Files in the workspace matching any path pattern will be uploaded to - # Cloud Storage with this location as a prefix. + # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/ + # to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/ + # storage/docs/bucket-naming#requirements)). Files in the workspace matching any + # path pattern will be uploaded to Cloud Storage with this location as a prefix. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -59,8 +57,8 @@ module Google end end - # An artifact that was uploaded during a build. This - # is a single record in the artifact manifest JSON file. + # An artifact that was uploaded during a build. This is a single record in the + # artifact manifest JSON file. class ArtifactResult include Google::Apis::Core::Hashable @@ -69,9 +67,8 @@ module Google # @return [Array] attr_accessor :file_hash - # The path of an artifact in a Google Cloud Storage bucket, with the - # generation number. For example, - # `gs://mybucket/path/to/output.jar#generation`. + # The path of an artifact in a Google Cloud Storage bucket, with the generation + # number. For example, `gs://mybucket/path/to/output.jar#generation`. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -87,23 +84,22 @@ module Google end end - # Artifacts produced by a build that should be uploaded upon - # successful completion of all build steps. + # Artifacts produced by a build that should be uploaded upon successful + # completion of all build steps. class Artifacts include Google::Apis::Core::Hashable # A list of images to be pushed upon the successful completion of all build - # steps. - # The images will be pushed using the builder service account's credentials. - # The digests of the pushed images will be stored in the Build resource's - # results field. - # If any of the images fail to be pushed, the build is marked FAILURE. + # steps. The images will be pushed using the builder service account's + # credentials. The digests of the pushed images will be stored in the Build + # resource's results field. If any of the images fail to be pushed, the build is + # marked FAILURE. # Corresponds to the JSON property `images` # @return [Array] attr_accessor :images - # Files in the workspace to upload to Cloud Storage upon successful - # completion of all build steps. + # Files in the workspace to upload to Cloud Storage upon successful completion + # of all build steps. # Corresponds to the JSON property `objects` # @return [Google::Apis::CloudbuildV1::ArtifactObjects] attr_accessor :objects @@ -119,31 +115,27 @@ module Google end end - # A build resource in the Cloud Build API. - # At a high level, a `Build` describes where to find source code, how to build - # it (for example, the builder image to run on the source), and where to store - # the built artifacts. - # Fields can include the following variables, which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + # A build resource in the Cloud Build API. At a high level, a `Build` describes + # where to find source code, how to build it (for example, the builder image to + # run on the source), and where to store the built artifacts. Fields can include + # the following variables, which will be expanded when the build is created: - $ + # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of + # the build. - $REPO_NAME: the source repository name specified by RepoSource. - + # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag + # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA + # specified by RepoSource or resolved from the specified branch or tag. - $ + # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. class Build include Google::Apis::Core::Hashable - # Artifacts produced by a build that should be uploaded upon - # successful completion of all build steps. + # Artifacts produced by a build that should be uploaded upon successful + # completion of all build steps. # Corresponds to the JSON property `artifacts` # @return [Google::Apis::CloudbuildV1::Artifacts] attr_accessor :artifacts - # Output only. The ID of the `BuildTrigger` that triggered this build, if it - # was triggered automatically. + # Output only. The ID of the `BuildTrigger` that triggered this build, if it was + # triggered automatically. # Corresponds to the JSON property `buildTriggerId` # @return [String] attr_accessor :build_trigger_id @@ -153,9 +145,8 @@ module Google # @return [String] attr_accessor :create_time - # Output only. Time at which execution of the build was finished. - # The difference between finish_time and start_time is the duration of the - # build's execution. + # Output only. Time at which execution of the build was finished. The difference + # between finish_time and start_time is the duration of the build's execution. # Corresponds to the JSON property `finishTime` # @return [String] attr_accessor :finish_time @@ -166,12 +157,10 @@ module Google attr_accessor :id # A list of images to be pushed upon the successful completion of all build - # steps. - # The images are pushed using the builder service account's credentials. + # steps. The images are pushed using the builder service account's credentials. # The digests of the pushed images will be stored in the `Build` resource's - # results field. - # If any of the images fail to be pushed, the build status is marked - # `FAILURE`. + # results field. If any of the images fail to be pushed, the build status is + # marked `FAILURE`. # Corresponds to the JSON property `images` # @return [Array] attr_accessor :images @@ -181,11 +170,9 @@ module Google # @return [String] attr_accessor :log_url - # Google Cloud Storage bucket where logs should be written (see - # [Bucket Name + # Google Cloud Storage bucket where logs should be written (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) - # ). - # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. + # ). Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. # Corresponds to the JSON property `logsBucket` # @return [String] attr_accessor :logs_bucket @@ -200,10 +187,9 @@ module Google # @return [String] attr_accessor :project_id - # TTL in queue for this build. If provided and the build is enqueued longer - # than this value, the build will expire and the build status will be - # `EXPIRED`. - # The TTL starts ticking from create_time. + # TTL in queue for this build. If provided and the build is enqueued longer than + # this value, the build will expire and the build status will be `EXPIRED`. The + # TTL starts ticking from create_time. # Corresponds to the JSON property `queueTtl` # @return [String] attr_accessor :queue_ttl @@ -259,22 +245,18 @@ module Google # @return [Array] attr_accessor :tags - # Amount of time that this build should be allowed to run, to second - # granularity. If this amount of time elapses, work on the build will cease - # and the build status will be `TIMEOUT`. - # `timeout` starts ticking from `startTime`. - # Default time is ten minutes. + # Amount of time that this build should be allowed to run, to second granularity. + # If this amount of time elapses, work on the build will cease and the build + # status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default + # time is ten minutes. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout - # Output only. Stores timing information for phases of the build. Valid keys - # are: - # * BUILD: time to execute all build steps - # * PUSH: time to push all specified images. - # * FETCHSOURCE: time to fetch source. - # If the build does not specify source or images, - # these keys will not be included. + # Output only. Stores timing information for phases of the build. Valid keys are: + # * BUILD: time to execute all build steps * PUSH: time to push all specified + # images. * FETCHSOURCE: time to fetch source. If the build does not specify + # source or images, these keys will not be included. # Corresponds to the JSON property `timing` # @return [Hash] attr_accessor :timing @@ -315,20 +297,16 @@ module Google class BuildOperationMetadata include Google::Apis::Core::Hashable - # A build resource in the Cloud Build API. - # At a high level, a `Build` describes where to find source code, how to build - # it (for example, the builder image to run on the source), and where to store - # the built artifacts. - # Fields can include the following variables, which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + # A build resource in the Cloud Build API. At a high level, a `Build` describes + # where to find source code, how to build it (for example, the builder image to + # run on the source), and where to store the built artifacts. Fields can include + # the following variables, which will be expanded when the build is created: - $ + # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of + # the build. - $REPO_NAME: the source repository name specified by RepoSource. - + # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag + # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA + # specified by RepoSource or resolved from the specified branch or tag. - $ + # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Corresponds to the JSON property `build` # @return [Google::Apis::CloudbuildV1::Build] attr_accessor :build @@ -347,19 +325,18 @@ module Google class BuildOptions include Google::Apis::Core::Hashable - # Requested disk size for the VM that runs the build. Note that this is *NOT* - # "disk free"; some of the space will be used by the operating system and - # build utilities. Also note that this is the minimum disk size that will be - # allocated for the build -- the build may run with a larger disk than - # requested. At present, the maximum disk size is 1000GB; builds that request - # more than the maximum are rejected with an error. + # Requested disk size for the VM that runs the build. Note that this is *NOT* " + # disk free"; some of the space will be used by the operating system and build + # utilities. Also note that this is the minimum disk size that will be allocated + # for the build -- the build may run with a larger disk than requested. At + # present, the maximum disk size is 1000GB; builds that request more than the + # maximum are rejected with an error. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb - # Option to specify whether or not to apply bash style string - # operations to the substitutions. - # NOTE: this is always enabled for triggered builds and cannot be + # Option to specify whether or not to apply bash style string operations to the + # substitutions. NOTE: this is always enabled for triggered builds and cannot be # overridden in the build configuration file. # Corresponds to the JSON property `dynamicSubstitutions` # @return [Boolean] @@ -367,22 +344,21 @@ module Google alias_method :dynamic_substitutions?, :dynamic_substitutions # A list of global environment variable definitions that will exist for all - # build steps in this build. If a variable is defined in both globally and in - # a build step, the variable will use the build step value. - # The elements are of the form "KEY=VALUE" for the environment variable "KEY" - # being given the value "VALUE". + # build steps in this build. If a variable is defined in both globally and in a + # build step, the variable will use the build step value. The elements are of + # the form "KEY=VALUE" for the environment variable "KEY" being given the value " + # VALUE". # Corresponds to the JSON property `env` # @return [Array] attr_accessor :env - # Option to define build log streaming behavior to Google Cloud - # Storage. + # Option to define build log streaming behavior to Google Cloud Storage. # Corresponds to the JSON property `logStreamingOption` # @return [String] attr_accessor :log_streaming_option - # Option to specify the logging mode, which determines if and where build - # logs are stored. + # Option to specify the logging mode, which determines if and where build logs + # are stored. # Corresponds to the JSON property `logging` # @return [String] attr_accessor :logging @@ -397,10 +373,9 @@ module Google # @return [String] attr_accessor :requested_verify_option - # A list of global environment variables, which are encrypted using a Cloud - # Key Management Service crypto key. These values must be specified in the - # build's `Secret`. These variables will be available to all build steps - # in this build. + # A list of global environment variables, which are encrypted using a Cloud Key + # Management Service crypto key. These values must be specified in the build's ` + # Secret`. These variables will be available to all build steps in this build. # Corresponds to the JSON property `secretEnv` # @return [Array] attr_accessor :secret_env @@ -410,28 +385,25 @@ module Google # @return [Array] attr_accessor :source_provenance_hash - # Option to specify behavior when there is an error in the substitution - # checks. - # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot - # be overridden in the build configuration file. + # Option to specify behavior when there is an error in the substitution checks. + # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be + # overridden in the build configuration file. # Corresponds to the JSON property `substitutionOption` # @return [String] attr_accessor :substitution_option - # Global list of volumes to mount for ALL build steps - # Each volume is created as an empty volume prior to starting the build - # process. Upon completion of the build, volumes and their contents are - # discarded. Global volume names and paths cannot conflict with the volumes - # defined a build step. - # Using a global volume in a build with only one step is not valid as - # it is indicative of a build request with an incorrect configuration. + # Global list of volumes to mount for ALL build steps Each volume is created as + # an empty volume prior to starting the build process. Upon completion of the + # build, volumes and their contents are discarded. Global volume names and paths + # cannot conflict with the volumes defined a build step. Using a global volume + # in a build with only one step is not valid as it is indicative of a build + # request with an incorrect configuration. # Corresponds to the JSON property `volumes` # @return [Array] attr_accessor :volumes - # Option to specify a `WorkerPool` for the build. - # Format: projects/`project`/workerPools/`workerPool` - # This field is experimental. + # Option to specify a `WorkerPool` for the build. Format: projects/`project`/ + # locations/`location`/workerPools/`workerPool` This field is experimental. # Corresponds to the JSON property `workerPool` # @return [String] attr_accessor :worker_pool @@ -461,61 +433,56 @@ module Google class BuildStep include Google::Apis::Core::Hashable - # A list of arguments that will be presented to the step when it is started. - # If the image used to run the step's container has an entrypoint, the `args` - # are used as arguments to that entrypoint. If the image does not define - # an entrypoint, the first element in args is used as the entrypoint, - # and the remainder will be used as arguments. + # A list of arguments that will be presented to the step when it is started. If + # the image used to run the step's container has an entrypoint, the `args` are + # used as arguments to that entrypoint. If the image does not define an + # entrypoint, the first element in args is used as the entrypoint, and the + # remainder will be used as arguments. # Corresponds to the JSON property `args` # @return [Array] attr_accessor :args - # Working directory to use when running this step's container. - # If this value is a relative path, it is relative to the build's working - # directory. If this value is absolute, it may be outside the build's working - # directory, in which case the contents of the path may not be persisted - # across build step executions, unless a `volume` for that path is specified. - # If the build specifies a `RepoSource` with `dir` and a step with a `dir`, - # which specifies an absolute path, the `RepoSource` `dir` is ignored for - # the step's execution. + # Working directory to use when running this step's container. If this value is + # a relative path, it is relative to the build's working directory. If this + # value is absolute, it may be outside the build's working directory, in which + # case the contents of the path may not be persisted across build step + # executions, unless a `volume` for that path is specified. If the build + # specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies + # an absolute path, the `RepoSource` `dir` is ignored for the step's execution. # Corresponds to the JSON property `dir` # @return [String] attr_accessor :dir - # Entrypoint to be used instead of the build step image's default entrypoint. - # If unset, the image's default entrypoint is used. + # Entrypoint to be used instead of the build step image's default entrypoint. If + # unset, the image's default entrypoint is used. # Corresponds to the JSON property `entrypoint` # @return [String] attr_accessor :entrypoint - # A list of environment variable definitions to be used when running a step. - # The elements are of the form "KEY=VALUE" for the environment variable "KEY" - # being given the value "VALUE". + # A list of environment variable definitions to be used when running a step. The + # elements are of the form "KEY=VALUE" for the environment variable "KEY" being + # given the value "VALUE". # Corresponds to the JSON property `env` # @return [Array] attr_accessor :env - # Unique identifier for this build step, used in `wait_for` to - # reference this build step as a dependency. + # Unique identifier for this build step, used in `wait_for` to reference this + # build step as a dependency. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Required. The name of the container image that will run this particular - # build step. - # If the image is available in the host's Docker daemon's cache, it - # will be run directly. If not, the host will attempt to pull the image - # first, using the builder service account's credentials if necessary. - # The Docker daemon's cache will already have the latest versions of all of - # the officially supported build steps - # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/ - # GoogleCloudPlatform/cloud-builders)). - # The Docker daemon will also have cached many of the layers for some popular - # images, like "ubuntu", "debian", but they will be refreshed at the time you - # attempt to use them. - # If you built an image in a previous build step, it will be stored in the - # host's Docker daemon's cache and is available to use as the name for a - # later build step. + # Required. The name of the container image that will run this particular build + # step. If the image is available in the host's Docker daemon's cache, it will + # be run directly. If not, the host will attempt to pull the image first, using + # the builder service account's credentials if necessary. The Docker daemon's + # cache will already have the latest versions of all of the officially supported + # build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https:// + # github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also + # have cached many of the layers for some popular images, like "ubuntu", "debian" + # , but they will be refreshed at the time you attempt to use them. If you built + # an image in a previous build step, it will be stored in the host's Docker + # daemon's cache and is available to use as the name for a later build step. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -526,22 +493,22 @@ module Google attr_accessor :pull_timing # A list of environment variables which are encrypted using a Cloud Key - # Management Service crypto key. These values must be specified in the - # build's `Secret`. + # Management Service crypto key. These values must be specified in the build's ` + # Secret`. # Corresponds to the JSON property `secretEnv` # @return [Array] attr_accessor :secret_env - # Output only. Status of the build step. At this time, build step status is - # only updated on build completion; step status is not updated in real-time - # as the build progresses. + # Output only. Status of the build step. At this time, build step status is only + # updated on build completion; step status is not updated in real-time as the + # build progresses. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Time limit for executing this build step. If not defined, the step has no - # time limit and will be allowed to continue to run until either it completes - # or the build itself times out. + # Time limit for executing this build step. If not defined, the step has no time + # limit and will be allowed to continue to run until either it completes or the + # build itself times out. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout @@ -551,21 +518,19 @@ module Google # @return [Google::Apis::CloudbuildV1::TimeSpan] attr_accessor :timing - # List of volumes to mount into the build step. - # Each volume is created as an empty volume prior to execution of the - # build step. Upon completion of the build, volumes and their contents are - # discarded. - # Using a named volume in only one step is not valid as it is indicative - # of a build request with an incorrect configuration. + # List of volumes to mount into the build step. Each volume is created as an + # empty volume prior to execution of the build step. Upon completion of the + # build, volumes and their contents are discarded. Using a named volume in only + # one step is not valid as it is indicative of a build request with an incorrect + # configuration. # Corresponds to the JSON property `volumes` # @return [Array] attr_accessor :volumes - # The ID(s) of the step(s) that this build step depends on. - # This build step will not start until all the build steps in `wait_for` - # have completed successfully. If `wait_for` is empty, this build step will - # start when all previous build steps in the `Build.Steps` list have - # completed successfully. + # The ID(s) of the step(s) that this build step depends on. This build step will + # not start until all the build steps in `wait_for` have completed successfully. + # If `wait_for` is empty, this build step will start when all previous build + # steps in the `Build.Steps` list have completed successfully. # Corresponds to the JSON property `waitFor` # @return [Array] attr_accessor :wait_for @@ -592,25 +557,20 @@ module Google end end - # Configuration for an automated build in response to source repository - # changes. + # Configuration for an automated build in response to source repository changes. class BuildTrigger include Google::Apis::Core::Hashable - # A build resource in the Cloud Build API. - # At a high level, a `Build` describes where to find source code, how to build - # it (for example, the builder image to run on the source), and where to store - # the built artifacts. - # Fields can include the following variables, which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + # A build resource in the Cloud Build API. At a high level, a `Build` describes + # where to find source code, how to build it (for example, the builder image to + # run on the source), and where to store the built artifacts. Fields can include + # the following variables, which will be expanded when the build is created: - $ + # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of + # the build. - $REPO_NAME: the source repository name specified by RepoSource. - + # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag + # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA + # specified by RepoSource or resolved from the specified branch or tag. - $ + # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Corresponds to the JSON property `build` # @return [Google::Apis::CloudbuildV1::Build] attr_accessor :build @@ -631,15 +591,13 @@ module Google attr_accessor :disabled alias_method :disabled?, :disabled - # Path, from the source root, to a file whose contents is used for the - # template. + # Path, from the source root, to a file whose contents is used for the template. # Corresponds to the JSON property `filename` # @return [String] attr_accessor :filename # GitHubEventsConfig describes the configuration of a trigger that creates a - # build whenever a GitHub event is received. - # This message is experimental. + # build whenever a GitHub event is received. This message is experimental. # Corresponds to the JSON property `github` # @return [Google::Apis::CloudbuildV1::GitHubEventsConfig] attr_accessor :github @@ -649,40 +607,36 @@ module Google # @return [String] attr_accessor :id - # ignored_files and included_files are file glob matches using - # https://golang.org/pkg/path/filepath/#Match extended with support for "**". - # If ignored_files and changed files are both empty, then they are - # not used to determine whether or not to trigger a build. - # If ignored_files is not empty, then we ignore any files that match - # any of the ignored_file globs. If the change has no files that are - # outside of the ignored_files globs, then we do not trigger a build. + # ignored_files and included_files are file glob matches using https://golang. + # org/pkg/path/filepath/#Match extended with support for "**". If ignored_files + # and changed files are both empty, then they are not used to determine whether + # or not to trigger a build. If ignored_files is not empty, then we ignore any + # files that match any of the ignored_file globs. If the change has no files + # that are outside of the ignored_files globs, then we do not trigger a build. # Corresponds to the JSON property `ignoredFiles` # @return [Array] attr_accessor :ignored_files - # If any of the files altered in the commit pass the ignored_files - # filter and included_files is empty, then as far as this filter is - # concerned, we should trigger the build. - # If any of the files altered in the commit pass the ignored_files - # filter and included_files is not empty, then we make sure that at - # least one of those files matches a included_files glob. If not, - # then we do not trigger a build. + # If any of the files altered in the commit pass the ignored_files filter and + # included_files is empty, then as far as this filter is concerned, we should + # trigger the build. If any of the files altered in the commit pass the + # ignored_files filter and included_files is not empty, then we make sure that + # at least one of those files matches a included_files glob. If not, then we do + # not trigger a build. # Corresponds to the JSON property `includedFiles` # @return [Array] attr_accessor :included_files - # User-assigned name of the trigger. Must be unique within the project. - # Trigger names must meet the following requirements: - # + They must contain only alphanumeric characters and dashes. - # + They can be 1-64 characters long. - # + They must begin and end with an alphanumeric character. + # User-assigned name of the trigger. Must be unique within the project. Trigger + # names must meet the following requirements: + They must contain only + # alphanumeric characters and dashes. + They can be 1-64 characters long. + They + # must begin and end with an alphanumeric character. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Substitutions for Build resource. The keys must match the following - # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the - # keys in bindings. + # Substitutions for Build resource. The keys must match the following regular + # expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the keys in bindings. # Corresponds to the JSON property `substitutions` # @return [Hash] attr_accessor :substitutions @@ -777,13 +731,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -817,8 +769,7 @@ module Google end # GitHubEventsConfig describes the configuration of a trigger that creates a - # build whenever a GitHub event is received. - # This message is experimental. + # build whenever a GitHub event is received. This message is experimental. class GitHubEventsConfig include Google::Apis::Core::Hashable @@ -827,21 +778,19 @@ module Google # @return [Fixnum] attr_accessor :installation_id - # Name of the repository. For example: The name for - # https://github.com/googlecloudplatform/cloud-builders is "cloud-builders". + # Name of the repository. For example: The name for https://github.com/ + # googlecloudplatform/cloud-builders is "cloud-builders". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Owner of the repository. For example: The owner for - # https://github.com/googlecloudplatform/cloud-builders is - # "googlecloudplatform". + # Owner of the repository. For example: The owner for https://github.com/ + # googlecloudplatform/cloud-builders is "googlecloudplatform". # Corresponds to the JSON property `owner` # @return [String] attr_accessor :owner - # PullRequestFilter contains filter properties for matching GitHub Pull - # Requests. + # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Corresponds to the JSON property `pullRequest` # @return [Google::Apis::CloudbuildV1::PullRequestFilter] attr_accessor :pull_request @@ -965,9 +914,9 @@ module Google class Notification include Google::Apis::Core::Hashable - # The filter string to use for notification filtering. - # Currently, this is assumed to be a CEL program. - # See https://opensource.google/projects/cel for more. + # The filter string to use for notification filtering. Currently, this is + # assumed to be a CEL program. See https://opensource.google/projects/cel for + # more. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -978,8 +927,8 @@ module Google attr_accessor :http_delivery # SlackDelivery is the delivery configuration for delivering Slack messages via - # webhooks. See Slack webhook documentation at: - # https://api.slack.com/messaging/webhooks. + # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/ + # webhooks. # Corresponds to the JSON property `slackDelivery` # @return [Google::Apis::CloudbuildV1::SlackDelivery] attr_accessor :slack_delivery @@ -1051,15 +1000,15 @@ module Google class NotifierMetadata include Google::Apis::Core::Hashable - # The human-readable and user-given name for the notifier. - # For example: "repo-merge-email-notifier". + # The human-readable and user-given name for the notifier. For example: "repo- + # merge-email-notifier". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The string representing the name and version of notifier to deploy. - # Expected to be of the form of "/:". - # For example: "gcr.io/my-project/notifiers/smtp:1.2.34". + # The string representing the name and version of notifier to deploy. Expected + # to be of the form of "/:". For example: "gcr.io/my-project/notifiers/smtp:1.2. + # 34". # Corresponds to the JSON property `notifier` # @return [String] attr_accessor :notifier @@ -1080,16 +1029,16 @@ module Google class NotifierSecret include Google::Apis::Core::Hashable - # Name is the local name of the secret, such as the verbatim string - # "my-smtp-password". + # Name is the local name of the secret, such as the verbatim string "my-smtp- + # password". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Value is interpreted to be a resource path for fetching the actual - # (versioned) secret data for this secret. For example, this would be a - # Google Cloud Secret Manager secret version resource path like: - # "projects/my-project/secrets/my-secret/versions/latest". + # Value is interpreted to be a resource path for fetching the actual (versioned) + # secret data for this secret. For example, this would be a Google Cloud Secret + # Manager secret version resource path like: "projects/my-project/secrets/my- + # secret/versions/latest". # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -1110,8 +1059,8 @@ module Google class NotifierSecretRef include Google::Apis::Core::Hashable - # The value of `secret_ref` should be a `name` that is registered in a - # `Secret` in the `secrets` list of the `Spec`. + # The value of `secret_ref` should be a `name` that is registered in a `Secret` + # in the `secrets` list of the `Spec`. # Corresponds to the JSON property `secretRef` # @return [String] attr_accessor :secret_ref @@ -1157,47 +1106,45 @@ module Google class Operation 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. + # 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). + # 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::CloudbuildV1::Status] 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. + # 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``. + # 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`. + # 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 @@ -1216,14 +1163,13 @@ module Google end end - # PullRequestFilter contains filter properties for matching GitHub Pull - # Requests. + # PullRequestFilter contains filter properties for matching GitHub Pull Requests. class PullRequestFilter include Google::Apis::Core::Hashable - # Regex of branches to match. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regex of branches to match. The syntax of the regular expressions accepted is + # the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/ + # Syntax # Corresponds to the JSON property `branch` # @return [String] attr_accessor :branch @@ -1256,9 +1202,9 @@ module Google class PushFilter include Google::Apis::Core::Hashable - # Regexes matching branches to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regexes matching branches to build. The syntax of the regular expressions + # accepted is the syntax accepted by RE2 and described at https://github.com/ + # google/re2/wiki/Syntax # Corresponds to the JSON property `branch` # @return [String] attr_accessor :branch @@ -1270,9 +1216,9 @@ module Google attr_accessor :invert_regex alias_method :invert_regex?, :invert_regex - # Regexes matching tags to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regexes matching tags to build. The syntax of the regular expressions accepted + # is the syntax accepted by RE2 and described at https://github.com/google/re2/ + # wiki/Syntax # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -1293,9 +1239,9 @@ module Google class RepoSource include Google::Apis::Core::Hashable - # Regex matching branches to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regex matching branches to build. The syntax of the regular expressions + # accepted is the syntax accepted by RE2 and described at https://github.com/ + # google/re2/wiki/Syntax # Corresponds to the JSON property `branchName` # @return [String] attr_accessor :branch_name @@ -1305,15 +1251,14 @@ module Google # @return [String] attr_accessor :commit_sha - # Directory, relative to the source root, in which to run the build. - # This must be a relative path. If a step's `dir` is specified and is an - # absolute path, this value is ignored for that step's execution. + # Directory, relative to the source root, in which to run the build. This must + # be a relative path. If a step's `dir` is specified and is an absolute path, + # this value is ignored for that step's execution. # Corresponds to the JSON property `dir` # @return [String] attr_accessor :dir - # Only trigger a build if the revision regex does NOT match the revision - # regex. + # Only trigger a build if the revision regex does NOT match the revision regex. # Corresponds to the JSON property `invertRegex` # @return [Boolean] attr_accessor :invert_regex @@ -1330,15 +1275,15 @@ module Google # @return [String] attr_accessor :repo_name - # Substitutions to use in a triggered build. - # Should only be used with RunBuildTrigger + # Substitutions to use in a triggered build. Should only be used with + # RunBuildTrigger # Corresponds to the JSON property `substitutions` # @return [Hash] attr_accessor :substitutions - # Regex matching tags to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regex matching tags to build. The syntax of the regular expressions accepted + # is the syntax accepted by RE2 and described at https://github.com/google/re2/ + # wiki/Syntax # Corresponds to the JSON property `tagName` # @return [String] attr_accessor :tag_name @@ -1374,17 +1319,15 @@ module Google # @return [Google::Apis::CloudbuildV1::TimeSpan] attr_accessor :artifact_timing - # List of build step digests, in the order corresponding to build step - # indices. + # List of build step digests, in the order corresponding to build step indices. # Corresponds to the JSON property `buildStepImages` # @return [Array] attr_accessor :build_step_images # List of build step outputs, produced by builder images, in the order - # corresponding to build step indices. - # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) - # can produce this output by writing to `$BUILDER_OUTPUT/output`. - # Only the first 4KB of data is stored. + # corresponding to build step indices. [Cloud Builders](https://cloud.google.com/ + # cloud-build/docs/cloud-builders) can produce this output by writing to `$ + # BUILDER_OUTPUT/output`. Only the first 4KB of data is stored. # Corresponds to the JSON property `buildStepOutputs` # @return [Array] attr_accessor :build_step_outputs @@ -1431,8 +1374,8 @@ module Google class SmtpDelivery include Google::Apis::Core::Hashable - # This is the SMTP account/email that appears in the `From:` of the email. - # If empty, it is assumed to be sender. + # This is the SMTP account/email that appears in the `From:` of the email. If + # empty, it is assumed to be sender. # Corresponds to the JSON property `fromAddress` # @return [String] attr_accessor :from_address @@ -1448,8 +1391,8 @@ module Google # @return [String] attr_accessor :port - # This is the list of addresses to which we send the email (i.e. in the `To:` - # of the email). + # This is the list of addresses to which we send the email (i.e. in the `To:` of + # the email). # Corresponds to the JSON property `recipientAddresses` # @return [Array] attr_accessor :recipient_addresses @@ -1479,8 +1422,8 @@ module Google end end - # Pairs a set of secret environment variables containing encrypted - # values with the Cloud KMS key to use to decrypt the value. + # Pairs a set of secret environment variables containing encrypted values with + # the Cloud KMS key to use to decrypt the value. class Secret include Google::Apis::Core::Hashable @@ -1489,11 +1432,10 @@ module Google # @return [String] attr_accessor :kms_key_name - # Map of environment variable name to its encrypted value. - # Secret environment variables must be unique across all of a build's - # secrets, and must be used by at least one build step. Values can be at most - # 64 KB in size. There can be at most 100 secret values across all of a - # build's secrets. + # Map of environment variable name to its encrypted value. Secret environment + # variables must be unique across all of a build's secrets, and must be used by + # at least one build step. Values can be at most 64 KB in size. There can be at + # most 100 secret values across all of a build's secrets. # Corresponds to the JSON property `secretEnv` # @return [Hash] attr_accessor :secret_env @@ -1510,8 +1452,8 @@ module Google end # SlackDelivery is the delivery configuration for delivering Slack messages via - # webhooks. See Slack webhook documentation at: - # https://api.slack.com/messaging/webhooks. + # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/ + # webhooks. class SlackDelivery include Google::Apis::Core::Hashable @@ -1562,13 +1504,12 @@ module Google include Google::Apis::Core::Hashable # Output only. Hash(es) of the build source, which can be used to verify that - # the original source integrity was maintained in the build. Note that - # `FileHashes` will only be populated if `BuildOptions` has requested a - # `SourceProvenanceHash`. - # The keys to this map are file paths used as build source and the values - # contain the hash values for those files. - # If the build source came in a single package such as a gzipped tarfile - # (`.tar.gz`), the `FileHash` will be for the single path to that file. + # the original source integrity was maintained in the build. Note that ` + # FileHashes` will only be populated if `BuildOptions` has requested a ` + # SourceProvenanceHash`. The keys to this map are file paths used as build + # source and the values contain the hash values for those files. If the build + # source came in a single package such as a gzipped tarfile (`.tar.gz`), the ` + # FileHash` will be for the single path to that file. # Corresponds to the JSON property `fileHashes` # @return [Hash] attr_accessor :file_hashes @@ -1595,12 +1536,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1609,15 +1550,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1638,23 +1579,21 @@ module Google class StorageSource include Google::Apis::Core::Hashable - # Google Cloud Storage bucket containing the source (see - # [Bucket Name + # Google Cloud Storage bucket containing the source (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) # ). # Corresponds to the JSON property `bucket` # @return [String] attr_accessor :bucket - # Google Cloud Storage generation for the object. If the generation is - # omitted, the latest generation will be used. + # Google Cloud Storage generation for the object. If the generation is omitted, + # the latest generation will be used. # Corresponds to the JSON property `generation` # @return [Fixnum] attr_accessor :generation - # Google Cloud Storage object containing the source. - # This object must be a gzipped archive file (`.tar.gz`) containing source to - # build. + # Google Cloud Storage object containing the source. This object must be a + # gzipped archive file (`.tar.gz`) containing source to build. # Corresponds to the JSON property `object` # @return [String] attr_accessor :object @@ -1701,16 +1640,16 @@ module Google class Volume include Google::Apis::Core::Hashable - # Name of the volume to mount. - # Volume names must be unique per build step and must be valid names for - # Docker volumes. Each named volume must be used by at least two build steps. + # Name of the volume to mount. Volume names must be unique per build step and + # must be valid names for Docker volumes. Each named volume must be used by at + # least two build steps. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Path at which to mount the volume. - # Paths must be absolute and cannot conflict with other volume paths on the - # same build step or with certain reserved volume paths. + # Path at which to mount the volume. Paths must be absolute and cannot conflict + # with other volume paths on the same build step or with certain reserved volume + # paths. # Corresponds to the JSON property `path` # @return [String] attr_accessor :path diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index 1a87a1e8a..dbe9f5ba8 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -47,15 +47,13 @@ module Google @batch_path = 'batch' end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -89,9 +87,8 @@ module Google 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. + # 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 @@ -157,10 +154,9 @@ module Google execute_or_queue_command(command, &block) end - # Starts a build with the specified configuration. - # This method returns a long-running `Operation`, which includes the build - # ID. Pass the build ID to `GetBuild` to determine the build status (such as - # `SUCCESS` or `FAILURE`). + # Starts a build with the specified configuration. This method returns a long- + # running `Operation`, which includes the build ID. Pass the build ID to ` + # GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`). # @param [String] project_id # Required. ID of the project. # @param [Google::Apis::CloudbuildV1::Build] build_object @@ -193,9 +189,9 @@ module Google execute_or_queue_command(command, &block) end - # Returns information about a previously requested build. - # The `Build` that is returned includes its status (such as `SUCCESS`, - # `FAILURE`, or `WORKING`), and timing information. + # Returns information about a previously requested build. The `Build` that is + # returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and + # timing information. # @param [String] project_id # Required. ID of the project. # @param [String] id @@ -228,9 +224,8 @@ module Google execute_or_queue_command(command, &block) end - # Lists previously requested builds. - # Previously requested builds may still be in-progress, or may have finished - # successfully or unsuccessfully. + # Lists previously requested builds. Previously requested builds may still be in- + # progress, or may have finished successfully or unsuccessfully. # @param [String] project_id # Required. ID of the project. # @param [String] filter @@ -269,26 +264,22 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new build based on the specified build. - # This method creates a new build using the original build request, which may - # or may not result in an identical build. - # For triggered builds: - # * Triggered builds resolve to a precise revision; therefore a retry of a - # triggered build will result in a build that uses the same revision. - # For non-triggered builds that specify `RepoSource`: - # * If the original build built from the tip of a branch, the retried build - # will build from the tip of that branch, which may not be the same revision - # as the original build. - # * If the original build specified a commit sha or revision ID, the retried - # build will use the identical source. - # For builds that specify `StorageSource`: - # * If the original build pulled source from Google Cloud Storage without - # specifying the generation of the object, the new build will use the current - # object, which may be different from the original build source. + # Creates a new build based on the specified build. This method creates a new + # build using the original build request, which may or may not result in an + # identical build. For triggered builds: * Triggered builds resolve to a precise + # revision; therefore a retry of a triggered build will result in a build that + # uses the same revision. For non-triggered builds that specify `RepoSource`: * + # If the original build built from the tip of a branch, the retried build will + # build from the tip of that branch, which may not be the same revision as the + # original build. * If the original build specified a commit sha or revision ID, + # the retried build will use the identical source. For builds that specify ` + # StorageSource`: * If the original build pulled source from Google Cloud + # Storage without specifying the generation of the object, the new build will + # use the current object, which may be different from the original build source. # * If the original build pulled source from Cloud Storage and specified the - # generation of the object, the new build will attempt to use the same - # object, which may or may not be available depending on the bucket's - # lifecycle management settings. + # generation of the object, the new build will attempt to use the same object, + # which may or may not be available depending on the bucket's lifecycle + # management settings. # @param [String] project_id # Required. ID of the project. # @param [String] id @@ -324,15 +315,13 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -366,9 +355,8 @@ module Google 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. + # 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 @@ -398,8 +386,7 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new `BuildTrigger`. - # This API is experimental. + # Creates a new `BuildTrigger`. This API is experimental. # @param [String] project_id # Required. ID of the project for which to configure automatic builds. # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object @@ -432,8 +419,8 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a `BuildTrigger` by its project ID and trigger ID. - # This API is experimental. + # Deletes a `BuildTrigger` by its project ID and trigger ID. This API is + # experimental. # @param [String] project_id # Required. ID of the project that owns the trigger. # @param [String] trigger_id @@ -466,8 +453,7 @@ module Google execute_or_queue_command(command, &block) end - # Returns information about a `BuildTrigger`. - # This API is experimental. + # Returns information about a `BuildTrigger`. This API is experimental. # @param [String] project_id # Required. ID of the project that owns the trigger. # @param [String] trigger_id @@ -500,8 +486,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists existing `BuildTrigger`s. - # This API is experimental. + # Lists existing `BuildTrigger`s. This API is experimental. # @param [String] project_id # Required. ID of the project for which to list BuildTriggers. # @param [Fixnum] page_size @@ -537,8 +522,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates a `BuildTrigger` by its project ID and trigger ID. - # This API is experimental. + # Updates a `BuildTrigger` by its project ID and trigger ID. This API is + # experimental. # @param [String] project_id # Required. ID of the project that owns the trigger. # @param [String] trigger_id diff --git a/generated/google/apis/cloudbuild_v1alpha1.rb b/generated/google/apis/cloudbuild_v1alpha1.rb index 93e5b3c6e..239e0dbc9 100644 --- a/generated/google/apis/cloudbuild_v1alpha1.rb +++ b/generated/google/apis/cloudbuild_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200720' + REVISION = '20200801' # 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/cloudbuild_v1alpha1/classes.rb b/generated/google/apis/cloudbuild_v1alpha1/classes.rb index b411e27de..cee007425 100644 --- a/generated/google/apis/cloudbuild_v1alpha1/classes.rb +++ b/generated/google/apis/cloudbuild_v1alpha1/classes.rb @@ -22,17 +22,15 @@ module Google module Apis module CloudbuildV1alpha1 - # Files in the workspace to upload to Cloud Storage upon successful - # completion of all build steps. + # Files in the workspace to upload to Cloud Storage upon successful completion + # of all build steps. class ArtifactObjects include Google::Apis::Core::Hashable - # Cloud Storage bucket and optional object path, in the form - # "gs://bucket/path/to/somewhere/". (see [Bucket Name - # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) - # ). - # Files in the workspace matching any path pattern will be uploaded to - # Cloud Storage with this location as a prefix. + # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/ + # to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/ + # storage/docs/bucket-naming#requirements)). Files in the workspace matching any + # path pattern will be uploaded to Cloud Storage with this location as a prefix. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -59,8 +57,8 @@ module Google end end - # An artifact that was uploaded during a build. This - # is a single record in the artifact manifest JSON file. + # An artifact that was uploaded during a build. This is a single record in the + # artifact manifest JSON file. class ArtifactResult include Google::Apis::Core::Hashable @@ -69,9 +67,8 @@ module Google # @return [Array] attr_accessor :file_hash - # The path of an artifact in a Google Cloud Storage bucket, with the - # generation number. For example, - # `gs://mybucket/path/to/output.jar#generation`. + # The path of an artifact in a Google Cloud Storage bucket, with the generation + # number. For example, `gs://mybucket/path/to/output.jar#generation`. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -87,23 +84,22 @@ module Google end end - # Artifacts produced by a build that should be uploaded upon - # successful completion of all build steps. + # Artifacts produced by a build that should be uploaded upon successful + # completion of all build steps. class Artifacts include Google::Apis::Core::Hashable # A list of images to be pushed upon the successful completion of all build - # steps. - # The images will be pushed using the builder service account's credentials. - # The digests of the pushed images will be stored in the Build resource's - # results field. - # If any of the images fail to be pushed, the build is marked FAILURE. + # steps. The images will be pushed using the builder service account's + # credentials. The digests of the pushed images will be stored in the Build + # resource's results field. If any of the images fail to be pushed, the build is + # marked FAILURE. # Corresponds to the JSON property `images` # @return [Array] attr_accessor :images - # Files in the workspace to upload to Cloud Storage upon successful - # completion of all build steps. + # Files in the workspace to upload to Cloud Storage upon successful completion + # of all build steps. # Corresponds to the JSON property `objects` # @return [Google::Apis::CloudbuildV1alpha1::ArtifactObjects] attr_accessor :objects @@ -119,31 +115,27 @@ module Google end end - # A build resource in the Cloud Build API. - # At a high level, a `Build` describes where to find source code, how to build - # it (for example, the builder image to run on the source), and where to store - # the built artifacts. - # Fields can include the following variables, which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + # A build resource in the Cloud Build API. At a high level, a `Build` describes + # where to find source code, how to build it (for example, the builder image to + # run on the source), and where to store the built artifacts. Fields can include + # the following variables, which will be expanded when the build is created: - $ + # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of + # the build. - $REPO_NAME: the source repository name specified by RepoSource. - + # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag + # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA + # specified by RepoSource or resolved from the specified branch or tag. - $ + # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. class Build include Google::Apis::Core::Hashable - # Artifacts produced by a build that should be uploaded upon - # successful completion of all build steps. + # Artifacts produced by a build that should be uploaded upon successful + # completion of all build steps. # Corresponds to the JSON property `artifacts` # @return [Google::Apis::CloudbuildV1alpha1::Artifacts] attr_accessor :artifacts - # Output only. The ID of the `BuildTrigger` that triggered this build, if it - # was triggered automatically. + # Output only. The ID of the `BuildTrigger` that triggered this build, if it was + # triggered automatically. # Corresponds to the JSON property `buildTriggerId` # @return [String] attr_accessor :build_trigger_id @@ -153,9 +145,8 @@ module Google # @return [String] attr_accessor :create_time - # Output only. Time at which execution of the build was finished. - # The difference between finish_time and start_time is the duration of the - # build's execution. + # Output only. Time at which execution of the build was finished. The difference + # between finish_time and start_time is the duration of the build's execution. # Corresponds to the JSON property `finishTime` # @return [String] attr_accessor :finish_time @@ -166,12 +157,10 @@ module Google attr_accessor :id # A list of images to be pushed upon the successful completion of all build - # steps. - # The images are pushed using the builder service account's credentials. + # steps. The images are pushed using the builder service account's credentials. # The digests of the pushed images will be stored in the `Build` resource's - # results field. - # If any of the images fail to be pushed, the build status is marked - # `FAILURE`. + # results field. If any of the images fail to be pushed, the build status is + # marked `FAILURE`. # Corresponds to the JSON property `images` # @return [Array] attr_accessor :images @@ -181,11 +170,9 @@ module Google # @return [String] attr_accessor :log_url - # Google Cloud Storage bucket where logs should be written (see - # [Bucket Name + # Google Cloud Storage bucket where logs should be written (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) - # ). - # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. + # ). Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. # Corresponds to the JSON property `logsBucket` # @return [String] attr_accessor :logs_bucket @@ -200,10 +187,9 @@ module Google # @return [String] attr_accessor :project_id - # TTL in queue for this build. If provided and the build is enqueued longer - # than this value, the build will expire and the build status will be - # `EXPIRED`. - # The TTL starts ticking from create_time. + # TTL in queue for this build. If provided and the build is enqueued longer than + # this value, the build will expire and the build status will be `EXPIRED`. The + # TTL starts ticking from create_time. # Corresponds to the JSON property `queueTtl` # @return [String] attr_accessor :queue_ttl @@ -259,22 +245,18 @@ module Google # @return [Array] attr_accessor :tags - # Amount of time that this build should be allowed to run, to second - # granularity. If this amount of time elapses, work on the build will cease - # and the build status will be `TIMEOUT`. - # `timeout` starts ticking from `startTime`. - # Default time is ten minutes. + # Amount of time that this build should be allowed to run, to second granularity. + # If this amount of time elapses, work on the build will cease and the build + # status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default + # time is ten minutes. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout - # Output only. Stores timing information for phases of the build. Valid keys - # are: - # * BUILD: time to execute all build steps - # * PUSH: time to push all specified images. - # * FETCHSOURCE: time to fetch source. - # If the build does not specify source or images, - # these keys will not be included. + # Output only. Stores timing information for phases of the build. Valid keys are: + # * BUILD: time to execute all build steps * PUSH: time to push all specified + # images. * FETCHSOURCE: time to fetch source. If the build does not specify + # source or images, these keys will not be included. # Corresponds to the JSON property `timing` # @return [Hash] attr_accessor :timing @@ -315,20 +297,16 @@ module Google class BuildOperationMetadata include Google::Apis::Core::Hashable - # A build resource in the Cloud Build API. - # At a high level, a `Build` describes where to find source code, how to build - # it (for example, the builder image to run on the source), and where to store - # the built artifacts. - # Fields can include the following variables, which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + # A build resource in the Cloud Build API. At a high level, a `Build` describes + # where to find source code, how to build it (for example, the builder image to + # run on the source), and where to store the built artifacts. Fields can include + # the following variables, which will be expanded when the build is created: - $ + # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of + # the build. - $REPO_NAME: the source repository name specified by RepoSource. - + # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag + # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA + # specified by RepoSource or resolved from the specified branch or tag. - $ + # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Corresponds to the JSON property `build` # @return [Google::Apis::CloudbuildV1alpha1::Build] attr_accessor :build @@ -347,19 +325,18 @@ module Google class BuildOptions include Google::Apis::Core::Hashable - # Requested disk size for the VM that runs the build. Note that this is *NOT* - # "disk free"; some of the space will be used by the operating system and - # build utilities. Also note that this is the minimum disk size that will be - # allocated for the build -- the build may run with a larger disk than - # requested. At present, the maximum disk size is 1000GB; builds that request - # more than the maximum are rejected with an error. + # Requested disk size for the VM that runs the build. Note that this is *NOT* " + # disk free"; some of the space will be used by the operating system and build + # utilities. Also note that this is the minimum disk size that will be allocated + # for the build -- the build may run with a larger disk than requested. At + # present, the maximum disk size is 1000GB; builds that request more than the + # maximum are rejected with an error. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb - # Option to specify whether or not to apply bash style string - # operations to the substitutions. - # NOTE: this is always enabled for triggered builds and cannot be + # Option to specify whether or not to apply bash style string operations to the + # substitutions. NOTE: this is always enabled for triggered builds and cannot be # overridden in the build configuration file. # Corresponds to the JSON property `dynamicSubstitutions` # @return [Boolean] @@ -367,22 +344,21 @@ module Google alias_method :dynamic_substitutions?, :dynamic_substitutions # A list of global environment variable definitions that will exist for all - # build steps in this build. If a variable is defined in both globally and in - # a build step, the variable will use the build step value. - # The elements are of the form "KEY=VALUE" for the environment variable "KEY" - # being given the value "VALUE". + # build steps in this build. If a variable is defined in both globally and in a + # build step, the variable will use the build step value. The elements are of + # the form "KEY=VALUE" for the environment variable "KEY" being given the value " + # VALUE". # Corresponds to the JSON property `env` # @return [Array] attr_accessor :env - # Option to define build log streaming behavior to Google Cloud - # Storage. + # Option to define build log streaming behavior to Google Cloud Storage. # Corresponds to the JSON property `logStreamingOption` # @return [String] attr_accessor :log_streaming_option - # Option to specify the logging mode, which determines if and where build - # logs are stored. + # Option to specify the logging mode, which determines if and where build logs + # are stored. # Corresponds to the JSON property `logging` # @return [String] attr_accessor :logging @@ -397,10 +373,9 @@ module Google # @return [String] attr_accessor :requested_verify_option - # A list of global environment variables, which are encrypted using a Cloud - # Key Management Service crypto key. These values must be specified in the - # build's `Secret`. These variables will be available to all build steps - # in this build. + # A list of global environment variables, which are encrypted using a Cloud Key + # Management Service crypto key. These values must be specified in the build's ` + # Secret`. These variables will be available to all build steps in this build. # Corresponds to the JSON property `secretEnv` # @return [Array] attr_accessor :secret_env @@ -410,28 +385,25 @@ module Google # @return [Array] attr_accessor :source_provenance_hash - # Option to specify behavior when there is an error in the substitution - # checks. - # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot - # be overridden in the build configuration file. + # Option to specify behavior when there is an error in the substitution checks. + # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be + # overridden in the build configuration file. # Corresponds to the JSON property `substitutionOption` # @return [String] attr_accessor :substitution_option - # Global list of volumes to mount for ALL build steps - # Each volume is created as an empty volume prior to starting the build - # process. Upon completion of the build, volumes and their contents are - # discarded. Global volume names and paths cannot conflict with the volumes - # defined a build step. - # Using a global volume in a build with only one step is not valid as - # it is indicative of a build request with an incorrect configuration. + # Global list of volumes to mount for ALL build steps Each volume is created as + # an empty volume prior to starting the build process. Upon completion of the + # build, volumes and their contents are discarded. Global volume names and paths + # cannot conflict with the volumes defined a build step. Using a global volume + # in a build with only one step is not valid as it is indicative of a build + # request with an incorrect configuration. # Corresponds to the JSON property `volumes` # @return [Array] attr_accessor :volumes - # Option to specify a `WorkerPool` for the build. - # Format: projects/`project`/workerPools/`workerPool` - # This field is experimental. + # Option to specify a `WorkerPool` for the build. Format: projects/`project`/ + # locations/`location`/workerPools/`workerPool` This field is experimental. # Corresponds to the JSON property `workerPool` # @return [String] attr_accessor :worker_pool @@ -461,61 +433,56 @@ module Google class BuildStep include Google::Apis::Core::Hashable - # A list of arguments that will be presented to the step when it is started. - # If the image used to run the step's container has an entrypoint, the `args` - # are used as arguments to that entrypoint. If the image does not define - # an entrypoint, the first element in args is used as the entrypoint, - # and the remainder will be used as arguments. + # A list of arguments that will be presented to the step when it is started. If + # the image used to run the step's container has an entrypoint, the `args` are + # used as arguments to that entrypoint. If the image does not define an + # entrypoint, the first element in args is used as the entrypoint, and the + # remainder will be used as arguments. # Corresponds to the JSON property `args` # @return [Array] attr_accessor :args - # Working directory to use when running this step's container. - # If this value is a relative path, it is relative to the build's working - # directory. If this value is absolute, it may be outside the build's working - # directory, in which case the contents of the path may not be persisted - # across build step executions, unless a `volume` for that path is specified. - # If the build specifies a `RepoSource` with `dir` and a step with a `dir`, - # which specifies an absolute path, the `RepoSource` `dir` is ignored for - # the step's execution. + # Working directory to use when running this step's container. If this value is + # a relative path, it is relative to the build's working directory. If this + # value is absolute, it may be outside the build's working directory, in which + # case the contents of the path may not be persisted across build step + # executions, unless a `volume` for that path is specified. If the build + # specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies + # an absolute path, the `RepoSource` `dir` is ignored for the step's execution. # Corresponds to the JSON property `dir` # @return [String] attr_accessor :dir - # Entrypoint to be used instead of the build step image's default entrypoint. - # If unset, the image's default entrypoint is used. + # Entrypoint to be used instead of the build step image's default entrypoint. If + # unset, the image's default entrypoint is used. # Corresponds to the JSON property `entrypoint` # @return [String] attr_accessor :entrypoint - # A list of environment variable definitions to be used when running a step. - # The elements are of the form "KEY=VALUE" for the environment variable "KEY" - # being given the value "VALUE". + # A list of environment variable definitions to be used when running a step. The + # elements are of the form "KEY=VALUE" for the environment variable "KEY" being + # given the value "VALUE". # Corresponds to the JSON property `env` # @return [Array] attr_accessor :env - # Unique identifier for this build step, used in `wait_for` to - # reference this build step as a dependency. + # Unique identifier for this build step, used in `wait_for` to reference this + # build step as a dependency. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Required. The name of the container image that will run this particular - # build step. - # If the image is available in the host's Docker daemon's cache, it - # will be run directly. If not, the host will attempt to pull the image - # first, using the builder service account's credentials if necessary. - # The Docker daemon's cache will already have the latest versions of all of - # the officially supported build steps - # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/ - # GoogleCloudPlatform/cloud-builders)). - # The Docker daemon will also have cached many of the layers for some popular - # images, like "ubuntu", "debian", but they will be refreshed at the time you - # attempt to use them. - # If you built an image in a previous build step, it will be stored in the - # host's Docker daemon's cache and is available to use as the name for a - # later build step. + # Required. The name of the container image that will run this particular build + # step. If the image is available in the host's Docker daemon's cache, it will + # be run directly. If not, the host will attempt to pull the image first, using + # the builder service account's credentials if necessary. The Docker daemon's + # cache will already have the latest versions of all of the officially supported + # build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https:// + # github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also + # have cached many of the layers for some popular images, like "ubuntu", "debian" + # , but they will be refreshed at the time you attempt to use them. If you built + # an image in a previous build step, it will be stored in the host's Docker + # daemon's cache and is available to use as the name for a later build step. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -526,22 +493,22 @@ module Google attr_accessor :pull_timing # A list of environment variables which are encrypted using a Cloud Key - # Management Service crypto key. These values must be specified in the - # build's `Secret`. + # Management Service crypto key. These values must be specified in the build's ` + # Secret`. # Corresponds to the JSON property `secretEnv` # @return [Array] attr_accessor :secret_env - # Output only. Status of the build step. At this time, build step status is - # only updated on build completion; step status is not updated in real-time - # as the build progresses. + # Output only. Status of the build step. At this time, build step status is only + # updated on build completion; step status is not updated in real-time as the + # build progresses. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Time limit for executing this build step. If not defined, the step has no - # time limit and will be allowed to continue to run until either it completes - # or the build itself times out. + # Time limit for executing this build step. If not defined, the step has no time + # limit and will be allowed to continue to run until either it completes or the + # build itself times out. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout @@ -551,21 +518,19 @@ module Google # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan] attr_accessor :timing - # List of volumes to mount into the build step. - # Each volume is created as an empty volume prior to execution of the - # build step. Upon completion of the build, volumes and their contents are - # discarded. - # Using a named volume in only one step is not valid as it is indicative - # of a build request with an incorrect configuration. + # List of volumes to mount into the build step. Each volume is created as an + # empty volume prior to execution of the build step. Upon completion of the + # build, volumes and their contents are discarded. Using a named volume in only + # one step is not valid as it is indicative of a build request with an incorrect + # configuration. # Corresponds to the JSON property `volumes` # @return [Array] attr_accessor :volumes - # The ID(s) of the step(s) that this build step depends on. - # This build step will not start until all the build steps in `wait_for` - # have completed successfully. If `wait_for` is empty, this build step will - # start when all previous build steps in the `Build.Steps` list have - # completed successfully. + # The ID(s) of the step(s) that this build step depends on. This build step will + # not start until all the build steps in `wait_for` have completed successfully. + # If `wait_for` is empty, this build step will start when all previous build + # steps in the `Build.Steps` list have completed successfully. # Corresponds to the JSON property `waitFor` # @return [Array] attr_accessor :wait_for @@ -637,13 +602,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -744,23 +707,22 @@ module Google class Network include Google::Apis::Core::Hashable - # Network on which the workers are created. - # "default" network is used if empty. + # Network on which the workers are created. "default" network is used if empty. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network # Project id containing the defined network and subnetwork. For a peered VPC, - # this will be the same as the project_id in which the workers are created. - # For a shared VPC, this will be the project sharing the network with the - # project_id project in which workers will be created. For custom workers - # with no VPC, this will be the same as project_id. + # this will be the same as the project_id in which the workers are created. For + # a shared VPC, this will be the project sharing the network with the project_id + # project in which workers will be created. For custom workers with no VPC, this + # will be the same as project_id. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Subnetwork on which the workers are created. - # "default" subnetwork is used if empty. + # Subnetwork on which the workers are created. "default" subnetwork is used if + # empty. # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork @@ -782,9 +744,9 @@ module Google class Notification include Google::Apis::Core::Hashable - # The filter string to use for notification filtering. - # Currently, this is assumed to be a CEL program. - # See https://opensource.google/projects/cel for more. + # The filter string to use for notification filtering. Currently, this is + # assumed to be a CEL program. See https://opensource.google/projects/cel for + # more. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -795,8 +757,8 @@ module Google attr_accessor :http_delivery # SlackDelivery is the delivery configuration for delivering Slack messages via - # webhooks. See Slack webhook documentation at: - # https://api.slack.com/messaging/webhooks. + # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/ + # webhooks. # Corresponds to the JSON property `slackDelivery` # @return [Google::Apis::CloudbuildV1alpha1::SlackDelivery] attr_accessor :slack_delivery @@ -868,15 +830,15 @@ module Google class NotifierMetadata include Google::Apis::Core::Hashable - # The human-readable and user-given name for the notifier. - # For example: "repo-merge-email-notifier". + # The human-readable and user-given name for the notifier. For example: "repo- + # merge-email-notifier". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The string representing the name and version of notifier to deploy. - # Expected to be of the form of "/:". - # For example: "gcr.io/my-project/notifiers/smtp:1.2.34". + # The string representing the name and version of notifier to deploy. Expected + # to be of the form of "/:". For example: "gcr.io/my-project/notifiers/smtp:1.2. + # 34". # Corresponds to the JSON property `notifier` # @return [String] attr_accessor :notifier @@ -897,16 +859,16 @@ module Google class NotifierSecret include Google::Apis::Core::Hashable - # Name is the local name of the secret, such as the verbatim string - # "my-smtp-password". + # Name is the local name of the secret, such as the verbatim string "my-smtp- + # password". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Value is interpreted to be a resource path for fetching the actual - # (versioned) secret data for this secret. For example, this would be a - # Google Cloud Secret Manager secret version resource path like: - # "projects/my-project/secrets/my-secret/versions/latest". + # Value is interpreted to be a resource path for fetching the actual (versioned) + # secret data for this secret. For example, this would be a Google Cloud Secret + # Manager secret version resource path like: "projects/my-project/secrets/my- + # secret/versions/latest". # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -927,8 +889,8 @@ module Google class NotifierSecretRef include Google::Apis::Core::Hashable - # The value of `secret_ref` should be a `name` that is registered in a - # `Secret` in the `secrets` list of the `Spec`. + # The value of `secret_ref` should be a `name` that is registered in a `Secret` + # in the `secrets` list of the `Spec`. # Corresponds to the JSON property `secretRef` # @return [String] attr_accessor :secret_ref @@ -974,47 +936,45 @@ module Google class Operation 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. + # 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). + # 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::CloudbuildV1alpha1::Status] 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. + # 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``. + # 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`. + # 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 @@ -1037,9 +997,9 @@ module Google class RepoSource include Google::Apis::Core::Hashable - # Regex matching branches to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regex matching branches to build. The syntax of the regular expressions + # accepted is the syntax accepted by RE2 and described at https://github.com/ + # google/re2/wiki/Syntax # Corresponds to the JSON property `branchName` # @return [String] attr_accessor :branch_name @@ -1049,15 +1009,14 @@ module Google # @return [String] attr_accessor :commit_sha - # Directory, relative to the source root, in which to run the build. - # This must be a relative path. If a step's `dir` is specified and is an - # absolute path, this value is ignored for that step's execution. + # Directory, relative to the source root, in which to run the build. This must + # be a relative path. If a step's `dir` is specified and is an absolute path, + # this value is ignored for that step's execution. # Corresponds to the JSON property `dir` # @return [String] attr_accessor :dir - # Only trigger a build if the revision regex does NOT match the revision - # regex. + # Only trigger a build if the revision regex does NOT match the revision regex. # Corresponds to the JSON property `invertRegex` # @return [Boolean] attr_accessor :invert_regex @@ -1074,15 +1033,15 @@ module Google # @return [String] attr_accessor :repo_name - # Substitutions to use in a triggered build. - # Should only be used with RunBuildTrigger + # Substitutions to use in a triggered build. Should only be used with + # RunBuildTrigger # Corresponds to the JSON property `substitutions` # @return [Hash] attr_accessor :substitutions - # Regex matching tags to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regex matching tags to build. The syntax of the regular expressions accepted + # is the syntax accepted by RE2 and described at https://github.com/google/re2/ + # wiki/Syntax # Corresponds to the JSON property `tagName` # @return [String] attr_accessor :tag_name @@ -1118,17 +1077,15 @@ module Google # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan] attr_accessor :artifact_timing - # List of build step digests, in the order corresponding to build step - # indices. + # List of build step digests, in the order corresponding to build step indices. # Corresponds to the JSON property `buildStepImages` # @return [Array] attr_accessor :build_step_images # List of build step outputs, produced by builder images, in the order - # corresponding to build step indices. - # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) - # can produce this output by writing to `$BUILDER_OUTPUT/output`. - # Only the first 4KB of data is stored. + # corresponding to build step indices. [Cloud Builders](https://cloud.google.com/ + # cloud-build/docs/cloud-builders) can produce this output by writing to `$ + # BUILDER_OUTPUT/output`. Only the first 4KB of data is stored. # Corresponds to the JSON property `buildStepOutputs` # @return [Array] attr_accessor :build_step_outputs @@ -1162,8 +1119,8 @@ module Google class SmtpDelivery include Google::Apis::Core::Hashable - # This is the SMTP account/email that appears in the `From:` of the email. - # If empty, it is assumed to be sender. + # This is the SMTP account/email that appears in the `From:` of the email. If + # empty, it is assumed to be sender. # Corresponds to the JSON property `fromAddress` # @return [String] attr_accessor :from_address @@ -1179,8 +1136,8 @@ module Google # @return [String] attr_accessor :port - # This is the list of addresses to which we send the email (i.e. in the `To:` - # of the email). + # This is the list of addresses to which we send the email (i.e. in the `To:` of + # the email). # Corresponds to the JSON property `recipientAddresses` # @return [Array] attr_accessor :recipient_addresses @@ -1210,8 +1167,8 @@ module Google end end - # Pairs a set of secret environment variables containing encrypted - # values with the Cloud KMS key to use to decrypt the value. + # Pairs a set of secret environment variables containing encrypted values with + # the Cloud KMS key to use to decrypt the value. class Secret include Google::Apis::Core::Hashable @@ -1220,11 +1177,10 @@ module Google # @return [String] attr_accessor :kms_key_name - # Map of environment variable name to its encrypted value. - # Secret environment variables must be unique across all of a build's - # secrets, and must be used by at least one build step. Values can be at most - # 64 KB in size. There can be at most 100 secret values across all of a - # build's secrets. + # Map of environment variable name to its encrypted value. Secret environment + # variables must be unique across all of a build's secrets, and must be used by + # at least one build step. Values can be at most 64 KB in size. There can be at + # most 100 secret values across all of a build's secrets. # Corresponds to the JSON property `secretEnv` # @return [Hash] attr_accessor :secret_env @@ -1241,8 +1197,8 @@ module Google end # SlackDelivery is the delivery configuration for delivering Slack messages via - # webhooks. See Slack webhook documentation at: - # https://api.slack.com/messaging/webhooks. + # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/ + # webhooks. class SlackDelivery include Google::Apis::Core::Hashable @@ -1293,13 +1249,12 @@ module Google include Google::Apis::Core::Hashable # Output only. Hash(es) of the build source, which can be used to verify that - # the original source integrity was maintained in the build. Note that - # `FileHashes` will only be populated if `BuildOptions` has requested a - # `SourceProvenanceHash`. - # The keys to this map are file paths used as build source and the values - # contain the hash values for those files. - # If the build source came in a single package such as a gzipped tarfile - # (`.tar.gz`), the `FileHash` will be for the single path to that file. + # the original source integrity was maintained in the build. Note that ` + # FileHashes` will only be populated if `BuildOptions` has requested a ` + # SourceProvenanceHash`. The keys to this map are file paths used as build + # source and the values contain the hash values for those files. If the build + # source came in a single package such as a gzipped tarfile (`.tar.gz`), the ` + # FileHash` will be for the single path to that file. # Corresponds to the JSON property `fileHashes` # @return [Hash] attr_accessor :file_hashes @@ -1326,12 +1281,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1340,15 +1295,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1369,23 +1324,21 @@ module Google class StorageSource include Google::Apis::Core::Hashable - # Google Cloud Storage bucket containing the source (see - # [Bucket Name + # Google Cloud Storage bucket containing the source (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) # ). # Corresponds to the JSON property `bucket` # @return [String] attr_accessor :bucket - # Google Cloud Storage generation for the object. If the generation is - # omitted, the latest generation will be used. + # Google Cloud Storage generation for the object. If the generation is omitted, + # the latest generation will be used. # Corresponds to the JSON property `generation` # @return [Fixnum] attr_accessor :generation - # Google Cloud Storage object containing the source. - # This object must be a gzipped archive file (`.tar.gz`) containing source to - # build. + # Google Cloud Storage object containing the source. This object must be a + # gzipped archive file (`.tar.gz`) containing source to build. # Corresponds to the JSON property `object` # @return [String] attr_accessor :object @@ -1432,16 +1385,16 @@ module Google class Volume include Google::Apis::Core::Hashable - # Name of the volume to mount. - # Volume names must be unique per build step and must be valid names for - # Docker volumes. Each named volume must be used by at least two build steps. + # Name of the volume to mount. Volume names must be unique per build step and + # must be valid names for Docker volumes. Each named volume must be used by at + # least two build steps. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Path at which to mount the volume. - # Paths must be absolute and cannot conflict with other volume paths on the - # same build step or with certain reserved volume paths. + # Path at which to mount the volume. Paths must be absolute and cannot conflict + # with other volume paths on the same build step or with certain reserved volume + # paths. # Corresponds to the JSON property `path` # @return [String] attr_accessor :path @@ -1462,28 +1415,24 @@ module Google class WorkerConfig include Google::Apis::Core::Hashable - # Size of the disk attached to the worker, in GB. - # See https://cloud.google.com/compute/docs/disks/ - # If `0` is specified, Cloud Build will use a standard disk size. - # `disk_size` is overridden if you specify a different disk size in - # `build_options`. In this case, a VM with a disk size specified in the - # `build_options` will be created on demand at build time. For more - # information see - # https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects. + # Size of the disk attached to the worker, in GB. See https://cloud.google.com/ + # compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk + # size. `disk_size` is overridden if you specify a different disk size in ` + # build_options`. In this case, a VM with a disk size specified in the ` + # build_options` will be created on demand at build time. For more information + # see https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects. # builds#buildoptions # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb - # Machine Type of the worker, such as n1-standard-1. - # See https://cloud.google.com/compute/docs/machine-types. - # If left blank, Cloud Build will use a standard unspecified machine to - # create the worker pool. - # `machine_type` is overridden if you specify a different machine type in - # `build_options`. In this case, the VM specified in the `build_options` - # will be created on demand at build time. For more information see - # https://cloud.google.com/cloud-build/docs/speeding-up-builds# - # using_custom_virtual_machine_sizes + # Machine Type of the worker, such as n1-standard-1. See https://cloud.google. + # com/compute/docs/machine-types. If left blank, Cloud Build will use a standard + # unspecified machine to create the worker pool. `machine_type` is overridden if + # you specify a different machine type in `build_options`. In this case, the VM + # specified in the `build_options` will be created on demand at build time. For + # more information see https://cloud.google.com/cloud-build/docs/speeding-up- + # builds#using_custom_virtual_machine_sizes # Corresponds to the JSON property `machineType` # @return [String] attr_accessor :machine_type @@ -1493,9 +1442,9 @@ module Google # @return [Google::Apis::CloudbuildV1alpha1::Network] attr_accessor :network - # The tag applied to the worker, and the same tag used by the firewall rule. - # It is used to identify the Cloud Build workers among other VMs. - # The default value for tag is `worker`. + # The tag applied to the worker, and the same tag used by the firewall rule. It + # is used to identify the Cloud Build workers among other VMs. The default value + # for tag is `worker`. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -1513,23 +1462,21 @@ module Google end end - # Configuration for a WorkerPool to run the builds. - # Workers are machines that Cloud Build uses to run your builds. By default, - # all workers run in a project owned by Cloud Build. To have full control over - # the workers that execute your builds -- such as enabling them to access - # private resources on your private network -- you can request Cloud Build to - # run the workers in your own project by creating a custom workers pool. + # Configuration for a WorkerPool to run the builds. Workers are machines that + # Cloud Build uses to run your builds. By default, all workers run in a project + # owned by Cloud Build. To have full control over the workers that execute your + # builds -- such as enabling them to access private resources on your private + # network -- you can request Cloud Build to run the workers in your own project + # by creating a custom workers pool. class WorkerPool include Google::Apis::Core::Hashable - # Output only. Time at which the request to create the `WorkerPool` was - # received. + # Output only. Time at which the request to create the `WorkerPool` was received. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # Output only. Time at which the request to delete the `WorkerPool` was - # received. + # Output only. Time at which the request to delete the `WorkerPool` was received. # Corresponds to the JSON property `deleteTime` # @return [String] attr_accessor :delete_time @@ -1544,18 +1491,17 @@ module Google # @return [String] attr_accessor :project_id - # List of regions to create the `WorkerPool`. Regions can't be empty. - # If Cloud Build adds a new GCP region in the future, the existing - # `WorkerPool` will not be enabled in the new region automatically; - # you must add the new region to the `regions` field to enable the - # `WorkerPool` in that region. + # List of regions to create the `WorkerPool`. Regions can't be empty. If Cloud + # Build adds a new GCP region in the future, the existing `WorkerPool` will not + # be enabled in the new region automatically; you must add the new region to the + # `regions` field to enable the `WorkerPool` in that region. # Corresponds to the JSON property `regions` # @return [Array] attr_accessor :regions - # Output only. The service account used to manage the `WorkerPool`. The - # service account must have the Compute Instance Admin (Beta) permission at - # the project level. + # Output only. The service account used to manage the `WorkerPool`. The service + # account must have the Compute Instance Admin (Beta) permission at the project + # level. # Corresponds to the JSON property `serviceAccountEmail` # @return [String] attr_accessor :service_account_email @@ -1565,8 +1511,7 @@ module Google # @return [String] attr_accessor :status - # Output only. Time at which the request to update the `WorkerPool` was - # received. + # Output only. Time at which the request to update the `WorkerPool` was received. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time diff --git a/generated/google/apis/cloudbuild_v1alpha1/service.rb b/generated/google/apis/cloudbuild_v1alpha1/service.rb index 5d92dcbd4..cb3dcaa94 100644 --- a/generated/google/apis/cloudbuild_v1alpha1/service.rb +++ b/generated/google/apis/cloudbuild_v1alpha1/service.rb @@ -47,15 +47,13 @@ module Google @batch_path = 'batch' end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -89,9 +87,8 @@ module Google 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. + # 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 @@ -156,8 +153,8 @@ module Google # Deletes a `WorkerPool` by its project ID and WorkerPool name. # @param [String] name - # The field will contain name of the resource requested, for example: - # "projects/project-1/workerPools/workerpool-name" + # The field will contain name of the resource requested, for example: "projects/ + # project-1/workerPools/workerpool-name" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -187,8 +184,8 @@ module Google # Returns information about a `WorkerPool`. # @param [String] name - # The field will contain name of the resource requested, for example: - # "projects/project-1/workerPools/workerpool-name" + # The field will contain name of the resource requested, for example: "projects/ + # project-1/workerPools/workerpool-name" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -248,8 +245,8 @@ module Google # Update a `WorkerPool`. # @param [String] name - # The field will contain name of the resource requested, for example: - # "projects/project-1/workerPools/workerpool-name" + # The field will contain name of the resource requested, for example: "projects/ + # project-1/workerPools/workerpool-name" # @param [Google::Apis::CloudbuildV1alpha1::WorkerPool] worker_pool_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/cloudbuild_v1alpha2.rb b/generated/google/apis/cloudbuild_v1alpha2.rb index 916350249..000f41aae 100644 --- a/generated/google/apis/cloudbuild_v1alpha2.rb +++ b/generated/google/apis/cloudbuild_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1alpha2 VERSION = 'V1alpha2' - REVISION = '20200720' + REVISION = '20200801' # 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/cloudbuild_v1alpha2/classes.rb b/generated/google/apis/cloudbuild_v1alpha2/classes.rb index 5e2b1a8a7..423fb83a1 100644 --- a/generated/google/apis/cloudbuild_v1alpha2/classes.rb +++ b/generated/google/apis/cloudbuild_v1alpha2/classes.rb @@ -22,17 +22,15 @@ module Google module Apis module CloudbuildV1alpha2 - # Files in the workspace to upload to Cloud Storage upon successful - # completion of all build steps. + # Files in the workspace to upload to Cloud Storage upon successful completion + # of all build steps. class ArtifactObjects include Google::Apis::Core::Hashable - # Cloud Storage bucket and optional object path, in the form - # "gs://bucket/path/to/somewhere/". (see [Bucket Name - # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) - # ). - # Files in the workspace matching any path pattern will be uploaded to - # Cloud Storage with this location as a prefix. + # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/ + # to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/ + # storage/docs/bucket-naming#requirements)). Files in the workspace matching any + # path pattern will be uploaded to Cloud Storage with this location as a prefix. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -59,8 +57,8 @@ module Google end end - # An artifact that was uploaded during a build. This - # is a single record in the artifact manifest JSON file. + # An artifact that was uploaded during a build. This is a single record in the + # artifact manifest JSON file. class ArtifactResult include Google::Apis::Core::Hashable @@ -69,9 +67,8 @@ module Google # @return [Array] attr_accessor :file_hash - # The path of an artifact in a Google Cloud Storage bucket, with the - # generation number. For example, - # `gs://mybucket/path/to/output.jar#generation`. + # The path of an artifact in a Google Cloud Storage bucket, with the generation + # number. For example, `gs://mybucket/path/to/output.jar#generation`. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -87,23 +84,22 @@ module Google end end - # Artifacts produced by a build that should be uploaded upon - # successful completion of all build steps. + # Artifacts produced by a build that should be uploaded upon successful + # completion of all build steps. class Artifacts include Google::Apis::Core::Hashable # A list of images to be pushed upon the successful completion of all build - # steps. - # The images will be pushed using the builder service account's credentials. - # The digests of the pushed images will be stored in the Build resource's - # results field. - # If any of the images fail to be pushed, the build is marked FAILURE. + # steps. The images will be pushed using the builder service account's + # credentials. The digests of the pushed images will be stored in the Build + # resource's results field. If any of the images fail to be pushed, the build is + # marked FAILURE. # Corresponds to the JSON property `images` # @return [Array] attr_accessor :images - # Files in the workspace to upload to Cloud Storage upon successful - # completion of all build steps. + # Files in the workspace to upload to Cloud Storage upon successful completion + # of all build steps. # Corresponds to the JSON property `objects` # @return [Google::Apis::CloudbuildV1alpha2::ArtifactObjects] attr_accessor :objects @@ -119,31 +115,27 @@ module Google end end - # A build resource in the Cloud Build API. - # At a high level, a `Build` describes where to find source code, how to build - # it (for example, the builder image to run on the source), and where to store - # the built artifacts. - # Fields can include the following variables, which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + # A build resource in the Cloud Build API. At a high level, a `Build` describes + # where to find source code, how to build it (for example, the builder image to + # run on the source), and where to store the built artifacts. Fields can include + # the following variables, which will be expanded when the build is created: - $ + # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of + # the build. - $REPO_NAME: the source repository name specified by RepoSource. - + # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag + # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA + # specified by RepoSource or resolved from the specified branch or tag. - $ + # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. class Build include Google::Apis::Core::Hashable - # Artifacts produced by a build that should be uploaded upon - # successful completion of all build steps. + # Artifacts produced by a build that should be uploaded upon successful + # completion of all build steps. # Corresponds to the JSON property `artifacts` # @return [Google::Apis::CloudbuildV1alpha2::Artifacts] attr_accessor :artifacts - # Output only. The ID of the `BuildTrigger` that triggered this build, if it - # was triggered automatically. + # Output only. The ID of the `BuildTrigger` that triggered this build, if it was + # triggered automatically. # Corresponds to the JSON property `buildTriggerId` # @return [String] attr_accessor :build_trigger_id @@ -153,9 +145,8 @@ module Google # @return [String] attr_accessor :create_time - # Output only. Time at which execution of the build was finished. - # The difference between finish_time and start_time is the duration of the - # build's execution. + # Output only. Time at which execution of the build was finished. The difference + # between finish_time and start_time is the duration of the build's execution. # Corresponds to the JSON property `finishTime` # @return [String] attr_accessor :finish_time @@ -166,12 +157,10 @@ module Google attr_accessor :id # A list of images to be pushed upon the successful completion of all build - # steps. - # The images are pushed using the builder service account's credentials. + # steps. The images are pushed using the builder service account's credentials. # The digests of the pushed images will be stored in the `Build` resource's - # results field. - # If any of the images fail to be pushed, the build status is marked - # `FAILURE`. + # results field. If any of the images fail to be pushed, the build status is + # marked `FAILURE`. # Corresponds to the JSON property `images` # @return [Array] attr_accessor :images @@ -181,11 +170,9 @@ module Google # @return [String] attr_accessor :log_url - # Google Cloud Storage bucket where logs should be written (see - # [Bucket Name + # Google Cloud Storage bucket where logs should be written (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) - # ). - # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. + # ). Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. # Corresponds to the JSON property `logsBucket` # @return [String] attr_accessor :logs_bucket @@ -200,10 +187,9 @@ module Google # @return [String] attr_accessor :project_id - # TTL in queue for this build. If provided and the build is enqueued longer - # than this value, the build will expire and the build status will be - # `EXPIRED`. - # The TTL starts ticking from create_time. + # TTL in queue for this build. If provided and the build is enqueued longer than + # this value, the build will expire and the build status will be `EXPIRED`. The + # TTL starts ticking from create_time. # Corresponds to the JSON property `queueTtl` # @return [String] attr_accessor :queue_ttl @@ -259,22 +245,18 @@ module Google # @return [Array] attr_accessor :tags - # Amount of time that this build should be allowed to run, to second - # granularity. If this amount of time elapses, work on the build will cease - # and the build status will be `TIMEOUT`. - # `timeout` starts ticking from `startTime`. - # Default time is ten minutes. + # Amount of time that this build should be allowed to run, to second granularity. + # If this amount of time elapses, work on the build will cease and the build + # status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default + # time is ten minutes. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout - # Output only. Stores timing information for phases of the build. Valid keys - # are: - # * BUILD: time to execute all build steps - # * PUSH: time to push all specified images. - # * FETCHSOURCE: time to fetch source. - # If the build does not specify source or images, - # these keys will not be included. + # Output only. Stores timing information for phases of the build. Valid keys are: + # * BUILD: time to execute all build steps * PUSH: time to push all specified + # images. * FETCHSOURCE: time to fetch source. If the build does not specify + # source or images, these keys will not be included. # Corresponds to the JSON property `timing` # @return [Hash] attr_accessor :timing @@ -315,20 +297,16 @@ module Google class BuildOperationMetadata include Google::Apis::Core::Hashable - # A build resource in the Cloud Build API. - # At a high level, a `Build` describes where to find source code, how to build - # it (for example, the builder image to run on the source), and where to store - # the built artifacts. - # Fields can include the following variables, which will be expanded when the - # build is created: - # - $PROJECT_ID: the project ID of the build. - # - $BUILD_ID: the autogenerated ID of the build. - # - $REPO_NAME: the source repository name specified by RepoSource. - # - $BRANCH_NAME: the branch name specified by RepoSource. - # - $TAG_NAME: the tag name specified by RepoSource. - # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or - # resolved from the specified branch or tag. - # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + # A build resource in the Cloud Build API. At a high level, a `Build` describes + # where to find source code, how to build it (for example, the builder image to + # run on the source), and where to store the built artifacts. Fields can include + # the following variables, which will be expanded when the build is created: - $ + # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of + # the build. - $REPO_NAME: the source repository name specified by RepoSource. - + # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag + # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA + # specified by RepoSource or resolved from the specified branch or tag. - $ + # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Corresponds to the JSON property `build` # @return [Google::Apis::CloudbuildV1alpha2::Build] attr_accessor :build @@ -347,19 +325,18 @@ module Google class BuildOptions include Google::Apis::Core::Hashable - # Requested disk size for the VM that runs the build. Note that this is *NOT* - # "disk free"; some of the space will be used by the operating system and - # build utilities. Also note that this is the minimum disk size that will be - # allocated for the build -- the build may run with a larger disk than - # requested. At present, the maximum disk size is 1000GB; builds that request - # more than the maximum are rejected with an error. + # Requested disk size for the VM that runs the build. Note that this is *NOT* " + # disk free"; some of the space will be used by the operating system and build + # utilities. Also note that this is the minimum disk size that will be allocated + # for the build -- the build may run with a larger disk than requested. At + # present, the maximum disk size is 1000GB; builds that request more than the + # maximum are rejected with an error. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb - # Option to specify whether or not to apply bash style string - # operations to the substitutions. - # NOTE: this is always enabled for triggered builds and cannot be + # Option to specify whether or not to apply bash style string operations to the + # substitutions. NOTE: this is always enabled for triggered builds and cannot be # overridden in the build configuration file. # Corresponds to the JSON property `dynamicSubstitutions` # @return [Boolean] @@ -367,22 +344,21 @@ module Google alias_method :dynamic_substitutions?, :dynamic_substitutions # A list of global environment variable definitions that will exist for all - # build steps in this build. If a variable is defined in both globally and in - # a build step, the variable will use the build step value. - # The elements are of the form "KEY=VALUE" for the environment variable "KEY" - # being given the value "VALUE". + # build steps in this build. If a variable is defined in both globally and in a + # build step, the variable will use the build step value. The elements are of + # the form "KEY=VALUE" for the environment variable "KEY" being given the value " + # VALUE". # Corresponds to the JSON property `env` # @return [Array] attr_accessor :env - # Option to define build log streaming behavior to Google Cloud - # Storage. + # Option to define build log streaming behavior to Google Cloud Storage. # Corresponds to the JSON property `logStreamingOption` # @return [String] attr_accessor :log_streaming_option - # Option to specify the logging mode, which determines if and where build - # logs are stored. + # Option to specify the logging mode, which determines if and where build logs + # are stored. # Corresponds to the JSON property `logging` # @return [String] attr_accessor :logging @@ -397,10 +373,9 @@ module Google # @return [String] attr_accessor :requested_verify_option - # A list of global environment variables, which are encrypted using a Cloud - # Key Management Service crypto key. These values must be specified in the - # build's `Secret`. These variables will be available to all build steps - # in this build. + # A list of global environment variables, which are encrypted using a Cloud Key + # Management Service crypto key. These values must be specified in the build's ` + # Secret`. These variables will be available to all build steps in this build. # Corresponds to the JSON property `secretEnv` # @return [Array] attr_accessor :secret_env @@ -410,28 +385,25 @@ module Google # @return [Array] attr_accessor :source_provenance_hash - # Option to specify behavior when there is an error in the substitution - # checks. - # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot - # be overridden in the build configuration file. + # Option to specify behavior when there is an error in the substitution checks. + # NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be + # overridden in the build configuration file. # Corresponds to the JSON property `substitutionOption` # @return [String] attr_accessor :substitution_option - # Global list of volumes to mount for ALL build steps - # Each volume is created as an empty volume prior to starting the build - # process. Upon completion of the build, volumes and their contents are - # discarded. Global volume names and paths cannot conflict with the volumes - # defined a build step. - # Using a global volume in a build with only one step is not valid as - # it is indicative of a build request with an incorrect configuration. + # Global list of volumes to mount for ALL build steps Each volume is created as + # an empty volume prior to starting the build process. Upon completion of the + # build, volumes and their contents are discarded. Global volume names and paths + # cannot conflict with the volumes defined a build step. Using a global volume + # in a build with only one step is not valid as it is indicative of a build + # request with an incorrect configuration. # Corresponds to the JSON property `volumes` # @return [Array] attr_accessor :volumes - # Option to specify a `WorkerPool` for the build. - # Format: projects/`project`/workerPools/`workerPool` - # This field is experimental. + # Option to specify a `WorkerPool` for the build. Format: projects/`project`/ + # locations/`location`/workerPools/`workerPool` This field is experimental. # Corresponds to the JSON property `workerPool` # @return [String] attr_accessor :worker_pool @@ -461,61 +433,56 @@ module Google class BuildStep include Google::Apis::Core::Hashable - # A list of arguments that will be presented to the step when it is started. - # If the image used to run the step's container has an entrypoint, the `args` - # are used as arguments to that entrypoint. If the image does not define - # an entrypoint, the first element in args is used as the entrypoint, - # and the remainder will be used as arguments. + # A list of arguments that will be presented to the step when it is started. If + # the image used to run the step's container has an entrypoint, the `args` are + # used as arguments to that entrypoint. If the image does not define an + # entrypoint, the first element in args is used as the entrypoint, and the + # remainder will be used as arguments. # Corresponds to the JSON property `args` # @return [Array] attr_accessor :args - # Working directory to use when running this step's container. - # If this value is a relative path, it is relative to the build's working - # directory. If this value is absolute, it may be outside the build's working - # directory, in which case the contents of the path may not be persisted - # across build step executions, unless a `volume` for that path is specified. - # If the build specifies a `RepoSource` with `dir` and a step with a `dir`, - # which specifies an absolute path, the `RepoSource` `dir` is ignored for - # the step's execution. + # Working directory to use when running this step's container. If this value is + # a relative path, it is relative to the build's working directory. If this + # value is absolute, it may be outside the build's working directory, in which + # case the contents of the path may not be persisted across build step + # executions, unless a `volume` for that path is specified. If the build + # specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies + # an absolute path, the `RepoSource` `dir` is ignored for the step's execution. # Corresponds to the JSON property `dir` # @return [String] attr_accessor :dir - # Entrypoint to be used instead of the build step image's default entrypoint. - # If unset, the image's default entrypoint is used. + # Entrypoint to be used instead of the build step image's default entrypoint. If + # unset, the image's default entrypoint is used. # Corresponds to the JSON property `entrypoint` # @return [String] attr_accessor :entrypoint - # A list of environment variable definitions to be used when running a step. - # The elements are of the form "KEY=VALUE" for the environment variable "KEY" - # being given the value "VALUE". + # A list of environment variable definitions to be used when running a step. The + # elements are of the form "KEY=VALUE" for the environment variable "KEY" being + # given the value "VALUE". # Corresponds to the JSON property `env` # @return [Array] attr_accessor :env - # Unique identifier for this build step, used in `wait_for` to - # reference this build step as a dependency. + # Unique identifier for this build step, used in `wait_for` to reference this + # build step as a dependency. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Required. The name of the container image that will run this particular - # build step. - # If the image is available in the host's Docker daemon's cache, it - # will be run directly. If not, the host will attempt to pull the image - # first, using the builder service account's credentials if necessary. - # The Docker daemon's cache will already have the latest versions of all of - # the officially supported build steps - # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/ - # GoogleCloudPlatform/cloud-builders)). - # The Docker daemon will also have cached many of the layers for some popular - # images, like "ubuntu", "debian", but they will be refreshed at the time you - # attempt to use them. - # If you built an image in a previous build step, it will be stored in the - # host's Docker daemon's cache and is available to use as the name for a - # later build step. + # Required. The name of the container image that will run this particular build + # step. If the image is available in the host's Docker daemon's cache, it will + # be run directly. If not, the host will attempt to pull the image first, using + # the builder service account's credentials if necessary. The Docker daemon's + # cache will already have the latest versions of all of the officially supported + # build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https:// + # github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also + # have cached many of the layers for some popular images, like "ubuntu", "debian" + # , but they will be refreshed at the time you attempt to use them. If you built + # an image in a previous build step, it will be stored in the host's Docker + # daemon's cache and is available to use as the name for a later build step. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -526,22 +493,22 @@ module Google attr_accessor :pull_timing # A list of environment variables which are encrypted using a Cloud Key - # Management Service crypto key. These values must be specified in the - # build's `Secret`. + # Management Service crypto key. These values must be specified in the build's ` + # Secret`. # Corresponds to the JSON property `secretEnv` # @return [Array] attr_accessor :secret_env - # Output only. Status of the build step. At this time, build step status is - # only updated on build completion; step status is not updated in real-time - # as the build progresses. + # Output only. Status of the build step. At this time, build step status is only + # updated on build completion; step status is not updated in real-time as the + # build progresses. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Time limit for executing this build step. If not defined, the step has no - # time limit and will be allowed to continue to run until either it completes - # or the build itself times out. + # Time limit for executing this build step. If not defined, the step has no time + # limit and will be allowed to continue to run until either it completes or the + # build itself times out. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout @@ -551,21 +518,19 @@ module Google # @return [Google::Apis::CloudbuildV1alpha2::TimeSpan] attr_accessor :timing - # List of volumes to mount into the build step. - # Each volume is created as an empty volume prior to execution of the - # build step. Upon completion of the build, volumes and their contents are - # discarded. - # Using a named volume in only one step is not valid as it is indicative - # of a build request with an incorrect configuration. + # List of volumes to mount into the build step. Each volume is created as an + # empty volume prior to execution of the build step. Upon completion of the + # build, volumes and their contents are discarded. Using a named volume in only + # one step is not valid as it is indicative of a build request with an incorrect + # configuration. # Corresponds to the JSON property `volumes` # @return [Array] attr_accessor :volumes - # The ID(s) of the step(s) that this build step depends on. - # This build step will not start until all the build steps in `wait_for` - # have completed successfully. If `wait_for` is empty, this build step will - # start when all previous build steps in the `Build.Steps` list have - # completed successfully. + # The ID(s) of the step(s) that this build step depends on. This build step will + # not start until all the build steps in `wait_for` have completed successfully. + # If `wait_for` is empty, this build step will start when all previous build + # steps in the `Build.Steps` list have completed successfully. # Corresponds to the JSON property `waitFor` # @return [Array] attr_accessor :wait_for @@ -637,13 +602,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -744,12 +707,11 @@ module Google class NetworkConfig include Google::Apis::Core::Hashable - # Required. Immutable. The network definition that the workers are peered to. - # If this section is left empty, the workers will be peered to - # WorkerPool.project_id on the default network. Must be in the format - # `projects/`project`/global/networks/`network``, where `project` - # is a project number, such as `12345`, and `network` is the name of a - # VPC network in the project. + # Required. Immutable. The network definition that the workers are peered to. If + # this section is left empty, the workers will be peered to WorkerPool. + # project_id on the default network. Must be in the format `projects/`project`/ + # global/networks/`network``, where `project` is a project number, such as ` + # 12345`, and `network` is the name of a VPC network in the project. # Corresponds to the JSON property `peeredNetwork` # @return [String] attr_accessor :peered_network @@ -769,9 +731,9 @@ module Google class Notification include Google::Apis::Core::Hashable - # The filter string to use for notification filtering. - # Currently, this is assumed to be a CEL program. - # See https://opensource.google/projects/cel for more. + # The filter string to use for notification filtering. Currently, this is + # assumed to be a CEL program. See https://opensource.google/projects/cel for + # more. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -782,8 +744,8 @@ module Google attr_accessor :http_delivery # SlackDelivery is the delivery configuration for delivering Slack messages via - # webhooks. See Slack webhook documentation at: - # https://api.slack.com/messaging/webhooks. + # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/ + # webhooks. # Corresponds to the JSON property `slackDelivery` # @return [Google::Apis::CloudbuildV1alpha2::SlackDelivery] attr_accessor :slack_delivery @@ -855,15 +817,15 @@ module Google class NotifierMetadata include Google::Apis::Core::Hashable - # The human-readable and user-given name for the notifier. - # For example: "repo-merge-email-notifier". + # The human-readable and user-given name for the notifier. For example: "repo- + # merge-email-notifier". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The string representing the name and version of notifier to deploy. - # Expected to be of the form of "/:". - # For example: "gcr.io/my-project/notifiers/smtp:1.2.34". + # The string representing the name and version of notifier to deploy. Expected + # to be of the form of "/:". For example: "gcr.io/my-project/notifiers/smtp:1.2. + # 34". # Corresponds to the JSON property `notifier` # @return [String] attr_accessor :notifier @@ -884,16 +846,16 @@ module Google class NotifierSecret include Google::Apis::Core::Hashable - # Name is the local name of the secret, such as the verbatim string - # "my-smtp-password". + # Name is the local name of the secret, such as the verbatim string "my-smtp- + # password". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Value is interpreted to be a resource path for fetching the actual - # (versioned) secret data for this secret. For example, this would be a - # Google Cloud Secret Manager secret version resource path like: - # "projects/my-project/secrets/my-secret/versions/latest". + # Value is interpreted to be a resource path for fetching the actual (versioned) + # secret data for this secret. For example, this would be a Google Cloud Secret + # Manager secret version resource path like: "projects/my-project/secrets/my- + # secret/versions/latest". # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -914,8 +876,8 @@ module Google class NotifierSecretRef include Google::Apis::Core::Hashable - # The value of `secret_ref` should be a `name` that is registered in a - # `Secret` in the `secrets` list of the `Spec`. + # The value of `secret_ref` should be a `name` that is registered in a `Secret` + # in the `secrets` list of the `Spec`. # Corresponds to the JSON property `secretRef` # @return [String] attr_accessor :secret_ref @@ -961,47 +923,45 @@ module Google class Operation 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. + # 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). + # 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::CloudbuildV1alpha2::Status] 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. + # 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``. + # 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`. + # 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 @@ -1024,9 +984,9 @@ module Google class RepoSource include Google::Apis::Core::Hashable - # Regex matching branches to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regex matching branches to build. The syntax of the regular expressions + # accepted is the syntax accepted by RE2 and described at https://github.com/ + # google/re2/wiki/Syntax # Corresponds to the JSON property `branchName` # @return [String] attr_accessor :branch_name @@ -1036,15 +996,14 @@ module Google # @return [String] attr_accessor :commit_sha - # Directory, relative to the source root, in which to run the build. - # This must be a relative path. If a step's `dir` is specified and is an - # absolute path, this value is ignored for that step's execution. + # Directory, relative to the source root, in which to run the build. This must + # be a relative path. If a step's `dir` is specified and is an absolute path, + # this value is ignored for that step's execution. # Corresponds to the JSON property `dir` # @return [String] attr_accessor :dir - # Only trigger a build if the revision regex does NOT match the revision - # regex. + # Only trigger a build if the revision regex does NOT match the revision regex. # Corresponds to the JSON property `invertRegex` # @return [Boolean] attr_accessor :invert_regex @@ -1061,15 +1020,15 @@ module Google # @return [String] attr_accessor :repo_name - # Substitutions to use in a triggered build. - # Should only be used with RunBuildTrigger + # Substitutions to use in a triggered build. Should only be used with + # RunBuildTrigger # Corresponds to the JSON property `substitutions` # @return [Hash] attr_accessor :substitutions - # Regex matching tags to build. - # The syntax of the regular expressions accepted is the syntax accepted by - # RE2 and described at https://github.com/google/re2/wiki/Syntax + # Regex matching tags to build. The syntax of the regular expressions accepted + # is the syntax accepted by RE2 and described at https://github.com/google/re2/ + # wiki/Syntax # Corresponds to the JSON property `tagName` # @return [String] attr_accessor :tag_name @@ -1105,17 +1064,15 @@ module Google # @return [Google::Apis::CloudbuildV1alpha2::TimeSpan] attr_accessor :artifact_timing - # List of build step digests, in the order corresponding to build step - # indices. + # List of build step digests, in the order corresponding to build step indices. # Corresponds to the JSON property `buildStepImages` # @return [Array] attr_accessor :build_step_images # List of build step outputs, produced by builder images, in the order - # corresponding to build step indices. - # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) - # can produce this output by writing to `$BUILDER_OUTPUT/output`. - # Only the first 4KB of data is stored. + # corresponding to build step indices. [Cloud Builders](https://cloud.google.com/ + # cloud-build/docs/cloud-builders) can produce this output by writing to `$ + # BUILDER_OUTPUT/output`. Only the first 4KB of data is stored. # Corresponds to the JSON property `buildStepOutputs` # @return [Array] attr_accessor :build_step_outputs @@ -1149,8 +1106,8 @@ module Google class SmtpDelivery include Google::Apis::Core::Hashable - # This is the SMTP account/email that appears in the `From:` of the email. - # If empty, it is assumed to be sender. + # This is the SMTP account/email that appears in the `From:` of the email. If + # empty, it is assumed to be sender. # Corresponds to the JSON property `fromAddress` # @return [String] attr_accessor :from_address @@ -1166,8 +1123,8 @@ module Google # @return [String] attr_accessor :port - # This is the list of addresses to which we send the email (i.e. in the `To:` - # of the email). + # This is the list of addresses to which we send the email (i.e. in the `To:` of + # the email). # Corresponds to the JSON property `recipientAddresses` # @return [Array] attr_accessor :recipient_addresses @@ -1197,8 +1154,8 @@ module Google end end - # Pairs a set of secret environment variables containing encrypted - # values with the Cloud KMS key to use to decrypt the value. + # Pairs a set of secret environment variables containing encrypted values with + # the Cloud KMS key to use to decrypt the value. class Secret include Google::Apis::Core::Hashable @@ -1207,11 +1164,10 @@ module Google # @return [String] attr_accessor :kms_key_name - # Map of environment variable name to its encrypted value. - # Secret environment variables must be unique across all of a build's - # secrets, and must be used by at least one build step. Values can be at most - # 64 KB in size. There can be at most 100 secret values across all of a - # build's secrets. + # Map of environment variable name to its encrypted value. Secret environment + # variables must be unique across all of a build's secrets, and must be used by + # at least one build step. Values can be at most 64 KB in size. There can be at + # most 100 secret values across all of a build's secrets. # Corresponds to the JSON property `secretEnv` # @return [Hash] attr_accessor :secret_env @@ -1228,8 +1184,8 @@ module Google end # SlackDelivery is the delivery configuration for delivering Slack messages via - # webhooks. See Slack webhook documentation at: - # https://api.slack.com/messaging/webhooks. + # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/ + # webhooks. class SlackDelivery include Google::Apis::Core::Hashable @@ -1280,13 +1236,12 @@ module Google include Google::Apis::Core::Hashable # Output only. Hash(es) of the build source, which can be used to verify that - # the original source integrity was maintained in the build. Note that - # `FileHashes` will only be populated if `BuildOptions` has requested a - # `SourceProvenanceHash`. - # The keys to this map are file paths used as build source and the values - # contain the hash values for those files. - # If the build source came in a single package such as a gzipped tarfile - # (`.tar.gz`), the `FileHash` will be for the single path to that file. + # the original source integrity was maintained in the build. Note that ` + # FileHashes` will only be populated if `BuildOptions` has requested a ` + # SourceProvenanceHash`. The keys to this map are file paths used as build + # source and the values contain the hash values for those files. If the build + # source came in a single package such as a gzipped tarfile (`.tar.gz`), the ` + # FileHash` will be for the single path to that file. # Corresponds to the JSON property `fileHashes` # @return [Hash] attr_accessor :file_hashes @@ -1313,12 +1268,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1327,15 +1282,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1356,23 +1311,21 @@ module Google class StorageSource include Google::Apis::Core::Hashable - # Google Cloud Storage bucket containing the source (see - # [Bucket Name + # Google Cloud Storage bucket containing the source (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) # ). # Corresponds to the JSON property `bucket` # @return [String] attr_accessor :bucket - # Google Cloud Storage generation for the object. If the generation is - # omitted, the latest generation will be used. + # Google Cloud Storage generation for the object. If the generation is omitted, + # the latest generation will be used. # Corresponds to the JSON property `generation` # @return [Fixnum] attr_accessor :generation - # Google Cloud Storage object containing the source. - # This object must be a gzipped archive file (`.tar.gz`) containing source to - # build. + # Google Cloud Storage object containing the source. This object must be a + # gzipped archive file (`.tar.gz`) containing source to build. # Corresponds to the JSON property `object` # @return [String] attr_accessor :object @@ -1419,16 +1372,16 @@ module Google class Volume include Google::Apis::Core::Hashable - # Name of the volume to mount. - # Volume names must be unique per build step and must be valid names for - # Docker volumes. Each named volume must be used by at least two build steps. + # Name of the volume to mount. Volume names must be unique per build step and + # must be valid names for Docker volumes. Each named volume must be used by at + # least two build steps. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Path at which to mount the volume. - # Paths must be absolute and cannot conflict with other volume paths on the - # same build step or with certain reserved volume paths. + # Path at which to mount the volume. Paths must be absolute and cannot conflict + # with other volume paths on the same build step or with certain reserved volume + # paths. # Corresponds to the JSON property `path` # @return [String] attr_accessor :path @@ -1449,17 +1402,16 @@ module Google class WorkerConfig include Google::Apis::Core::Hashable - # Size of the disk attached to the worker, in GB. - # See https://cloud.google.com/compute/docs/disks/ - # If `0` is specified, Cloud Build will use a standard disk size. + # Size of the disk attached to the worker, in GB. See https://cloud.google.com/ + # compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk + # size. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb - # Machine Type of the worker, such as n1-standard-1. - # See https://cloud.google.com/compute/docs/machine-types. - # If left blank, Cloud Build will use a standard unspecified machine to - # create the worker pool. + # Machine Type of the worker, such as n1-standard-1. See https://cloud.google. + # com/compute/docs/machine-types. If left blank, Cloud Build will use a standard + # unspecified machine to create the worker pool. # Corresponds to the JSON property `machineType` # @return [String] attr_accessor :machine_type @@ -1475,31 +1427,28 @@ module Google end end - # Configuration for a WorkerPool to run the builds. - # Workers are machines that Cloud Build uses to run your builds. By default, - # all workers run in a project owned by Cloud Build. To have full control over - # the workers that execute your builds -- such as enabling them to access - # private resources on your private network -- you can request Cloud Build to - # run the workers in your own project by creating a custom workers pool. + # Configuration for a WorkerPool to run the builds. Workers are machines that + # Cloud Build uses to run your builds. By default, all workers run in a project + # owned by Cloud Build. To have full control over the workers that execute your + # builds -- such as enabling them to access private resources on your private + # network -- you can request Cloud Build to run the workers in your own project + # by creating a custom workers pool. class WorkerPool include Google::Apis::Core::Hashable - # Output only. Time at which the request to create the `WorkerPool` was - # received. + # Output only. Time at which the request to create the `WorkerPool` was received. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # Output only. Time at which the request to delete the `WorkerPool` was - # received. + # Output only. Time at which the request to delete the `WorkerPool` was received. # Corresponds to the JSON property `deleteTime` # @return [String] attr_accessor :delete_time - # Output only. The resource name of the `WorkerPool`. - # Format of the name is `projects/`project_id`/workerPools/`worker_pool_id``, - # where the value of `worker_pool_id` is provided in the CreateWorkerPool - # request. + # Output only. The resource name of the `WorkerPool`. Format of the name is ` + # projects/`project_id`/workerPools/`worker_pool_id``, where the value of ` + # worker_pool_id` is provided in the CreateWorkerPool request. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1510,9 +1459,8 @@ module Google attr_accessor :network_config # Required. Immutable. The region where the `WorkerPool` runs. Only "us-central1" - # is currently - # supported. - # Note that `region` cannot be changed once the `WorkerPool` is created. + # is currently supported. Note that `region` cannot be changed once the ` + # WorkerPool` is created. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -1522,8 +1470,7 @@ module Google # @return [String] attr_accessor :state - # Output only. Time at which the request to update the `WorkerPool` was - # received. + # Output only. Time at which the request to update the `WorkerPool` was received. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time diff --git a/generated/google/apis/cloudbuild_v1alpha2/service.rb b/generated/google/apis/cloudbuild_v1alpha2/service.rb index 7a8492f8a..648df2598 100644 --- a/generated/google/apis/cloudbuild_v1alpha2/service.rb +++ b/generated/google/apis/cloudbuild_v1alpha2/service.rb @@ -47,15 +47,13 @@ module Google @batch_path = 'batch' end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -89,9 +87,8 @@ module Google 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. + # 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 @@ -123,15 +120,13 @@ module Google # Creates a `WorkerPool` to run the builds, and returns the new worker pool. # @param [String] parent - # Required. The parent resource where this book will be created. - # Format: projects/`project` + # Required. The parent resource where this book will be created. Format: + # projects/`project` # @param [Google::Apis::CloudbuildV1alpha2::WorkerPool] worker_pool_object # @param [String] worker_pool_id # Required. Immutable. The ID to use for the `WorkerPool`, which will become the - # final component - # of the resource name. - # This value should be 1-63 characters, and valid characters - # are /a-z-/. + # final component of the resource name. This value should be 1-63 characters, + # and valid characters are /a-z-/. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -164,8 +159,8 @@ module Google # Deletes a `WorkerPool`. # @param [String] name - # Required. The name of the `WorkerPool` to delete. - # Format: projects/`project`/workerPools/`workerPool` + # Required. The name of the `WorkerPool` to delete. Format: projects/`project`/ + # workerPools/`workerPool` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -195,8 +190,8 @@ module Google # Returns details of a `WorkerPool`. # @param [String] name - # Required. The name of the `WorkerPool` to retrieve. - # Format: projects/`project`/workerPools/`workerPool` + # Required. The name of the `WorkerPool` to retrieve. Format: projects/`project`/ + # workerPools/`workerPool` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -226,8 +221,8 @@ module Google # Lists `WorkerPool`s by project. # @param [String] parent - # Required. The parent, which owns this collection of `WorkerPools`. - # Format: projects/`project` + # Required. The parent, which owns this collection of `WorkerPools`. Format: + # projects/`project` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -257,10 +252,9 @@ module Google # Updates a `WorkerPool`. # @param [String] name - # Output only. The resource name of the `WorkerPool`. - # Format of the name is `projects/`project_id`/workerPools/`worker_pool_id``, - # where the value of `worker_pool_id` is provided in the CreateWorkerPool - # request. + # Output only. The resource name of the `WorkerPool`. Format of the name is ` + # projects/`project_id`/workerPools/`worker_pool_id``, where the value of ` + # worker_pool_id` is provided in the CreateWorkerPool request. # @param [Google::Apis::CloudbuildV1alpha2::WorkerPool] worker_pool_object # @param [String] update_mask # A mask specifying which fields in `WorkerPool` should be updated. diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index d0d854a60..9dda2c8d1 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20200609' + REVISION = '20200803' # 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/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index 465b17b5b..e1313b915 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -26,28 +26,25 @@ module Google class AsymmetricDecryptRequest include Google::Apis::Core::Hashable - # Required. The data encrypted with the named CryptoKeyVersion's public - # key using OAEP. + # Required. The data encrypted with the named CryptoKeyVersion's public key + # using OAEP. # Corresponds to the JSON property `ciphertext` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :ciphertext # Optional. An optional CRC32C checksum of the AsymmetricDecryptRequest. - # ciphertext. - # If specified, KeyManagementService will verify the integrity of the - # received AsymmetricDecryptRequest.ciphertext using this checksum. - # KeyManagementService will report an error if the checksum verification - # fails. If you receive a checksum error, your client should verify that - # CRC32C(AsymmetricDecryptRequest.ciphertext) is equal to - # AsymmetricDecryptRequest.ciphertext_crc32c, and if so, perform a - # limited number of retries. A persistent mismatch may indicate an issue in - # your computation of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will + # ciphertext. If specified, KeyManagementService will verify the integrity of + # the received AsymmetricDecryptRequest.ciphertext using this checksum. + # KeyManagementService will report an error if the checksum verification fails. + # If you receive a checksum error, your client should verify that CRC32C( + # AsymmetricDecryptRequest.ciphertext) is equal to AsymmetricDecryptRequest. + # ciphertext_crc32c, and if so, perform a limited number of retries. A + # persistent mismatch may indicate an issue in your computation of the CRC32C + # checksum. Note: This field is defined as int64 for reasons of compatibility + # across different languages. However, it is a non-negative integer, which will # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # that support this type. NOTE: This field is in Beta. # Corresponds to the JSON property `ciphertextCrc32c` # @return [Fixnum] attr_accessor :ciphertext_crc32c @@ -75,29 +72,27 @@ module Google # Integrity verification field. A CRC32C checksum of the returned # AsymmetricDecryptResponse.plaintext. An integrity check of - # AsymmetricDecryptResponse.plaintext can be performed by computing the - # CRC32C checksum of AsymmetricDecryptResponse.plaintext and comparing - # your results to this field. Discard the response in case of non-matching - # checksum values, and perform a limited number of retries. A persistent - # mismatch may indicate an issue in your computation of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # AsymmetricDecryptResponse.plaintext can be performed by computing the CRC32C + # checksum of AsymmetricDecryptResponse.plaintext and comparing your results to + # this field. Discard the response in case of non-matching checksum values, and + # perform a limited number of retries. A persistent mismatch may indicate an + # issue in your computation of the CRC32C checksum. Note: This field is defined + # as int64 for reasons of compatibility across different languages. However, it + # is a non-negative integer, which will never exceed 2^32-1, and can be safely + # downconverted to uint32 in languages that support this type. NOTE: This field + # is in Beta. # Corresponds to the JSON property `plaintextCrc32c` # @return [Fixnum] attr_accessor :plaintext_crc32c # Integrity verification field. A flag indicating whether # AsymmetricDecryptRequest.ciphertext_crc32c was received by - # KeyManagementService and used for the integrity verification of the - # ciphertext. A false value of this - # field indicates either that AsymmetricDecryptRequest.ciphertext_crc32c - # was left unset or that it was not delivered to KeyManagementService. If - # you've set AsymmetricDecryptRequest.ciphertext_crc32c but this field is - # still false, discard the response and perform a limited number of retries. - # NOTE: This field is in Beta. + # KeyManagementService and used for the integrity verification of the ciphertext. + # A false value of this field indicates either that AsymmetricDecryptRequest. + # ciphertext_crc32c was left unset or that it was not delivered to + # KeyManagementService. If you've set AsymmetricDecryptRequest.ciphertext_crc32c + # but this field is still false, discard the response and perform a limited + # number of retries. NOTE: This field is in Beta. # Corresponds to the JSON property `verifiedCiphertextCrc32c` # @return [Boolean] attr_accessor :verified_ciphertext_crc32c @@ -125,19 +120,17 @@ module Google attr_accessor :digest # Optional. An optional CRC32C checksum of the AsymmetricSignRequest.digest. If - # specified, KeyManagementService will verify the integrity of the - # received AsymmetricSignRequest.digest using this checksum. - # KeyManagementService will report an error if the checksum verification - # fails. If you receive a checksum error, your client should verify that - # CRC32C(AsymmetricSignRequest.digest) is equal to - # AsymmetricSignRequest.digest_crc32c, and if so, perform a limited + # specified, KeyManagementService will verify the integrity of the received + # AsymmetricSignRequest.digest using this checksum. KeyManagementService will + # report an error if the checksum verification fails. If you receive a checksum + # error, your client should verify that CRC32C(AsymmetricSignRequest.digest) is + # equal to AsymmetricSignRequest.digest_crc32c, and if so, perform a limited # number of retries. A persistent mismatch may indicate an issue in your - # computation of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # computation of the CRC32C checksum. Note: This field is defined as int64 for + # reasons of compatibility across different languages. However, it is a non- + # negative integer, which will never exceed 2^32-1, and can be safely + # downconverted to uint32 in languages that support this type. NOTE: This field + # is in Beta. # Corresponds to the JSON property `digestCrc32c` # @return [Fixnum] attr_accessor :digest_crc32c @@ -157,9 +150,9 @@ module Google class AsymmetricSignResponse include Google::Apis::Core::Hashable - # The resource name of the CryptoKeyVersion used for signing. Check - # this field to verify that the intended resource was used for signing. - # NOTE: This field is in Beta. + # The resource name of the CryptoKeyVersion used for signing. Check this field + # to verify that the intended resource was used for signing. NOTE: This field is + # in Beta. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -171,30 +164,27 @@ module Google attr_accessor :signature # Integrity verification field. A CRC32C checksum of the returned - # AsymmetricSignResponse.signature. An integrity check of - # AsymmetricSignResponse.signature can be performed by computing the - # CRC32C checksum of AsymmetricSignResponse.signature and comparing your - # results to this field. Discard the response in case of non-matching - # checksum values, and perform a limited number of retries. A persistent - # mismatch may indicate an issue in your computation of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # AsymmetricSignResponse.signature. An integrity check of AsymmetricSignResponse. + # signature can be performed by computing the CRC32C checksum of + # AsymmetricSignResponse.signature and comparing your results to this field. + # Discard the response in case of non-matching checksum values, and perform a + # limited number of retries. A persistent mismatch may indicate an issue in your + # computation of the CRC32C checksum. Note: This field is defined as int64 for + # reasons of compatibility across different languages. However, it is a non- + # negative integer, which will never exceed 2^32-1, and can be safely + # downconverted to uint32 in languages that support this type. NOTE: This field + # is in Beta. # Corresponds to the JSON property `signatureCrc32c` # @return [Fixnum] attr_accessor :signature_crc32c - # Integrity verification field. A flag indicating whether - # AsymmetricSignRequest.digest_crc32c was received by - # KeyManagementService and used for the integrity verification of the - # digest. A false value of this field - # indicates either that AsymmetricSignRequest.digest_crc32c was left - # unset or that it was not delivered to KeyManagementService. If you've - # set AsymmetricSignRequest.digest_crc32c but this field is still false, - # discard the response and perform a limited number of retries. - # NOTE: This field is in Beta. + # Integrity verification field. A flag indicating whether AsymmetricSignRequest. + # digest_crc32c was received by KeyManagementService and used for the integrity + # verification of the digest. A false value of this field indicates either that + # AsymmetricSignRequest.digest_crc32c was left unset or that it was not + # delivered to KeyManagementService. If you've set AsymmetricSignRequest. + # digest_crc32c but this field is still false, discard the response and perform + # a limited number of retries. NOTE: This field is in Beta. # Corresponds to the JSON property `verifiedDigestCrc32c` # @return [Boolean] attr_accessor :verified_digest_crc32c @@ -213,53 +203,21 @@ module Google end end - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -268,9 +226,9 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -286,28 +244,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -333,69 +278,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::CloudkmsV1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -413,9 +346,8 @@ module Google end # A CryptoKey represents a logical key that can be used for cryptographic - # operations. - # A CryptoKey is made up of zero or more versions, - # which represent the actual key material used in cryptographic operations. + # operations. A CryptoKey is made up of zero or more versions, which represent + # the actual key material used in cryptographic operations. class CryptoKey include Google::Apis::Core::Hashable @@ -424,40 +356,34 @@ module Google # @return [String] attr_accessor :create_time - # Labels with user-defined metadata. For more information, see - # [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys). + # Labels with user-defined metadata. For more information, see [Labeling Keys]( + # https://cloud.google.com/kms/docs/labeling-keys). # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Output only. The resource name for this CryptoKey in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + # Output only. The resource name for this CryptoKey in the format `projects/*/ + # locations/*/keyRings/*/cryptoKeys/*`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # At next_rotation_time, the Key Management Service will automatically: - # 1. Create a new version of this CryptoKey. - # 2. Mark the new version as primary. - # Key rotations performed manually via - # CreateCryptoKeyVersion and - # UpdateCryptoKeyPrimaryVersion - # do not affect next_rotation_time. - # Keys with purpose - # ENCRYPT_DECRYPT support - # automatic rotation. For other keys, this field must be omitted. + # At next_rotation_time, the Key Management Service will automatically: 1. + # Create a new version of this CryptoKey. 2. Mark the new version as primary. + # Key rotations performed manually via CreateCryptoKeyVersion and + # UpdateCryptoKeyPrimaryVersion do not affect next_rotation_time. Keys with + # purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field + # must be omitted. # Corresponds to the JSON property `nextRotationTime` # @return [String] attr_accessor :next_rotation_time # A CryptoKeyVersion represents an individual cryptographic key, and the - # associated key material. - # An ENABLED version can be - # used for cryptographic operations. - # For security reasons, the raw cryptographic key material represented by a - # CryptoKeyVersion can never be viewed or exported. It can only be used to - # encrypt, decrypt, or sign data when an authorized user or application invokes - # Cloud KMS. + # associated key material. An ENABLED version can be used for cryptographic + # operations. For security reasons, the raw cryptographic key material + # represented by a CryptoKeyVersion can never be viewed or exported. It can only + # be used to encrypt, decrypt, or sign data when an authorized user or + # application invokes Cloud KMS. # Corresponds to the JSON property `primary` # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] attr_accessor :primary @@ -468,20 +394,17 @@ module Google attr_accessor :purpose # next_rotation_time will be advanced by this period when the service - # automatically rotates a key. Must be at least 24 hours and at most - # 876,000 hours. - # If rotation_period is set, next_rotation_time must also be set. - # Keys with purpose - # ENCRYPT_DECRYPT support - # automatic rotation. For other keys, this field must be omitted. + # automatically rotates a key. Must be at least 24 hours and at most 876,000 + # hours. If rotation_period is set, next_rotation_time must also be set. Keys + # with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this + # field must be omitted. # Corresponds to the JSON property `rotationPeriod` # @return [String] attr_accessor :rotation_period - # A CryptoKeyVersionTemplate specifies the properties to use when creating - # a new CryptoKeyVersion, either manually with - # CreateCryptoKeyVersion or - # automatically as a result of auto-rotation. + # A CryptoKeyVersionTemplate specifies the properties to use when creating a new + # CryptoKeyVersion, either manually with CreateCryptoKeyVersion or automatically + # as a result of auto-rotation. # Corresponds to the JSON property `versionTemplate` # @return [Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate] attr_accessor :version_template @@ -504,25 +427,22 @@ module Google end # A CryptoKeyVersion represents an individual cryptographic key, and the - # associated key material. - # An ENABLED version can be - # used for cryptographic operations. - # For security reasons, the raw cryptographic key material represented by a - # CryptoKeyVersion can never be viewed or exported. It can only be used to - # encrypt, decrypt, or sign data when an authorized user or application invokes - # Cloud KMS. + # associated key material. An ENABLED version can be used for cryptographic + # operations. For security reasons, the raw cryptographic key material + # represented by a CryptoKeyVersion can never be viewed or exported. It can only + # be used to encrypt, decrypt, or sign data when an authorized user or + # application invokes Cloud KMS. class CryptoKeyVersion include Google::Apis::Core::Hashable - # Output only. The CryptoKeyVersionAlgorithm that this - # CryptoKeyVersion supports. + # Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports. # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm # Contains an HSM-generated attestation about a key operation. For more - # information, see [Verifying attestations] - # (https://cloud.google.com/kms/docs/attest-key). + # information, see [Verifying attestations] (https://cloud.google.com/kms/docs/ + # attest-key). # Corresponds to the JSON property `attestation` # @return [Google::Apis::CloudkmsV1::KeyOperationAttestation] attr_accessor :attestation @@ -532,55 +452,50 @@ module Google # @return [String] attr_accessor :create_time - # Output only. The time this CryptoKeyVersion's key material was - # destroyed. Only present if state is - # DESTROYED. + # Output only. The time this CryptoKeyVersion's key material was destroyed. Only + # present if state is DESTROYED. # Corresponds to the JSON property `destroyEventTime` # @return [String] attr_accessor :destroy_event_time - # Output only. The time this CryptoKeyVersion's key material is scheduled - # for destruction. Only present if state is - # DESTROY_SCHEDULED. + # Output only. The time this CryptoKeyVersion's key material is scheduled for + # destruction. Only present if state is DESTROY_SCHEDULED. # Corresponds to the JSON property `destroyTime` # @return [String] attr_accessor :destroy_time # ExternalProtectionLevelOptions stores a group of additional fields for - # configuring a CryptoKeyVersion that are specific to the - # EXTERNAL protection level. + # configuring a CryptoKeyVersion that are specific to the EXTERNAL protection + # level. # Corresponds to the JSON property `externalProtectionLevelOptions` # @return [Google::Apis::CloudkmsV1::ExternalProtectionLevelOptions] attr_accessor :external_protection_level_options - # Output only. The time this CryptoKeyVersion's key material was - # generated. + # Output only. The time this CryptoKeyVersion's key material was generated. # Corresponds to the JSON property `generateTime` # @return [String] attr_accessor :generate_time - # Output only. The root cause of an import failure. Only present if - # state is + # Output only. The root cause of an import failure. Only present if state is # IMPORT_FAILED. # Corresponds to the JSON property `importFailureReason` # @return [String] attr_accessor :import_failure_reason - # Output only. The name of the ImportJob used to import this - # CryptoKeyVersion. Only present if the underlying key material was - # imported. + # Output only. The name of the ImportJob used to import this CryptoKeyVersion. + # Only present if the underlying key material was imported. # Corresponds to the JSON property `importJob` # @return [String] attr_accessor :import_job - # Output only. The time at which this CryptoKeyVersion's key material - # was imported. + # Output only. The time at which this CryptoKeyVersion's key material was + # imported. # Corresponds to the JSON property `importTime` # @return [String] attr_accessor :import_time - # Output only. The resource name for this CryptoKeyVersion in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. + # Output only. The resource name for this CryptoKeyVersion in the format ` + # projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -618,24 +533,21 @@ module Google end end - # A CryptoKeyVersionTemplate specifies the properties to use when creating - # a new CryptoKeyVersion, either manually with - # CreateCryptoKeyVersion or - # automatically as a result of auto-rotation. + # A CryptoKeyVersionTemplate specifies the properties to use when creating a new + # CryptoKeyVersion, either manually with CreateCryptoKeyVersion or automatically + # as a result of auto-rotation. class CryptoKeyVersionTemplate include Google::Apis::Core::Hashable - # Required. Algorithm to use - # when creating a CryptoKeyVersion based on this template. - # For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both - # this field is omitted and CryptoKey.purpose is - # ENCRYPT_DECRYPT. + # Required. Algorithm to use when creating a CryptoKeyVersion based on this + # template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied + # if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT. # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # ProtectionLevel to use when creating a CryptoKeyVersion based on - # this template. Immutable. Defaults to SOFTWARE. + # ProtectionLevel to use when creating a CryptoKeyVersion based on this template. + # Immutable. Defaults to SOFTWARE. # Corresponds to the JSON property `protectionLevel` # @return [String] attr_accessor :protection_level @@ -662,46 +574,40 @@ module Google # @return [String] attr_accessor :additional_authenticated_data - # Optional. An optional CRC32C checksum of the - # DecryptRequest.additional_authenticated_data. If specified, - # KeyManagementService will verify the integrity of the received - # DecryptRequest.additional_authenticated_data using this checksum. - # KeyManagementService will report an error if the checksum verification - # fails. If you receive a checksum error, your client should verify that - # CRC32C(DecryptRequest.additional_authenticated_data) is equal to - # DecryptRequest.additional_authenticated_data_crc32c, and if so, perform - # a limited number of retries. A persistent mismatch may indicate an issue in - # your computation of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # Optional. An optional CRC32C checksum of the DecryptRequest. + # additional_authenticated_data. If specified, KeyManagementService will verify + # the integrity of the received DecryptRequest.additional_authenticated_data + # using this checksum. KeyManagementService will report an error if the checksum + # verification fails. If you receive a checksum error, your client should verify + # that CRC32C(DecryptRequest.additional_authenticated_data) is equal to + # DecryptRequest.additional_authenticated_data_crc32c, and if so, perform a + # limited number of retries. A persistent mismatch may indicate an issue in your + # computation of the CRC32C checksum. Note: This field is defined as int64 for + # reasons of compatibility across different languages. However, it is a non- + # negative integer, which will never exceed 2^32-1, and can be safely + # downconverted to uint32 in languages that support this type. NOTE: This field + # is in Beta. # Corresponds to the JSON property `additionalAuthenticatedDataCrc32c` # @return [Fixnum] attr_accessor :additional_authenticated_data_crc32c - # Required. The encrypted data originally returned in - # EncryptResponse.ciphertext. + # Required. The encrypted data originally returned in EncryptResponse.ciphertext. # Corresponds to the JSON property `ciphertext` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :ciphertext # Optional. An optional CRC32C checksum of the DecryptRequest.ciphertext. If - # specified, KeyManagementService will verify the integrity of the - # received DecryptRequest.ciphertext using this checksum. - # KeyManagementService will report an error if the checksum verification - # fails. If you receive a checksum error, your client should verify that - # CRC32C(DecryptRequest.ciphertext) is equal to - # DecryptRequest.ciphertext_crc32c, and if so, perform a limited number - # of retries. A persistent mismatch may indicate an issue in your computation - # of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # specified, KeyManagementService will verify the integrity of the received + # DecryptRequest.ciphertext using this checksum. KeyManagementService will + # report an error if the checksum verification fails. If you receive a checksum + # error, your client should verify that CRC32C(DecryptRequest.ciphertext) is + # equal to DecryptRequest.ciphertext_crc32c, and if so, perform a limited number + # of retries. A persistent mismatch may indicate an issue in your computation of + # the CRC32C checksum. Note: This field is defined as int64 for reasons of + # compatibility across different languages. However, it is a non-negative + # integer, which will never exceed 2^32-1, and can be safely downconverted to + # uint32 in languages that support this type. NOTE: This field is in Beta. # Corresponds to the JSON property `ciphertextCrc32c` # @return [Fixnum] attr_accessor :ciphertext_crc32c @@ -730,19 +636,17 @@ module Google attr_accessor :plaintext # Integrity verification field. A CRC32C checksum of the returned - # DecryptResponse.plaintext. An integrity check of - # DecryptResponse.plaintext can be performed by computing the CRC32C - # checksum of DecryptResponse.plaintext and comparing your results to - # this field. Discard the response in case of non-matching checksum values, - # and perform a limited number of retries. A persistent mismatch may indicate - # an issue in your computation of the CRC32C checksum. Note: receiving this - # response message indicates that KeyManagementService is able to - # successfully decrypt the ciphertext. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # DecryptResponse.plaintext. An integrity check of DecryptResponse.plaintext can + # be performed by computing the CRC32C checksum of DecryptResponse.plaintext and + # comparing your results to this field. Discard the response in case of non- + # matching checksum values, and perform a limited number of retries. A + # persistent mismatch may indicate an issue in your computation of the CRC32C + # checksum. Note: receiving this response message indicates that + # KeyManagementService is able to successfully decrypt the ciphertext. Note: + # This field is defined as int64 for reasons of compatibility across different + # languages. However, it is a non-negative integer, which will never exceed 2^32- + # 1, and can be safely downconverted to uint32 in languages that support this + # type. NOTE: This field is in Beta. # Corresponds to the JSON property `plaintextCrc32c` # @return [Fixnum] attr_accessor :plaintext_crc32c @@ -810,44 +714,36 @@ module Google include Google::Apis::Core::Hashable # Optional. Optional data that, if specified, must also be provided during - # decryption - # through DecryptRequest.additional_authenticated_data. - # The maximum size depends on the key version's - # protection_level. For - # SOFTWARE keys, the AAD must be no larger than - # 64KiB. For HSM keys, the combined length of the - # plaintext and additional_authenticated_data fields must be no larger than - # 8KiB. + # decryption through DecryptRequest.additional_authenticated_data. The maximum + # size depends on the key version's protection_level. For SOFTWARE keys, the AAD + # must be no larger than 64KiB. For HSM keys, the combined length of the + # plaintext and additional_authenticated_data fields must be no larger than 8KiB. # Corresponds to the JSON property `additionalAuthenticatedData` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :additional_authenticated_data - # Optional. An optional CRC32C checksum of the - # EncryptRequest.additional_authenticated_data. If specified, - # KeyManagementService will verify the integrity of the received - # EncryptRequest.additional_authenticated_data using this checksum. - # KeyManagementService will report an error if the checksum verification - # fails. If you receive a checksum error, your client should verify that - # CRC32C(EncryptRequest.additional_authenticated_data) is equal to - # EncryptRequest.additional_authenticated_data_crc32c, and if so, perform - # a limited number of retries. A persistent mismatch may indicate an issue in - # your computation of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # Optional. An optional CRC32C checksum of the EncryptRequest. + # additional_authenticated_data. If specified, KeyManagementService will verify + # the integrity of the received EncryptRequest.additional_authenticated_data + # using this checksum. KeyManagementService will report an error if the checksum + # verification fails. If you receive a checksum error, your client should verify + # that CRC32C(EncryptRequest.additional_authenticated_data) is equal to + # EncryptRequest.additional_authenticated_data_crc32c, and if so, perform a + # limited number of retries. A persistent mismatch may indicate an issue in your + # computation of the CRC32C checksum. Note: This field is defined as int64 for + # reasons of compatibility across different languages. However, it is a non- + # negative integer, which will never exceed 2^32-1, and can be safely + # downconverted to uint32 in languages that support this type. NOTE: This field + # is in Beta. # Corresponds to the JSON property `additionalAuthenticatedDataCrc32c` # @return [Fixnum] attr_accessor :additional_authenticated_data_crc32c - # Required. The data to encrypt. Must be no larger than 64KiB. - # The maximum size depends on the key version's - # protection_level. For - # SOFTWARE keys, the plaintext must be no larger - # than 64KiB. For HSM keys, the combined length of the - # plaintext and additional_authenticated_data fields must be no larger than + # Required. The data to encrypt. Must be no larger than 64KiB. The maximum size + # depends on the key version's protection_level. For SOFTWARE keys, the + # plaintext must be no larger than 64KiB. For HSM keys, the combined length of + # the plaintext and additional_authenticated_data fields must be no larger than # 8KiB. # Corresponds to the JSON property `plaintext` # NOTE: Values are automatically base64 encoded/decoded in the client library. @@ -855,19 +751,16 @@ module Google attr_accessor :plaintext # Optional. An optional CRC32C checksum of the EncryptRequest.plaintext. If - # specified, KeyManagementService will verify the integrity of the - # received EncryptRequest.plaintext using this checksum. - # KeyManagementService will report an error if the checksum verification - # fails. If you receive a checksum error, your client should verify that - # CRC32C(EncryptRequest.plaintext) is equal to + # specified, KeyManagementService will verify the integrity of the received + # EncryptRequest.plaintext using this checksum. KeyManagementService will report + # an error if the checksum verification fails. If you receive a checksum error, + # your client should verify that CRC32C(EncryptRequest.plaintext) is equal to # EncryptRequest.plaintext_crc32c, and if so, perform a limited number of # retries. A persistent mismatch may indicate an issue in your computation of - # the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # the CRC32C checksum. Note: This field is defined as int64 for reasons of + # compatibility across different languages. However, it is a non-negative + # integer, which will never exceed 2^32-1, and can be safely downconverted to + # uint32 in languages that support this type. NOTE: This field is in Beta. # Corresponds to the JSON property `plaintextCrc32c` # @return [Fixnum] attr_accessor :plaintext_crc32c @@ -896,51 +789,45 @@ module Google attr_accessor :ciphertext # Integrity verification field. A CRC32C checksum of the returned - # EncryptResponse.ciphertext. An integrity check of - # EncryptResponse.ciphertext can be performed by computing the CRC32C - # checksum of EncryptResponse.ciphertext and comparing your results to - # this field. Discard the response in case of non-matching checksum values, - # and perform a limited number of retries. A persistent mismatch may indicate - # an issue in your computation of the CRC32C checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will + # EncryptResponse.ciphertext. An integrity check of EncryptResponse.ciphertext + # can be performed by computing the CRC32C checksum of EncryptResponse. + # ciphertext and comparing your results to this field. Discard the response in + # case of non-matching checksum values, and perform a limited number of retries. + # A persistent mismatch may indicate an issue in your computation of the CRC32C + # checksum. Note: This field is defined as int64 for reasons of compatibility + # across different languages. However, it is a non-negative integer, which will # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # that support this type. NOTE: This field is in Beta. # Corresponds to the JSON property `ciphertextCrc32c` # @return [Fixnum] attr_accessor :ciphertext_crc32c - # The resource name of the CryptoKeyVersion used in encryption. Check - # this field to verify that the intended resource was used for encryption. + # The resource name of the CryptoKeyVersion used in encryption. Check this field + # to verify that the intended resource was used for encryption. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Integrity verification field. A flag indicating whether - # EncryptRequest.additional_authenticated_data_crc32c was received by - # KeyManagementService and used for the integrity verification of the - # AAD. A false value of this - # field indicates either that - # EncryptRequest.additional_authenticated_data_crc32c was left unset or - # that it was not delivered to KeyManagementService. If you've set - # EncryptRequest.additional_authenticated_data_crc32c but this field is - # still false, discard the response and perform a limited number of retries. - # NOTE: This field is in Beta. + # Integrity verification field. A flag indicating whether EncryptRequest. + # additional_authenticated_data_crc32c was received by KeyManagementService and + # used for the integrity verification of the AAD. A false value of this field + # indicates either that EncryptRequest.additional_authenticated_data_crc32c was + # left unset or that it was not delivered to KeyManagementService. If you've set + # EncryptRequest.additional_authenticated_data_crc32c but this field is still + # false, discard the response and perform a limited number of retries. NOTE: + # This field is in Beta. # Corresponds to the JSON property `verifiedAdditionalAuthenticatedDataCrc32c` # @return [Boolean] attr_accessor :verified_additional_authenticated_data_crc32c alias_method :verified_additional_authenticated_data_crc32c?, :verified_additional_authenticated_data_crc32c - # Integrity verification field. A flag indicating whether - # EncryptRequest.plaintext_crc32c was received by - # KeyManagementService and used for the integrity verification of the - # plaintext. A false value of this field - # indicates either that EncryptRequest.plaintext_crc32c was left unset or - # that it was not delivered to KeyManagementService. If you've set - # EncryptRequest.plaintext_crc32c but this field is still false, discard - # the response and perform a limited number of retries. - # NOTE: This field is in Beta. + # Integrity verification field. A flag indicating whether EncryptRequest. + # plaintext_crc32c was received by KeyManagementService and used for the + # integrity verification of the plaintext. A false value of this field indicates + # either that EncryptRequest.plaintext_crc32c was left unset or that it was not + # delivered to KeyManagementService. If you've set EncryptRequest. + # plaintext_crc32c but this field is still false, discard the response and + # perform a limited number of retries. NOTE: This field is in Beta. # Corresponds to the JSON property `verifiedPlaintextCrc32c` # @return [Boolean] attr_accessor :verified_plaintext_crc32c @@ -960,52 +847,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -1024,8 +902,8 @@ module Google end # ExternalProtectionLevelOptions stores a group of additional fields for - # configuring a CryptoKeyVersion that are specific to the - # EXTERNAL protection level. + # configuring a CryptoKeyVersion that are specific to the EXTERNAL protection + # level. class ExternalProtectionLevelOptions include Google::Apis::Core::Hashable @@ -1048,40 +926,27 @@ module Google class ImportCryptoKeyVersionRequest include Google::Apis::Core::Hashable - # Required. The algorithm of - # the key being imported. This does not need to match the - # version_template of the CryptoKey this - # version imports into. + # Required. The algorithm of the key being imported. This does not need to match + # the version_template of the CryptoKey this version imports into. # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # Required. The name of the ImportJob that was used to - # wrap this key material. + # Required. The name of the ImportJob that was used to wrap this key material. # Corresponds to the JSON property `importJob` # @return [String] attr_accessor :import_job - # Wrapped key material produced with - # RSA_OAEP_3072_SHA1_AES_256 - # or - # RSA_OAEP_4096_SHA1_AES_256. - # This field contains the concatenation of two wrapped keys: - #
    - #
  1. An ephemeral AES-256 wrapping key wrapped with the - # public_key using RSAES-OAEP with SHA-1, - # MGF1 with SHA-1, and an empty label. - #
  2. - #
  3. The key to be imported, wrapped with the ephemeral AES-256 key - # using AES-KWP (RFC 5649). - #
  4. - #
- # If importing symmetric key material, it is expected that the unwrapped - # key contains plain bytes. If importing asymmetric key material, it is - # expected that the unwrapped key is in PKCS#8-encoded DER format (the - # PrivateKeyInfo structure from RFC 5208). - # This format is the same as the format produced by PKCS#11 mechanism - # CKM_RSA_AES_KEY_WRAP. + # Wrapped key material produced with RSA_OAEP_3072_SHA1_AES_256 or + # RSA_OAEP_4096_SHA1_AES_256. This field contains the concatenation of two + # wrapped keys: 1. An ephemeral AES-256 wrapping key wrapped with the public_key + # using RSAES-OAEP with SHA-1, MGF1 with SHA-1, and an empty label. 2. The key + # to be imported, wrapped with the ephemeral AES-256 key using AES-KWP (RFC 5649) + # . If importing symmetric key material, it is expected that the unwrapped key + # contains plain bytes. If importing asymmetric key material, it is expected + # that the unwrapped key is in PKCS#8-encoded DER format (the PrivateKeyInfo + # structure from RFC 5208). This format is the same as the format produced by + # PKCS#11 mechanism CKM_RSA_AES_KEY_WRAP. # Corresponds to the JSON property `rsaAesWrappedKey` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1099,35 +964,29 @@ module Google end end - # An ImportJob can be used to create CryptoKeys and - # CryptoKeyVersions using pre-existing key material, - # generated outside of Cloud KMS. - # When an ImportJob is created, Cloud KMS will generate a "wrapping key", - # which is a public/private key pair. You use the wrapping key to encrypt (also - # known as wrap) the pre-existing key material to protect it during the import - # process. The nature of the wrapping key depends on the choice of - # import_method. When the wrapping key generation - # is complete, the state will be set to - # ACTIVE and the public_key - # can be fetched. The fetched public key can then be used to wrap your - # pre-existing key material. - # Once the key material is wrapped, it can be imported into a new - # CryptoKeyVersion in an existing CryptoKey by calling - # ImportCryptoKeyVersion. - # Multiple CryptoKeyVersions can be imported with a single - # ImportJob. Cloud KMS uses the private key portion of the wrapping key to - # unwrap the key material. Only Cloud KMS has access to the private key. - # An ImportJob expires 3 days after it is created. Once expired, Cloud KMS - # will no longer be able to import or unwrap any key material that was wrapped - # with the ImportJob's public key. - # For more information, see - # [Importing a key](https://cloud.google.com/kms/docs/importing-a-key). + # An ImportJob can be used to create CryptoKeys and CryptoKeyVersions using pre- + # existing key material, generated outside of Cloud KMS. When an ImportJob is + # created, Cloud KMS will generate a "wrapping key", which is a public/private + # key pair. You use the wrapping key to encrypt (also known as wrap) the pre- + # existing key material to protect it during the import process. The nature of + # the wrapping key depends on the choice of import_method. When the wrapping key + # generation is complete, the state will be set to ACTIVE and the public_key can + # be fetched. The fetched public key can then be used to wrap your pre-existing + # key material. Once the key material is wrapped, it can be imported into a new + # CryptoKeyVersion in an existing CryptoKey by calling ImportCryptoKeyVersion. + # Multiple CryptoKeyVersions can be imported with a single ImportJob. Cloud KMS + # uses the private key portion of the wrapping key to unwrap the key material. + # Only Cloud KMS has access to the private key. An ImportJob expires 3 days + # after it is created. Once expired, Cloud KMS will no longer be able to import + # or unwrap any key material that was wrapped with the ImportJob's public key. + # For more information, see [Importing a key](https://cloud.google.com/kms/docs/ + # importing-a-key). class ImportJob include Google::Apis::Core::Hashable # Contains an HSM-generated attestation about a key operation. For more - # information, see [Verifying attestations] - # (https://cloud.google.com/kms/docs/attest-key). + # information, see [Verifying attestations] (https://cloud.google.com/kms/docs/ + # attest-key). # Corresponds to the JSON property `attestation` # @return [Google::Apis::CloudkmsV1::KeyOperationAttestation] attr_accessor :attestation @@ -1137,14 +996,13 @@ module Google # @return [String] attr_accessor :create_time - # Output only. The time this ImportJob expired. Only present if - # state is EXPIRED. + # Output only. The time this ImportJob expired. Only present if state is EXPIRED. # Corresponds to the JSON property `expireEventTime` # @return [String] attr_accessor :expire_event_time - # Output only. The time at which this ImportJob is scheduled for - # expiration and can no longer be used to import key material. + # Output only. The time at which this ImportJob is scheduled for expiration and + # can no longer be used to import key material. # Corresponds to the JSON property `expireTime` # @return [String] attr_accessor :expire_time @@ -1159,29 +1017,26 @@ module Google # @return [String] attr_accessor :import_method - # Output only. The resource name for this ImportJob in the format - # `projects/*/locations/*/keyRings/*/importJobs/*`. + # Output only. The resource name for this ImportJob in the format `projects/*/ + # locations/*/keyRings/*/importJobs/*`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Required. Immutable. The protection level of the ImportJob. This must match - # the - # protection_level of the - # version_template on the CryptoKey you - # attempt to import into. + # the protection_level of the version_template on the CryptoKey you attempt to + # import into. # Corresponds to the JSON property `protectionLevel` # @return [String] attr_accessor :protection_level - # The public key component of the wrapping key. For details of the type of - # key this public key corresponds to, see the ImportMethod. + # The public key component of the wrapping key. For details of the type of key + # this public key corresponds to, see the ImportMethod. # Corresponds to the JSON property `publicKey` # @return [Google::Apis::CloudkmsV1::WrappingPublicKey] attr_accessor :public_key - # Output only. The current state of the ImportJob, indicating if it can - # be used. + # Output only. The current state of the ImportJob, indicating if it can be used. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -1206,13 +1061,13 @@ module Google end # Contains an HSM-generated attestation about a key operation. For more - # information, see [Verifying attestations] - # (https://cloud.google.com/kms/docs/attest-key). + # information, see [Verifying attestations] (https://cloud.google.com/kms/docs/ + # attest-key). class KeyOperationAttestation include Google::Apis::Core::Hashable - # Output only. The attestation data provided by the HSM when the key - # operation was performed. + # Output only. The attestation data provided by the HSM when the key operation + # was performed. # Corresponds to the JSON property `content` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1243,8 +1098,8 @@ module Google # @return [String] attr_accessor :create_time - # Output only. The resource name for the KeyRing in the format - # `projects/*/locations/*/keyRings/*`. + # Output only. The resource name for the KeyRing in the format `projects/*/ + # locations/*/keyRings/*`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1270,14 +1125,12 @@ module Google attr_accessor :crypto_key_versions # A token to retrieve next page of results. Pass this value in - # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of - # results. + # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The total number of CryptoKeyVersions that matched the - # query. + # The total number of CryptoKeyVersions that matched the query. # Corresponds to the JSON property `totalSize` # @return [Fixnum] attr_accessor :total_size @@ -1419,14 +1272,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1442,8 +1295,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1466,17 +1319,15 @@ module Google class LocationMetadata include Google::Apis::Core::Hashable - # Indicates whether CryptoKeys with - # protection_level - # EXTERNAL can be created in this location. + # Indicates whether CryptoKeys with protection_level EXTERNAL can be created in + # this location. # Corresponds to the JSON property `ekmAvailable` # @return [Boolean] attr_accessor :ekm_available alias_method :ekm_available?, :ekm_available - # Indicates whether CryptoKeys with - # protection_level - # HSM can be created in this location. + # Indicates whether CryptoKeys with protection_level HSM can be created in this + # location. # Corresponds to the JSON property `hsmAvailable` # @return [Boolean] attr_accessor :hsm_available @@ -1494,66 +1345,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1562,48 +1379,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1621,45 +1434,39 @@ module Google end end - # The public key for a given CryptoKeyVersion. Obtained via - # GetPublicKey. + # The public key for a given CryptoKeyVersion. Obtained via GetPublicKey. class PublicKey include Google::Apis::Core::Hashable - # The Algorithm associated - # with this key. + # The Algorithm associated with this key. # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # The name of the CryptoKeyVersion public key. - # Provided here for verification. + # The name of the CryptoKeyVersion public key. Provided here for verification. # NOTE: This field is in Beta. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The public key, encoded in PEM format. For more information, see the - # [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for - # [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and - # [Textual Encoding of Subject Public Key Info] - # (https://tools.ietf.org/html/rfc7468#section-13). + # The public key, encoded in PEM format. For more information, see the [RFC 7468] + # (https://tools.ietf.org/html/rfc7468) sections for [General Considerations]( + # https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of + # Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). # Corresponds to the JSON property `pem` # @return [String] attr_accessor :pem - # Integrity verification field. A CRC32C checksum of the returned - # PublicKey.pem. An integrity check of PublicKey.pem can be performed - # by computing the CRC32C checksum of PublicKey.pem and - # comparing your results to this field. Discard the response in case of - # non-matching checksum values, and perform a limited number of retries. A - # persistent mismatch may indicate an issue in your computation of the CRC32C - # checksum. - # Note: This field is defined as int64 for reasons of compatibility across - # different languages. However, it is a non-negative integer, which will - # never exceed 2^32-1, and can be safely downconverted to uint32 in languages - # that support this type. - # NOTE: This field is in Beta. + # Integrity verification field. A CRC32C checksum of the returned PublicKey.pem. + # An integrity check of PublicKey.pem can be performed by computing the CRC32C + # checksum of PublicKey.pem and comparing your results to this field. Discard + # the response in case of non-matching checksum values, and perform a limited + # number of retries. A persistent mismatch may indicate an issue in your + # computation of the CRC32C checksum. Note: This field is defined as int64 for + # reasons of compatibility across different languages. However, it is a non- + # negative integer, which will never exceed 2^32-1, and can be safely + # downconverted to uint32 in languages that support this type. NOTE: This field + # is in Beta. # Corresponds to the JSON property `pemCrc32c` # @return [Fixnum] attr_accessor :pem_crc32c @@ -1695,74 +1502,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::CloudkmsV1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -1782,10 +1554,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1804,8 +1575,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1839,16 +1609,15 @@ module Google end end - # The public key component of the wrapping key. For details of the type of - # key this public key corresponds to, see the ImportMethod. + # The public key component of the wrapping key. For details of the type of key + # this public key corresponds to, see the ImportMethod. class WrappingPublicKey include Google::Apis::Core::Hashable - # The public key, encoded in PEM format. For more information, see the [RFC - # 7468](https://tools.ietf.org/html/rfc7468) sections for [General - # Considerations](https://tools.ietf.org/html/rfc7468#section-2) and - # [Textual Encoding of Subject Public Key Info] - # (https://tools.ietf.org/html/rfc7468#section-13). + # The public key, encoded in PEM format. For more information, see the [RFC 7468] + # (https://tools.ietf.org/html/rfc7468) sections for [General Considerations]( + # https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of + # Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). # Corresponds to the JSON property `pem` # @return [String] attr_accessor :pem diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index e4470ebdb..9df003d6f 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -119,12 +119,12 @@ module Google # Create a new KeyRing in a given Project and Location. # @param [String] parent - # Required. The resource name of the location associated with the - # KeyRings, in the format `projects/*/locations/*`. + # Required. The resource name of the location associated with the KeyRings, in + # the format `projects/*/locations/*`. # @param [Google::Apis::CloudkmsV1::KeyRing] key_ring_object # @param [String] key_ring_id - # Required. It must be unique within a location and match the regular - # expression `[a-zA-Z0-9_-]`1,63`` + # Required. It must be unique within a location and match the regular expression + # `[a-zA-Z0-9_-]`1,63`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -185,22 +185,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -231,26 +228,25 @@ module Google # Lists KeyRings. # @param [String] parent - # Required. The resource name of the location associated with the - # KeyRings, in the format `projects/*/locations/*`. + # Required. The resource name of the location associated with the KeyRings, in + # the format `projects/*/locations/*`. # @param [String] filter # Optional. Only include resources that match the filter in the response. For - # more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # more information, see [Sorting and filtering list results](https://cloud. + # google.com/kms/docs/sorting-and-filtering). # @param [String] order_by # Optional. Specify how the results should be sorted. If not specified, the - # results will be sorted in the default order. For more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # results will be sorted in the default order. For more information, see [ + # Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting- + # and-filtering). # @param [Fixnum] page_size - # Optional. Optional limit on the number of KeyRings to include in the - # response. Further KeyRings can subsequently be obtained by - # including the ListKeyRingsResponse.next_page_token in a subsequent - # request. If unspecified, the server will pick an appropriate default. + # Optional. Optional limit on the number of KeyRings to include in the response. + # Further KeyRings can subsequently be obtained by including the + # ListKeyRingsResponse.next_page_token in a subsequent request. If unspecified, + # the server will pick an appropriate default. # @param [String] page_token - # Optional. Optional pagination token, returned earlier via - # ListKeyRingsResponse.next_page_token. + # Optional. Optional pagination token, returned earlier via ListKeyRingsResponse. + # next_page_token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -283,11 +279,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -318,15 +314,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -357,23 +352,18 @@ module Google execute_or_queue_command(command, &block) end - # Create a new CryptoKey within a KeyRing. - # CryptoKey.purpose and - # CryptoKey.version_template.algorithm - # are required. + # Create a new CryptoKey within a KeyRing. CryptoKey.purpose and CryptoKey. + # version_template.algorithm are required. # @param [String] parent - # Required. The name of the KeyRing associated with the - # CryptoKeys. + # Required. The name of the KeyRing associated with the CryptoKeys. # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object # @param [String] crypto_key_id - # Required. It must be unique within a KeyRing and match the regular - # expression `[a-zA-Z0-9_-]`1,63`` + # Required. It must be unique within a KeyRing and match the regular expression ` + # [a-zA-Z0-9_-]`1,63`` # @param [Boolean] skip_initial_version_creation # If set to true, the request will create a CryptoKey without any - # CryptoKeyVersions. You must manually call - # CreateCryptoKeyVersion or - # ImportCryptoKeyVersion - # before you can use this CryptoKey. + # CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or + # ImportCryptoKeyVersion before you can use this CryptoKey. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -405,11 +395,11 @@ module Google execute_or_queue_command(command, &block) end - # Decrypts data that was protected by Encrypt. The CryptoKey.purpose - # must be ENCRYPT_DECRYPT. + # Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be + # ENCRYPT_DECRYPT. # @param [String] name - # Required. The resource name of the CryptoKey to use for decryption. - # The server will choose the appropriate version. + # Required. The resource name of the CryptoKey to use for decryption. The server + # will choose the appropriate version. # @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -440,14 +430,12 @@ module Google execute_or_queue_command(command, &block) end - # Encrypts data, so that it can only be recovered by a call to Decrypt. - # The CryptoKey.purpose must be - # ENCRYPT_DECRYPT. + # Encrypts data, so that it can only be recovered by a call to Decrypt. The + # CryptoKey.purpose must be ENCRYPT_DECRYPT. # @param [String] name - # Required. The resource name of the CryptoKey or CryptoKeyVersion - # to use for encryption. - # If a CryptoKey is specified, the server will use its - # primary version. + # Required. The resource name of the CryptoKey or CryptoKeyVersion to use for + # encryption. If a CryptoKey is specified, the server will use its primary + # version. # @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -478,8 +466,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns metadata for a given CryptoKey, as well as its - # primary CryptoKeyVersion. + # Returns metadata for a given CryptoKey, as well as its primary + # CryptoKeyVersion. # @param [String] name # Required. The name of the CryptoKey to get. # @param [String] fields @@ -509,22 +497,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -555,23 +540,22 @@ module Google # Lists CryptoKeys. # @param [String] parent - # Required. The resource name of the KeyRing to list, in the format - # `projects/*/locations/*/keyRings/*`. + # Required. The resource name of the KeyRing to list, in the format `projects/*/ + # locations/*/keyRings/*`. # @param [String] filter # Optional. Only include resources that match the filter in the response. For - # more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # more information, see [Sorting and filtering list results](https://cloud. + # google.com/kms/docs/sorting-and-filtering). # @param [String] order_by # Optional. Specify how the results should be sorted. If not specified, the - # results will be sorted in the default order. For more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # results will be sorted in the default order. For more information, see [ + # Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting- + # and-filtering). # @param [Fixnum] page_size # Optional. Optional limit on the number of CryptoKeys to include in the - # response. Further CryptoKeys can subsequently be obtained by - # including the ListCryptoKeysResponse.next_page_token in a subsequent - # request. If unspecified, the server will pick an appropriate default. + # response. Further CryptoKeys can subsequently be obtained by including the + # ListCryptoKeysResponse.next_page_token in a subsequent request. If unspecified, + # the server will pick an appropriate default. # @param [String] page_token # Optional. Optional pagination token, returned earlier via # ListCryptoKeysResponse.next_page_token. @@ -611,8 +595,8 @@ module Google # Update a CryptoKey. # @param [String] name - # Output only. The resource name for this CryptoKey in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + # Output only. The resource name for this CryptoKey in the format `projects/*/ + # locations/*/keyRings/*/cryptoKeys/*`. # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object # @param [String] update_mask # Required. List of fields to be updated in this request. @@ -647,11 +631,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -682,15 +666,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -721,8 +704,8 @@ module Google execute_or_queue_command(command, &block) end - # Update the version of a CryptoKey that will be used in Encrypt. - # Returns an error if called on an asymmetric key. + # Update the version of a CryptoKey that will be used in Encrypt. Returns an + # error if called on an asymmetric key. # @param [String] name # Required. The resource name of the CryptoKey to update. # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object @@ -755,12 +738,10 @@ module Google execute_or_queue_command(command, &block) end - # Decrypts data that was encrypted with a public key retrieved from - # GetPublicKey corresponding to a CryptoKeyVersion with - # CryptoKey.purpose ASYMMETRIC_DECRYPT. + # Decrypts data that was encrypted with a public key retrieved from GetPublicKey + # corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT. # @param [String] name - # Required. The resource name of the CryptoKeyVersion to use for - # decryption. + # Required. The resource name of the CryptoKeyVersion to use for decryption. # @param [Google::Apis::CloudkmsV1::AsymmetricDecryptRequest] asymmetric_decrypt_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -791,9 +772,9 @@ module Google execute_or_queue_command(command, &block) end - # Signs data using a CryptoKeyVersion with CryptoKey.purpose - # ASYMMETRIC_SIGN, producing a signature that can be verified with the public - # key retrieved from GetPublicKey. + # Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN, + # producing a signature that can be verified with the public key retrieved from + # GetPublicKey. # @param [String] name # Required. The resource name of the CryptoKeyVersion to use for signing. # @param [Google::Apis::CloudkmsV1::AsymmetricSignRequest] asymmetric_sign_request_object @@ -826,13 +807,10 @@ module Google execute_or_queue_command(command, &block) end - # Create a new CryptoKeyVersion in a CryptoKey. - # The server will assign the next sequential id. If unset, - # state will be set to - # ENABLED. + # Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next + # sequential id. If unset, state will be set to ENABLED. # @param [String] parent - # Required. The name of the CryptoKey associated with - # the CryptoKeyVersions. + # Required. The name of the CryptoKey associated with the CryptoKeyVersions. # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -863,16 +841,12 @@ module Google execute_or_queue_command(command, &block) end - # Schedule a CryptoKeyVersion for destruction. - # Upon calling this method, CryptoKeyVersion.state will be set to - # DESTROY_SCHEDULED - # and destroy_time will be set to a time 24 - # hours in the future, at which point the state - # will be changed to - # DESTROYED, and the key - # material will be irrevocably destroyed. - # Before the destroy_time is reached, - # RestoreCryptoKeyVersion may be called to reverse the process. + # Schedule a CryptoKeyVersion for destruction. Upon calling this method, + # CryptoKeyVersion.state will be set to DESTROY_SCHEDULED and destroy_time will + # be set to a time 24 hours in the future, at which point the state will be + # changed to DESTROYED, and the key material will be irrevocably destroyed. + # Before the destroy_time is reached, RestoreCryptoKeyVersion may be called to + # reverse the process. # @param [String] name # Required. The resource name of the CryptoKeyVersion to destroy. # @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object @@ -935,13 +909,10 @@ module Google execute_or_queue_command(command, &block) end - # Returns the public key for the given CryptoKeyVersion. The - # CryptoKey.purpose must be - # ASYMMETRIC_SIGN or - # ASYMMETRIC_DECRYPT. + # Returns the public key for the given CryptoKeyVersion. The CryptoKey.purpose + # must be ASYMMETRIC_SIGN or ASYMMETRIC_DECRYPT. # @param [String] name - # Required. The name of the CryptoKeyVersion public key to - # get. + # Required. The name of the CryptoKeyVersion public key to get. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -969,13 +940,11 @@ module Google execute_or_queue_command(command, &block) end - # Imports a new CryptoKeyVersion into an existing CryptoKey using the - # wrapped key material provided in the request. - # The version ID will be assigned the next sequential id within the - # CryptoKey. + # Imports a new CryptoKeyVersion into an existing CryptoKey using the wrapped + # key material provided in the request. The version ID will be assigned the next + # sequential id within the CryptoKey. # @param [String] parent - # Required. The name of the CryptoKey to - # be imported into. + # Required. The name of the CryptoKey to be imported into. # @param [Google::Apis::CloudkmsV1::ImportCryptoKeyVersionRequest] import_crypto_key_version_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1008,24 +977,22 @@ module Google # Lists CryptoKeyVersions. # @param [String] parent - # Required. The resource name of the CryptoKey to list, in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + # Required. The resource name of the CryptoKey to list, in the format `projects/* + # /locations/*/keyRings/*/cryptoKeys/*`. # @param [String] filter # Optional. Only include resources that match the filter in the response. For - # more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # more information, see [Sorting and filtering list results](https://cloud. + # google.com/kms/docs/sorting-and-filtering). # @param [String] order_by # Optional. Specify how the results should be sorted. If not specified, the - # results will be sorted in the default order. For more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # results will be sorted in the default order. For more information, see [ + # Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting- + # and-filtering). # @param [Fixnum] page_size - # Optional. Optional limit on the number of CryptoKeyVersions to - # include in the response. Further CryptoKeyVersions can - # subsequently be obtained by including the - # ListCryptoKeyVersionsResponse.next_page_token in a subsequent request. - # If unspecified, the server will pick an appropriate default. + # Optional. Optional limit on the number of CryptoKeyVersions to include in the + # response. Further CryptoKeyVersions can subsequently be obtained by including + # the ListCryptoKeyVersionsResponse.next_page_token in a subsequent request. If + # unspecified, the server will pick an appropriate default. # @param [String] page_token # Optional. Optional pagination token, returned earlier via # ListCryptoKeyVersionsResponse.next_page_token. @@ -1063,15 +1030,12 @@ module Google execute_or_queue_command(command, &block) end - # Update a CryptoKeyVersion's metadata. - # state may be changed between - # ENABLED and - # DISABLED using this - # method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to - # move between other states. + # Update a CryptoKeyVersion's metadata. state may be changed between ENABLED and + # DISABLED using this method. See DestroyCryptoKeyVersion and + # RestoreCryptoKeyVersion to move between other states. # @param [String] name - # Output only. The resource name for this CryptoKeyVersion in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. + # Output only. The resource name for this CryptoKeyVersion in the format ` + # projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object # @param [String] update_mask # Required. List of fields to be updated in this request. @@ -1105,12 +1069,9 @@ module Google execute_or_queue_command(command, &block) end - # Restore a CryptoKeyVersion in the - # DESTROY_SCHEDULED - # state. - # Upon restoration of the CryptoKeyVersion, state - # will be set to DISABLED, - # and destroy_time will be cleared. + # Restore a CryptoKeyVersion in the DESTROY_SCHEDULED state. Upon restoration of + # the CryptoKeyVersion, state will be set to DISABLED, and destroy_time will be + # cleared. # @param [String] name # Required. The resource name of the CryptoKeyVersion to restore. # @param [Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object @@ -1143,15 +1104,13 @@ module Google execute_or_queue_command(command, &block) end - # Create a new ImportJob within a KeyRing. - # ImportJob.import_method is required. + # Create a new ImportJob within a KeyRing. ImportJob.import_method is required. # @param [String] parent - # Required. The name of the KeyRing associated with the - # ImportJobs. + # Required. The name of the KeyRing associated with the ImportJobs. # @param [Google::Apis::CloudkmsV1::ImportJob] import_job_object # @param [String] import_job_id - # Required. It must be unique within a KeyRing and match the regular - # expression `[a-zA-Z0-9_-]`1,63`` + # Required. It must be unique within a KeyRing and match the regular expression ` + # [a-zA-Z0-9_-]`1,63`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1212,22 +1171,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1258,23 +1214,22 @@ module Google # Lists ImportJobs. # @param [String] parent - # Required. The resource name of the KeyRing to list, in the format - # `projects/*/locations/*/keyRings/*`. + # Required. The resource name of the KeyRing to list, in the format `projects/*/ + # locations/*/keyRings/*`. # @param [String] filter # Optional. Only include resources that match the filter in the response. For - # more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # more information, see [Sorting and filtering list results](https://cloud. + # google.com/kms/docs/sorting-and-filtering). # @param [String] order_by # Optional. Specify how the results should be sorted. If not specified, the - # results will be sorted in the default order. For more information, see - # [Sorting and filtering list - # results](https://cloud.google.com/kms/docs/sorting-and-filtering). + # results will be sorted in the default order. For more information, see [ + # Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting- + # and-filtering). # @param [Fixnum] page_size # Optional. Optional limit on the number of ImportJobs to include in the - # response. Further ImportJobs can subsequently be obtained by - # including the ListImportJobsResponse.next_page_token in a subsequent - # request. If unspecified, the server will pick an appropriate default. + # response. Further ImportJobs can subsequently be obtained by including the + # ListImportJobsResponse.next_page_token in a subsequent request. If unspecified, + # the server will pick an appropriate default. # @param [String] page_token # Optional. Optional pagination token, returned earlier via # ListImportJobsResponse.next_page_token. @@ -1310,11 +1265,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1345,15 +1300,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/cloudshell_v1.rb b/generated/google/apis/cloudshell_v1.rb index e5b86027d..48a10d434 100644 --- a/generated/google/apis/cloudshell_v1.rb +++ b/generated/google/apis/cloudshell_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/shell/docs/ module CloudshellV1 VERSION = 'V1' - REVISION = '20200721' + REVISION = '20200803' # 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/cloudshell_v1/classes.rb b/generated/google/apis/cloudshell_v1/classes.rb index ccff04e40..b0ae3187a 100644 --- a/generated/google/apis/cloudshell_v1/classes.rb +++ b/generated/google/apis/cloudshell_v1/classes.rb @@ -35,13 +35,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -54,112 +52,6 @@ module Google end end - # A Cloud Shell environment, which is defined as the combination of a Docker - # image specifying what is installed on the environment and a home directory - # containing the user's data that will remain across sessions. Each user has a - # single environment with the ID "default". - class Environment - include Google::Apis::Core::Hashable - - # Required. Full path to the Docker image used to run this environment, e.g. - # "gcr.io/dev-con/cloud-devshell:latest". - # Corresponds to the JSON property `dockerImage` - # @return [String] - attr_accessor :docker_image - - # Output only. The environment's identifier, unique among the user's - # environments. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Output only. Full name of this resource, in the format - # `users/`owner_email`/environments/`environment_id``. ``owner_email`` is the - # email address of the user to whom this environment belongs, and - # ``environment_id`` is the identifier of this environment. For example, - # `users/someone@example.com/environments/default`. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Output only. Public keys associated with the environment. Clients can - # connect to this environment via SSH only if they possess a private key - # corresponding to at least one of these public keys. Keys can be added to or - # removed from the environment using the CreatePublicKey and DeletePublicKey - # methods. - # Corresponds to the JSON property `publicKeys` - # @return [Array] - attr_accessor :public_keys - - # Indicates the size of the backing VM running the environment. If set to - # something other than DEFAULT, it will be reverted to the default VM size - # after vm_size_expire_time. - # Corresponds to the JSON property `size` - # @return [String] - attr_accessor :size - - # Output only. Host to which clients can connect to initiate SSH sessions - # with the environment. - # Corresponds to the JSON property `sshHost` - # @return [String] - attr_accessor :ssh_host - - # Output only. Port to which clients can connect to initiate SSH sessions - # with the environment. - # Corresponds to the JSON property `sshPort` - # @return [Fixnum] - attr_accessor :ssh_port - - # Output only. Username that clients should use when initiating SSH sessions - # with the environment. - # Corresponds to the JSON property `sshUsername` - # @return [String] - attr_accessor :ssh_username - - # Output only. Current execution state of this environment. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Output only. The time when the Environment will expire back to the default - # VM size. - # Corresponds to the JSON property `vmSizeExpireTime` - # @return [String] - attr_accessor :vm_size_expire_time - - # Output only. Host to which clients can connect to initiate HTTPS or WSS - # connections with the environment. - # Corresponds to the JSON property `webHost` - # @return [String] - attr_accessor :web_host - - # Output only. Ports to which clients can connect to initiate HTTPS or WSS - # connections with the environment. - # Corresponds to the JSON property `webPorts` - # @return [Array] - attr_accessor :web_ports - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @docker_image = args[:docker_image] if args.key?(:docker_image) - @id = args[:id] if args.key?(:id) - @name = args[:name] if args.key?(:name) - @public_keys = args[:public_keys] if args.key?(:public_keys) - @size = args[:size] if args.key?(:size) - @ssh_host = args[:ssh_host] if args.key?(:ssh_host) - @ssh_port = args[:ssh_port] if args.key?(:ssh_port) - @ssh_username = args[:ssh_username] if args.key?(:ssh_username) - @state = args[:state] if args.key?(:state) - @vm_size_expire_time = args[:vm_size_expire_time] if args.key?(:vm_size_expire_time) - @web_host = args[:web_host] if args.key?(:web_host) - @web_ports = args[:web_ports] if args.key?(:web_ports) - end - end - # The response message for Operations.ListOperations. class ListOperationsResponse include Google::Apis::Core::Hashable @@ -190,47 +82,45 @@ module Google class Operation 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. + # 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). + # 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::CloudshellV1::Status] 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. + # 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``. + # 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`. + # 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 @@ -249,93 +139,12 @@ module Google end end - # A public SSH key, corresponding to a private SSH key held by the client. - class PublicKey - include Google::Apis::Core::Hashable - - # Required. Format of this key's content. - # Corresponds to the JSON property `format` - # @return [String] - attr_accessor :format - - # Required. Content of this key. - # Corresponds to the JSON property `key` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :key - - # Output only. Full name of this resource, in the format - # `users/`owner_email`/environments/`environment_id`/publicKeys/`key_id``. - # ``owner_email`` is the email address of the user to whom the key belongs. - # ``environment_id`` is the identifier of the environment to which the key - # grants access. ``key_id`` is the unique identifier of the key. For example, - # `users/someone@example.com/environments/default/publicKeys/myKey`. - # 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) - @format = args[:format] if args.key?(:format) - @key = args[:key] if args.key?(:key) - @name = args[:name] if args.key?(:name) - end - end - - # Message included in the metadata field of operations returned from - # StartEnvironment. - class StartEnvironmentMetadata - include Google::Apis::Core::Hashable - - # Current state of the environment being started. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @state = args[:state] if args.key?(:state) - end - end - - # Message included in the response field of operations returned from - # StartEnvironment - # once the operation is complete. - class StartEnvironmentResponse - include Google::Apis::Core::Hashable - - # A Cloud Shell environment, which is defined as the combination of a Docker - # image specifying what is installed on the environment and a home directory - # containing the user's data that will remain across sessions. Each user has a - # single environment with the ID "default". - # Corresponds to the JSON property `environment` - # @return [Google::Apis::CloudshellV1::Environment] - attr_accessor :environment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @environment = args[:environment] if args.key?(:environment) - 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). + # 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 Status include Google::Apis::Core::Hashable @@ -344,15 +153,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 diff --git a/generated/google/apis/cloudshell_v1/representations.rb b/generated/google/apis/cloudshell_v1/representations.rb index a869111c1..2342abd1f 100644 --- a/generated/google/apis/cloudshell_v1/representations.rb +++ b/generated/google/apis/cloudshell_v1/representations.rb @@ -34,12 +34,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Environment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -52,24 +46,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class PublicKey - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StartEnvironmentMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StartEnvironmentResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Status class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,25 +64,6 @@ module Google end end - class Environment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :docker_image, as: 'dockerImage' - property :id, as: 'id' - property :name, as: 'name' - collection :public_keys, as: 'publicKeys', class: Google::Apis::CloudshellV1::PublicKey, decorator: Google::Apis::CloudshellV1::PublicKey::Representation - - property :size, as: 'size' - property :ssh_host, as: 'sshHost' - property :ssh_port, as: 'sshPort' - property :ssh_username, as: 'sshUsername' - property :state, as: 'state' - property :vm_size_expire_time, as: 'vmSizeExpireTime' - property :web_host, as: 'webHost' - collection :web_ports, as: 'webPorts' - end - end - class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -128,30 +85,6 @@ module Google end end - class PublicKey - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :format, as: 'format' - property :key, :base64 => true, as: 'key' - property :name, as: 'name' - end - end - - class StartEnvironmentMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :state, as: 'state' - end - end - - class StartEnvironmentResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :environment, as: 'environment', class: Google::Apis::CloudshellV1::Environment, decorator: Google::Apis::CloudshellV1::Environment::Representation - - end - end - class Status # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudshell_v1/service.rb b/generated/google/apis/cloudshell_v1/service.rb index 4c7b82e5b..59aa8b57e 100644 --- a/generated/google/apis/cloudshell_v1/service.rb +++ b/generated/google/apis/cloudshell_v1/service.rb @@ -48,15 +48,13 @@ module Google @batch_path = 'batch' end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -90,10 +88,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -123,9 +121,8 @@ module Google 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. + # 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 @@ -155,15 +152,14 @@ module Google 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. + # 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 diff --git a/generated/google/apis/cloudshell_v1alpha1.rb b/generated/google/apis/cloudshell_v1alpha1.rb index d6e6bdee6..b044ef1d1 100644 --- a/generated/google/apis/cloudshell_v1alpha1.rb +++ b/generated/google/apis/cloudshell_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/shell/docs/ module CloudshellV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200721' + REVISION = '20200803' # 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/cloudshell_v1alpha1/classes.rb b/generated/google/apis/cloudshell_v1alpha1/classes.rb index b575ee8ba..d6847ed2b 100644 --- a/generated/google/apis/cloudshell_v1alpha1/classes.rb +++ b/generated/google/apis/cloudshell_v1alpha1/classes.rb @@ -22,8 +22,7 @@ module Google module Apis module CloudshellV1alpha1 - # Request message for - # AuthorizeEnvironment. + # Request message for AuthorizeEnvironment. class AuthorizeEnvironmentRequest include Google::Apis::Core::Hashable @@ -55,8 +54,7 @@ module Google end end - # Request message for - # CreatePublicKey. + # Request message for CreatePublicKey. class CreatePublicKeyRequest include Google::Apis::Core::Hashable @@ -75,13 +73,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -101,8 +97,8 @@ module Google class Environment include Google::Apis::Core::Hashable - # Required. Full path to the Docker image used to run this environment, e.g. - # "gcr.io/dev-con/cloud-devshell:latest". + # Required. Full path to the Docker image used to run this environment, e.g. " + # gcr.io/dev-con/cloud-devshell:latest". # Corresponds to the JSON property `dockerImage` # @return [String] attr_accessor :docker_image @@ -113,39 +109,38 @@ module Google # @return [String] attr_accessor :id - # Output only. Full name of this resource, in the format - # `users/`owner_email`/environments/`environment_id``. ``owner_email`` is the - # email address of the user to whom this environment belongs, and - # ``environment_id`` is the identifier of this environment. For example, - # `users/someone@example.com/environments/default`. + # Output only. Full name of this resource, in the format `users/`owner_email`/ + # environments/`environment_id``. ``owner_email`` is the email address of the + # user to whom this environment belongs, and ``environment_id`` is the + # identifier of this environment. For example, `users/someone@example.com/ + # environments/default`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output only. Public keys associated with the environment. Clients can - # connect to this environment via SSH only if they possess a private key - # corresponding to at least one of these public keys. Keys can be added to or - # removed from the environment using the CreatePublicKey and DeletePublicKey - # methods. + # Output only. Public keys associated with the environment. Clients can connect + # to this environment via SSH only if they possess a private key corresponding + # to at least one of these public keys. Keys can be added to or removed from the + # environment using the CreatePublicKey and DeletePublicKey methods. # Corresponds to the JSON property `publicKeys` # @return [Array] attr_accessor :public_keys - # Indicates the size of the backing VM running the environment. If set to - # something other than DEFAULT, it will be reverted to the default VM size - # after vm_size_expire_time. + # Indicates the size of the backing VM running the environment. If set to + # something other than DEFAULT, it will be reverted to the default VM size after + # vm_size_expire_time. # Corresponds to the JSON property `size` # @return [String] attr_accessor :size - # Output only. Host to which clients can connect to initiate SSH sessions - # with the environment. + # Output only. Host to which clients can connect to initiate SSH sessions with + # the environment. # Corresponds to the JSON property `sshHost` # @return [String] attr_accessor :ssh_host - # Output only. Port to which clients can connect to initiate SSH sessions - # with the environment. + # Output only. Port to which clients can connect to initiate SSH sessions with + # the environment. # Corresponds to the JSON property `sshPort` # @return [Fixnum] attr_accessor :ssh_port @@ -161,8 +156,8 @@ module Google # @return [String] attr_accessor :state - # Output only. The time when the Environment will expire back to the default - # VM size. + # Output only. The time when the Environment will expire back to the default VM + # size. # Corresponds to the JSON property `vmSizeExpireTime` # @return [String] attr_accessor :vm_size_expire_time @@ -205,47 +200,45 @@ module Google class Operation 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. + # 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). + # 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::CloudshellV1alpha1::Status] 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. + # 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``. + # 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`. + # 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 @@ -279,12 +272,12 @@ module Google # @return [String] attr_accessor :key - # Output only. Full name of this resource, in the format - # `users/`owner_email`/environments/`environment_id`/publicKeys/`key_id``. - # ``owner_email`` is the email address of the user to whom the key belongs. - # ``environment_id`` is the identifier of the environment to which the key - # grants access. ``key_id`` is the unique identifier of the key. For example, - # `users/someone@example.com/environments/default/publicKeys/myKey`. + # Output only. Full name of this resource, in the format `users/`owner_email`/ + # environments/`environment_id`/publicKeys/`key_id``. ``owner_email`` is the + # email address of the user to whom the key belongs. ``environment_id`` is the + # identifier of the environment to which the key grants access. ``key_id`` is + # the unique identifier of the key. For example, `users/someone@example.com/ + # environments/default/publicKeys/myKey`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -321,15 +314,14 @@ module Google end end - # Request message for - # StartEnvironment. + # Request message for StartEnvironment. class StartEnvironmentRequest include Google::Apis::Core::Hashable # The initial access token passed to the environment. If this is present and - # valid, the environment will be pre-authenticated with gcloud so that the - # user can run gcloud commands in Cloud Shell without having to log in. This - # code can be updated later by calling AuthorizeEnvironment. + # valid, the environment will be pre-authenticated with gcloud so that the user + # can run gcloud commands in Cloud Shell without having to log in. This code can + # be updated later by calling AuthorizeEnvironment. # Corresponds to the JSON property `accessToken` # @return [String] attr_accessor :access_token @@ -351,8 +343,7 @@ module Google end # Message included in the response field of operations returned from - # StartEnvironment - # once the operation is complete. + # StartEnvironment once the operation is complete. class StartEnvironmentResponse include Google::Apis::Core::Hashable @@ -374,12 +365,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -388,15 +379,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 diff --git a/generated/google/apis/cloudshell_v1alpha1/service.rb b/generated/google/apis/cloudshell_v1alpha1/service.rb index efbefc328..a6d50c8ec 100644 --- a/generated/google/apis/cloudshell_v1alpha1/service.rb +++ b/generated/google/apis/cloudshell_v1alpha1/service.rb @@ -49,13 +49,11 @@ module Google end # Sends OAuth credentials to a running environment on behalf of a user. When - # this completes, the environment will be authorized to run various Google - # Cloud command line tools without requiring the user to manually - # authenticate. + # this completes, the environment will be authorized to run various Google Cloud + # command line tools without requiring the user to manually authenticate. # @param [String] name - # Name of the resource that should receive the credentials, for example - # `users/me/environments/default` or - # `users/someone@example.com/environments/default`. + # Name of the resource that should receive the credentials, for example `users/ + # me/environments/default` or `users/someone@example.com/environments/default`. # @param [Google::Apis::CloudshellV1alpha1::AuthorizeEnvironmentRequest] authorize_environment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -88,8 +86,8 @@ module Google # Gets an environment. Returns NOT_FOUND if the environment does not exist. # @param [String] name - # Name of the requested resource, for example `users/me/environments/default` - # or `users/someone@example.com/environments/default`. + # Name of the requested resource, for example `users/me/environments/default` or + # `users/someone@example.com/environments/default`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -119,9 +117,8 @@ module Google # Updates an existing environment. # @param [String] name - # Name of the resource to be updated, for example - # `users/me/environments/default` or - # `users/someone@example.com/environments/default`. + # Name of the resource to be updated, for example `users/me/environments/default` + # or `users/someone@example.com/environments/default`. # @param [Google::Apis::CloudshellV1alpha1::Environment] environment_object # @param [String] update_mask # Mask specifying which fields in the environment should be updated. @@ -156,15 +153,14 @@ module Google end # Starts an existing environment, allowing clients to connect to it. The - # returned operation will contain an instance of StartEnvironmentMetadata in - # its metadata field. Users can wait for the environment to start by polling - # this operation via GetOperation. Once the environment has finished starting - # and is ready to accept connections, the operation will contain a + # returned operation will contain an instance of StartEnvironmentMetadata in its + # metadata field. Users can wait for the environment to start by polling this + # operation via GetOperation. Once the environment has finished starting and is + # ready to accept connections, the operation will contain a # StartEnvironmentResponse in its response field. # @param [String] name - # Name of the resource that should be started, for example - # `users/me/environments/default` or - # `users/someone@example.com/environments/default`. + # Name of the resource that should be started, for example `users/me/ + # environments/default` or `users/someone@example.com/environments/default`. # @param [Google::Apis::CloudshellV1alpha1::StartEnvironmentRequest] start_environment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -197,8 +193,8 @@ module Google # Adds a public SSH key to an environment, allowing clients with the # corresponding private key to connect to that environment via SSH. If a key - # with the same format and content already exists, this will return the - # existing key. + # with the same format and content already exists, this will return the existing + # key. # @param [String] parent # Parent resource name, e.g. `users/me/environments/default`. # @param [Google::Apis::CloudshellV1alpha1::CreatePublicKeyRequest] create_public_key_request_object @@ -231,11 +227,11 @@ module Google execute_or_queue_command(command, &block) end - # Removes a public SSH key from an environment. Clients will no longer be - # able to connect to the environment using the corresponding private key. + # Removes a public SSH key from an environment. Clients will no longer be able + # to connect to the environment using the corresponding private key. # @param [String] name - # Name of the resource to be deleted, e.g. - # `users/me/environments/default/publicKeys/my-key`. + # Name of the resource to be deleted, e.g. `users/me/environments/default/ + # publicKeys/my-key`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudtrace_v1.rb b/generated/google/apis/cloudtrace_v1.rb index 939180ad2..0027fbe5b 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 = '20200713' + REVISION = '20200805' # 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/classes.rb b/generated/google/apis/cloudtrace_v1/classes.rb index 2ea076ce7..b7965483c 100644 --- a/generated/google/apis/cloudtrace_v1/classes.rb +++ b/generated/google/apis/cloudtrace_v1/classes.rb @@ -22,13 +22,11 @@ module Google module Apis module CloudtraceV1 - # 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -45,9 +43,9 @@ module Google class ListTracesResponse include Google::Apis::Core::Hashable - # If defined, indicates that there are more traces that match the request - # and that this value should be passed to the next request to continue - # retrieving additional traces. + # If defined, indicates that there are more traces that match the request and + # that this value should be passed to the next request to continue retrieving + # additional traces. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -68,9 +66,9 @@ module Google end end - # A trace describes how long it takes for an application to perform an - # operation. It consists of a set of spans, each of which represent a single - # timed event within the operation. + # A trace describes how long it takes for an application to perform an operation. + # It consists of a set of spans, each of which represent a single timed event + # within the operation. class Trace include Google::Apis::Core::Hashable @@ -84,9 +82,9 @@ module Google # @return [Array] attr_accessor :spans - # Globally unique identifier for the trace. This identifier is a 128-bit - # numeric value formatted as a 32-byte hex string. For example, - # `382d4f4c6b7bb2f4a972559d9085001d`. The numeric value should not be zero. + # Globally unique identifier for the trace. This identifier is a 128-bit numeric + # value formatted as a 32-byte hex string. For example, ` + # 382d4f4c6b7bb2f4a972559d9085001d`. The numeric value should not be zero. # Corresponds to the JSON property `traceId` # @return [String] attr_accessor :trace_id @@ -103,11 +101,11 @@ module Google end end - # A span represents a single timed event within a trace. Spans can be nested - # and form a trace tree. Often, a trace contains a root span that describes the - # end-to-end latency of an operation and, optionally, one or more subspans for - # its suboperations. Spans do not need to be contiguous. There may be gaps - # between spans in a trace. + # A span represents a single timed event within a trace. Spans can be nested and + # form a trace tree. Often, a trace contains a root span that describes the end- + # to-end latency of an operation and, optionally, one or more subspans for its + # suboperations. Spans do not need to be contiguous. There may be gaps between + # spans in a trace. class TraceSpan include Google::Apis::Core::Hashable @@ -117,53 +115,33 @@ module Google attr_accessor :end_time # Distinguishes between spans generated in a particular context. For example, - # two spans with the same name may be distinguished using `RPC_CLIENT` - # and `RPC_SERVER` to identify queueing latency associated with the span. + # two spans with the same name may be distinguished using `RPC_CLIENT` and ` + # RPC_SERVER` to identify queueing latency associated with the span. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Collection of labels associated with the span. Label keys must be less than - # 128 bytes. Label values must be less than 16 kilobytes (10MB for - # `/stacktrace` values). - # Some predefined label keys exist, or you may create your own. When creating - # your own, we recommend the following formats: - # * `/category/product/key` for agents of well-known products (e.g. - # `/db/mongodb/read_size`). - # * `short_host/path/key` for domain-specific keys (e.g. - # `foo.com/myproduct/bar`) - # Predefined labels include: - # * `/agent` - # * `/component` - # * `/error/message` - # * `/error/name` - # * `/http/client_city` - # * `/http/client_country` - # * `/http/client_protocol` - # * `/http/client_region` - # * `/http/host` - # * `/http/method` - # * `/http/path` - # * `/http/redirected_url` - # * `/http/request/size` - # * `/http/response/size` - # * `/http/route` - # * `/http/status_code` - # * `/http/url` - # * `/http/user_agent` - # * `/pid` - # * `/stacktrace` - # * `/tid` + # 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` + # values). Some predefined label keys exist, or you may create your own. When + # creating your own, we recommend the following formats: * `/category/product/ + # key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * ` + # short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) + # Predefined labels include: * `/agent` * `/component` * `/error/message` * `/ + # error/name` * `/http/client_city` * `/http/client_country` * `/http/ + # client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/ + # http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/ + # size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` + # * `/pid` * `/stacktrace` * `/tid` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Name of the span. Must be less than 128 bytes. The span name is sanitized - # and displayed in the Trace tool in the Google Cloud Platform Console. - # The name may be a method name or some other per-call site name. - # For the same executable and the same call point, a best practice is - # to use a consistent name, which makes it easier to correlate - # cross-trace spans. + # Name of the span. Must be less than 128 bytes. The span name is sanitized and + # displayed in the Trace tool in the Google Cloud Platform Console. The name may + # be a method name or some other per-call site name. For the same executable and + # the same call point, a best practice is to use a consistent name, which makes + # it easier to correlate cross-trace spans. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -173,8 +151,8 @@ module Google # @return [Fixnum] attr_accessor :parent_span_id - # Identifier for the span. Must be a 64-bit integer other than 0 and - # unique within a trace. For example, `2205310701640571284`. + # Identifier for the span. Must be a 64-bit integer other than 0 and unique + # within a trace. For example, `2205310701640571284`. # Corresponds to the JSON property `spanId` # @return [Fixnum] attr_accessor :span_id diff --git a/generated/google/apis/cloudtrace_v1/service.rb b/generated/google/apis/cloudtrace_v1/service.rb index 674182287..415b1c92a 100644 --- a/generated/google/apis/cloudtrace_v1/service.rb +++ b/generated/google/apis/cloudtrace_v1/service.rb @@ -51,11 +51,11 @@ module Google @batch_path = 'batch' end - # Sends new traces to Cloud Trace or updates existing traces. If the ID - # of a trace that you send matches that of an existing trace, any fields - # 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. + # Sends new traces to Cloud Trace or updates existing traces. If the ID of a + # trace that you send matches that of an existing trace, any fields 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. # @param [String] project_id # Required. ID of the Cloud project where the trace data is stored. # @param [Google::Apis::CloudtraceV1::Traces] traces_object @@ -125,61 +125,47 @@ module Google # @param [String] project_id # Required. ID of the Cloud project where the trace data is stored. # @param [String] end_time - # End of the time interval (inclusive) during which the trace data was - # collected from the application. + # End of the time interval (inclusive) during which the trace data was collected + # from the application. # @param [String] filter - # Optional. A filter against labels for the request. - # By default, searches use prefix matching. To specify exact match, prepend - # a plus symbol (`+`) to the search term. - # Multiple terms are ANDed. Syntax: - # * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root - # span starts with `NAME_PREFIX`. - # * `+root:NAME` or `+NAME`: Return traces where any root span's name is - # exactly `NAME`. - # * `span:NAME_PREFIX`: Return traces where any span starts with - # `NAME_PREFIX`. - # * `+span:NAME`: Return traces where any span's name is exactly - # `NAME`. - # * `latency:DURATION`: Return traces whose overall latency is - # greater or equal to than `DURATION`. Accepted units are nanoseconds - # (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For - # example, `latency:24ms` returns traces whose overall latency - # is greater than or equal to 24 milliseconds. - # * `label:LABEL_KEY`: Return all traces containing the specified - # label key (exact match, case-sensitive) regardless of the key:value - # pair's value (including empty values). - # * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified - # label key (exact match, case-sensitive) whose value starts with - # `VALUE_PREFIX`. Both a key and a value must be specified. - # * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair - # exactly matching the specified text. Both a key and a value must be - # specified. - # * `method:VALUE`: Equivalent to `/http/method:VALUE`. - # * `url:VALUE`: Equivalent to `/http/url:VALUE`. + # Optional. A filter against labels for the request. By default, searches use + # prefix matching. To specify exact match, prepend a plus symbol (`+`) to the + # search term. Multiple terms are ANDed. Syntax: * `root:NAME_PREFIX` or ` + # NAME_PREFIX`: Return traces where any root span starts with `NAME_PREFIX`. * `+ + # root:NAME` or `+NAME`: Return traces where any root span's name is exactly ` + # NAME`. * `span:NAME_PREFIX`: Return traces where any span starts with ` + # NAME_PREFIX`. * `+span:NAME`: Return traces where any span's name is exactly ` + # NAME`. * `latency:DURATION`: Return traces whose overall latency is greater or + # equal to than `DURATION`. Accepted units are nanoseconds (`ns`), milliseconds ( + # `ms`), and seconds (`s`). Default is `ms`. For example, `latency:24ms` returns + # traces whose overall latency is greater than or equal to 24 milliseconds. * ` + # label:LABEL_KEY`: Return all traces containing the specified label key (exact + # match, case-sensitive) regardless of the key:value pair's value (including + # empty values). * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the + # specified label key (exact match, case-sensitive) whose value starts with ` + # VALUE_PREFIX`. Both a key and a value must be specified. * `+LABEL_KEY:VALUE`: + # Return all traces containing a key:value pair exactly matching the specified + # text. Both a key and a value must be specified. * `method:VALUE`: Equivalent + # to `/http/method:VALUE`. * `url:VALUE`: Equivalent to `/http/url:VALUE`. # @param [String] order_by - # Optional. Field used to sort the returned traces. - # Can be one of the following: - # * `trace_id` - # * `name` (`name` field of root span in the trace) - # * `duration` (difference between `end_time` and `start_time` fields of - # the root span) - # * `start` (`start_time` field of the root span) - # Descending order can be specified by appending `desc` to the sort field - # (for example, `name desc`). - # Only one sort field is permitted. + # Optional. Field used to sort the returned traces. Can be one of the following: + # * `trace_id` * `name` (`name` field of root span in the trace) * `duration` ( + # difference between `end_time` and `start_time` fields of the root span) * ` + # start` (`start_time` field of the root span) Descending order can be specified + # by appending `desc` to the sort field (for example, `name desc`). Only one + # sort field is permitted. # @param [Fixnum] page_size # Optional. Maximum number of traces to return. If not specified or <= 0, the - # implementation selects a reasonable value. The implementation may - # return fewer traces than the requested page size. + # implementation selects a reasonable value. The implementation may return fewer + # traces than the requested page size. # @param [String] page_token - # Token identifying the page of results to return. If provided, use the - # value of the `next_page_token` field from a previous request. + # Token identifying the page of results to return. If provided, use the value of + # the `next_page_token` field from a previous request. # @param [String] start_time # Start of the time interval (inclusive) during which the trace data was # collected from the application. # @param [String] view - # Optional. Type of data returned for traces in the list. Default is - # `MINIMAL`. + # Optional. Type of data returned for traces in the list. Default is `MINIMAL`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudtrace_v2.rb b/generated/google/apis/cloudtrace_v2.rb index 9e7c1fe5e..d4aa4dae8 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 = '20200713' + REVISION = '20200805' # 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 9c3c6dbdb..ba50eb1a2 100644 --- a/generated/google/apis/cloudtrace_v2/classes.rb +++ b/generated/google/apis/cloudtrace_v2/classes.rb @@ -83,19 +83,18 @@ module Google class Attributes include Google::Apis::Core::Hashable - # The set of attributes. Each attribute's key can be up to 128 bytes - # long. The value can be a string up to 256 bytes, a signed 64-bit integer, - # or the Boolean values `true` and `false`. For example: - # "/instance_id": ` "string_value": ` "value": "my-instance" ` ` - # "/http/request_bytes": ` "int_value": 300 ` - # "abc.com/myattribute": ` "bool_value": false ` + # The set of attributes. Each attribute's key can be up to 128 bytes long. The + # value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean + # values `true` and `false`. For example: "/instance_id": ` "string_value": ` " + # value": "my-instance" ` ` "/http/request_bytes": ` "int_value": 300 ` "abc.com/ + # myattribute": ` "bool_value": false ` # Corresponds to the JSON property `attributeMap` # @return [Hash] attr_accessor :attribute_map # The number of attributes that were discarded. Attributes can be discarded - # because their keys are too long or because there are too many attributes. - # If this value is 0 then all attributes are valid. + # because their keys are too long or because there are too many attributes. If + # this value is 0 then all attributes are valid. # Corresponds to the JSON property `droppedAttributesCount` # @return [Fixnum] attr_accessor :dropped_attributes_count @@ -115,8 +114,8 @@ module Google class BatchWriteSpansRequest include Google::Apis::Core::Hashable - # Required. A list of new spans. The span names must not match existing - # spans, or the results are undefined. + # Required. A list of new spans. The span names must not match existing spans, + # or the results are undefined. # Corresponds to the JSON property `spans` # @return [Array] attr_accessor :spans @@ -131,13 +130,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -151,9 +148,9 @@ module Google end # A pointer from the current span to another span in the same trace or in a - # different trace. For example, this can be used in batching operations, - # where a single batch handler processes multiple requests from different - # traces or when the handler receives a request from a different project. + # different trace. For example, this can be used in batching operations, where a + # single batch handler processes multiple requests from different traces or when + # the handler receives a request from a different project. class Link include Google::Apis::Core::Hashable @@ -190,13 +187,13 @@ module Google end end - # A collection of links, which are references from this span to a span - # in the same or different trace. + # A collection of links, which are references from this span to a span in the + # same or different trace. class Links include Google::Apis::Core::Hashable - # The number of dropped links after the maximum size was enforced. If - # this value is 0, then no links were dropped. + # The number of dropped links after the maximum size was enforced. If this value + # is 0, then no links were dropped. # Corresponds to the JSON property `droppedLinksCount` # @return [Fixnum] attr_accessor :dropped_links_count @@ -221,21 +218,19 @@ module Google class MessageEvent include Google::Apis::Core::Hashable - # The number of compressed bytes sent or received. If missing assumed to - # be the same size as uncompressed. + # The number of compressed bytes sent or received. If missing assumed to be the + # same size as uncompressed. # Corresponds to the JSON property `compressedSizeBytes` # @return [Fixnum] attr_accessor :compressed_size_bytes - # An identifier for the MessageEvent's message that can be used to match - # SENT and RECEIVED MessageEvents. It is recommended to be unique within - # a Span. + # An identifier for the MessageEvent's message that can be used to match SENT + # and RECEIVED MessageEvents. It is recommended to be unique within a Span. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # Type of MessageEvent. Indicates whether the message was sent or - # received. + # Type of MessageEvent. Indicates whether the message was sent or received. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -283,12 +278,11 @@ module Google end end - # A span represents a single operation within a trace. Spans can be - # nested to form a trace tree. Often, a trace contains a root span - # that describes the end-to-end latency, and one or more subspans for - # its sub-operations. A trace can also contain multiple root spans, - # or none at all. Spans do not need to be contiguous—there may be - # gaps or overlaps between spans in a trace. + # A span represents a single operation within a trace. Spans can be nested to + # form a trace tree. Often, a trace contains a root span that describes the end- + # to-end latency, and one or more subspans for its sub-operations. A trace can + # also contain multiple root spans, or none at all. Spans do not need to be + # contiguous—there may be gaps or overlaps between spans in a trace. class Span include Google::Apis::Core::Hashable @@ -297,8 +291,8 @@ module Google # @return [Google::Apis::CloudtraceV2::Attributes] attr_accessor :attributes - # Optional. The number of child spans that were generated while this span - # was active. If set, allows implementation to detect missing child spans. + # Optional. The number of child spans that were generated while this span was + # active. If set, allows implementation to detect missing child spans. # Corresponds to the JSON property `childSpanCount` # @return [Fixnum] attr_accessor :child_span_count @@ -309,39 +303,36 @@ module Google attr_accessor :display_name # Required. The end time of the span. On the client side, this is the time kept - # by - # the local machine where the span execution ends. On the server side, this + # by the local machine where the span execution ends. On the server side, this # is the time when the server application handler stops running. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # A collection of links, which are references from this span to a span - # in the same or different trace. + # A collection of links, which are references from this span to a span in the + # same or different trace. # Corresponds to the JSON property `links` # @return [Google::Apis::CloudtraceV2::Links] attr_accessor :links - # 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. - # [SPAN_ID] is a unique identifier for a span within a trace; it - # is a 16-character hexadecimal encoding of an 8-byte array. It should not - # be zero. + # 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. + # [SPAN_ID] is a unique identifier for a span within a trace; it is a 16- + # character hexadecimal encoding of an 8-byte array. It should not be zero. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The [SPAN_ID] of this span's parent span. If this is a root span, - # then this field must be empty. + # The [SPAN_ID] of this span's parent span. If this is a root span, then this + # field must be empty. # Corresponds to the JSON property `parentSpanId` # @return [String] attr_accessor :parent_span_id - # Optional. Set this parameter to indicate whether this span is in - # the same process as its parent. If you do not set this parameter, - # Trace is unable to take advantage of this helpful information. + # Optional. Set this parameter to indicate whether this span is in the same + # process as its parent. If you do not set this parameter, Trace is unable to + # take advantage of this helpful information. # Corresponds to the JSON property `sameProcessAsParentSpan` # @return [Boolean] attr_accessor :same_process_as_parent_span @@ -353,9 +344,8 @@ module Google attr_accessor :span_id # 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. + # 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` # @return [String] attr_accessor :span_kind @@ -366,26 +356,25 @@ module Google attr_accessor :stack_trace # Required. The start time of the span. On the client side, this is the time - # kept by - # the local machine where the span execution starts. On the server side, this - # is the time when the server's application handler starts running. + # kept by the local machine where the span execution starts. On the server side, + # this is the time when the server's application handler starts running. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # 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). + # 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 `status` # @return [Google::Apis::CloudtraceV2::Status] attr_accessor :status - # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation - # on the span, consisting of either user-supplied key:value pairs, or - # details of a message sent/received between Spans. + # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation on + # the span, consisting of either user-supplied key:value pairs, or details of a + # message sent/received between Spans. # Corresponds to the JSON property `timeEvents` # @return [Google::Apis::CloudtraceV2::TimeEvents] attr_accessor :time_events @@ -417,8 +406,8 @@ module Google class StackFrame include Google::Apis::Core::Hashable - # The column number where the function call appears, if available. - # This is important in JavaScript because of its anonymous functions. + # The column number where the function call appears, if available. This is + # important in JavaScript because of its anonymous functions. # Corresponds to the JSON property `columnNumber` # @return [Fixnum] attr_accessor :column_number @@ -473,9 +462,8 @@ module Google class StackFrames include Google::Apis::Core::Hashable - # The number of stack frames that were dropped because there - # were too many stack frames. - # If this value is 0, then no stack frames were dropped. + # The number of stack frames that were dropped because there were too many stack + # frames. If this value is 0, then no stack frames were dropped. # Corresponds to the JSON property `droppedFramesCount` # @return [Fixnum] attr_accessor :dropped_frames_count @@ -505,13 +493,11 @@ module Google # @return [Google::Apis::CloudtraceV2::StackFrames] attr_accessor :stack_frames - # The hash ID is used to conserve network bandwidth for duplicate - # stack traces within a single trace. - # Often multiple spans will have identical stack traces. - # The first occurrence of a stack trace should contain both the - # `stackFrame` content and a value in `stackTraceHashId`. - # Subsequent spans within the same request can refer - # to that stack trace by only setting `stackTraceHashId`. + # The hash ID is used to conserve network bandwidth for duplicate stack traces + # within a single trace. Often multiple spans will have identical stack traces. + # The first occurrence of a stack trace should contain both the `stackFrame` + # content and a value in `stackTraceHashId`. Subsequent spans within the same + # request can refer to that stack trace by only setting `stackTraceHashId`. # Corresponds to the JSON property `stackTraceHashId` # @return [Fixnum] attr_accessor :stack_trace_hash_id @@ -527,12 +513,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -541,15 +527,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -597,20 +583,20 @@ module Google end end - # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation - # on the span, consisting of either user-supplied key:value pairs, or - # details of a message sent/received between Spans. + # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation on + # the span, consisting of either user-supplied key:value pairs, or details of a + # message sent/received between Spans. class TimeEvents include Google::Apis::Core::Hashable - # The number of dropped annotations in all the included time events. - # If the value is 0, then no annotations were dropped. + # The number of dropped annotations in all the included time events. If the + # value is 0, then no annotations were dropped. # Corresponds to the JSON property `droppedAnnotationsCount` # @return [Fixnum] attr_accessor :dropped_annotations_count - # The number of dropped message events in all the included time events. - # If the value is 0, then no message events were dropped. + # The number of dropped message events in all the included time events. If the + # value is 0, then no message events were dropped. # Corresponds to the JSON property `droppedMessageEventsCount` # @return [Fixnum] attr_accessor :dropped_message_events_count @@ -636,18 +622,17 @@ module Google class TruncatableString include Google::Apis::Core::Hashable - # The number of bytes removed from the original string. If this - # value is 0, then the string was not shortened. + # The number of bytes removed from the original string. If this value is 0, then + # the string was not shortened. # Corresponds to the JSON property `truncatedByteCount` # @return [Fixnum] attr_accessor :truncated_byte_count - # The shortened string. For example, if the original string is 500 - # bytes long and the limit of the string is 128 bytes, then - # `value` contains the first 128 bytes of the 500-byte string. - # Truncation always happens on a UTF8 character boundary. If there - # are multi-byte characters in the string, then the length of the - # shortened string might be less than the size limit. + # The shortened string. For example, if the original string is 500 bytes long + # and the limit of the string is 128 bytes, then `value` contains the first 128 + # bytes of the 500-byte string. Truncation always happens on a UTF8 character + # boundary. If there are multi-byte characters in the string, then the length of + # the shortened string might be less than the size limit. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value diff --git a/generated/google/apis/cloudtrace_v2/service.rb b/generated/google/apis/cloudtrace_v2/service.rb index 5f53413ed..61c88baf5 100644 --- a/generated/google/apis/cloudtrace_v2/service.rb +++ b/generated/google/apis/cloudtrace_v2/service.rb @@ -51,11 +51,10 @@ module Google @batch_path = 'batch' end - # Sends new spans to new or existing traces. You cannot update - # existing spans. + # Sends new spans to new or existing traces. You cannot update existing spans. # @param [String] name - # Required. The name of the project where the spans belong. The format is - # `projects/[PROJECT_ID]`. + # Required. The name of the project where the spans belong. The format is ` + # projects/[PROJECT_ID]`. # @param [Google::Apis::CloudtraceV2::BatchWriteSpansRequest] batch_write_spans_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -88,13 +87,11 @@ module Google # Creates a new span. # @param [String] name - # 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. - # [SPAN_ID] is a unique identifier for a span within a trace; it - # is a 16-character hexadecimal encoding of an 8-byte array. It should not - # be zero. + # 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. + # [SPAN_ID] is a unique identifier for a span within a trace; it is a 16- + # character hexadecimal encoding of an 8-byte array. It should not be zero. # @param [Google::Apis::CloudtraceV2::Span] span_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/cloudtrace_v2beta1.rb b/generated/google/apis/cloudtrace_v2beta1.rb index 5b6abaf52..514cdfbd3 100644 --- a/generated/google/apis/cloudtrace_v2beta1.rb +++ b/generated/google/apis/cloudtrace_v2beta1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/trace module CloudtraceV2beta1 VERSION = 'V2beta1' - REVISION = '20200330' + REVISION = '20200805' # 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_v2beta1/classes.rb b/generated/google/apis/cloudtrace_v2beta1/classes.rb index 6f8f02bb3..da21346c9 100644 --- a/generated/google/apis/cloudtrace_v2beta1/classes.rb +++ b/generated/google/apis/cloudtrace_v2beta1/classes.rb @@ -22,13 +22,11 @@ module Google module Apis module CloudtraceV2beta1 - # 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -45,8 +43,8 @@ module Google class ListTraceSinksResponse include Google::Apis::Core::Hashable - # If there might be more results than appear in this response, then - # `nextPageToken` is included. To get the next set of results, call the same + # If there might be more results than appear in this response, then ` + # nextPageToken` is included. To get the next set of results, call the same # method again using the value of `nextPageToken` as `pageToken`. # Corresponds to the JSON property `nextPageToken` # @return [String] @@ -72,9 +70,8 @@ module Google class OutputConfig include Google::Apis::Core::Hashable - # The destination for writing trace data. Currently only BigQuery is - # supported. E.g.: - # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" + # The destination for writing trace data. Currently only BigQuery is supported. + # E.g.: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" # Corresponds to the JSON property `destination` # @return [String] attr_accessor :destination @@ -89,20 +86,16 @@ module Google end end - # Describes a sink used to export traces to a BigQuery dataset. The sink must - # be created within a project. + # Describes a sink used to export traces to a BigQuery dataset. The sink must be + # created within a project. class TraceSink include Google::Apis::Core::Hashable # Required. The canonical sink resource name, unique within the project. Must be - # of the - # form: - # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. - # E.g.: - # `"projects/12345/traceSinks/my-project-trace-sink"`. - # Sink identifiers are limited to 256 characters and can include only the - # following characters: upper and lower-case alphanumeric characters, - # underscores, hyphens, and periods. + # of the form: project/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: `"projects/ + # 12345/traceSinks/my-project-trace-sink"`. Sink identifiers are limited to 256 + # characters and can include only the following characters: upper and lower-case + # alphanumeric characters, underscores, hyphens, and periods. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -112,17 +105,14 @@ module Google # @return [Google::Apis::CloudtraceV2beta1::OutputConfig] attr_accessor :output_config - # Output only. A service account name for exporting the data. This field is - # set by sinks.create and sinks.update. The service account will need to be - # granted write access to the destination specified in the output - # configuration, see [Granting access for a - # resource](/iam/docs/granting-roles-to-service-accounts# - # granting_access_to_a_service_account_for_a_resource). - # To create tables and write data this account will need the dataEditor role. - # Read more about roles in the [BigQuery - # documentation](https://cloud.google.com/bigquery/docs/access-control). - # E.g.: - # "service-00000001@00000002.iam.gserviceaccount.com" + # Output only. A service account name for exporting the data. This field is set + # by sinks.create and sinks.update. The service account will need to be granted + # write access to the destination specified in the output configuration, see [ + # Granting access for a resource](/iam/docs/granting-roles-to-service-accounts# + # granting_access_to_a_service_account_for_a_resource). To create tables and + # write data this account will need the dataEditor role. Read more about roles + # in the [BigQuery documentation](https://cloud.google.com/bigquery/docs/access- + # control). E.g.: "service-00000001@00000002.iam.gserviceaccount.com" # Corresponds to the JSON property `writerIdentity` # @return [String] attr_accessor :writer_identity diff --git a/generated/google/apis/cloudtrace_v2beta1/service.rb b/generated/google/apis/cloudtrace_v2beta1/service.rb index 0db861ddf..ff34fef32 100644 --- a/generated/google/apis/cloudtrace_v2beta1/service.rb +++ b/generated/google/apis/cloudtrace_v2beta1/service.rb @@ -51,15 +51,14 @@ module Google @batch_path = 'batch' end - # Creates a sink that exports trace spans to a destination. The - # export of newly-ingested traces begins immediately, unless the sink's - # `writer_identity` is not permitted to write to the destination. A sink can - # export traces only from the resource owning the sink (the 'parent'). + # Creates a sink that exports trace spans to a destination. The export of newly- + # ingested traces begins immediately, unless the sink's `writer_identity` is not + # permitted to write to the destination. A sink can export traces only from the + # resource owning the sink (the 'parent'). # @param [String] parent # Required. The resource in which to create the sink (currently only project - # sinks are supported): - # "projects/[PROJECT_ID]" - # Examples: `"projects/my-trace-project"`, `"projects/123456789"`. + # sinks are supported): "projects/[PROJECT_ID]" Examples: `"projects/my-trace- + # project"`, `"projects/123456789"`. # @param [Google::Apis::CloudtraceV2beta1::TraceSink] trace_sink_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -92,10 +91,9 @@ module Google # Deletes a sink. # @param [String] name - # Required. The full resource name of the sink to delete, including the - # parent resource and the sink identifier: - # "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" - # Example: `"projects/12345/traceSinks/my-sink-id"`. + # Required. The full resource name of the sink to delete, including the parent + # resource and the sink identifier: "projects/[PROJECT_NUMBER]/traceSinks/[ + # SINK_ID]" Example: `"projects/12345/traceSinks/my-sink-id"`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -125,9 +123,8 @@ module Google # Get a trace sink by name under the parent resource (GCP project). # @param [String] name - # Required. The resource name of the sink: - # "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" - # Example: `"projects/12345/traceSinks/my-sink-id"`. + # Required. The resource name of the sink: "projects/[PROJECT_NUMBER]/traceSinks/ + # [SINK_ID]" Example: `"projects/12345/traceSinks/my-sink-id"`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -158,17 +155,16 @@ module Google # List all sinks for the parent resource (GCP project). # @param [String] parent # Required. The parent resource whose sinks are to be listed (currently only - # project parent resources are supported): - # "projects/[PROJECT_ID]" + # project parent resources are supported): "projects/[PROJECT_ID]" # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. - # Non-positive values are ignored. The presence of `nextPageToken` in the - # response indicates that more results might be available. + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of `nextPageToken` in the response + # indicates that more results might be available. # @param [String] page_token # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. `pageToken` must be the value of - # `nextPageToken` from the previous response. The values of other method - # parameters should be identical to those in the previous call. + # preceding call to this method. `pageToken` must be the value of `nextPageToken` + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -198,24 +194,21 @@ module Google execute_or_queue_command(command, &block) end - # Updates a sink. This method updates fields in the existing sink according - # to the provided update mask. The sink's name cannot be changed nor any - # output-only fields (e.g. the writer_identity). + # Updates a sink. This method updates fields in the existing sink according to + # the provided update mask. The sink's name cannot be changed nor any output- + # only fields (e.g. the writer_identity). # @param [String] name - # Required. The full resource name of the sink to update, including the - # parent resource and the sink identifier: - # "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" - # Example: `"projects/12345/traceSinks/my-sink-id"`. + # Required. The full resource name of the sink to update, including the parent + # resource and the sink identifier: "projects/[PROJECT_NUMBER]/traceSinks/[ + # SINK_ID]" Example: `"projects/12345/traceSinks/my-sink-id"`. # @param [Google::Apis::CloudtraceV2beta1::TraceSink] trace_sink_object # @param [String] update_mask - # Required. Field mask that specifies the fields in `trace_sink` that are to - # be updated. A sink field is overwritten if, and only if, it is - # in the update mask. `name` and `writer_identity` fields cannot be updated. - # An empty updateMask is considered an error. - # For a detailed `FieldMask` definition, see - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask - # Example: `updateMask=output_config`. + # Required. Field mask that specifies the fields in `trace_sink` that are to be + # updated. A sink field is overwritten if, and only if, it is in the update mask. + # `name` and `writer_identity` fields cannot be updated. An empty updateMask is + # considered an error. For a detailed `FieldMask` definition, see https:// + # developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask Example: `updateMask=output_config`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/datafusion_v1.rb b/generated/google/apis/datafusion_v1.rb index 7f74963c1..1c7d708f2 100644 --- a/generated/google/apis/datafusion_v1.rb +++ b/generated/google/apis/datafusion_v1.rb @@ -21,20 +21,17 @@ module Google # Cloud Data Fusion API # # Cloud Data Fusion is a fully-managed, cloud native, enterprise data - # integration service for - # quickly building and managing data pipelines. It provides a graphical - # interface to increase - # time efficiency and reduce complexity, and allows business users, - # developers, and data - # scientists to easily and reliably build scalable data integration - # solutions to cleanse, + # integration service for quickly building and managing data pipelines. It + # provides a graphical interface to increase time efficiency and reduce + # complexity, and allows business users, developers, and data scientists to + # easily and reliably build scalable data integration solutions to cleanse, # prepare, blend, transfer and transform data without having to wrestle with # infrastructure. # # @see https://cloud.google.com/data-fusion/docs module DatafusionV1 VERSION = 'V1' - REVISION = '20200609' + REVISION = '20200803' # 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/datafusion_v1/classes.rb b/generated/google/apis/datafusion_v1/classes.rb index 509434f9b..c1c39da06 100644 --- a/generated/google/apis/datafusion_v1/classes.rb +++ b/generated/google/apis/datafusion_v1/classes.rb @@ -41,53 +41,21 @@ module Google end end - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -96,9 +64,9 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -114,28 +82,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -161,69 +116,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::DatafusionV1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -253,13 +196,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -272,52 +213,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -336,7 +268,6 @@ module Google end # Represents a Data Fusion instance. - # Next available ID: 23 class Instance include Google::Apis::Core::Hashable @@ -390,44 +321,49 @@ module Google attr_accessor :gcs_bucket # The resource labels for instance to use to annotate any related underlying - # resources such as GCE VMs. The character '=' is not allowed to be used - # within the labels. + # resources such as GCE VMs. The character '=' is not allowed to be used within + # the labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Output only. The name of this instance is in the form of - # projects/`project`/locations/`location`/instances/`instance`. + # Output only. The name of this instance is in the form of projects/`project`/ + # locations/`location`/instances/`instance`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Network configuration for a Data Fusion instance. These configurations - # are used for peering with the customer network. Configurations are optional - # when a public Data Fusion instance is to be created. However, providing - # these configurations allows several benefits, such as reduced network latency - # while accessing the customer resources from managed Data Fusion instance - # nodes, as well as access to the customer on-prem resources. + # Network configuration for a Data Fusion instance. These configurations are + # used for peering with the customer network. Configurations are optional when a + # public Data Fusion instance is to be created. However, providing these + # configurations allows several benefits, such as reduced network latency while + # accessing the customer resources from managed Data Fusion instance nodes, as + # well as access to the customer on-prem resources. # Corresponds to the JSON property `networkConfig` # @return [Google::Apis::DatafusionV1::NetworkConfig] attr_accessor :network_config - # Map of additional options used to configure the behavior of - # Data Fusion instance. + # Map of additional options used to configure the behavior of Data Fusion + # instance. # Corresponds to the JSON property `options` # @return [Hash] attr_accessor :options - # Specifies whether the Data Fusion instance should be private. If set to - # true, all Data Fusion nodes will have private IP addresses and will not be - # able to access the public internet. + # Output only. P4 service account for the customer project. + # Corresponds to the JSON property `p4ServiceAccount` + # @return [String] + attr_accessor :p4_service_account + + # Specifies whether the Data Fusion instance should be private. If set to true, + # all Data Fusion nodes will have private IP addresses and will not be able to + # access the public internet. # Corresponds to the JSON property `privateInstance` # @return [Boolean] attr_accessor :private_instance alias_method :private_instance?, :private_instance - # Output only. Service account which will be used to access resources in - # the customer project." + # Output only. Deprecated. Use tenant_project_id instead to extract the tenant + # project ID. # Corresponds to the JSON property `serviceAccount` # @return [String] attr_accessor :service_account @@ -448,6 +384,11 @@ module Google # @return [String] attr_accessor :state_message + # Output only. The name of the tenant project. + # Corresponds to the JSON property `tenantProjectId` + # @return [String] + attr_accessor :tenant_project_id + # Required. Instance type. # Corresponds to the JSON property `type` # @return [String] @@ -488,11 +429,13 @@ module Google @name = args[:name] if args.key?(:name) @network_config = args[:network_config] if args.key?(:network_config) @options = args[:options] if args.key?(:options) + @p4_service_account = args[:p4_service_account] if args.key?(:p4_service_account) @private_instance = args[:private_instance] if args.key?(:private_instance) @service_account = args[:service_account] if args.key?(:service_account) @service_endpoint = args[:service_endpoint] if args.key?(:service_endpoint) @state = args[:state] if args.key?(:state) @state_message = args[:state_message] if args.key?(:state_message) + @tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) @version = args[:version] if args.key?(:version) @@ -612,14 +555,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -635,8 +578,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -655,26 +598,26 @@ module Google end end - # Network configuration for a Data Fusion instance. These configurations - # are used for peering with the customer network. Configurations are optional - # when a public Data Fusion instance is to be created. However, providing - # these configurations allows several benefits, such as reduced network latency - # while accessing the customer resources from managed Data Fusion instance - # nodes, as well as access to the customer on-prem resources. + # Network configuration for a Data Fusion instance. These configurations are + # used for peering with the customer network. Configurations are optional when a + # public Data Fusion instance is to be created. However, providing these + # configurations allows several benefits, such as reduced network latency while + # accessing the customer resources from managed Data Fusion instance nodes, as + # well as access to the customer on-prem resources. class NetworkConfig include Google::Apis::Core::Hashable # The IP range in CIDR notation to use for the managed Data Fusion instance - # nodes. This range must not overlap with any other ranges used in the - # customer network. + # nodes. This range must not overlap with any other ranges used in the customer + # network. # Corresponds to the JSON property `ipAllocation` # @return [String] attr_accessor :ip_allocation - # Name of the network in the customer project with which the Tenant Project - # will be peered for executing pipelines. In case of shared VPC where the - # network resides in another host project the network should specified in - # the form of projects/`host-project-id`/global/networks/`network` + # Name of the network in the customer project with which the Tenant Project will + # be peered for executing pipelines. In case of shared VPC where the network + # resides in another host project the network should specified in the form of + # projects/`host-project-id`/global/networks/`network` # Corresponds to the JSON property `network` # @return [String] attr_accessor :network @@ -695,47 +638,45 @@ module Google class Operation 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. + # 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). + # 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::DatafusionV1::Status] 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. + # 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``. + # 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`. + # 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 @@ -773,10 +714,9 @@ module Google # @return [String] attr_accessor :end_time - # Identifies whether the user has requested cancellation - # of the operation. Operations that have successfully been cancelled - # have Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. + # Identifies whether the user has requested cancellation of the operation. + # Operations that have successfully been cancelled have Operation.error value + # with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. # Corresponds to the JSON property `requestedCancellation` # @return [Boolean] attr_accessor :requested_cancellation @@ -814,66 +754,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -882,48 +788,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -959,74 +861,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DatafusionV1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -1042,12 +909,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1056,15 +923,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1085,10 +952,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1107,8 +973,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1128,6 +993,11 @@ module Google class Version include Google::Apis::Core::Hashable + # Represents a list of available feature names for a given version. + # Corresponds to the JSON property `availableFeatures` + # @return [Array] + attr_accessor :available_features + # Whether this is currently the default version for Cloud Data Fusion # Corresponds to the JSON property `defaultVersion` # @return [Boolean] @@ -1145,6 +1015,7 @@ module Google # Update properties of this object def update!(**args) + @available_features = args[:available_features] if args.key?(:available_features) @default_version = args[:default_version] if args.key?(:default_version) @version_number = args[:version_number] if args.key?(:version_number) end diff --git a/generated/google/apis/datafusion_v1/representations.rb b/generated/google/apis/datafusion_v1/representations.rb index 6cebf8e7f..93d24e30a 100644 --- a/generated/google/apis/datafusion_v1/representations.rb +++ b/generated/google/apis/datafusion_v1/representations.rb @@ -235,11 +235,13 @@ module Google property :network_config, as: 'networkConfig', class: Google::Apis::DatafusionV1::NetworkConfig, decorator: Google::Apis::DatafusionV1::NetworkConfig::Representation hash :options, as: 'options' + property :p4_service_account, as: 'p4ServiceAccount' property :private_instance, as: 'privateInstance' property :service_account, as: 'serviceAccount' property :service_endpoint, as: 'serviceEndpoint' property :state, as: 'state' property :state_message, as: 'stateMessage' + property :tenant_project_id, as: 'tenantProjectId' property :type, as: 'type' property :update_time, as: 'updateTime' property :version, as: 'version' @@ -381,6 +383,7 @@ module Google class Version # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :available_features, as: 'availableFeatures' property :default_version, as: 'defaultVersion' property :version_number, as: 'versionNumber' end diff --git a/generated/google/apis/datafusion_v1/service.rb b/generated/google/apis/datafusion_v1/service.rb index 77c909535..cfc0c02af 100644 --- a/generated/google/apis/datafusion_v1/service.rb +++ b/generated/google/apis/datafusion_v1/service.rb @@ -23,13 +23,10 @@ module Google # Cloud Data Fusion API # # Cloud Data Fusion is a fully-managed, cloud native, enterprise data - # integration service for - # quickly building and managing data pipelines. It provides a graphical - # interface to increase - # time efficiency and reduce complexity, and allows business users, - # developers, and data - # scientists to easily and reliably build scalable data integration - # solutions to cleanse, + # integration service for quickly building and managing data pipelines. It + # provides a graphical interface to increase time efficiency and reduce + # complexity, and allows business users, developers, and data scientists to + # easily and reliably build scalable data integration solutions to cleanse, # prepare, blend, transfer and transform data without having to wrestle with # infrastructure. # @@ -92,8 +89,7 @@ module Google # @param [String] filter # The standard list filter. # @param [Boolean] include_unrevealed_locations - # If true, the returned list will include locations which are not yet - # revealed. + # If true, the returned list will include locations which are not yet revealed. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token @@ -131,8 +127,8 @@ module Google # Creates a new Data Fusion instance in the specified project and location. # @param [String] parent - # The instance's project and location in the format - # projects/`project`/locations/`location`. + # The instance's project and location in the format projects/`project`/locations/ + # `location`. # @param [Google::Apis::DatafusionV1::Instance] instance_object # @param [String] instance_id # The name of the instance to create. @@ -168,8 +164,8 @@ module Google # Deletes a single Date Fusion instance. # @param [String] name - # The instance resource name in the format - # projects/`project`/locations/`location`/instances/`instance` + # The instance resource name in the format projects/`project`/locations/` + # location`/instances/`instance` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -199,8 +195,8 @@ module Google # Gets details of a single Data Fusion instance. # @param [String] name - # The instance resource name in the format - # projects/`project`/locations/`location`/instances/`instance`. + # The instance resource name in the format projects/`project`/locations/` + # location`/instances/`instance`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -228,22 +224,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -274,19 +267,19 @@ module Google # Lists Data Fusion instances in the specified project and location. # @param [String] parent - # The project and location for which to retrieve instance information - # in the format projects/`project`/locations/`location`. If the location is - # specified as '-' (wildcard), then all regions available to the project - # are queried, and the results are aggregated. + # The project and location for which to retrieve instance information in the + # format projects/`project`/locations/`location`. If the location is specified + # as '-' (wildcard), then all regions available to the project are queried, and + # the results are aggregated. # @param [String] filter # List filter. # @param [String] order_by - # Sort results. Supported values are "name", "name desc", or "" (unsorted). + # Sort results. Supported values are "name", "name desc", or "" (unsorted). # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token - # The next_page_token value to use if there are additional - # results to retrieve for this list request. + # The next_page_token value to use if there are additional results to retrieve + # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -320,15 +313,14 @@ module Google # Updates a single Data Fusion instance. # @param [String] name - # Output only. The name of this instance is in the form of - # projects/`project`/locations/`location`/instances/`instance`. + # Output only. The name of this instance is in the form of projects/`project`/ + # locations/`location`/instances/`instance`. # @param [Google::Apis::DatafusionV1::Instance] instance_object # @param [String] update_mask - # Field mask is used to specify the fields that the update will overwrite - # in an instance resource. The fields specified in the update_mask are - # relative to the resource, not the full request. - # A field will be overwritten if it is in the mask. - # If the user does not provide a mask, all the supported fields (labels, + # Field mask is used to specify the fields that the update will overwrite in an + # instance resource. The fields specified in the update_mask are relative to the + # resource, not the full request. A field will be overwritten if it is in the + # mask. If the user does not provide a mask, all the supported fields (labels, # options, and version currently) will be overwritten. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -360,8 +352,8 @@ module Google execute_or_queue_command(command, &block) end - # Restart a single Data Fusion instance. - # At the end of an operation instance is fully restarted. + # Restart a single Data Fusion instance. At the end of an operation instance is + # fully restarted. # @param [String] name # Name of the Data Fusion instance which need to be restarted in the form of # projects/`project`/locations/`location`/instances/`instance` @@ -396,11 +388,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::DatafusionV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -431,15 +423,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::DatafusionV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -470,15 +461,13 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -512,10 +501,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -545,9 +534,8 @@ module Google 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. + # 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 @@ -577,15 +565,14 @@ module Google 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. + # 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 @@ -624,20 +611,20 @@ module Google execute_or_queue_command(command, &block) end - # Lists possible versions for Data Fusion instances in the specified project - # and location. + # Lists possible versions for Data Fusion instances in the specified project and + # location. # @param [String] parent # Required. The project and location for which to retrieve instance information # in the format projects/`project`/locations/`location`. # @param [Boolean] latest_patch_only - # Whether or not to return the latest patch of every available minor version. - # If true, only the latest patch will be returned. Ex. if allowed versions is - # [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] + # Whether or not to return the latest patch of every available minor version. If + # true, only the latest patch will be returned. Ex. if allowed versions is [6.1. + # 1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token - # The next_page_token value to use if there are additional - # results to retrieve for this list request. + # The next_page_token value to use if there are additional results to retrieve + # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/datafusion_v1beta1.rb b/generated/google/apis/datafusion_v1beta1.rb index 2179748a0..1d65c7826 100644 --- a/generated/google/apis/datafusion_v1beta1.rb +++ b/generated/google/apis/datafusion_v1beta1.rb @@ -21,20 +21,17 @@ module Google # Cloud Data Fusion API # # Cloud Data Fusion is a fully-managed, cloud native, enterprise data - # integration service for - # quickly building and managing data pipelines. It provides a graphical - # interface to increase - # time efficiency and reduce complexity, and allows business users, - # developers, and data - # scientists to easily and reliably build scalable data integration - # solutions to cleanse, + # integration service for quickly building and managing data pipelines. It + # provides a graphical interface to increase time efficiency and reduce + # complexity, and allows business users, developers, and data scientists to + # easily and reliably build scalable data integration solutions to cleanse, # prepare, blend, transfer and transform data without having to wrestle with # infrastructure. # # @see https://cloud.google.com/data-fusion/docs module DatafusionV1beta1 VERSION = 'V1beta1' - REVISION = '20200609' + REVISION = '20200803' # 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/datafusion_v1beta1/classes.rb b/generated/google/apis/datafusion_v1beta1/classes.rb index ac8fd26ec..94263d932 100644 --- a/generated/google/apis/datafusion_v1beta1/classes.rb +++ b/generated/google/apis/datafusion_v1beta1/classes.rb @@ -41,53 +41,21 @@ module Google end end - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -96,9 +64,9 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -114,28 +82,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -161,69 +116,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::DatafusionV1beta1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -253,13 +196,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -272,52 +213,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -336,7 +268,6 @@ module Google end # Represents a Data Fusion instance. - # Next available ID: 23 class Instance include Google::Apis::Core::Hashable @@ -390,44 +321,49 @@ module Google attr_accessor :gcs_bucket # The resource labels for instance to use to annotate any related underlying - # resources such as Compute Engine VMs. The character '=' is not allowed to - # be used within the labels. + # resources such as Compute Engine VMs. The character '=' is not allowed to be + # used within the labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Output only. The name of this instance is in the form of - # projects/`project`/locations/`location`/instances/`instance`. + # Output only. The name of this instance is in the form of projects/`project`/ + # locations/`location`/instances/`instance`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Network configuration for a Data Fusion instance. These configurations - # are used for peering with the customer network. Configurations are optional - # when a public Data Fusion instance is to be created. However, providing - # these configurations allows several benefits, such as reduced network latency - # while accessing the customer resources from managed Data Fusion instance - # nodes, as well as access to the customer on-prem resources. + # Network configuration for a Data Fusion instance. These configurations are + # used for peering with the customer network. Configurations are optional when a + # public Data Fusion instance is to be created. However, providing these + # configurations allows several benefits, such as reduced network latency while + # accessing the customer resources from managed Data Fusion instance nodes, as + # well as access to the customer on-prem resources. # Corresponds to the JSON property `networkConfig` # @return [Google::Apis::DatafusionV1beta1::NetworkConfig] attr_accessor :network_config - # Map of additional options used to configure the behavior of - # Data Fusion instance. + # Map of additional options used to configure the behavior of Data Fusion + # instance. # Corresponds to the JSON property `options` # @return [Hash] attr_accessor :options - # Specifies whether the Data Fusion instance should be private. If set to - # true, all Data Fusion nodes will have private IP addresses and will not be - # able to access the public internet. + # Output only. P4 service account for the customer project. + # Corresponds to the JSON property `p4ServiceAccount` + # @return [String] + attr_accessor :p4_service_account + + # Specifies whether the Data Fusion instance should be private. If set to true, + # all Data Fusion nodes will have private IP addresses and will not be able to + # access the public internet. # Corresponds to the JSON property `privateInstance` # @return [Boolean] attr_accessor :private_instance alias_method :private_instance?, :private_instance - # Output only. Service account which will be used to access resources in - # the customer project." + # Output only. Deprecated. Use tenant_project_id instead to extract the tenant + # project ID. # Corresponds to the JSON property `serviceAccount` # @return [String] attr_accessor :service_account @@ -448,6 +384,11 @@ module Google # @return [String] attr_accessor :state_message + # Output only. The name of the tenant project. + # Corresponds to the JSON property `tenantProjectId` + # @return [String] + attr_accessor :tenant_project_id + # Required. Instance type. # Corresponds to the JSON property `type` # @return [String] @@ -487,11 +428,13 @@ module Google @name = args[:name] if args.key?(:name) @network_config = args[:network_config] if args.key?(:network_config) @options = args[:options] if args.key?(:options) + @p4_service_account = args[:p4_service_account] if args.key?(:p4_service_account) @private_instance = args[:private_instance] if args.key?(:private_instance) @service_account = args[:service_account] if args.key?(:service_account) @service_endpoint = args[:service_endpoint] if args.key?(:service_endpoint) @state = args[:state] if args.key?(:state) @state_message = args[:state_message] if args.key?(:state_message) + @tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) @version = args[:version] if args.key?(:version) @@ -611,14 +554,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -634,8 +577,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -654,12 +597,12 @@ module Google end end - # Network configuration for a Data Fusion instance. These configurations - # are used for peering with the customer network. Configurations are optional - # when a public Data Fusion instance is to be created. However, providing - # these configurations allows several benefits, such as reduced network latency - # while accessing the customer resources from managed Data Fusion instance - # nodes, as well as access to the customer on-prem resources. + # Network configuration for a Data Fusion instance. These configurations are + # used for peering with the customer network. Configurations are optional when a + # public Data Fusion instance is to be created. However, providing these + # configurations allows several benefits, such as reduced network latency while + # accessing the customer resources from managed Data Fusion instance nodes, as + # well as access to the customer on-prem resources. class NetworkConfig include Google::Apis::Core::Hashable @@ -670,10 +613,10 @@ module Google # @return [String] attr_accessor :ip_allocation - # Name of the network in the customer project with which the Tenant Project - # will be peered for executing pipelines. In case of shared VPC where the - # network resides in another host project the network should specified in - # the form of projects/`host-project-id`/global/networks/`network` + # Name of the network in the customer project with which the Tenant Project will + # be peered for executing pipelines. In case of shared VPC where the network + # resides in another host project the network should specified in the form of + # projects/`host-project-id`/global/networks/`network` # Corresponds to the JSON property `network` # @return [String] attr_accessor :network @@ -694,47 +637,45 @@ module Google class Operation 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. + # 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). + # 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::DatafusionV1beta1::Status] 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. + # 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``. + # 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`. + # 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 @@ -772,10 +713,9 @@ module Google # @return [String] attr_accessor :end_time - # Identifies whether the user has requested cancellation - # of the operation. Operations that have successfully been cancelled - # have Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. + # Identifies whether the user has requested cancellation of the operation. + # Operations that have successfully been cancelled have Operation.error value + # with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. # Corresponds to the JSON property `requestedCancellation` # @return [Boolean] attr_accessor :requested_cancellation @@ -813,66 +753,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -881,48 +787,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -958,74 +860,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DatafusionV1beta1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -1041,12 +908,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1055,15 +922,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1084,10 +951,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1106,8 +972,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1122,8 +987,8 @@ module Google end end - # Request message for upgrading a Data Fusion instance. - # To change the instance properties, instance update should be used. + # Request message for upgrading a Data Fusion instance. To change the instance + # properties, instance update should be used. class UpgradeInstanceRequest include Google::Apis::Core::Hashable @@ -1140,6 +1005,11 @@ module Google class Version include Google::Apis::Core::Hashable + # Represents a list of available feature names for a given version. + # Corresponds to the JSON property `availableFeatures` + # @return [Array] + attr_accessor :available_features + # Whether this is currently the default version for Cloud Data Fusion # Corresponds to the JSON property `defaultVersion` # @return [Boolean] @@ -1157,6 +1027,7 @@ module Google # Update properties of this object def update!(**args) + @available_features = args[:available_features] if args.key?(:available_features) @default_version = args[:default_version] if args.key?(:default_version) @version_number = args[:version_number] if args.key?(:version_number) end diff --git a/generated/google/apis/datafusion_v1beta1/representations.rb b/generated/google/apis/datafusion_v1beta1/representations.rb index 7ad378b8e..3bacfa119 100644 --- a/generated/google/apis/datafusion_v1beta1/representations.rb +++ b/generated/google/apis/datafusion_v1beta1/representations.rb @@ -241,11 +241,13 @@ module Google property :network_config, as: 'networkConfig', class: Google::Apis::DatafusionV1beta1::NetworkConfig, decorator: Google::Apis::DatafusionV1beta1::NetworkConfig::Representation hash :options, as: 'options' + property :p4_service_account, as: 'p4ServiceAccount' property :private_instance, as: 'privateInstance' property :service_account, as: 'serviceAccount' property :service_endpoint, as: 'serviceEndpoint' property :state, as: 'state' property :state_message, as: 'stateMessage' + property :tenant_project_id, as: 'tenantProjectId' property :type, as: 'type' property :update_time, as: 'updateTime' property :version, as: 'version' @@ -393,6 +395,7 @@ module Google class Version # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :available_features, as: 'availableFeatures' property :default_version, as: 'defaultVersion' property :version_number, as: 'versionNumber' end diff --git a/generated/google/apis/datafusion_v1beta1/service.rb b/generated/google/apis/datafusion_v1beta1/service.rb index effc5cf92..b920db105 100644 --- a/generated/google/apis/datafusion_v1beta1/service.rb +++ b/generated/google/apis/datafusion_v1beta1/service.rb @@ -23,13 +23,10 @@ module Google # Cloud Data Fusion API # # Cloud Data Fusion is a fully-managed, cloud native, enterprise data - # integration service for - # quickly building and managing data pipelines. It provides a graphical - # interface to increase - # time efficiency and reduce complexity, and allows business users, - # developers, and data - # scientists to easily and reliably build scalable data integration - # solutions to cleanse, + # integration service for quickly building and managing data pipelines. It + # provides a graphical interface to increase time efficiency and reduce + # complexity, and allows business users, developers, and data scientists to + # easily and reliably build scalable data integration solutions to cleanse, # prepare, blend, transfer and transform data without having to wrestle with # infrastructure. # @@ -92,8 +89,7 @@ module Google # @param [String] filter # The standard list filter. # @param [Boolean] include_unrevealed_locations - # If true, the returned list will include locations which are not yet - # revealed. + # If true, the returned list will include locations which are not yet revealed. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token @@ -131,8 +127,8 @@ module Google # Creates a new Data Fusion instance in the specified project and location. # @param [String] parent - # The instance's project and location in the format - # projects/`project`/locations/`location`. + # The instance's project and location in the format projects/`project`/locations/ + # `location`. # @param [Google::Apis::DatafusionV1beta1::Instance] instance_object # @param [String] instance_id # The name of the instance to create. @@ -168,8 +164,8 @@ module Google # Deletes a single Date Fusion instance. # @param [String] name - # The instance resource name in the format - # projects/`project`/locations/`location`/instances/`instance` + # The instance resource name in the format projects/`project`/locations/` + # location`/instances/`instance` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -199,8 +195,8 @@ module Google # Gets details of a single Data Fusion instance. # @param [String] name - # The instance resource name in the format - # projects/`project`/locations/`location`/instances/`instance`. + # The instance resource name in the format projects/`project`/locations/` + # location`/instances/`instance`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -228,22 +224,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -274,19 +267,19 @@ module Google # Lists Data Fusion instances in the specified project and location. # @param [String] parent - # The project and location for which to retrieve instance information - # in the format projects/`project`/locations/`location`. If the location is - # specified as '-' (wildcard), then all regions available to the project - # are queried, and the results are aggregated. + # The project and location for which to retrieve instance information in the + # format projects/`project`/locations/`location`. If the location is specified + # as '-' (wildcard), then all regions available to the project are queried, and + # the results are aggregated. # @param [String] filter # List filter. # @param [String] order_by - # Sort results. Supported values are "name", "name desc", or "" (unsorted). + # Sort results. Supported values are "name", "name desc", or "" (unsorted). # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token - # The next_page_token value to use if there are additional - # results to retrieve for this list request. + # The next_page_token value to use if there are additional results to retrieve + # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -320,16 +313,15 @@ module Google # Updates a single Data Fusion instance. # @param [String] name - # Output only. The name of this instance is in the form of - # projects/`project`/locations/`location`/instances/`instance`. + # Output only. The name of this instance is in the form of projects/`project`/ + # locations/`location`/instances/`instance`. # @param [Google::Apis::DatafusionV1beta1::Instance] instance_object # @param [String] update_mask - # Field mask is used to specify the fields that the update will overwrite - # in an instance resource. The fields specified in the update_mask are - # relative to the resource, not the full request. - # A field will be overwritten if it is in the mask. - # If the user does not provide a mask, all the supported fields (labels and - # options currently) will be overwritten. + # Field mask is used to specify the fields that the update will overwrite in an + # instance resource. The fields specified in the update_mask are relative to the + # resource, not the full request. A field will be overwritten if it is in the + # mask. If the user does not provide a mask, all the supported fields (labels + # and options currently) will be overwritten. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -360,8 +352,8 @@ module Google execute_or_queue_command(command, &block) end - # Restart a single Data Fusion instance. - # At the end of an operation instance is fully restarted. + # Restart a single Data Fusion instance. At the end of an operation instance is + # fully restarted. # @param [String] name # Name of the Data Fusion instance which need to be restarted in the form of # projects/`project`/locations/`location`/instances/`instance` @@ -396,11 +388,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::DatafusionV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -431,15 +423,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::DatafusionV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -470,13 +461,12 @@ module Google execute_or_queue_command(command, &block) end - # Upgrade a single Data Fusion instance. - # At the end of an operation instance is fully upgraded. + # Upgrade a single Data Fusion instance. At the end of an operation instance is + # fully upgraded. # @param [String] name # Name of the Data Fusion instance which need to be upgraded in the form of - # projects/`project`/locations/`location`/instances/`instance` - # Instance will be upgraded with the latest stable version of the Data - # Fusion. + # projects/`project`/locations/`location`/instances/`instance` Instance will be + # upgraded with the latest stable version of the Data Fusion. # @param [Google::Apis::DatafusionV1beta1::UpgradeInstanceRequest] upgrade_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -507,15 +497,13 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -549,10 +537,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -582,9 +570,8 @@ module Google 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. + # 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 @@ -614,15 +601,14 @@ module Google 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. + # 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 @@ -661,20 +647,20 @@ module Google execute_or_queue_command(command, &block) end - # Lists possible versions for Data Fusion instances in the specified project - # and location. + # Lists possible versions for Data Fusion instances in the specified project and + # location. # @param [String] parent # Required. The project and location for which to retrieve instance information # in the format projects/`project`/locations/`location`. # @param [Boolean] latest_patch_only - # Whether or not to return the latest patch of every available minor version. - # If true, only the latest patch will be returned. Ex. if allowed versions is - # [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] + # Whether or not to return the latest patch of every available minor version. If + # true, only the latest patch will be returned. Ex. if allowed versions is [6.1. + # 1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0] # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token - # The next_page_token value to use if there are additional - # results to retrieve for this list request. + # The next_page_token value to use if there are additional results to retrieve + # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 3cf88106b..592d854f0 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20200725' + REVISION = '20200731' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index 806146ca6..e63d39636 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -442,6 +442,11 @@ module Google # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig] attr_accessor :master_config + # Specifies the metastore configuration. + # Corresponds to the JSON property `metastoreConfig` + # @return [Google::Apis::DataprocV1beta2::MetastoreConfig] + attr_accessor :metastore_config + # The config settings for Compute Engine resources in an instance group, such as # a master or worker group. # Corresponds to the JSON property `secondaryWorkerConfig` @@ -490,6 +495,7 @@ module Google @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions) @lifecycle_config = args[:lifecycle_config] if args.key?(:lifecycle_config) @master_config = args[:master_config] if args.key?(:master_config) + @metastore_config = args[:metastore_config] if args.key?(:metastore_config) @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config) @security_config = args[:security_config] if args.key?(:security_config) @software_config = args[:software_config] if args.key?(:software_config) @@ -2111,6 +2117,25 @@ module Google end end + # Specifies the metastore configuration. + class MetastoreConfig + include Google::Apis::Core::Hashable + + # Optional. Relative resource name of an existing Dataproc Metastore service. + # Corresponds to the JSON property `dataprocMetastoreService` + # @return [String] + attr_accessor :dataproc_metastore_service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataproc_metastore_service = args[:dataproc_metastore_service] if args.key?(:dataproc_metastore_service) + end + end + # A full, namespace-isolated deployment target for an existing GKE cluster. class NamespacedGkeDeploymentTarget include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index e021af3df..8d3e1a39d 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -304,6 +304,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MetastoreConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NamespacedGkeDeploymentTarget class Representation < Google::Apis::Core::JsonRepresentation; end @@ -599,6 +605,8 @@ module Google property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1beta2::InstanceGroupConfig, decorator: Google::Apis::DataprocV1beta2::InstanceGroupConfig::Representation + property :metastore_config, as: 'metastoreConfig', class: Google::Apis::DataprocV1beta2::MetastoreConfig, decorator: Google::Apis::DataprocV1beta2::MetastoreConfig::Representation + property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1beta2::InstanceGroupConfig, decorator: Google::Apis::DataprocV1beta2::InstanceGroupConfig::Representation property :security_config, as: 'securityConfig', class: Google::Apis::DataprocV1beta2::SecurityConfig, decorator: Google::Apis::DataprocV1beta2::SecurityConfig::Representation @@ -1015,6 +1023,13 @@ module Google end end + class MetastoreConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataproc_metastore_service, as: 'dataprocMetastoreService' + end + end + class NamespacedGkeDeploymentTarget # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dfareporting_v3_4.rb b/generated/google/apis/dfareporting_v3_4.rb index 9320ab69a..6f5bdcb29 100644 --- a/generated/google/apis/dfareporting_v3_4.rb +++ b/generated/google/apis/dfareporting_v3_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_4 VERSION = 'V3_4' - REVISION = '20200722' + REVISION = '20200730' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_4/service.rb b/generated/google/apis/dfareporting_v3_4/service.rb index 8405ded7d..39fbc5e2c 100644 --- a/generated/google/apis/dfareporting_v3_4/service.rb +++ b/generated/google/apis/dfareporting_v3_4/service.rb @@ -7086,6 +7086,45 @@ module Google execute_or_queue_command(command, &block) end + # Updates a report. This method supports patch semantics. + # @param [Fixnum] profile_id + # The DFA user profile ID. + # @param [Fixnum] report_id + # The ID of the report. + # @param [Google::Apis::DfareportingV3_4::Report] report_object + # @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::DfareportingV3_4::Report] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV3_4::Report] + # + # @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_report(profile_id, report_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/reports/{reportId}', options) + command.request_representation = Google::Apis::DfareportingV3_4::Report::Representation + command.request_object = report_object + command.response_representation = Google::Apis::DfareportingV3_4::Report::Representation + command.response_class = Google::Apis::DfareportingV3_4::Report + command.params['profileId'] = profile_id unless profile_id.nil? + command.params['reportId'] = report_id unless report_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 + # Runs a report. # @param [Fixnum] profile_id # The DFA profile ID. diff --git a/generated/google/apis/displayvideo_v1.rb b/generated/google/apis/displayvideo_v1.rb index d096c90b8..6a03b8602 100644 --- a/generated/google/apis/displayvideo_v1.rb +++ b/generated/google/apis/displayvideo_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/display-video/ module DisplayvideoV1 VERSION = 'V1' - REVISION = '20200728' + REVISION = '20200804' # Create, see, edit, and permanently delete your Display & Video 360 entities and reports AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index ae93978f9..d366f9b59 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -20,12 +20,13 @@ module Google module Apis # DoubleClick Bid Manager API # - # API for viewing and managing your reports in DoubleClick Bid Manager. + # DoubleClick Bid Manager API allows users to manage and create campaigns and + # reports. # # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20200723' + REVISION = '20200731' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclickbidmanager_v1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1/classes.rb index 031421bb6..0fdc6201e 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/classes.rb @@ -26,8 +26,8 @@ module Google class DownloadLineItemsRequest include Google::Apis::Core::Hashable - # File specification (column names, types, order) in which the line items will - # be returned. Default to EWF. + # File specification (column names, types, order) in which the line items + # will be returned. Default to EWF. # Corresponds to the JSON property `fileSpec` # @return [String] attr_accessor :file_spec @@ -43,7 +43,8 @@ module Google # @return [String] attr_accessor :filter_type - # Format in which the line items will be returned. Default to CSV. + # Format in which the line items will be returned. Default to + # CSV. # Corresponds to the JSON property `format` # @return [String] attr_accessor :format @@ -65,8 +66,10 @@ module Google class DownloadLineItemsResponse include Google::Apis::Core::Hashable - # Retrieved line items in CSV format. For more information about file formats, - # see Entity Write File Format. + # Retrieved line items in CSV format. For more information about file + # formats, see + # Entity Write File Format. # Corresponds to the JSON property `lineItems` # @return [String] attr_accessor :line_items @@ -86,21 +89,18 @@ module Google class DownloadRequest include Google::Apis::Core::Hashable - # File types that will be returned. If INVENTORY_SOURCE is requested, no other - # file types may be requested. - # Acceptable values are: - # - "AD" - # - "AD_GROUP" - # - "CAMPAIGN" - # - "INSERTION_ORDER" - # - "INVENTORY_SOURCE" - # - "LINE_ITEM" + # File types that will be returned. If INVENTORY_SOURCE is requested, no + # other file types may be requested.

Acceptable values are:
    + #
  • "AD"
  • "AD_GROUP"
  • + #
  • "CAMPAIGN"
  • "INSERTION_ORDER"
  • + #
  • "INVENTORY_SOURCE"
  • "LINE_ITEM"
  • + #
# Corresponds to the JSON property `fileTypes` # @return [Array] attr_accessor :file_types - # The IDs of the specified filter type. This is used to filter entities to fetch. - # At least one ID must be specified. + # The IDs of the specified filter type. This is used to filter entities to + # fetch. At least one ID must be specified. # Corresponds to the JSON property `filterIds` # @return [Array] attr_accessor :filter_ids @@ -112,7 +112,7 @@ module Google attr_accessor :filter_type # SDF Version (column names, types, order) in which the entities will be - # returned. Default to 5. + # returned. Default to 5. # Corresponds to the JSON property `version` # @return [String] attr_accessor :version @@ -208,8 +208,8 @@ module Google class ListQueriesResponse include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # doubleclickbidmanager#listQueriesResponse". + # Identifies what kind of resource this is. Value: the fixed string + # "doubleclickbidmanager#listQueriesResponse". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -234,8 +234,8 @@ module Google class ListReportsResponse include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # doubleclickbidmanager#listReportsResponse". + # Identifies what kind of resource this is. Value: the fixed string + # "doubleclickbidmanager#listReportsResponse". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -304,8 +304,8 @@ module Google class Query include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # doubleclickbidmanager#query". + # Identifies what kind of resource this is. Value: the fixed string + # "doubleclickbidmanager#query". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -326,15 +326,17 @@ module Google attr_accessor :query_id # The ending time for the data that is shown in the report. Note, - # reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and - # ignored otherwise. + # reportDataEndTimeMs is required if + # metadata.dataRange is CUSTOM_DATES and ignored + # otherwise. # Corresponds to the JSON property `reportDataEndTimeMs` # @return [Fixnum] attr_accessor :report_data_end_time_ms # The starting time for the data that is shown in the report. Note, - # reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and - # ignored otherwise. + # reportDataStartTimeMs is required if + # metadata.dataRange is CUSTOM_DATES and ignored + # otherwise. # Corresponds to the JSON property `reportDataStartTimeMs` # @return [Fixnum] attr_accessor :report_data_start_time_ms @@ -344,7 +346,8 @@ module Google # @return [Google::Apis::DoubleclickbidmanagerV1::QuerySchedule] attr_accessor :schedule - # Canonical timezone code for report data time. Defaults to America/New_York. + # Canonical timezone code for report data time. Defaults to + # America/New_York. # Corresponds to the JSON property `timezoneCode` # @return [String] attr_accessor :timezone_code @@ -396,11 +399,12 @@ module Google # @return [Fixnum] attr_accessor :latest_report_run_time_ms - # Locale of the generated reports. Valid values are cs CZECH de GERMAN en - # ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR - # BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh- - # TW TAIWAN_CHINESE - # An locale string not in the list above will generate reports in English. + # Locale of the generated reports. Valid values are cs CZECH de + # GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja + # JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru + # RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW + # TAIWAN_CHINESE

An locale string not in the list above will + # generate reports in English. # Corresponds to the JSON property `locale` # @return [String] attr_accessor :locale @@ -416,14 +420,15 @@ module Google attr_accessor :running alias_method :running?, :running - # Whether to send an email notification when a report is ready. Default to false. + # Whether to send an email notification when a report is ready. Default to + # false. # Corresponds to the JSON property `sendNotification` # @return [Boolean] attr_accessor :send_notification alias_method :send_notification?, :send_notification - # List of email addresses which are sent email notifications when the report is - # finished. Separate from sendNotification. + # List of email addresses which are sent email notifications when the report + # is finished. Separate from sendNotification. # Corresponds to the JSON property `shareEmailAddress` # @return [Array] attr_accessor :share_email_address @@ -473,8 +478,8 @@ module Google # @return [Fixnum] attr_accessor :next_run_minute_of_day - # Canonical timezone code for report generation time. Defaults to America/ - # New_York. + # Canonical timezone code for report generation time. Defaults to + # America/New_York. # Corresponds to the JSON property `nextRunTimezoneCode` # @return [String] attr_accessor :next_run_timezone_code @@ -571,7 +576,8 @@ module Google class ReportMetadata include Google::Apis::Core::Hashable - # The path to the location in Google Cloud Storage where the report is stored. + # The path to the location in Google Cloud Storage where the report is + # stored. # Corresponds to the JSON property `googleCloudStoragePath` # @return [String] attr_accessor :google_cloud_storage_path @@ -702,20 +708,21 @@ module Google attr_accessor :data_range # The ending time for the data that is shown in the report. Note, - # reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored - # otherwise. + # reportDataEndTimeMs is required if dataRange is + # CUSTOM_DATES and ignored otherwise. # Corresponds to the JSON property `reportDataEndTimeMs` # @return [Fixnum] attr_accessor :report_data_end_time_ms # The starting time for the data that is shown in the report. Note, - # reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored - # otherwise. + # reportDataStartTimeMs is required if dataRange is + # CUSTOM_DATES and ignored otherwise. # Corresponds to the JSON property `reportDataStartTimeMs` # @return [Fixnum] attr_accessor :report_data_start_time_ms - # Canonical timezone code for report data time. Defaults to America/New_York. + # Canonical timezone code for report data time. Defaults to + # America/New_York. # Corresponds to the JSON property `timezoneCode` # @return [String] attr_accessor :timezone_code @@ -737,19 +744,21 @@ module Google class UploadLineItemsRequest include Google::Apis::Core::Hashable - # Set to true to get upload status without actually persisting the line items. + # Set to true to get upload status without actually persisting + # the line items. # Corresponds to the JSON property `dryRun` # @return [Boolean] attr_accessor :dry_run alias_method :dry_run?, :dry_run - # Format the line items are in. Default to CSV. + # Format the line items are in. Default to CSV. # Corresponds to the JSON property `format` # @return [String] attr_accessor :format - # Line items in CSV to upload. Refer to Entity Write File Format for more - # information on file format. + # Line items in CSV to upload. Refer to + # Entity Write File Format for more information on file format. # Corresponds to the JSON property `lineItems` # @return [String] attr_accessor :line_items diff --git a/generated/google/apis/doubleclickbidmanager_v1/service.rb b/generated/google/apis/doubleclickbidmanager_v1/service.rb index 4e4b1aa2e..cb10bb1c5 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/service.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/service.rb @@ -22,7 +22,8 @@ module Google module DoubleclickbidmanagerV1 # DoubleClick Bid Manager API # - # API for viewing and managing your reports in DoubleClick Bid Manager. + # DoubleClick Bid Manager API allows users to manage and create campaigns and + # reports. # # @example # require 'google/apis/doubleclickbidmanager_v1' @@ -38,17 +39,13 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # 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 - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'doubleclickbidmanager/v1/') - @batch_path = 'batch/doubleclickbidmanager/v1' + super('https://www.googleapis.com/', '') + @batch_path = 'batch/doubleclickbidmanager' end # Retrieves line items in CSV format. YouTube & partners line items are not @@ -57,10 +54,8 @@ module Google # @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. + # 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 # @@ -73,15 +68,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'lineitems/downloadlineitems', options) + def download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1/lineitems/downloadlineitems', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsRequest::Representation command.request_object = download_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse 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 @@ -91,10 +85,8 @@ module Google # @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. + # 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 # @@ -107,15 +99,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'lineitems/uploadlineitems', options) + def upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1/lineitems/uploadlineitems', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsRequest::Representation command.request_object = upload_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse 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 @@ -124,10 +115,8 @@ module Google # @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. + # 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 # @@ -140,15 +129,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_query(query_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'query', options) + def create_query(query_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1/query', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.request_object = query_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::Query 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 @@ -158,10 +146,8 @@ module Google # @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. + # 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 # @@ -174,12 +160,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def deletequery(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'query/{queryId}', options) + def deletequery(query_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'doubleclickbidmanager/v1/query/{queryId}', options) command.params['queryId'] = query_id unless query_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 @@ -189,10 +174,8 @@ module Google # @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. + # 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 # @@ -205,14 +188,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'query/{queryId}', options) + def get_query(query_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'doubleclickbidmanager/v1/query/{queryId}', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::Query command.params['queryId'] = query_id unless query_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 @@ -220,10 +202,8 @@ module Google # @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. + # 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 # @@ -236,13 +216,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_queries(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'queries', options) + def list_queries(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'doubleclickbidmanager/v1/queries', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse 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 @@ -253,10 +232,8 @@ module Google # @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. + # 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 # @@ -269,14 +246,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'query/{queryId}', options) + def run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1/query/{queryId}', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::RunQueryRequest::Representation command.request_object = run_query_request_object command.params['queryId'] = query_id unless query_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 @@ -286,10 +262,8 @@ module Google # @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. + # 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 # @@ -302,14 +276,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_reports(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'queries/{queryId}/reports', options) + def list_reports(query_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'doubleclickbidmanager/v1/queries/{queryId}/reports', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse command.params['queryId'] = query_id unless query_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 @@ -318,10 +291,8 @@ module Google # @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. + # 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 # @@ -334,15 +305,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'sdf/download', options) + def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1/sdf/download', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadRequest::Representation command.request_object = download_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse 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 @@ -351,7 +321,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/doubleclickbidmanager_v1_1.rb b/generated/google/apis/doubleclickbidmanager_v1_1.rb index c65db8466..40a5df5e2 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1.rb @@ -20,12 +20,13 @@ module Google module Apis # DoubleClick Bid Manager API # - # API for viewing and managing your reports in DoubleClick Bid Manager. + # DoubleClick Bid Manager API allows users to manage and create campaigns and + # reports. # # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1_1 VERSION = 'V1_1' - REVISION = '20200723' + REVISION = '20200731' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb index c95c5c9b6..bdcd95107 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb @@ -38,8 +38,8 @@ module Google # @return [String] attr_accessor :name - # Rules within Channel Grouping. There is a limit of 100 rules that can be set - # per channel grouping. + # Rules within Channel Grouping. There is a limit of 100 rules that can be + # set per channel grouping. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules @@ -60,8 +60,8 @@ module Google class DisjunctiveMatchStatement include Google::Apis::Core::Hashable - # Filters. There is a limit of 100 filters that can be set per disjunctive match - # statement. + # Filters. There is a limit of 100 filters that can be set per disjunctive + # match statement. # Corresponds to the JSON property `eventFilters` # @return [Array] attr_accessor :event_filters @@ -80,8 +80,8 @@ module Google class DownloadLineItemsRequest include Google::Apis::Core::Hashable - # File specification (column names, types, order) in which the line items will - # be returned. Default to EWF. + # File specification (column names, types, order) in which the line items + # will be returned. Default to EWF. # Corresponds to the JSON property `fileSpec` # @return [String] attr_accessor :file_spec @@ -97,7 +97,8 @@ module Google # @return [String] attr_accessor :filter_type - # Format in which the line items will be returned. Default to CSV. + # Format in which the line items will be returned. Default to + # CSV. # Corresponds to the JSON property `format` # @return [String] attr_accessor :format @@ -119,8 +120,10 @@ module Google class DownloadLineItemsResponse include Google::Apis::Core::Hashable - # Retrieved line items in CSV format. For more information about file formats, - # see Entity Write File Format. + # Retrieved line items in CSV format. For more information about file + # formats, see + # Entity Write File Format. # Corresponds to the JSON property `lineItems` # @return [String] attr_accessor :line_items @@ -140,21 +143,18 @@ module Google class DownloadRequest include Google::Apis::Core::Hashable - # File types that will be returned. If INVENTORY_SOURCE is requested, no other - # file types may be requested. - # Acceptable values are: - # - "AD" - # - "AD_GROUP" - # - "CAMPAIGN" - # - "INSERTION_ORDER" - # - "INVENTORY_SOURCE" - # - "LINE_ITEM" + # File types that will be returned. If INVENTORY_SOURCE is requested, no + # other file types may be requested.

Acceptable values are:
    + #
  • "AD"
  • "AD_GROUP"
  • + #
  • "CAMPAIGN"
  • "INSERTION_ORDER"
  • + #
  • "INVENTORY_SOURCE"
  • "LINE_ITEM"
  • + #
# Corresponds to the JSON property `fileTypes` # @return [Array] attr_accessor :file_types - # The IDs of the specified filter type. This is used to filter entities to fetch. - # At least one ID must be specified. + # The IDs of the specified filter type. This is used to filter entities to + # fetch. At least one ID must be specified. # Corresponds to the JSON property `filterIds` # @return [Array] attr_accessor :filter_ids @@ -166,7 +166,7 @@ module Google attr_accessor :filter_type # SDF Version (column names, types, order) in which the entities will be - # returned. Default to 5. + # returned. Default to 5. # Corresponds to the JSON property `version` # @return [String] attr_accessor :version @@ -282,8 +282,8 @@ module Google class ListQueriesResponse include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # doubleclickbidmanager#listQueriesResponse". + # Identifies what kind of resource this is. Value: the fixed string + # "doubleclickbidmanager#listQueriesResponse". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -314,8 +314,8 @@ module Google class ListReportsResponse include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # doubleclickbidmanager#listReportsResponse". + # Identifies what kind of resource this is. Value: the fixed string + # "doubleclickbidmanager#listReportsResponse". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -346,9 +346,9 @@ module Google class Options include Google::Apis::Core::Hashable - # Set to true and filter your report by `FILTER_INSERTION_ORDER` or ` - # FILTER_LINE_ITEM` to include data for audience lists specifically targeted by - # those items. + # Set to true and filter your report by `FILTER_INSERTION_ORDER` or + # `FILTER_LINE_ITEM` to include data for audience lists specifically targeted + # by those items. # Corresponds to the JSON property `includeOnlyTargetedUserLists` # @return [Boolean] attr_accessor :include_only_targeted_user_lists @@ -421,11 +421,10 @@ module Google end # Path filters specify which paths to include in a report. A path is the result - # of combining DV360 events based on User ID to create a workflow of users' - # actions. - # When a path filter is set, the resulting report will only include paths that - # match the specified event at the specified position. All other paths will be - # excluded. + # of combining DV360 events based on User ID to create a workflow of + # users' actions.

When a path filter is set, the resulting report will + # only include paths that match the specified event at the specified position. + # All other paths will be excluded. class PathFilter include Google::Apis::Core::Hashable @@ -434,8 +433,8 @@ module Google # @return [Array] attr_accessor :event_filters - # Indicates the position of the path the filter should match to (first, last, or - # any event in path). + # Indicates the position of the path the filter should match to (first, last, + # or any event in path). # Corresponds to the JSON property `pathMatchPosition` # @return [String] attr_accessor :path_match_position @@ -461,7 +460,8 @@ module Google # @return [Google::Apis::DoubleclickbidmanagerV1_1::ChannelGrouping] attr_accessor :channel_grouping - # Path Filters. There is a limit of 100 path filters that can be set per report. + # Path Filters. There is a limit of 100 path filters that can be set per + # report. # Corresponds to the JSON property `pathFilters` # @return [Array] attr_accessor :path_filters @@ -512,8 +512,8 @@ module Google class Query include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # doubleclickbidmanager#query". + # Identifies what kind of resource this is. Value: the fixed string + # "doubleclickbidmanager#query". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -534,15 +534,17 @@ module Google attr_accessor :query_id # The ending time for the data that is shown in the report. Note, - # reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and - # ignored otherwise. + # reportDataEndTimeMs is required if + # metadata.dataRange is CUSTOM_DATES and ignored + # otherwise. # Corresponds to the JSON property `reportDataEndTimeMs` # @return [Fixnum] attr_accessor :report_data_end_time_ms # The starting time for the data that is shown in the report. Note, - # reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and - # ignored otherwise. + # reportDataStartTimeMs is required if + # metadata.dataRange is CUSTOM_DATES and ignored + # otherwise. # Corresponds to the JSON property `reportDataStartTimeMs` # @return [Fixnum] attr_accessor :report_data_start_time_ms @@ -552,7 +554,8 @@ module Google # @return [Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule] attr_accessor :schedule - # Canonical timezone code for report data time. Defaults to America/New_York. + # Canonical timezone code for report data time. Defaults to + # America/New_York. # Corresponds to the JSON property `timezoneCode` # @return [String] attr_accessor :timezone_code @@ -604,11 +607,12 @@ module Google # @return [Fixnum] attr_accessor :latest_report_run_time_ms - # Locale of the generated reports. Valid values are cs CZECH de GERMAN en - # ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR - # BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh- - # TW TAIWAN_CHINESE - # An locale string not in the list above will generate reports in English. + # Locale of the generated reports. Valid values are cs CZECH de + # GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja + # JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru + # RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW + # TAIWAN_CHINESE

An locale string not in the list above will + # generate reports in English. # Corresponds to the JSON property `locale` # @return [String] attr_accessor :locale @@ -624,14 +628,15 @@ module Google attr_accessor :running alias_method :running?, :running - # Whether to send an email notification when a report is ready. Default to false. + # Whether to send an email notification when a report is ready. Default to + # false. # Corresponds to the JSON property `sendNotification` # @return [Boolean] attr_accessor :send_notification alias_method :send_notification?, :send_notification - # List of email addresses which are sent email notifications when the report is - # finished. Separate from sendNotification. + # List of email addresses which are sent email notifications when the report + # is finished. Separate from sendNotification. # Corresponds to the JSON property `shareEmailAddress` # @return [Array] attr_accessor :share_email_address @@ -681,8 +686,8 @@ module Google # @return [Fixnum] attr_accessor :next_run_minute_of_day - # Canonical timezone code for report generation time. Defaults to America/ - # New_York. + # Canonical timezone code for report generation time. Defaults to + # America/New_York. # Corresponds to the JSON property `nextRunTimezoneCode` # @return [String] attr_accessor :next_run_timezone_code @@ -785,7 +790,8 @@ module Google class ReportMetadata include Google::Apis::Core::Hashable - # The path to the location in Google Cloud Storage where the report is stored. + # The path to the location in Google Cloud Storage where the report is + # stored. # Corresponds to the JSON property `googleCloudStoragePath` # @return [String] attr_accessor :google_cloud_storage_path @@ -906,9 +912,10 @@ module Google end end - # A Rule defines a name, and a boolean expression in [conjunctive normal form]( - # http://mathworld.wolfram.com/ConjunctiveNormalForm.html)`.external` that can - # be applied to a path event to determine if that name should be applied. + # A Rule defines a name, and a boolean expression in [conjunctive normal + # form](http: + # //mathworld.wolfram.com/ConjunctiveNormalForm.html)`.external` that can be + # // applied to a path event to determine if that name should be applied. class Rule include Google::Apis::Core::Hashable @@ -943,20 +950,21 @@ module Google attr_accessor :data_range # The ending time for the data that is shown in the report. Note, - # reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored - # otherwise. + # reportDataEndTimeMs is required if dataRange is + # CUSTOM_DATES and ignored otherwise. # Corresponds to the JSON property `reportDataEndTimeMs` # @return [Fixnum] attr_accessor :report_data_end_time_ms # The starting time for the data that is shown in the report. Note, - # reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored - # otherwise. + # reportDataStartTimeMs is required if dataRange is + # CUSTOM_DATES and ignored otherwise. # Corresponds to the JSON property `reportDataStartTimeMs` # @return [Fixnum] attr_accessor :report_data_start_time_ms - # Canonical timezone code for report data time. Defaults to America/New_York. + # Canonical timezone code for report data time. Defaults to + # America/New_York. # Corresponds to the JSON property `timezoneCode` # @return [String] attr_accessor :timezone_code @@ -978,19 +986,21 @@ module Google class UploadLineItemsRequest include Google::Apis::Core::Hashable - # Set to true to get upload status without actually persisting the line items. + # Set to true to get upload status without actually persisting + # the line items. # Corresponds to the JSON property `dryRun` # @return [Boolean] attr_accessor :dry_run alias_method :dry_run?, :dry_run - # Format the line items are in. Default to CSV. + # Format the line items are in. Default to CSV. # Corresponds to the JSON property `format` # @return [String] attr_accessor :format - # Line items in CSV to upload. Refer to Entity Write File Format for more - # information on file format. + # Line items in CSV to upload. Refer to + # Entity Write File Format for more information on file format. # Corresponds to the JSON property `lineItems` # @return [String] attr_accessor :line_items diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/service.rb b/generated/google/apis/doubleclickbidmanager_v1_1/service.rb index c3f343c81..f78979f24 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1/service.rb @@ -22,7 +22,8 @@ module Google module DoubleclickbidmanagerV1_1 # DoubleClick Bid Manager API # - # API for viewing and managing your reports in DoubleClick Bid Manager. + # DoubleClick Bid Manager API allows users to manage and create campaigns and + # reports. # # @example # require 'google/apis/doubleclickbidmanager_v1_1' @@ -38,17 +39,13 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # 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 - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'doubleclickbidmanager/v1.1/') - @batch_path = 'batch/doubleclickbidmanager/v1.1' + super('https://www.googleapis.com/', '') + @batch_path = 'batch/doubleclickbidmanager' end # Retrieves line items in CSV format. YouTube & partners line items are not @@ -57,10 +54,8 @@ module Google # @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. + # 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 # @@ -73,15 +68,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'lineitems/downloadlineitems', options) + def downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/lineitems/downloadlineitems', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsRequest::Representation command.request_object = download_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse 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 @@ -91,10 +85,8 @@ module Google # @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. + # 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 # @@ -107,30 +99,27 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'lineitems/uploadlineitems', options) + def uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/lineitems/uploadlineitems', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsRequest::Representation command.request_object = upload_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse 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 query. # @param [Google::Apis::DoubleclickbidmanagerV1_1::Query] query_object # @param [Boolean] asynchronous - # If true, tries to run the query asynchronously. Only applicable when the - # frequency is ONE_TIME. + # If true, tries to run the query asynchronously. Only applicable when + # the frequency is ONE_TIME. # @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. + # 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 # @@ -143,8 +132,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createquery_query(query_object = nil, asynchronous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'query', options) + def createquery_query(query_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/query', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.request_object = query_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation @@ -152,7 +141,6 @@ module Google command.query['asynchronous'] = asynchronous unless asynchronous.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 @@ -162,10 +150,8 @@ module Google # @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. + # 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 # @@ -178,12 +164,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def deletequery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'query/{queryId}', options) + def deletequery_query(query_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'doubleclickbidmanager/v1.1/query/{queryId}', options) command.params['queryId'] = query_id unless query_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 @@ -193,10 +178,8 @@ module Google # @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. + # 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 # @@ -209,30 +192,27 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getquery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'query/{queryId}', options) + def getquery_query(query_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'doubleclickbidmanager/v1.1/query/{queryId}', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::Query command.params['queryId'] = query_id unless query_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 stored queries. # @param [Fixnum] page_size - # Maximum number of results per page. Must be between 1 and 100. Defaults to 100 - # if unspecified. + # Maximum number of results per page. Must be between 1 and + # 100. Defaults to 100 if unspecified. # @param [String] page_token # Optional pagination token. # @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. + # 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 # @@ -245,15 +225,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'queries', options) + def listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'doubleclickbidmanager/v1.1/queries', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse 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? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -266,10 +245,8 @@ module Google # @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. + # 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 # @@ -282,15 +259,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def runquery_query(query_id, run_query_request_object = nil, asynchronous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'query/{queryId}', options) + def runquery_query(query_id, run_query_request_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/query/{queryId}', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::RunQueryRequest::Representation command.request_object = run_query_request_object command.params['queryId'] = query_id unless query_id.nil? command.query['asynchronous'] = asynchronous unless asynchronous.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 @@ -298,17 +274,15 @@ module Google # @param [Fixnum] query_id # Query ID with which the reports are associated. # @param [Fixnum] page_size - # Maximum number of results per page. Must be between 1 and 100. Defaults to 100 - # if unspecified. + # Maximum number of results per page. Must be between 1 and + # 100. Defaults to 100 if unspecified. # @param [String] page_token # Optional pagination token. # @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. + # 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 # @@ -321,8 +295,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'queries/{queryId}/reports', options) + def listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'doubleclickbidmanager/v1.1/queries/{queryId}/reports', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse command.params['queryId'] = query_id unless query_id.nil? @@ -330,7 +304,6 @@ module Google 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 @@ -339,10 +312,8 @@ module Google # @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. + # 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 # @@ -355,15 +326,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'sdf/download', options) + def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/sdf/download', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadRequest::Representation command.request_object = download_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse 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 @@ -372,7 +342,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 9bc4a9057..df03f27d5 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 = '20200719' + REVISION = '20200723' # 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/classes.rb b/generated/google/apis/drive_v2/classes.rb index 04ccd3642..f595be6b7 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -3175,6 +3175,12 @@ module Google # @return [String] attr_accessor :value + # Indicates the view for this permission. Only populated for permissions that + # belong to a view. published is the only supported value. + # Corresponds to the JSON property `view` + # @return [String] + attr_accessor :view + # Whether the link is required for this permission. # Corresponds to the JSON property `withLink` # @return [Boolean] @@ -3204,6 +3210,7 @@ module Google @team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) + @view = args[:view] if args.key?(:view) @with_link = args[:with_link] if args.key?(:with_link) end diff --git a/generated/google/apis/drive_v2/representations.rb b/generated/google/apis/drive_v2/representations.rb index 383ebc91b..7bfe881de 100644 --- a/generated/google/apis/drive_v2/representations.rb +++ b/generated/google/apis/drive_v2/representations.rb @@ -1075,6 +1075,7 @@ module Google property :type, as: 'type' property :value, as: 'value' + property :view, as: 'view' property :with_link, as: 'withLink' end diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 46c2cb3c8..b4e6632cb 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -278,6 +278,9 @@ module Google # list of changes, for example by deletion or loss of access. # @param [Boolean] include_items_from_all_drives # Whether both My Drive and shared drive items should be included in results. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] include_subscribed # Whether to include changes outside the My Drive hierarchy in the result. When # set to false, changes to files such as those in the Application Data folder or @@ -320,7 +323,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_changes(drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_changes(drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'changes', options) command.response_representation = Google::Apis::DriveV2::ChangeList::Representation command.response_class = Google::Apis::DriveV2::ChangeList @@ -328,6 +331,7 @@ module Google command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil? command.query['includeDeleted'] = include_deleted unless include_deleted.nil? command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil? command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil? command.query['maxResults'] = max_results unless max_results.nil? @@ -359,6 +363,9 @@ module Google # list of changes, for example by deletion or loss of access. # @param [Boolean] include_items_from_all_drives # Whether both My Drive and shared drive items should be included in results. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] include_subscribed # Whether to include changes outside the My Drive hierarchy in the result. When # set to false, changes to files such as those in the Application Data folder or @@ -401,7 +408,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def watch_change(channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def watch_change(channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'changes/watch', options) command.request_representation = Google::Apis::DriveV2::Channel::Representation command.request_object = channel_object @@ -411,6 +418,7 @@ module Google command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil? command.query['includeDeleted'] = include_deleted unless include_deleted.nil? command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil? command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil? command.query['maxResults'] = max_results unless max_results.nil? @@ -1141,6 +1149,9 @@ module Google # Set to true to opt in to API behavior that aims for all items to have exactly # one parent. This parameter only takes effect if the item is not in a shared # drive. Requests that specify more than one parent fail. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] ocr # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. # @param [String] ocr_language @@ -1178,7 +1189,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def copy_file(file_id, file_object = nil, convert: nil, enforce_single_parent: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def copy_file(file_id, file_object = nil, convert: nil, enforce_single_parent: nil, include_permissions_for_view: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'files/{fileId}/copy', options) command.request_representation = Google::Apis::DriveV2::File::Representation command.request_object = file_object @@ -1187,6 +1198,7 @@ module Google command.params['fileId'] = file_id unless file_id.nil? command.query['convert'] = convert unless convert.nil? command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['ocr'] = ocr unless ocr.nil? command.query['ocrLanguage'] = ocr_language unless ocr_language.nil? command.query['pinned'] = pinned unless pinned.nil? @@ -1352,6 +1364,9 @@ module Google # @param [Boolean] acknowledge_abuse # Whether the user is acknowledging the risk of downloading known malware or # other abusive files. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [String] projection # This parameter is deprecated and has no function. # @param [String] revision_id @@ -1385,7 +1400,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + def get_file(file_id, acknowledge_abuse: nil, include_permissions_for_view: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:get, 'files/{fileId}', options) else @@ -1396,6 +1411,7 @@ module Google command.response_class = Google::Apis::DriveV2::File command.params['fileId'] = file_id unless file_id.nil? command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['projection'] = projection unless projection.nil? command.query['revisionId'] = revision_id unless revision_id.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? @@ -1415,6 +1431,9 @@ module Google # Set to true to opt in to API behavior that aims for all items to have exactly # one parent. This parameter only takes effect if the item is not in a shared # drive. Requests that specify more than one parent fail. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] ocr # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. # @param [String] ocr_language @@ -1458,7 +1477,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_file(file_object = nil, convert: nil, enforce_single_parent: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def insert_file(file_object = nil, convert: nil, enforce_single_parent: nil, include_permissions_for_view: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'files', options) else @@ -1472,6 +1491,7 @@ module Google command.response_class = Google::Apis::DriveV2::File command.query['convert'] = convert unless convert.nil? command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['ocr'] = ocr unless ocr.nil? command.query['ocrLanguage'] = ocr_language unless ocr_language.nil? command.query['pinned'] = pinned unless pinned.nil? @@ -1502,6 +1522,9 @@ module Google # ID of the shared drive to search. # @param [Boolean] include_items_from_all_drives # Whether both My Drive and shared drive items should be included in results. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] include_team_drive_items # Deprecated use includeItemsFromAllDrives instead. # @param [Fixnum] max_results @@ -1549,7 +1572,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'files', options) command.response_representation = Google::Apis::DriveV2::FileList::Representation command.response_class = Google::Apis::DriveV2::FileList @@ -1557,6 +1580,7 @@ module Google command.query['corpus'] = corpus unless corpus.nil? command.query['driveId'] = drive_id unless drive_id.nil? command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? @@ -1588,6 +1612,9 @@ module Google # removed from all current folders and placed in the requested folder. Other # requests that increase the number of parents fail, except when the # canAddMyDriveParent file capability is true and a single parent is being added. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [String] modified_date_behavior # Determines the behavior in which modifiedDate is updated. This overrides # setModifiedDate. @@ -1645,7 +1672,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, enforce_single_parent: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, enforce_single_parent: nil, include_permissions_for_view: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'files/{fileId}', options) command.request_representation = Google::Apis::DriveV2::File::Representation command.request_object = file_object @@ -1655,6 +1682,7 @@ module Google command.query['addParents'] = add_parents unless add_parents.nil? command.query['convert'] = convert unless convert.nil? command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['modifiedDateBehavior'] = modified_date_behavior unless modified_date_behavior.nil? command.query['newRevision'] = new_revision unless new_revision.nil? command.query['ocr'] = ocr unless ocr.nil? @@ -1677,6 +1705,9 @@ module Google # Set the file's updated time to the current server time. # @param [String] file_id # The ID of the file to update. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] supports_all_drives # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives @@ -1700,11 +1731,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def touch_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def touch_file(file_id, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'files/{fileId}/touch', options) command.response_representation = Google::Apis::DriveV2::File::Representation command.response_class = Google::Apis::DriveV2::File command.params['fileId'] = file_id unless file_id.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['fields'] = fields unless fields.nil? @@ -1721,6 +1753,9 @@ module Google # All users with access can copy, download, export, and share the file. # @param [String] file_id # The ID of the file to trash. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] supports_all_drives # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives @@ -1744,11 +1779,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def trash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def trash_file(file_id, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'files/{fileId}/trash', options) command.response_representation = Google::Apis::DriveV2::File::Representation command.response_class = Google::Apis::DriveV2::File command.params['fileId'] = file_id unless file_id.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['fields'] = fields unless fields.nil? @@ -1762,6 +1798,9 @@ module Google # the owner may untrash a file. # @param [String] file_id # The ID of the file to untrash. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] supports_all_drives # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives @@ -1785,11 +1824,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def untrash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def untrash_file(file_id, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'files/{fileId}/untrash', options) command.response_representation = Google::Apis::DriveV2::File::Representation command.response_class = Google::Apis::DriveV2::File command.params['fileId'] = file_id unless file_id.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['fields'] = fields unless fields.nil? @@ -1813,6 +1853,9 @@ module Google # removed from all current folders and placed in the requested folder. Other # requests that increase the number of parents fail, except when the # canAddMyDriveParent file capability is true and a single parent is being added. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [String] modified_date_behavior # Determines the behavior in which modifiedDate is updated. This overrides # setModifiedDate. @@ -1874,7 +1917,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, enforce_single_parent: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, enforce_single_parent: nil, include_permissions_for_view: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:put, 'files/{fileId}', options) else @@ -1890,6 +1933,7 @@ module Google command.query['addParents'] = add_parents unless add_parents.nil? command.query['convert'] = convert unless convert.nil? command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['modifiedDateBehavior'] = modified_date_behavior unless modified_date_behavior.nil? command.query['newRevision'] = new_revision unless new_revision.nil? command.query['ocr'] = ocr unless ocr.nil? @@ -1916,6 +1960,9 @@ module Google # @param [Boolean] acknowledge_abuse # Whether the user is acknowledging the risk of downloading known malware or # other abusive files. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [String] projection # This parameter is deprecated and has no function. # @param [String] revision_id @@ -1949,7 +1996,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, include_permissions_for_view: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:post, 'files/{fileId}/watch', options) else @@ -1962,6 +2009,7 @@ module Google command.response_class = Google::Apis::DriveV2::Channel command.params['fileId'] = file_id unless file_id.nil? command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['projection'] = projection unless projection.nil? command.query['revisionId'] = revision_id unless revision_id.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? @@ -2331,6 +2379,9 @@ module Google # Lists a file's or shared drive's permissions. # @param [String] file_id # The ID for the file or shared drive. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Fixnum] max_results # The maximum number of permissions to return per page. When not set for files # in a shared drive, at most 100 results will be returned. When not set for @@ -2366,11 +2417,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_permissions(file_id, max_results: nil, page_token: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_permissions(file_id, include_permissions_for_view: nil, max_results: nil, page_token: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'files/{fileId}/permissions', options) command.response_representation = Google::Apis::DriveV2::PermissionList::Representation command.response_class = Google::Apis::DriveV2::PermissionList command.params['fileId'] = file_id unless file_id.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 5aff1a8f2..6cbd105d3 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20200719' + REVISION = '20200723' # 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_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index 81c22bece..904be1724 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -2169,6 +2169,12 @@ module Google # @return [String] attr_accessor :type + # Indicates the view for this permission. Only populated for permissions that + # belong to a view. published is the only supported value. + # Corresponds to the JSON property `view` + # @return [String] + attr_accessor :view + def initialize(**args) update!(**args) end @@ -2188,6 +2194,7 @@ module Google @role = args[:role] if args.key?(:role) @team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details) @type = args[:type] if args.key?(:type) + @view = args[:view] if args.key?(:view) end # diff --git a/generated/google/apis/drive_v3/representations.rb b/generated/google/apis/drive_v3/representations.rb index 987999c0f..e274ccc59 100644 --- a/generated/google/apis/drive_v3/representations.rb +++ b/generated/google/apis/drive_v3/representations.rb @@ -734,6 +734,7 @@ module Google collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail::Representation property :type, as: 'type' + property :view, as: 'view' end class PermissionDetail diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index 33da468de..7dc577bea 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -141,6 +141,9 @@ module Google # for this file. # @param [Boolean] include_items_from_all_drives # Whether both My Drive and shared drive items should be included in results. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] include_removed # Whether to include changes indicating that items have been removed from the # list of changes, for example by deletion or loss of access. @@ -180,13 +183,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_changes(page_token, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_changes(page_token, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'changes', options) command.response_representation = Google::Apis::DriveV3::ChangeList::Representation command.response_class = Google::Apis::DriveV3::ChangeList command.query['driveId'] = drive_id unless drive_id.nil? command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil? command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['includeRemoved'] = include_removed unless include_removed.nil? command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil? command.query['pageSize'] = page_size unless page_size.nil? @@ -219,6 +223,9 @@ module Google # for this file. # @param [Boolean] include_items_from_all_drives # Whether both My Drive and shared drive items should be included in results. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] include_removed # Whether to include changes indicating that items have been removed from the # list of changes, for example by deletion or loss of access. @@ -258,7 +265,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def watch_change(page_token, channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def watch_change(page_token, channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'changes/watch', options) command.request_representation = Google::Apis::DriveV3::Channel::Representation command.request_object = channel_object @@ -267,6 +274,7 @@ module Google command.query['driveId'] = drive_id unless drive_id.nil? command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil? command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['includeRemoved'] = include_removed unless include_removed.nil? command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil? command.query['pageSize'] = page_size unless page_size.nil? @@ -784,6 +792,9 @@ module Google # file. Domain administrators can choose to make all uploaded files visible to # the domain by default; this parameter bypasses that behavior for the request. # Permissions are still inherited from parent folders. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] keep_revision_forever # Whether to set the 'keepForever' field in the new head revision. This is only # applicable to files with binary content in Google Drive. Only 200 revisions @@ -814,7 +825,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def copy_file(file_id, file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def copy_file(file_id, file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'files/{fileId}/copy', options) command.request_representation = Google::Apis::DriveV3::File::Representation command.request_object = file_object @@ -823,6 +834,7 @@ module Google command.params['fileId'] = file_id unless file_id.nil? command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil? command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil? command.query['ocrLanguage'] = ocr_language unless ocr_language.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? @@ -844,6 +856,9 @@ module Google # file. Domain administrators can choose to make all uploaded files visible to # the domain by default; this parameter bypasses that behavior for the request. # Permissions are still inherited from parent folders. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] keep_revision_forever # Whether to set the 'keepForever' field in the new head revision. This is only # applicable to files with binary content in Google Drive. Only 200 revisions @@ -880,7 +895,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_file(file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def create_file(file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'files', options) else @@ -894,6 +909,7 @@ module Google command.response_class = Google::Apis::DriveV3::File command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil? command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil? command.query['ocrLanguage'] = ocr_language unless ocr_language.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? @@ -1058,6 +1074,9 @@ module Google # @param [Boolean] acknowledge_abuse # Whether the user is acknowledging the risk of downloading known malware or # other abusive files. This is only applicable when alt=media. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] supports_all_drives # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives @@ -1083,7 +1102,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_file(file_id, acknowledge_abuse: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + def get_file(file_id, acknowledge_abuse: nil, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:get, 'files/{fileId}', options) else @@ -1094,6 +1113,7 @@ module Google command.response_class = Google::Apis::DriveV3::File command.params['fileId'] = file_id unless file_id.nil? command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['fields'] = fields unless fields.nil? @@ -1116,6 +1136,9 @@ module Google # ID of the shared drive to search. # @param [Boolean] include_items_from_all_drives # Whether both My Drive and shared drive items should be included in results. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] include_team_drive_items # Deprecated use includeItemsFromAllDrives instead. # @param [String] order_by @@ -1163,7 +1186,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'files', options) command.response_representation = Google::Apis::DriveV3::FileList::Representation command.response_class = Google::Apis::DriveV3::FileList @@ -1171,6 +1194,7 @@ module Google command.query['corpus'] = corpus unless corpus.nil? command.query['driveId'] = drive_id unless drive_id.nil? command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? @@ -1199,6 +1223,9 @@ module Google # removed from all current folders and placed in the requested folder. Other # requests that increase the number of parents fail, except when the # canAddMyDriveParent file capability is true and a single parent is being added. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] keep_revision_forever # Whether to set the 'keepForever' field in the new head revision. This is only # applicable to files with binary content in Google Drive. Only 200 revisions @@ -1237,7 +1264,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_file(file_id, file_object = nil, add_parents: nil, enforce_single_parent: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def update_file(file_id, file_object = nil, add_parents: nil, enforce_single_parent: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:patch, 'files/{fileId}', options) else @@ -1252,6 +1279,7 @@ module Google command.params['fileId'] = file_id unless file_id.nil? command.query['addParents'] = add_parents unless add_parents.nil? command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil? command.query['ocrLanguage'] = ocr_language unless ocr_language.nil? command.query['removeParents'] = remove_parents unless remove_parents.nil? @@ -1271,6 +1299,9 @@ module Google # @param [Boolean] acknowledge_abuse # Whether the user is acknowledging the risk of downloading known malware or # other abusive files. This is only applicable when alt=media. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Boolean] supports_all_drives # Whether the requesting application supports both My Drives and shared drives. # @param [Boolean] supports_team_drives @@ -1296,7 +1327,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:post, 'files/{fileId}/watch', options) else @@ -1309,6 +1340,7 @@ module Google command.response_class = Google::Apis::DriveV3::Channel command.params['fileId'] = file_id unless file_id.nil? command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['fields'] = fields unless fields.nil? @@ -1489,6 +1521,9 @@ module Google # Lists a file's or shared drive's permissions. # @param [String] file_id # The ID of the file or shared drive. + # @param [String] include_permissions_for_view + # Specifies which additional view's permissions to include in the response. Only + # 'published' is supported. # @param [Fixnum] page_size # The maximum number of permissions to return per page. When not set for files # in a shared drive, at most 100 results will be returned. When not set for @@ -1524,11 +1559,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_permissions(file_id, page_size: nil, page_token: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_permissions(file_id, include_permissions_for_view: nil, page_size: nil, page_token: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'files/{fileId}/permissions', options) command.response_representation = Google::Apis::DriveV3::PermissionList::Representation command.response_class = Google::Apis::DriveV3::PermissionList command.params['fileId'] = file_id unless file_id.nil? + command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? diff --git a/generated/google/apis/firestore_v1.rb b/generated/google/apis/firestore_v1.rb index 75fca0fe4..19f51301b 100644 --- a/generated/google/apis/firestore_v1.rb +++ b/generated/google/apis/firestore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1 VERSION = 'V1' - REVISION = '20200709' + REVISION = '20200725' # 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/firestore_v1beta1.rb b/generated/google/apis/firestore_v1beta1.rb index 7d8eee193..f558fb1ad 100644 --- a/generated/google/apis/firestore_v1beta1.rb +++ b/generated/google/apis/firestore_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta1 VERSION = 'V1beta1' - REVISION = '20200709' + REVISION = '20200725' # 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/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index d4baa23ed..c7f11f328 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20200727' + REVISION = '20200804' # 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/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index 1dc2fc676..6218f1ac1 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -73,9 +73,9 @@ module Google end end - # An event generated when a container is forcibly terminated by the - # worker. Currently, this only occurs when the container outlives the - # timeout specified by the user. + # An event generated when a container is forcibly terminated by the worker. + # Currently, this only occurs when the container outlives the timeout specified + # by the user. class ContainerKilledEvent include Google::Apis::Core::Hashable @@ -103,17 +103,17 @@ module Google # @return [Fixnum] attr_accessor :action_id - # The public IP address that can be used to connect to the container. This - # field is only populated when at least one port mapping is present. If the - # instance was created with a private address, this field will be empty even - # if port mappings exist. + # The public IP address that can be used to connect to the container. This field + # is only populated when at least one port mapping is present. If the instance + # was created with a private address, this field will be empty even if port + # mappings exist. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address - # The container-to-host port mappings installed for this container. This - # set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag - # as well as any specified in the `Action` definition. + # The container-to-host port mappings installed for this container. This set + # will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag as well + # as any specified in the `Action` definition. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings @@ -144,13 +144,13 @@ module Google # @return [Fixnum] attr_accessor :exit_status - # The tail end of any content written to standard error by the container. - # If the content emits large amounts of debugging noise or contains - # sensitive information, you can prevent the content from being printed by - # setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. - # Note that only a small amount of the end of the stream is captured here. - # The entire stream is stored in the `/google/logs` directory mounted into - # each action, and can be copied off the machine as described elsewhere. + # The tail end of any content written to standard error by the container. If the + # content emits large amounts of debugging noise or contains sensitive + # information, you can prevent the content from being printed by setting the ` + # DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small amount of the end + # of the stream is captured here. The entire stream is stored in the `/google/ + # logs` directory mounted into each action, and can be copied off the machine as + # described elsewhere. # Corresponds to the JSON property `stderr` # @return [String] attr_accessor :stderr @@ -167,22 +167,22 @@ module Google end end - # An event generated whenever a resource limitation or transient error - # delays execution of a pipeline that was otherwise ready to run. + # An event generated whenever a resource limitation or transient error delays + # execution of a pipeline that was otherwise ready to run. class DelayedEvent include Google::Apis::Core::Hashable - # A textual description of the cause of the delay. The string can change - # without notice because it is often generated by another service (such as - # Compute Engine). + # A textual description of the cause of the delay. The string can change without + # notice because it is often generated by another service (such as Compute + # Engine). # Corresponds to the JSON property `cause` # @return [String] attr_accessor :cause - # If the delay was caused by a resource shortage, this field lists the - # Compute Engine metrics that are preventing this operation from running - # (for example, `CPUS` or `INSTANCES`). If the particular metric is not - # known, a single `UNKNOWN` metric will be present. + # If the delay was caused by a resource shortage, this field lists the Compute + # Engine metrics that are preventing this operation from running (for example, ` + # CPUS` or `INSTANCES`). If the particular metric is not known, a single ` + # UNKNOWN` metric will be present. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics @@ -198,13 +198,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -221,9 +219,9 @@ module Google class Event include Google::Apis::Core::Hashable - # A human-readable description of the event. Note that these strings can - # change at any time without notice. Any application logic must use the - # information in the `details` field. + # A human-readable description of the event. Note that these strings can change + # at any time without notice. Any application logic must use the information in + # the `details` field. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -250,8 +248,8 @@ module Google end end - # An event generated when the execution of a pipeline has failed. Note - # that other events can continue to occur after this event. + # An event generated when the execution of a pipeline has failed. Note that + # other events can continue to occur after this event. class FailedEvent include Google::Apis::Core::Hashable @@ -306,20 +304,19 @@ module Google class Operation 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. + # 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). + # 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::GenomicsV1::Status] attr_accessor :error @@ -331,7 +328,7 @@ module Google attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- + # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- # qzoWAgEw` # Corresponds to the JSON property `name` # @return [String] @@ -408,15 +405,14 @@ module Google # @return [String] attr_accessor :end_time - # Optional event messages that were generated during the job's execution. - # This also contains any warnings that were generated during import - # or export. + # Optional event messages that were generated during the job's execution. This + # also contains any warnings that were generated during import or export. # Corresponds to the JSON property `events` # @return [Array] attr_accessor :events - # Optionally provided by the caller when submitting the request that creates - # the operation. + # Optionally provided by the caller when submitting the request that creates the + # operation. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -427,8 +423,8 @@ module Google attr_accessor :project_id # The original request that started the operation. Note that this will be in - # current version of the API. If the operation was started with v1beta2 API - # and a GetOperation is performed on v1 API, a v1 request will be returned. + # current version of the API. If the operation was started with v1beta2 API and + # a GetOperation is performed on v1 API, a v1 request will be returned. # Corresponds to the JSON property `request` # @return [Hash] attr_accessor :request @@ -513,9 +509,8 @@ module Google end end - # Runtime metadata that will be populated in the - # runtimeMetadata - # field of the Operation associated with a RunPipeline execution. + # Runtime metadata that will be populated in the runtimeMetadata field of the + # Operation associated with a RunPipeline execution. class RuntimeMetadata include Google::Apis::Core::Hashable @@ -535,12 +530,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -549,15 +544,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -574,10 +569,10 @@ module Google end end - # An event generated when the execution of a container results in a - # non-zero exit status that was not otherwise ignored. Execution will - # continue, but only actions that are flagged as `ALWAYS_RUN` will be - # executed. Other actions will be skipped. + # An event generated when the execution of a container results in a non-zero + # exit status that was not otherwise ignored. Execution will continue, but only + # actions that are flagged as `ALWAYS_RUN` will be executed. Other actions will + # be skipped. class UnexpectedExitStatusEvent include Google::Apis::Core::Hashable @@ -602,8 +597,7 @@ module Google end end - # An event generated after a worker VM has been assigned to run the - # pipeline. + # An event generated after a worker VM has been assigned to run the pipeline. class WorkerAssignedEvent include Google::Apis::Core::Hashable @@ -634,8 +628,8 @@ module Google end end - # An event generated when the worker VM that was assigned to the pipeline - # has been released (deleted). + # An event generated when the worker VM that was assigned to the pipeline has + # been released (deleted). class WorkerReleasedEvent include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 9e733750b..0a1b9076d 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -47,15 +47,12 @@ module Google @batch_path = 'batch' end - # Starts asynchronous cancellation on a long-running operation. - # The server makes a best effort to cancel the operation, but success is not - # guaranteed. Clients may use Operations.GetOperation - # or Operations.ListOperations - # to check whether the cancellation succeeded or the operation completed - # despite cancellation. + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. Clients + # may use Operations.GetOperation or Operations.ListOperations to check whether + # the cancellation succeeded or the operation completed despite cancellation. # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.cancel` + # permission: * `genomics.operations.cancel` # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object @@ -88,12 +85,10 @@ module Google 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. + # 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. # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.get` + # permission: * `genomics.operations.get` # @param [String] name # The name of the operation resource. # @param [String] fields @@ -123,39 +118,29 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. - # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.list` + # Lists operations that match the specified filter in the request. Authorization + # requires the following [Google IAM](https://cloud.google.com/iam) permission: * + # `genomics.operations.list` # @param [String] name # The name of the operation's parent resource. # @param [String] filter - # A string for filtering Operations. - # In v2alpha1, the following filter fields are supported: - # * createTime: The time this job was created - # * events: The set of event (names) that have occurred while running - # the pipeline. The : operator can be used to determine if a - # particular event has occurred. - # * error: If the pipeline is running, this value is NULL. Once the - # pipeline finishes, the value is the standard Google error code. - # * labels.key or labels."key with space" where key is a label key. - # * done: If the pipeline is running, this value is false. Once the - # pipeline finishes, the value is true. - # In v1 and v1alpha2, the following filter fields are supported: - # * projectId: Required. Corresponds to - # OperationMetadata.projectId. - # * createTime: The time this job was created, in seconds from the - # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` - # operators. - # * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only - # one status may be specified. - # * labels.key where key is a label key. - # Examples: - # * `projectId = my-project AND createTime >= 1432140000` - # * `projectId = my-project AND createTime >= 1432140000 AND createTime <= - # 1432150000 AND status = RUNNING` - # * `projectId = my-project AND labels.color = *` - # * `projectId = my-project AND labels.color = red` + # A string for filtering Operations. In v2alpha1, the following filter fields + # are supported: * createTime: The time this job was created * events: The set + # of event (names) that have occurred while running the pipeline. The : operator + # can be used to determine if a particular event has occurred. * error: If the + # pipeline is running, this value is NULL. Once the pipeline finishes, the value + # is the standard Google error code. * labels.key or labels."key with space" + # where key is a label key. * done: If the pipeline is running, this value is + # false. Once the pipeline finishes, the value is true. In v1 and v1alpha2, the + # following filter fields are supported: * projectId: Required. Corresponds to + # OperationMetadata.projectId. * createTime: The time this job was created, in + # seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` + # and/or `<=` operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or ` + # CANCELED`. Only one status may be specified. * labels.key where key is a label + # key. Examples: * `projectId = my-project AND createTime >= 1432140000` * ` + # projectId = my-project AND createTime >= 1432140000 AND createTime <= + # 1432150000 AND status = RUNNING` * `projectId = my-project AND labels.color = * + # ` * `projectId = my-project AND labels.color = red` # @param [Fixnum] page_size # The maximum number of results to return. The maximum value is 256. # @param [String] page_token diff --git a/generated/google/apis/genomics_v1alpha2.rb b/generated/google/apis/genomics_v1alpha2.rb index 9fede10ef..3bcbb0b96 100644 --- a/generated/google/apis/genomics_v1alpha2.rb +++ b/generated/google/apis/genomics_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1alpha2 VERSION = 'V1alpha2' - REVISION = '20200727' + REVISION = '20200804' # 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/genomics_v1alpha2/classes.rb b/generated/google/apis/genomics_v1alpha2/classes.rb index 7764cd4ff..63272eba5 100644 --- a/generated/google/apis/genomics_v1alpha2/classes.rb +++ b/generated/google/apis/genomics_v1alpha2/classes.rb @@ -73,9 +73,9 @@ module Google end end - # An event generated when a container is forcibly terminated by the - # worker. Currently, this only occurs when the container outlives the - # timeout specified by the user. + # An event generated when a container is forcibly terminated by the worker. + # Currently, this only occurs when the container outlives the timeout specified + # by the user. class ContainerKilledEvent include Google::Apis::Core::Hashable @@ -103,17 +103,17 @@ module Google # @return [Fixnum] attr_accessor :action_id - # The public IP address that can be used to connect to the container. This - # field is only populated when at least one port mapping is present. If the - # instance was created with a private address, this field will be empty even - # if port mappings exist. + # The public IP address that can be used to connect to the container. This field + # is only populated when at least one port mapping is present. If the instance + # was created with a private address, this field will be empty even if port + # mappings exist. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address - # The container-to-host port mappings installed for this container. This - # set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag - # as well as any specified in the `Action` definition. + # The container-to-host port mappings installed for this container. This set + # will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag as well + # as any specified in the `Action` definition. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings @@ -144,13 +144,13 @@ module Google # @return [Fixnum] attr_accessor :exit_status - # The tail end of any content written to standard error by the container. - # If the content emits large amounts of debugging noise or contains - # sensitive information, you can prevent the content from being printed by - # setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. - # Note that only a small amount of the end of the stream is captured here. - # The entire stream is stored in the `/google/logs` directory mounted into - # each action, and can be copied off the machine as described elsewhere. + # The tail end of any content written to standard error by the container. If the + # content emits large amounts of debugging noise or contains sensitive + # information, you can prevent the content from being printed by setting the ` + # DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small amount of the end + # of the stream is captured here. The entire stream is stored in the `/google/ + # logs` directory mounted into each action, and can be copied off the machine as + # described elsewhere. # Corresponds to the JSON property `stderr` # @return [String] attr_accessor :stderr @@ -167,9 +167,9 @@ module Google end end - # Stores the information that the controller will fetch from the - # server in order to run. Should only be used by VMs created by the - # Pipelines Service and not by end users. + # Stores the information that the controller will fetch from the server in order + # to run. Should only be used by VMs created by the Pipelines Service and not by + # end users. class ControllerConfig include Google::Apis::Core::Hashable @@ -230,22 +230,22 @@ module Google end end - # An event generated whenever a resource limitation or transient error - # delays execution of a pipeline that was otherwise ready to run. + # An event generated whenever a resource limitation or transient error delays + # execution of a pipeline that was otherwise ready to run. class DelayedEvent include Google::Apis::Core::Hashable - # A textual description of the cause of the delay. The string can change - # without notice because it is often generated by another service (such as - # Compute Engine). + # A textual description of the cause of the delay. The string can change without + # notice because it is often generated by another service (such as Compute + # Engine). # Corresponds to the JSON property `cause` # @return [String] attr_accessor :cause - # If the delay was caused by a resource shortage, this field lists the - # Compute Engine metrics that are preventing this operation from running - # (for example, `CPUS` or `INSTANCES`). If the particular metric is not - # known, a single `UNKNOWN` metric will be present. + # If the delay was caused by a resource shortage, this field lists the Compute + # Engine metrics that are preventing this operation from running (for example, ` + # CPUS` or `INSTANCES`). If the particular metric is not known, a single ` + # UNKNOWN` metric will be present. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics @@ -265,51 +265,45 @@ module Google class Disk include Google::Apis::Core::Hashable - # Deprecated. Disks created by the Pipelines API will be deleted at the end - # of the pipeline run, regardless of what this field is set to. + # Deprecated. Disks created by the Pipelines API will be deleted at the end of + # the pipeline run, regardless of what this field is set to. # Corresponds to the JSON property `autoDelete` # @return [Boolean] attr_accessor :auto_delete alias_method :auto_delete?, :auto_delete - # Required at create time and cannot be overridden at run time. - # Specifies the path in the docker container where files on - # this disk should be located. For example, if `mountPoint` - # is `/mnt/disk`, and the parameter has `localPath` - # `inputs/file.txt`, the docker container can access the data at - # `/mnt/disk/inputs/file.txt`. + # Required at create time and cannot be overridden at run time. Specifies the + # path in the docker container where files on this disk should be located. For + # example, if `mountPoint` is `/mnt/disk`, and the parameter has `localPath` ` + # inputs/file.txt`, the docker container can access the data at `/mnt/disk/ + # inputs/file.txt`. # Corresponds to the JSON property `mountPoint` # @return [String] attr_accessor :mount_point - # Required. The name of the disk that can be used in the pipeline - # parameters. Must be 1 - 63 characters. - # The name "boot" is reserved for system use. + # Required. The name of the disk that can be used in the pipeline parameters. + # Must be 1 - 63 characters. The name "boot" is reserved for system use. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Specifies how a sourced-base persistent disk will be mounted. See - # https://cloud.google.com/compute/docs/disks/persistent-disks# - # use_multi_instances - # for more details. - # Can only be set at create time. + # Specifies how a sourced-base persistent disk will be mounted. See https:// + # cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances for + # more details. Can only be set at create time. # Corresponds to the JSON property `readOnly` # @return [Boolean] attr_accessor :read_only alias_method :read_only?, :read_only - # The size of the disk. Defaults to 500 (GB). - # This field is not applicable for local SSD. + # The size of the disk. Defaults to 500 (GB). This field is not applicable for + # local SSD. # Corresponds to the JSON property `sizeGb` # @return [Fixnum] attr_accessor :size_gb - # The full or partial URL of the persistent disk to attach. See - # https://cloud.google.com/compute/docs/reference/latest/instances#resource - # and - # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots - # for more details. + # The full or partial URL of the persistent disk to attach. See https://cloud. + # google.com/compute/docs/reference/latest/instances#resource and https://cloud. + # google.com/compute/docs/disks/persistent-disks#snapshots for more details. # Corresponds to the JSON property `source` # @return [String] attr_accessor :source @@ -339,12 +333,11 @@ module Google class DockerExecutor include Google::Apis::Core::Hashable - # Required. The command or newline delimited script to run. The command - # string will be executed within a bash shell. - # If the command exits with a non-zero exit code, output parameter - # de-localization will be skipped and the pipeline operation's - # `error` field will be populated. - # Maximum command string length is 16384. + # Required. The command or newline delimited script to run. The command string + # will be executed within a bash shell. If the command exits with a non-zero + # exit code, output parameter de-localization will be skipped and the pipeline + # operation's `error` field will be populated. Maximum command string length is + # 16384. # Corresponds to the JSON property `cmd` # @return [String] attr_accessor :cmd @@ -366,13 +359,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -389,9 +380,9 @@ module Google class Event include Google::Apis::Core::Hashable - # A human-readable description of the event. Note that these strings can - # change at any time without notice. Any application logic must use the - # information in the `details` field. + # A human-readable description of the event. Note that these strings can change + # at any time without notice. Any application logic must use the information in + # the `details` field. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -418,8 +409,8 @@ module Google end end - # An event generated when the execution of a pipeline has failed. Note - # that other events can continue to occur after this event. + # An event generated when the execution of a pipeline has failed. Note that + # other events can continue to occur after this event. class FailedEvent include Google::Apis::Core::Hashable @@ -469,11 +460,10 @@ module Google end end - # The response of ListPipelines. Contains at most `pageSize` - # pipelines. If it contains `pageSize` pipelines, and more pipelines - # exist, then `nextPageToken` will be populated and should be - # used as the `pageToken` argument to a subsequent ListPipelines - # request. + # The response of ListPipelines. Contains at most `pageSize` pipelines. If it + # contains `pageSize` pipelines, and more pipelines exist, then `nextPageToken` + # will be populated and should be used as the `pageToken` argument to a + # subsequent ListPipelines request. class ListPipelinesResponse include Google::Apis::Core::Hashable @@ -502,17 +492,16 @@ module Google class LocalCopy include Google::Apis::Core::Hashable - # Required. The name of the disk where this parameter is - # located. Can be the name of one of the disks specified in the - # Resources field, or "boot", which represents the Docker - # instance's boot disk and has a mount point of `/`. + # Required. The name of the disk where this parameter is located. Can be the + # name of one of the disks specified in the Resources field, or "boot", which + # represents the Docker instance's boot disk and has a mount point of `/`. # Corresponds to the JSON property `disk` # @return [String] attr_accessor :disk - # Required. The path within the user's docker container where - # this input should be localized to and from, relative to the specified - # disk's mount point. For example: file.txt, + # Required. The path within the user's docker container where this input should + # be localized to and from, relative to the specified disk's mount point. For + # example: file.txt, # Corresponds to the JSON property `path` # @return [String] attr_accessor :path @@ -532,14 +521,13 @@ module Google class LoggingOptions include Google::Apis::Core::Hashable - # The location in Google Cloud Storage to which the pipeline logs - # will be copied. Can be specified as a fully qualified directory - # path, in which case logs will be output with a unique identifier - # as the filename in that directory, or as a fully specified path, - # which must end in `.log`, in which case that path will be - # used, and the user must ensure that logs are not - # overwritten. Stdout and stderr logs from the run are also - # generated and output as `-stdout.log` and `-stderr.log`. + # The location in Google Cloud Storage to which the pipeline logs will be copied. + # Can be specified as a fully qualified directory path, in which case logs will + # be output with a unique identifier as the filename in that directory, or as a + # fully specified path, which must end in `.log`, in which case that path will + # be used, and the user must ensure that logs are not overwritten. Stdout and + # stderr logs from the run are also generated and output as `-stdout.log` and `- + # stderr.log`. # Corresponds to the JSON property `gcsPath` # @return [String] attr_accessor :gcs_path @@ -559,20 +547,19 @@ module Google class Operation 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. + # 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). + # 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::GenomicsV1alpha2::Status] attr_accessor :error @@ -584,7 +571,7 @@ module Google attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- + # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- # qzoWAgEw` # Corresponds to the JSON property `name` # @return [String] @@ -661,15 +648,14 @@ module Google # @return [String] attr_accessor :end_time - # Optional event messages that were generated during the job's execution. - # This also contains any warnings that were generated during import - # or export. + # Optional event messages that were generated during the job's execution. This + # also contains any warnings that were generated during import or export. # Corresponds to the JSON property `events` # @return [Array] attr_accessor :events - # Optionally provided by the caller when submitting the request that creates - # the operation. + # Optionally provided by the caller when submitting the request that creates the + # operation. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -680,8 +666,8 @@ module Google attr_accessor :project_id # The original request that started the operation. Note that this will be in - # current version of the API. If the operation was started with v1beta2 API - # and a GetOperation is performed on v1 API, a v1 request will be returned. + # current version of the API. If the operation was started with v1beta2 API and + # a GetOperation is performed on v1 API, a v1 request will be returned. # Corresponds to the JSON property `request` # @return [Hash] attr_accessor :request @@ -715,11 +701,11 @@ module Google end # The pipeline object. Represents a transformation from a set of input - # parameters to a set of output parameters. The transformation is defined - # as a docker image and command to run within that image. Each pipeline - # is run on a Google Compute Engine VM. A pipeline can be created with the - # `create` method and then later run with the `run` method, or a pipeline can - # be defined and run all at once with the `run` method. + # parameters to a set of output parameters. The transformation is defined as a + # docker image and command to run within that image. Each pipeline is run on a + # Google Compute Engine VM. A pipeline can be created with the `create` method + # and then later run with the `run` method, or a pipeline can be defined and run + # all at once with the `run` method. class Pipeline include Google::Apis::Core::Hashable @@ -738,8 +724,8 @@ module Google # @return [Array] attr_accessor :input_parameters - # Required. A user specified pipeline name that does not have to be unique. - # This name can be used for filtering Pipelines in ListPipelines. + # Required. A user specified pipeline name that does not have to be unique. This + # name can be used for filtering Pipelines in ListPipelines. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -749,11 +735,10 @@ module Google # @return [Array] attr_accessor :output_parameters - # Unique pipeline id that is generated by the service when CreatePipeline - # is called. Cannot be specified in the Pipeline used in the - # CreatePipelineRequest, and will be populated in the response to - # CreatePipeline and all subsequent Get and List calls. Indicates that the - # service has registered this pipeline. + # Unique pipeline id that is generated by the service when CreatePipeline is + # called. Cannot be specified in the Pipeline used in the CreatePipelineRequest, + # and will be populated in the response to CreatePipeline and all subsequent Get + # and List calls. Indicates that the service has registered this pipeline. # Corresponds to the JSON property `pipelineId` # @return [String] attr_accessor :pipeline_id @@ -786,85 +771,45 @@ module Google end end - # Parameters facilitate setting and delivering data into the - # pipeline's execution environment. They are defined at create time, - # with optional defaults, and can be overridden at run time. - # If `localCopy` is unset, then the parameter specifies a string that - # is passed as-is into the pipeline, as the value of the environment - # variable with the given name. A default value can be optionally - # specified at create time. The default can be overridden at run time - # using the inputs map. If no default is given, a value must be - # supplied at runtime. - # If `localCopy` is defined, then the parameter specifies a data - # source or sink, both in Google Cloud Storage and on the Docker container - # where the pipeline computation is run. The service account associated with - # the Pipeline (by - # default the project's Compute Engine service account) must have access to the - # Google Cloud Storage paths. - # At run time, the Google Cloud Storage paths can be overridden if a default - # was provided at create time, or must be set otherwise. The pipeline runner - # should add a key/value pair to either the inputs or outputs map. The - # indicated data copies will be carried out before/after pipeline execution, - # just as if the corresponding arguments were provided to `gsutil cp`. - # For example: Given the following `PipelineParameter`, specified - # in the `inputParameters` list: - # ``` - # `name: "input_file", localCopy: `path: "file.txt", disk: "pd1"`` - # ``` - # where `disk` is defined in the `PipelineResources` object as: - # ``` - # `name: "pd1", mountPoint: "/mnt/disk/"` - # ``` - # We create a disk named `pd1`, mount it on the host VM, and map - # `/mnt/pd1` to `/mnt/disk` in the docker container. At - # runtime, an entry for `input_file` would be required in the inputs - # map, such as: - # ``` - # inputs["input_file"] = "gs://my-bucket/bar.txt" - # ``` - # This would generate the following gsutil call: - # ``` - # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt - # ``` - # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the - # Docker container. Acceptable paths are: - # - # - # - # - # - # - # - # - #
Google Cloud storage pathLocal path
filefile
globdirectory
- # For outputs, the direction of the copy is reversed: - # ``` - # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt - # ``` - # Acceptable paths are: - # - # - # - # - # - # - # - # - # - # - # - # - # - # - #
Local pathGoogle Cloud Storage path
filefile
filedirectory - directory must already exist
globdirectory - directory will be created if it doesn't exist
- # One restriction due to docker limitations, is that for outputs that are found - # on the boot disk, the local path cannot be a glob and must be a file. + # Parameters facilitate setting and delivering data into the pipeline's + # execution environment. They are defined at create time, with optional defaults, + # and can be overridden at run time. If `localCopy` is unset, then the + # parameter specifies a string that is passed as-is into the pipeline, as the + # value of the environment variable with the given name. A default value can be + # optionally specified at create time. The default can be overridden at run time + # using the inputs map. If no default is given, a value must be supplied at + # runtime. If `localCopy` is defined, then the parameter specifies a data source + # or sink, both in Google Cloud Storage and on the Docker container where the + # pipeline computation is run. The service account associated with the Pipeline ( + # by default the project's Compute Engine service account) must have access to + # the Google Cloud Storage paths. At run time, the Google Cloud Storage paths + # can be overridden if a default was provided at create time, or must be set + # otherwise. The pipeline runner should add a key/value pair to either the + # inputs or outputs map. The indicated data copies will be carried out before/ + # after pipeline execution, just as if the corresponding arguments were provided + # to `gsutil cp`. For example: Given the following `PipelineParameter`, + # specified in the `inputParameters` list: ``` `name: "input_file", localCopy: ` + # path: "file.txt", disk: "pd1"`` ``` where `disk` is defined in the ` + # PipelineResources` object as: ``` `name: "pd1", mountPoint: "/mnt/disk/"` ``` + # We create a disk named `pd1`, mount it on the host VM, and map `/mnt/pd1` to `/ + # mnt/disk` in the docker container. At runtime, an entry for `input_file` would + # be required in the inputs map, such as: ``` inputs["input_file"] = "gs://my- + # bucket/bar.txt" ``` This would generate the following gsutil call: ``` gsutil + # cp gs://my-bucket/bar.txt /mnt/pd1/file.txt ``` The file `/mnt/pd1/file.txt` + # maps to `/mnt/disk/file.txt` in the Docker container. Acceptable paths are: + # Google Cloud storage pathLocal path file file glob directory For outputs, the + # direction of the copy is reversed: ``` gsutil cp /mnt/disk/file.txt gs://my- + # bucket/bar.txt ``` Acceptable paths are: Local pathGoogle Cloud Storage path + # file file file directory - directory must already exist glob directory - + # directory will be created if it doesn't exist One restriction due to docker + # limitations, is that for outputs that are found on the boot disk, the local + # path cannot be a glob and must be a file. class PipelineParameter include Google::Apis::Core::Hashable - # The default value for this parameter. Can be overridden at runtime. - # If `localCopy` is present, then this must be a Google Cloud Storage path - # beginning with `gs://`. + # The default value for this parameter. Can be overridden at runtime. If ` + # localCopy` is present, then this must be a Google Cloud Storage path beginning + # with `gs://`. # Corresponds to the JSON property `defaultValue` # @return [String] attr_accessor :default_value @@ -879,8 +824,8 @@ module Google # @return [Google::Apis::GenomicsV1alpha2::LocalCopy] attr_accessor :local_copy - # Required. Name of the parameter - the pipeline runner uses this string - # as the key to the input and output maps in RunPipeline. + # Required. Name of the parameter - the pipeline runner uses this string as the + # key to the input and output maps in RunPipeline. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -902,20 +847,19 @@ module Google class PipelineResources include Google::Apis::Core::Hashable - # Optional. The number of accelerators of the specified type to attach. - # By specifying this parameter, you will download and install the following - # third-party software onto your managed Compute Engine instances: - # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit. + # Optional. The number of accelerators of the specified type to attach. By + # specifying this parameter, you will download and install the following third- + # party software onto your managed Compute Engine instances: NVIDIA® Tesla® + # drivers and NVIDIA® CUDA toolkit. # Corresponds to the JSON property `acceleratorCount` # @return [Fixnum] attr_accessor :accelerator_count - # Optional. The Compute Engine defined accelerator type. - # By specifying this parameter, you will download and install the following - # third-party software onto your managed Compute Engine instances: NVIDIA® - # Tesla® drivers and NVIDIA® CUDA toolkit. - # Please see https://cloud.google.com/compute/docs/gpus/ for a list of - # available accelerator types. + # Optional. The Compute Engine defined accelerator type. By specifying this + # parameter, you will download and install the following third-party software + # onto your managed Compute Engine instances: NVIDIA® Tesla® drivers and NVIDIA® + # CUDA toolkit. Please see https://cloud.google.com/compute/docs/gpus/ for a + # list of available accelerator types. # Corresponds to the JSON property `acceleratorType` # @return [String] attr_accessor :accelerator_type @@ -941,17 +885,16 @@ module Google attr_accessor :minimum_ram_gb # Whether to assign an external IP to the instance. This is an experimental - # feature that may go away. Defaults to false. - # Corresponds to `--no_address` flag for [gcloud compute instances create] - # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create). - # In order to use this, must be true for both create time and run time. - # Cannot be true at run time if false at create time. If you need to ssh into - # a private IP VM for debugging, you can ssh to a public VM and then ssh into - # the private VM's Internal IP. If noAddress is set, this pipeline run may - # only load docker images from Google Container Registry and not Docker Hub. - # Before using this, you must - # [configure access to Google services from internal - # IPs](https://cloud.google.com/compute/docs/configure-private-google-access# + # feature that may go away. Defaults to false. Corresponds to `--no_address` + # flag for [gcloud compute instances create] (https://cloud.google.com/sdk/ + # gcloud/reference/compute/instances/create). In order to use this, must be true + # for both create time and run time. Cannot be true at run time if false at + # create time. If you need to ssh into a private IP VM for debugging, you can + # ssh to a public VM and then ssh into the private VM's Internal IP. If + # noAddress is set, this pipeline run may only load docker images from Google + # Container Registry and not Docker Hub. Before using this, you must [configure + # access to Google services from internal IPs](https://cloud.google.com/compute/ + # docs/configure-private-google-access# # configuring_access_to_google_services_from_internal_ips). # Corresponds to the JSON property `noAddress` # @return [Boolean] @@ -959,15 +902,15 @@ module Google alias_method :no_address?, :no_address # Whether to use preemptible VMs. Defaults to `false`. In order to use this, - # must be true for both create time and run time. Cannot be true at run time - # if false at create time. + # must be true for both create time and run time. Cannot be true at run time if + # false at create time. # Corresponds to the JSON property `preemptible` # @return [Boolean] attr_accessor :preemptible alias_method :preemptible?, :preemptible - # List of Google Compute Engine availability zones to which resource - # creation will restricted. If empty, any zone may be chosen. + # List of Google Compute Engine availability zones to which resource creation + # will restricted. If empty, any zone may be chosen. # Corresponds to the JSON property `zones` # @return [Array] attr_accessor :zones @@ -1057,32 +1000,29 @@ module Google # @return [String] attr_accessor :client_id - # Pipeline input arguments; keys are defined in the pipeline documentation. - # All input parameters that do not have default values must be specified. - # If parameters with defaults are specified here, the defaults will be - # overridden. + # Pipeline input arguments; keys are defined in the pipeline documentation. All + # input parameters that do not have default values must be specified. If + # parameters with defaults are specified here, the defaults will be overridden. # Corresponds to the JSON property `inputs` # @return [Hash] attr_accessor :inputs - # How long to keep the VM up after a failure (for example docker command - # failed, copying input or output files failed, etc). While the VM is up, one - # can ssh into the VM to debug. Default is 0; maximum allowed value is 1 day. + # How long to keep the VM up after a failure (for example docker command failed, + # copying input or output files failed, etc). While the VM is up, one can ssh + # into the VM to debug. Default is 0; maximum allowed value is 1 day. # Corresponds to the JSON property `keepVmAliveOnFailureDuration` # @return [String] attr_accessor :keep_vm_alive_on_failure_duration - # Labels to apply to this pipeline run. Labels will also be applied to - # compute resources (VM, disks) created by this pipeline run. When listing - # operations, operations can filtered by labels. - # Label keys may not be empty; label values may be empty. Non-empty labels - # must be 1-63 characters long, and comply with [RFC1035] - # (https://www.ietf.org/rfc/rfc1035.txt). - # 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. + # Labels to apply to this pipeline run. Labels will also be applied to compute + # resources (VM, disks) created by this pipeline run. When listing operations, + # operations can filtered by labels. Label keys may not be empty; label values + # may be empty. Non-empty labels must be 1-63 characters long, and comply with [ + # RFC1035] (https://www.ietf.org/rfc/rfc1035.txt). 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 `labels` # @return [Hash] attr_accessor :labels @@ -1092,17 +1032,16 @@ module Google # @return [Google::Apis::GenomicsV1alpha2::LoggingOptions] attr_accessor :logging - # Pipeline output arguments; keys are defined in the pipeline - # documentation. All output parameters of without default values - # must be specified. If parameters with defaults are specified - # here, the defaults will be overridden. + # Pipeline output arguments; keys are defined in the pipeline documentation. All + # output parameters of without default values must be specified. If parameters + # with defaults are specified here, the defaults will be overridden. # Corresponds to the JSON property `outputs` # @return [Hash] attr_accessor :outputs # Required. The project in which to run the pipeline. The caller must have - # WRITER access to all Google Cloud services and resources (e.g. Google - # Compute Engine) will be used. + # WRITER access to all Google Cloud services and resources (e.g. Google Compute + # Engine) will be used. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -1135,22 +1074,20 @@ module Google end end - # The request to run a pipeline. If `pipelineId` is specified, it - # refers to a saved pipeline created with CreatePipeline and set as - # the `pipelineId` of the returned Pipeline object. If - # `ephemeralPipeline` is specified, that pipeline is run once - # with the given args and not saved. It is an error to specify both - # `pipelineId` and `ephemeralPipeline`. `pipelineArgs` - # must be specified. + # The request to run a pipeline. If `pipelineId` is specified, it refers to a + # saved pipeline created with CreatePipeline and set as the `pipelineId` of the + # returned Pipeline object. If `ephemeralPipeline` is specified, that pipeline + # is run once with the given args and not saved. It is an error to specify both ` + # pipelineId` and `ephemeralPipeline`. `pipelineArgs` must be specified. class RunPipelineRequest include Google::Apis::Core::Hashable # The pipeline object. Represents a transformation from a set of input - # parameters to a set of output parameters. The transformation is defined - # as a docker image and command to run within that image. Each pipeline - # is run on a Google Compute Engine VM. A pipeline can be created with the - # `create` method and then later run with the `run` method, or a pipeline can - # be defined and run all at once with the `run` method. + # parameters to a set of output parameters. The transformation is defined as a + # docker image and command to run within that image. Each pipeline is run on a + # Google Compute Engine VM. A pipeline can be created with the `create` method + # and then later run with the `run` method, or a pipeline can be defined and run + # all at once with the `run` method. # Corresponds to the JSON property `ephemeralPipeline` # @return [Google::Apis::GenomicsV1alpha2::Pipeline] attr_accessor :ephemeral_pipeline @@ -1191,9 +1128,8 @@ module Google end end - # Runtime metadata that will be populated in the - # runtimeMetadata - # field of the Operation associated with a RunPipeline execution. + # Runtime metadata that will be populated in the runtimeMetadata field of the + # Operation associated with a RunPipeline execution. class RuntimeMetadata include Google::Apis::Core::Hashable @@ -1217,19 +1153,17 @@ module Google class ServiceAccount include Google::Apis::Core::Hashable - # Email address of the service account. Defaults to `default`, - # which uses the compute service account associated with the project. + # Email address of the service account. Defaults to `default`, which uses the + # compute service account associated with the project. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email - # List of scopes to be enabled for this service account on the VM. - # The following scopes are automatically included: - # * https://www.googleapis.com/auth/compute - # * https://www.googleapis.com/auth/devstorage.full_control - # * https://www.googleapis.com/auth/genomics - # * https://www.googleapis.com/auth/logging.write - # * https://www.googleapis.com/auth/monitoring.write + # List of scopes to be enabled for this service account on the VM. The following + # scopes are automatically included: * https://www.googleapis.com/auth/compute * + # https://www.googleapis.com/auth/devstorage.full_control * https://www. + # googleapis.com/auth/genomics * https://www.googleapis.com/auth/logging.write * + # https://www.googleapis.com/auth/monitoring.write # Corresponds to the JSON property `scopes` # @return [Array] attr_accessor :scopes @@ -1245,8 +1179,8 @@ module Google end end - # Request to set operation status. Should only be used by VMs - # created by the Pipelines Service and not by end users. + # Request to set operation status. Should only be used by VMs created by the + # Pipelines Service and not by end users. class SetOperationStatusRequest include Google::Apis::Core::Hashable @@ -1289,12 +1223,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1303,15 +1237,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1354,10 +1288,10 @@ module Google end end - # An event generated when the execution of a container results in a - # non-zero exit status that was not otherwise ignored. Execution will - # continue, but only actions that are flagged as `ALWAYS_RUN` will be - # executed. Other actions will be skipped. + # An event generated when the execution of a container results in a non-zero + # exit status that was not otherwise ignored. Execution will continue, but only + # actions that are flagged as `ALWAYS_RUN` will be executed. Other actions will + # be skipped. class UnexpectedExitStatusEvent include Google::Apis::Core::Hashable @@ -1382,8 +1316,7 @@ module Google end end - # An event generated after a worker VM has been assigned to run the - # pipeline. + # An event generated after a worker VM has been assigned to run the pipeline. class WorkerAssignedEvent include Google::Apis::Core::Hashable @@ -1414,8 +1347,8 @@ module Google end end - # An event generated when the worker VM that was assigned to the pipeline - # has been released (deleted). + # An event generated when the worker VM that was assigned to the pipeline has + # been released (deleted). class WorkerReleasedEvent include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v1alpha2/service.rb b/generated/google/apis/genomics_v1alpha2/service.rb index 3d0fd0a4c..e8151644d 100644 --- a/generated/google/apis/genomics_v1alpha2/service.rb +++ b/generated/google/apis/genomics_v1alpha2/service.rb @@ -47,15 +47,12 @@ module Google @batch_path = 'batch' end - # Starts asynchronous cancellation on a long-running operation. - # The server makes a best effort to cancel the operation, but success is not - # guaranteed. Clients may use Operations.GetOperation - # or Operations.ListOperations - # to check whether the cancellation succeeded or the operation completed - # despite cancellation. + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. Clients + # may use Operations.GetOperation or Operations.ListOperations to check whether + # the cancellation succeeded or the operation completed despite cancellation. # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.cancel` + # permission: * `genomics.operations.cancel` # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::GenomicsV1alpha2::CancelOperationRequest] cancel_operation_request_object @@ -88,12 +85,10 @@ module Google 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. + # 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. # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.get` + # permission: * `genomics.operations.get` # @param [String] name # The name of the operation resource. # @param [String] fields @@ -123,39 +118,29 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. - # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.list` + # Lists operations that match the specified filter in the request. Authorization + # requires the following [Google IAM](https://cloud.google.com/iam) permission: * + # `genomics.operations.list` # @param [String] name # The name of the operation's parent resource. # @param [String] filter - # A string for filtering Operations. - # In v2alpha1, the following filter fields are supported: - # * createTime: The time this job was created - # * events: The set of event (names) that have occurred while running - # the pipeline. The : operator can be used to determine if a - # particular event has occurred. - # * error: If the pipeline is running, this value is NULL. Once the - # pipeline finishes, the value is the standard Google error code. - # * labels.key or labels."key with space" where key is a label key. - # * done: If the pipeline is running, this value is false. Once the - # pipeline finishes, the value is true. - # In v1 and v1alpha2, the following filter fields are supported: - # * projectId: Required. Corresponds to - # OperationMetadata.projectId. - # * createTime: The time this job was created, in seconds from the - # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` - # operators. - # * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only - # one status may be specified. - # * labels.key where key is a label key. - # Examples: - # * `projectId = my-project AND createTime >= 1432140000` - # * `projectId = my-project AND createTime >= 1432140000 AND createTime <= - # 1432150000 AND status = RUNNING` - # * `projectId = my-project AND labels.color = *` - # * `projectId = my-project AND labels.color = red` + # A string for filtering Operations. In v2alpha1, the following filter fields + # are supported: * createTime: The time this job was created * events: The set + # of event (names) that have occurred while running the pipeline. The : operator + # can be used to determine if a particular event has occurred. * error: If the + # pipeline is running, this value is NULL. Once the pipeline finishes, the value + # is the standard Google error code. * labels.key or labels."key with space" + # where key is a label key. * done: If the pipeline is running, this value is + # false. Once the pipeline finishes, the value is true. In v1 and v1alpha2, the + # following filter fields are supported: * projectId: Required. Corresponds to + # OperationMetadata.projectId. * createTime: The time this job was created, in + # seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` + # and/or `<=` operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or ` + # CANCELED`. Only one status may be specified. * labels.key where key is a label + # key. Examples: * `projectId = my-project AND createTime >= 1432140000` * ` + # projectId = my-project AND createTime >= 1432140000 AND createTime <= + # 1432150000 AND status = RUNNING` * `projectId = my-project AND labels.color = * + # ` * `projectId = my-project AND labels.color = red` # @param [Fixnum] page_size # The maximum number of results to return. The maximum value is 256. # @param [String] page_token @@ -190,11 +175,10 @@ module Google execute_or_queue_command(command, &block) end - # Creates a pipeline that can be run later. Create takes a Pipeline that - # has all fields other than `pipelineId` populated, and then returns - # the same pipeline with `pipelineId` populated. This id can be used - # to run the pipeline. - # Caller must have WRITE permission to the project. + # Creates a pipeline that can be run later. Create takes a Pipeline that has all + # fields other than `pipelineId` populated, and then returns the same pipeline + # with `pipelineId` populated. This id can be used to run the pipeline. Caller + # must have WRITE permission to the project. # @param [Google::Apis::GenomicsV1alpha2::Pipeline] pipeline_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -224,11 +208,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a pipeline based on ID. - # Caller must have WRITE permission to the project. + # Deletes a pipeline based on ID. Caller must have WRITE permission to the + # project. # @param [String] pipeline_id - # Caller must have WRITE access to the project in which this pipeline - # is defined. + # Caller must have WRITE access to the project in which this pipeline is defined. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -256,11 +239,10 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a pipeline based on ID. - # Caller must have READ permission to the project. + # Retrieves a pipeline based on ID. Caller must have READ permission to the + # project. # @param [String] pipeline_id - # Caller must have READ access to the project in which this pipeline - # is defined. + # Caller must have READ access to the project in which this pipeline is defined. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -288,8 +270,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets controller configuration information. Should only be called - # by VMs created by the Pipelines Service and not by end users. + # Gets controller configuration information. Should only be called by VMs + # created by the Pipelines Service and not by end users. # @param [String] operation_id # The operation to retrieve controller configuration for. # @param [Fixnum] validation_token @@ -321,21 +303,18 @@ module Google execute_or_queue_command(command, &block) end - # Lists pipelines. - # Caller must have READ permission to the project. + # Lists pipelines. Caller must have READ permission to the project. # @param [String] name_prefix - # Pipelines with names that match this prefix should be - # returned. If unspecified, all pipelines in the project, up to - # `pageSize`, will be returned. + # Pipelines with names that match this prefix should be returned. If unspecified, + # all pipelines in the project, up to `pageSize`, will be returned. # @param [Fixnum] page_size - # Number of pipelines to return at once. Defaults to 256, and max - # is 2048. + # Number of pipelines to return at once. Defaults to 256, and max is 2048. # @param [String] page_token - # Token to use to indicate where to start getting results. - # If unspecified, returns the first page of results. + # Token to use to indicate where to start getting results. If unspecified, + # returns the first page of results. # @param [String] project_id - # Required. The name of the project to search for pipelines. Caller - # must have READ access to this project. + # Required. The name of the project to search for pipelines. Caller must have + # READ access to this project. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -366,13 +345,12 @@ module Google execute_or_queue_command(command, &block) end - # Runs a pipeline. If `pipelineId` is specified in the request, then - # run a saved pipeline. If `ephemeralPipeline` is specified, then run - # that pipeline once without saving a copy. - # The caller must have READ permission to the project where the pipeline - # is stored and WRITE permission to the project where the pipeline will be - # run, as VMs will be created and storage will be used. - # If a pipeline operation is still running after 6 days, it will be canceled. + # Runs a pipeline. If `pipelineId` is specified in the request, then run a saved + # pipeline. If `ephemeralPipeline` is specified, then run that pipeline once + # without saving a copy. The caller must have READ permission to the project + # where the pipeline is stored and WRITE permission to the project where the + # pipeline will be run, as VMs will be created and storage will be used. If a + # pipeline operation is still running after 6 days, it will be canceled. # @param [Google::Apis::GenomicsV1alpha2::RunPipelineRequest] run_pipeline_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/genomics_v2alpha1.rb b/generated/google/apis/genomics_v2alpha1.rb index d2dc40ae8..db6c63bc0 100644 --- a/generated/google/apis/genomics_v2alpha1.rb +++ b/generated/google/apis/genomics_v2alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV2alpha1 VERSION = 'V2alpha1' - REVISION = '20200727' + REVISION = '20200804' # 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/genomics_v2alpha1/classes.rb b/generated/google/apis/genomics_v2alpha1/classes.rb index f4be222de..0e7b8fe00 100644 --- a/generated/google/apis/genomics_v2alpha1/classes.rb +++ b/generated/google/apis/genomics_v2alpha1/classes.rb @@ -31,13 +31,12 @@ module Google # @return [Fixnum] attr_accessor :count - # The accelerator type string (for example, "nvidia-tesla-k80"). - # Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is - # attached, the required runtime libraries will be made available to all - # containers under `/usr/local/nvidia`. The driver version to install must - # be specified using the NVIDIA driver version parameter on the virtual - # machine specification. Note that attaching a GPU increases the worker VM - # startup time by a few minutes. + # The accelerator type string (for example, "nvidia-tesla-k80"). Only NVIDIA GPU + # accelerators are currently supported. If an NVIDIA GPU is attached, the + # required runtime libraries will be made available to all containers under `/ + # usr/local/nvidia`. The driver version to install must be specified using the + # NVIDIA driver version parameter on the virtual machine specification. Note + # that attaching a GPU increases the worker VM startup time by a few minutes. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -57,16 +56,16 @@ module Google class Action include Google::Apis::Core::Hashable - # If specified, overrides the `CMD` specified in the container. If the - # container also has an `ENTRYPOINT` the values are used as entrypoint - # arguments. Otherwise, they are used as a command and arguments to run - # inside the container. + # If specified, overrides the `CMD` specified in the container. If the container + # also has an `ENTRYPOINT` the values are used as entrypoint arguments. + # Otherwise, they are used as a command and arguments to run inside the + # container. # Corresponds to the JSON property `commands` # @return [Array] attr_accessor :commands - # Holds encrypted information that is only decrypted and stored in RAM - # by the worker VM when running the pipeline. + # Holds encrypted information that is only decrypted and stored in RAM by the + # worker VM when running the pipeline. # Corresponds to the JSON property `credentials` # @return [Google::Apis::GenomicsV2alpha1::Secret] attr_accessor :credentials @@ -76,19 +75,17 @@ module Google # @return [String] attr_accessor :entrypoint - # The environment to pass into the container. This environment is merged - # with values specified in the google.genomics.v2alpha1.Pipeline - # message, overwriting any duplicate values. - # In addition to the values passed here, a few other values are - # automatically injected into the environment. These cannot be hidden or - # overwritten. - # `GOOGLE_PIPELINE_FAILED` will be set to "1" if the pipeline failed - # because an action has exited with a non-zero status (and did not have the - # `IGNORE_EXIT_STATUS` flag set). This can be used to determine if additional - # debug or logging actions should execute. - # `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of the last - # non-background action that executed. This can be used by workflow engine - # authors to determine whether an individual action has succeeded or failed. + # The environment to pass into the container. This environment is merged with + # values specified in the google.genomics.v2alpha1.Pipeline message, overwriting + # any duplicate values. In addition to the values passed here, a few other + # values are automatically injected into the environment. These cannot be hidden + # or overwritten. `GOOGLE_PIPELINE_FAILED` will be set to "1" if the pipeline + # failed because an action has exited with a non-zero status (and did not have + # the `IGNORE_EXIT_STATUS` flag set). This can be used to determine if + # additional debug or logging actions should execute. `GOOGLE_LAST_EXIT_STATUS` + # will be set to the exit status of the last non-background action that executed. + # This can be used by workflow engine authors to determine whether an + # individual action has succeeded or failed. # Corresponds to the JSON property `environment` # @return [Hash] attr_accessor :environment @@ -99,78 +96,68 @@ module Google attr_accessor :flags # Required. The URI to pull the container image from. Note that all images - # referenced - # by actions in the pipeline are pulled before the first action runs. If - # multiple actions reference the same image, it is only pulled once, - # ensuring that the same image is used for all actions in a single pipeline. - # The image URI can be either a complete host and image specification (e.g., - # quay.io/biocontainers/samtools), a library and image name (e.g., - # google/cloud-sdk) or a bare image name ('bash') to pull from the default - # library. No schema is required in any of these cases. - # If the specified image is not public, the service account specified for - # the Virtual Machine must have access to pull the images from GCR, or - # appropriate credentials must be specified in the - # google.genomics.v2alpha1.Action.credentials field. + # referenced by actions in the pipeline are pulled before the first action runs. + # If multiple actions reference the same image, it is only pulled once, ensuring + # that the same image is used for all actions in a single pipeline. The image + # URI can be either a complete host and image specification (e.g., quay.io/ + # biocontainers/samtools), a library and image name (e.g., google/cloud-sdk) or + # a bare image name ('bash') to pull from the default library. No schema is + # required in any of these cases. If the specified image is not public, the + # service account specified for the Virtual Machine must have access to pull the + # images from GCR, or appropriate credentials must be specified in the google. + # genomics.v2alpha1.Action.credentials field. # Corresponds to the JSON property `imageUri` # @return [String] attr_accessor :image_uri - # Labels to associate with the action. This field is provided to assist - # workflow engine authors in identifying actions (for example, to indicate - # what sort of action they perform, such as localization or debugging). - # They are returned in the operation metadata, but are otherwise ignored. + # Labels to associate with the action. This field is provided to assist workflow + # engine authors in identifying actions (for example, to indicate what sort of + # action they perform, such as localization or debugging). They are returned in + # the operation metadata, but are otherwise ignored. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # A list of mounts to make available to the action. - # In addition to the values specified here, every action has a special - # virtual disk mounted under `/google` that contains log files and other - # operational components. - #
    - #
  • /google/logs All logs written during the pipeline - # execution.
  • - #
  • /google/logs/output The combined standard output and - # standard error of all actions run as part of the pipeline - # execution.
  • - #
  • /google/logs/action/*/stdout The complete contents of - # each individual action's standard output.
  • - #
  • /google/logs/action/*/stderr The complete contents of - # each individual action's standard error output.
  • - #
+ # A list of mounts to make available to the action. In addition to the values + # specified here, every action has a special virtual disk mounted under `/google` + # that contains log files and other operational components. - /google/logs All + # logs written during the pipeline execution. - /google/logs/output The combined + # standard output and standard error of all actions run as part of the pipeline + # execution. - /google/logs/action/*/stdout The complete contents of each + # individual action's standard output. - /google/logs/action/*/stderr The + # complete contents of each individual action's standard error output. # Corresponds to the JSON property `mounts` # @return [Array] attr_accessor :mounts - # An optional name for the container. The container hostname will be set to - # this name, making it useful for inter-container communication. The name - # must contain only upper and lowercase alphanumeric characters and hypens - # and cannot start with a hyphen. + # An optional name for the container. The container hostname will be set to this + # name, making it useful for inter-container communication. The name must + # contain only upper and lowercase alphanumeric characters and hypens and cannot + # start with a hyphen. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An optional identifier for a PID namespace to run the action inside. - # Multiple actions should use the same string to share a namespace. If - # unspecified, a separate isolated namespace is used. + # An optional identifier for a PID namespace to run the action inside. Multiple + # actions should use the same string to share a namespace. If unspecified, a + # separate isolated namespace is used. # Corresponds to the JSON property `pidNamespace` # @return [String] attr_accessor :pid_namespace - # A map of containers to host port mappings for this container. If the - # container already specifies exposed ports, use the - # `PUBLISH_EXPOSED_PORTS` flag instead. - # The host port number must be less than 65536. If it is zero, an unused - # random port is assigned. To determine the resulting port number, consult - # the `ContainerStartedEvent` in the operation metadata. + # A map of containers to host port mappings for this container. If the container + # already specifies exposed ports, use the `PUBLISH_EXPOSED_PORTS` flag instead. + # The host port number must be less than 65536. If it is zero, an unused random + # port is assigned. To determine the resulting port number, consult the ` + # ContainerStartedEvent` in the operation metadata. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings - # The maximum amount of time to give the action to complete. If the action - # fails to complete before the timeout, it will be terminated and the exit - # status will be non-zero. The pipeline will continue or terminate based - # on the rules defined by the `ALWAYS_RUN` and `IGNORE_EXIT_STATUS` flags. + # The maximum amount of time to give the action to complete. If the action fails + # to complete before the timeout, it will be terminated and the exit status will + # be non-zero. The pipeline will continue or terminate based on the rules + # defined by the `ALWAYS_RUN` and `IGNORE_EXIT_STATUS` flags. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout @@ -213,13 +200,11 @@ module Google class CheckInRequest include Google::Apis::Core::Hashable - # 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 ````. + # 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 ````. # Corresponds to the JSON property `deadlineExpired` # @return [Google::Apis::GenomicsV2alpha1::Empty] attr_accessor :deadline_expired @@ -234,16 +219,22 @@ module Google # @return [Array] attr_accessor :events - # 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). + # 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 `result` # @return [Google::Apis::GenomicsV2alpha1::Status] attr_accessor :result + # An SOS report for an unexpected VM failure. + # Corresponds to the JSON property `sosReport` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :sos_report + # The status of the worker VM. # Corresponds to the JSON property `workerStatus` # @return [Google::Apis::GenomicsV2alpha1::WorkerStatus] @@ -259,6 +250,7 @@ module Google @event = args[:event] if args.key?(:event) @events = args[:events] if args.key?(:events) @result = args[:result] if args.key?(:result) + @sos_report = args[:sos_report] if args.key?(:sos_report) @worker_status = args[:worker_status] if args.key?(:worker_status) end end @@ -267,9 +259,9 @@ module Google class CheckInResponse include Google::Apis::Core::Hashable - # The deadline by which the worker must request an extension. The backend - # will allow for network transmission time and other delays, but the worker - # must attempt to transmit the extension request no later than the deadline. + # The deadline by which the worker must request an extension. The backend will + # allow for network transmission time and other delays, but the worker must + # attempt to transmit the extension request no later than the deadline. # Corresponds to the JSON property `deadline` # @return [String] attr_accessor :deadline @@ -328,9 +320,9 @@ module Google end end - # An event generated when a container is forcibly terminated by the - # worker. Currently, this only occurs when the container outlives the - # timeout specified by the user. + # An event generated when a container is forcibly terminated by the worker. + # Currently, this only occurs when the container outlives the timeout specified + # by the user. class ContainerKilledEvent include Google::Apis::Core::Hashable @@ -358,17 +350,17 @@ module Google # @return [Fixnum] attr_accessor :action_id - # The public IP address that can be used to connect to the container. This - # field is only populated when at least one port mapping is present. If the - # instance was created with a private address, this field will be empty even - # if port mappings exist. + # The public IP address that can be used to connect to the container. This field + # is only populated when at least one port mapping is present. If the instance + # was created with a private address, this field will be empty even if port + # mappings exist. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address - # The container-to-host port mappings installed for this container. This - # set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag - # as well as any specified in the `Action` definition. + # The container-to-host port mappings installed for this container. This set + # will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag as well + # as any specified in the `Action` definition. # Corresponds to the JSON property `portMappings` # @return [Hash] attr_accessor :port_mappings @@ -399,13 +391,13 @@ module Google # @return [Fixnum] attr_accessor :exit_status - # The tail end of any content written to standard error by the container. - # If the content emits large amounts of debugging noise or contains - # sensitive information, you can prevent the content from being printed by - # setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. - # Note that only a small amount of the end of the stream is captured here. - # The entire stream is stored in the `/google/logs` directory mounted into - # each action, and can be copied off the machine as described elsewhere. + # The tail end of any content written to standard error by the container. If the + # content emits large amounts of debugging noise or contains sensitive + # information, you can prevent the content from being printed by setting the ` + # DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small amount of the end + # of the stream is captured here. The entire stream is stored in the `/google/ + # logs` directory mounted into each action, and can be copied off the machine as + # described elsewhere. # Corresponds to the JSON property `stderr` # @return [String] attr_accessor :stderr @@ -422,22 +414,22 @@ module Google end end - # An event generated whenever a resource limitation or transient error - # delays execution of a pipeline that was otherwise ready to run. + # An event generated whenever a resource limitation or transient error delays + # execution of a pipeline that was otherwise ready to run. class DelayedEvent include Google::Apis::Core::Hashable - # A textual description of the cause of the delay. The string can change - # without notice because it is often generated by another service (such as - # Compute Engine). + # A textual description of the cause of the delay. The string can change without + # notice because it is often generated by another service (such as Compute + # Engine). # Corresponds to the JSON property `cause` # @return [String] attr_accessor :cause - # If the delay was caused by a resource shortage, this field lists the - # Compute Engine metrics that are preventing this operation from running - # (for example, `CPUS` or `INSTANCES`). If the particular metric is not - # known, a single `UNKNOWN` metric will be present. + # If the delay was caused by a resource shortage, this field lists the Compute + # Engine metrics that are preventing this operation from running (for example, ` + # CPUS` or `INSTANCES`). If the particular metric is not known, a single ` + # UNKNOWN` metric will be present. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics @@ -453,25 +445,24 @@ module Google end end - # Carries information about a disk that can be attached to a VM. - # See https://cloud.google.com/compute/docs/disks/performance for more - # information about disk type, size, and performance considerations. + # Carries information about a disk that can be attached to a VM. See https:// + # cloud.google.com/compute/docs/disks/performance for more information about + # disk type, size, and performance considerations. class Disk include Google::Apis::Core::Hashable - # A user-supplied name for the disk. Used when mounting the disk into - # actions. The name must contain only upper and lowercase alphanumeric - # characters and hypens and cannot start with a hyphen. + # A user-supplied name for the disk. Used when mounting the disk into actions. + # The name must contain only upper and lowercase alphanumeric characters and + # hypens and cannot start with a hyphen. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The size, in GB, of the disk to attach. If the size is not - # specified, a default is chosen to ensure reasonable I/O performance. - # If the disk type is specified as `local-ssd`, multiple local drives are - # automatically combined to provide the requested size. Note, however, that - # each physical SSD is 375GB in size, and no more than 8 drives can be - # attached to a single instance. + # The size, in GB, of the disk to attach. If the size is not specified, a + # default is chosen to ensure reasonable I/O performance. If the disk type is + # specified as `local-ssd`, multiple local drives are automatically combined to + # provide the requested size. Note, however, that each physical SSD is 375GB in + # size, and no more than 8 drives can be attached to a single instance. # Corresponds to the JSON property `sizeGb` # @return [Fixnum] attr_accessor :size_gb @@ -524,13 +515,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -547,9 +536,9 @@ module Google class Event include Google::Apis::Core::Hashable - # A human-readable description of the event. Note that these strings can - # change at any time without notice. Any application logic must use the - # information in the `details` field. + # A human-readable description of the event. Note that these strings can change + # at any time without notice. Any application logic must use the information in + # the `details` field. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -576,8 +565,8 @@ module Google end end - # An event generated when the execution of a pipeline has failed. Note - # that other events can continue to occur after this event. + # An event generated when the execution of a pipeline has failed. Note that + # other events can continue to occur after this event. class FailedEvent include Google::Apis::Core::Hashable @@ -627,8 +616,8 @@ module Google end end - # Carries information about the pipeline execution that is returned - # in the long running operation's metadata field. + # Carries information about the pipeline execution that is returned in the long + # running operation's metadata field. class Metadata include Google::Apis::Core::Hashable @@ -714,30 +703,28 @@ module Google class Network include Google::Apis::Core::Hashable - # The network name to attach the VM's network interface to. The value will - # be prefixed with `global/networks/` unless it contains a `/`, in which - # case it is assumed to be a fully specified network resource URL. - # If unspecified, the global default network is used. + # The network name to attach the VM's network interface to. The value will be + # prefixed with `global/networks/` unless it contains a `/`, in which case it is + # assumed to be a fully specified network resource URL. If unspecified, the + # global default network is used. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # If the specified network is configured for custom subnet creation, the - # name of the subnetwork to attach the instance to must be specified here. - # The value is prefixed with `regions/*/subnetworks/` unless it contains a - # `/`, in which case it is assumed to be a fully specified subnetwork - # resource URL. - # If the `*` character appears in the value, it is replaced with the region - # that the virtual machine has been allocated in. + # If the specified network is configured for custom subnet creation, the name of + # the subnetwork to attach the instance to must be specified here. The value is + # prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case + # it is assumed to be a fully specified subnetwork resource URL. If the `*` + # character appears in the value, it is replaced with the region that the + # virtual machine has been allocated in. # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork - # If set to true, do not attach a public IP address to the VM. Note that - # without a public IP address, additional configuration is required to - # allow the VM to access Google services. - # See https://cloud.google.com/vpc/docs/configure-private-google-access - # for more information. + # If set to true, do not attach a public IP address to the VM. Note that without + # a public IP address, additional configuration is required to allow the VM to + # access Google services. See https://cloud.google.com/vpc/docs/configure- + # private-google-access for more information. # Corresponds to the JSON property `usePrivateAddress` # @return [Boolean] attr_accessor :use_private_address @@ -760,20 +747,19 @@ module Google class Operation 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. + # 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). + # 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::GenomicsV2alpha1::Status] attr_accessor :error @@ -785,7 +771,7 @@ module Google attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- + # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- # qzoWAgEw` # Corresponds to the JSON property `name` # @return [String] @@ -862,15 +848,14 @@ module Google # @return [String] attr_accessor :end_time - # Optional event messages that were generated during the job's execution. - # This also contains any warnings that were generated during import - # or export. + # Optional event messages that were generated during the job's execution. This + # also contains any warnings that were generated during import or export. # Corresponds to the JSON property `events` # @return [Array] attr_accessor :events - # Optionally provided by the caller when submitting the request that creates - # the operation. + # Optionally provided by the caller when submitting the request that creates the + # operation. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -881,8 +866,8 @@ module Google attr_accessor :project_id # The original request that started the operation. Note that this will be in - # current version of the API. If the operation was started with v1beta2 API - # and a GetOperation is performed on v1 API, a v1 request will be returned. + # current version of the API. If the operation was started with v1beta2 API and + # a GetOperation is performed on v1 API, a v1 request will be returned. # Corresponds to the JSON property `request` # @return [Hash] attr_accessor :request @@ -925,23 +910,22 @@ module Google attr_accessor :actions # The environment to pass into every action. Each action can also specify - # additional environment variables but cannot delete an entry from this map - # (though they can overwrite it with a different value). + # additional environment variables but cannot delete an entry from this map ( + # though they can overwrite it with a different value). # Corresponds to the JSON property `environment` # @return [Hash] attr_accessor :environment - # The system resources for the pipeline run. - # At least one zone or region must be specified or the pipeline run will fail. + # The system resources for the pipeline run. At least one zone or region must be + # specified or the pipeline run will fail. # Corresponds to the JSON property `resources` # @return [Google::Apis::GenomicsV2alpha1::Resources] attr_accessor :resources - # The maximum amount of time to give the pipeline to complete. This includes - # the time spent waiting for a worker to be allocated. If the pipeline fails - # to complete before the timeout, it will be cancelled and the error code - # will be set to DEADLINE_EXCEEDED. - # If unspecified, it will default to 7 days. + # The maximum amount of time to give the pipeline to complete. This includes the + # time spent waiting for a worker to be allocated. If the pipeline fails to + # complete before the timeout, it will be cancelled and the error code will be + # set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout @@ -997,8 +981,8 @@ module Google end end - # The system resources for the pipeline run. - # At least one zone or region must be specified or the pipeline run will fail. + # The system resources for the pipeline run. At least one zone or region must be + # specified or the pipeline run will fail. class Resources include Google::Apis::Core::Hashable @@ -1007,8 +991,8 @@ module Google # @return [String] attr_accessor :project_id - # The list of regions allowed for VM allocation. If set, the `zones` field - # must not be set. + # The list of regions allowed for VM allocation. If set, the `zones` field must + # not be set. # Corresponds to the JSON property `regions` # @return [Array] attr_accessor :regions @@ -1018,8 +1002,8 @@ module Google # @return [Google::Apis::GenomicsV2alpha1::VirtualMachine] attr_accessor :virtual_machine - # The list of zones allowed for VM allocation. If set, the `regions` field - # must not be set. + # The list of zones allowed for VM allocation. If set, the `regions` field must + # not be set. # Corresponds to the JSON property `zones` # @return [Array] attr_accessor :zones @@ -1037,17 +1021,17 @@ module Google end end - # The arguments to the `RunPipeline` method. The requesting user must have - # the `iam.serviceAccounts.actAs` permission for the Cloud Genomics service - # account or the request will fail. + # The arguments to the `RunPipeline` method. The requesting user must have the ` + # iam.serviceAccounts.actAs` permission for the Cloud Genomics service account + # or the request will fail. class RunPipelineRequest include Google::Apis::Core::Hashable - # User-defined labels to associate with the returned operation. These - # labels are not propagated to any Google Cloud Platform resources used by - # the operation, and can be modified at any time. - # To associate labels with resources created while executing the operation, - # see the appropriate resource message (for example, `VirtualMachine`). + # User-defined labels to associate with the returned operation. These labels are + # not propagated to any Google Cloud Platform resources used by the operation, + # and can be modified at any time. To associate labels with resources created + # while executing the operation, see the appropriate resource message (for + # example, `VirtualMachine`). # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1082,9 +1066,8 @@ module Google end end - # Runtime metadata that will be populated in the - # runtimeMetadata - # field of the Operation associated with a RunPipeline execution. + # Runtime metadata that will be populated in the runtimeMetadata field of the + # Operation associated with a RunPipeline execution. class RuntimeMetadata include Google::Apis::Core::Hashable @@ -1104,20 +1087,20 @@ module Google end end - # Holds encrypted information that is only decrypted and stored in RAM - # by the worker VM when running the pipeline. + # Holds encrypted information that is only decrypted and stored in RAM by the + # worker VM when running the pipeline. class Secret include Google::Apis::Core::Hashable - # The value of the cipherText response from the `encrypt` method. This field - # is intentionally unaudited. + # The value of the cipherText response from the `encrypt` method. This field is + # intentionally unaudited. # Corresponds to the JSON property `cipherText` # @return [String] attr_accessor :cipher_text - # The name of the Cloud KMS key that will be used to decrypt the secret - # value. The VM service account must have the required permissions and - # authentication scopes to invoke the `decrypt` method on the specified key. + # The name of the Cloud KMS key that will be used to decrypt the secret value. + # The VM service account must have the required permissions and authentication + # scopes to invoke the `decrypt` method on the specified key. # Corresponds to the JSON property `keyName` # @return [String] attr_accessor :key_name @@ -1137,14 +1120,14 @@ module Google class ServiceAccount include Google::Apis::Core::Hashable - # Email address of the service account. If not specified, the default - # Compute Engine service account for the project will be used. + # Email address of the service account. If not specified, the default Compute + # Engine service account for the project will be used. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email - # List of scopes to be enabled for this service account on the VM, in - # addition to the cloud-platform API scope that will be added by default. + # List of scopes to be enabled for this service account on the VM, in addition + # to the cloud-platform API scope that will be added by default. # Corresponds to the JSON property `scopes` # @return [Array] attr_accessor :scopes @@ -1160,12 +1143,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1174,15 +1157,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1199,8 +1182,8 @@ module Google end end - # An event that occured in the operation assigned to the - # worker and the time of occurance. + # An event that occured in the operation assigned to the worker and the time of + # occurance. class TimestampedEvent include Google::Apis::Core::Hashable @@ -1225,10 +1208,10 @@ module Google end end - # An event generated when the execution of a container results in a - # non-zero exit status that was not otherwise ignored. Execution will - # continue, but only actions that are flagged as `ALWAYS_RUN` will be - # executed. Other actions will be skipped. + # An event generated when the execution of a container results in a non-zero + # exit status that was not otherwise ignored. Execution will continue, but only + # actions that are flagged as `ALWAYS_RUN` will be executed. Other actions will + # be skipped. class UnexpectedExitStatusEvent include Google::Apis::Core::Hashable @@ -1262,34 +1245,32 @@ module Google # @return [Array] attr_accessor :accelerators - # The size of the boot disk, in GB. The boot disk must be large - # enough to accommodate all of the Docker images from each action in the - # pipeline at the same time. If not specified, a small but reasonable - # default value is used. + # The size of the boot disk, in GB. The boot disk must be large enough to + # accommodate all of the Docker images from each action in the pipeline at the + # same time. If not specified, a small but reasonable default value is used. # Corresponds to the JSON property `bootDiskSizeGb` # @return [Fixnum] attr_accessor :boot_disk_size_gb - # The host operating system image to use. - # Currently, only Container-Optimized OS images can be used. - # The default value is `projects/cos-cloud/global/images/family/cos-stable`, - # which selects the latest stable release of Container-Optimized OS. - # This option is provided to allow testing against the beta release of the - # operating system to ensure that the new version does not interact - # negatively with production pipelines. - # To test a pipeline against the beta release of Container-Optimized OS, - # use the value `projects/cos-cloud/global/images/family/cos-beta`. + # The host operating system image to use. Currently, only Container-Optimized OS + # images can be used. The default value is `projects/cos-cloud/global/images/ + # family/cos-stable`, which selects the latest stable release of Container- + # Optimized OS. This option is provided to allow testing against the beta + # release of the operating system to ensure that the new version does not + # interact negatively with production pipelines. To test a pipeline against the + # beta release of Container-Optimized OS, use the value `projects/cos-cloud/ + # global/images/family/cos-beta`. # Corresponds to the JSON property `bootImage` # @return [String] attr_accessor :boot_image # The CPU platform to request. An instance based on a newer platform can be - # allocated, but never one with fewer capabilities. The value of this - # parameter must be a valid Compute Engine CPU platform name (such as "Intel - # Skylake"). This parameter is only useful for carefully optimized work - # loads where the CPU platform has a significant impact. - # For more information about the effect of this parameter, see - # https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. + # allocated, but never one with fewer capabilities. The value of this parameter + # must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). + # This parameter is only useful for carefully optimized work loads where the CPU + # platform has a significant impact. For more information about the effect of + # this parameter, see https://cloud.google.com/compute/docs/instances/specify- + # min-cpu-platform. # Corresponds to the JSON property `cpuPlatform` # @return [String] attr_accessor :cpu_platform @@ -1300,12 +1281,12 @@ module Google attr_accessor :disks # The Compute Engine Disk Images to use as a Docker cache. The disks will be - # mounted into the Docker folder in a way that the images present in the - # cache will not need to be pulled. The digests of the cached images must - # match those of the tags used or the latest version will still be pulled. - # The root directory of the ext4 image must contain `image` and `overlay2` - # directories copied from the Docker directory of a VM where the desired - # Docker images have already been pulled. Only a single image is supported. + # mounted into the Docker folder in a way that the images present in the cache + # will not need to be pulled. The digests of the cached images must match those + # of the tags used or the latest version will still be pulled. The root + # directory of the ext4 image must contain `image` and `overlay2` directories + # copied from the Docker directory of a VM where the desired Docker images have + # already been pulled. Only a single image is supported. # Corresponds to the JSON property `dockerCacheImages` # @return [Array] attr_accessor :docker_cache_images @@ -1317,25 +1298,22 @@ module Google alias_method :enable_stackdriver_monitoring?, :enable_stackdriver_monitoring # Optional set of labels to apply to the VM and any attached disk resources. - # These labels must adhere to the [name and value - # restrictions](https://cloud.google.com/compute/docs/labeling-resources) on - # VM labels imposed by Compute Engine. - # Labels keys with the prefix 'google-' are reserved for use by Google. - # Labels applied at creation time to the VM. Applied on a best-effort basis - # to attached disk resources shortly after VM creation. + # These labels must adhere to the [name and value restrictions](https://cloud. + # google.com/compute/docs/labeling-resources) on VM labels imposed by Compute + # Engine. Labels keys with the prefix 'google-' are reserved for use by Google. + # Labels applied at creation time to the VM. Applied on a best-effort basis to + # attached disk resources shortly after VM creation. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels # Required. The machine type of the virtual machine to create. Must be the short - # name - # of a standard machine type (such as "n1-standard-1") or a custom machine - # type (such as "custom-1-4096", where "1" indicates the number of vCPUs and - # "4096" indicates the memory in MB). See - # [Creating an instance with a custom machine - # type](https://cloud.google.com/compute/docs/instances/creating-instance-with- - # custom-machine-type#create) - # for more specifications on creating a custom machine type. + # name of a standard machine type (such as "n1-standard-1") or a custom machine + # type (such as "custom-1-4096", where "1" indicates the number of vCPUs and " + # 4096" indicates the memory in MB). See [Creating an instance with a custom + # machine type](https://cloud.google.com/compute/docs/instances/creating- + # instance-with-custom-machine-type#create) for more specifications on creating + # a custom machine type. # Corresponds to the JSON property `machineType` # @return [String] attr_accessor :machine_type @@ -1345,10 +1323,10 @@ module Google # @return [Google::Apis::GenomicsV2alpha1::Network] attr_accessor :network - # The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. - # The version specified here must be compatible with the GPU libraries - # contained in the container being executed, and must be one of the drivers - # hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage. + # The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The + # version specified here must be compatible with the GPU libraries contained in + # the container being executed, and must be one of the drivers hosted in the ` + # nvidia-drivers-us-public` bucket on Google Cloud Storage. # Corresponds to the JSON property `nvidiaDriverVersion` # @return [String] attr_accessor :nvidia_driver_version @@ -1386,8 +1364,7 @@ module Google end end - # An event generated after a worker VM has been assigned to run the - # pipeline. + # An event generated after a worker VM has been assigned to run the pipeline. class WorkerAssignedEvent include Google::Apis::Core::Hashable @@ -1418,8 +1395,8 @@ module Google end end - # An event generated when the worker VM that was assigned to the pipeline - # has been released (deleted). + # An event generated when the worker VM that was assigned to the pipeline has + # been released (deleted). class WorkerReleasedEvent include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v2alpha1/representations.rb b/generated/google/apis/genomics_v2alpha1/representations.rb index df954b8c4..5b4d35581 100644 --- a/generated/google/apis/genomics_v2alpha1/representations.rb +++ b/generated/google/apis/genomics_v2alpha1/representations.rb @@ -294,6 +294,7 @@ module Google property :result, as: 'result', class: Google::Apis::GenomicsV2alpha1::Status, decorator: Google::Apis::GenomicsV2alpha1::Status::Representation + property :sos_report, :base64 => true, as: 'sosReport' property :worker_status, as: 'workerStatus', class: Google::Apis::GenomicsV2alpha1::WorkerStatus, decorator: Google::Apis::GenomicsV2alpha1::WorkerStatus::Representation end diff --git a/generated/google/apis/genomics_v2alpha1/service.rb b/generated/google/apis/genomics_v2alpha1/service.rb index c83af046a..cd4a727c4 100644 --- a/generated/google/apis/genomics_v2alpha1/service.rb +++ b/generated/google/apis/genomics_v2alpha1/service.rb @@ -47,21 +47,17 @@ module Google @batch_path = 'batch' end - # Runs a pipeline. The returned Operation's metadata field will contain a - # google.genomics.v2alpha1.Metadata object describing the status of the - # pipeline execution. The [response] field will contain a - # google.genomics.v2alpha1.RunPipelineResponse object if the pipeline - # completes successfully. - # **Note:** Before you can use this method, the Genomics Service Agent - # must have access to your project. This is done automatically when the - # Cloud Genomics API is first enabled, but if you delete this permission, - # or if you enabled the Cloud Genomics API before the v2alpha1 API - # launch, you must disable and re-enable the API to grant the Genomics - # Service Agent the required permissions. - # Authorization requires the following [Google - # IAM](https://cloud.google.com/iam/) permission: - # * `genomics.operations.create` - # [1]: /genomics/gsa + # Runs a pipeline. The returned Operation's metadata field will contain a google. + # genomics.v2alpha1.Metadata object describing the status of the pipeline + # execution. The [response] field will contain a google.genomics.v2alpha1. + # RunPipelineResponse object if the pipeline completes successfully. **Note:** + # Before you can use this method, the Genomics Service Agent must have access to + # your project. This is done automatically when the Cloud Genomics API is first + # enabled, but if you delete this permission, or if you enabled the Cloud + # Genomics API before the v2alpha1 API launch, you must disable and re-enable + # the API to grant the Genomics Service Agent the required permissions. + # Authorization requires the following [Google IAM](https://cloud.google.com/iam/ + # ) permission: * `genomics.operations.create` [1]: /genomics/gsa # @param [Google::Apis::GenomicsV2alpha1::RunPipelineRequest] run_pipeline_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -91,15 +87,12 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. - # The server makes a best effort to cancel the operation, but success is not - # guaranteed. Clients may use Operations.GetOperation - # or Operations.ListOperations - # to check whether the cancellation succeeded or the operation completed - # despite cancellation. + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. Clients + # may use Operations.GetOperation or Operations.ListOperations to check whether + # the cancellation succeeded or the operation completed despite cancellation. # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.cancel` + # permission: * `genomics.operations.cancel` # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::GenomicsV2alpha1::CancelOperationRequest] cancel_operation_request_object @@ -132,12 +125,10 @@ module Google 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. + # 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. # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.get` + # permission: * `genomics.operations.get` # @param [String] name # The name of the operation resource. # @param [String] fields @@ -167,39 +158,29 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. - # Authorization requires the following [Google IAM](https://cloud.google.com/iam) - # permission: - # * `genomics.operations.list` + # Lists operations that match the specified filter in the request. Authorization + # requires the following [Google IAM](https://cloud.google.com/iam) permission: * + # `genomics.operations.list` # @param [String] name # The name of the operation's parent resource. # @param [String] filter - # A string for filtering Operations. - # In v2alpha1, the following filter fields are supported: - # * createTime: The time this job was created - # * events: The set of event (names) that have occurred while running - # the pipeline. The : operator can be used to determine if a - # particular event has occurred. - # * error: If the pipeline is running, this value is NULL. Once the - # pipeline finishes, the value is the standard Google error code. - # * labels.key or labels."key with space" where key is a label key. - # * done: If the pipeline is running, this value is false. Once the - # pipeline finishes, the value is true. - # In v1 and v1alpha2, the following filter fields are supported: - # * projectId: Required. Corresponds to - # OperationMetadata.projectId. - # * createTime: The time this job was created, in seconds from the - # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` - # operators. - # * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only - # one status may be specified. - # * labels.key where key is a label key. - # Examples: - # * `projectId = my-project AND createTime >= 1432140000` - # * `projectId = my-project AND createTime >= 1432140000 AND createTime <= - # 1432150000 AND status = RUNNING` - # * `projectId = my-project AND labels.color = *` - # * `projectId = my-project AND labels.color = red` + # A string for filtering Operations. In v2alpha1, the following filter fields + # are supported: * createTime: The time this job was created * events: The set + # of event (names) that have occurred while running the pipeline. The : operator + # can be used to determine if a particular event has occurred. * error: If the + # pipeline is running, this value is NULL. Once the pipeline finishes, the value + # is the standard Google error code. * labels.key or labels."key with space" + # where key is a label key. * done: If the pipeline is running, this value is + # false. Once the pipeline finishes, the value is true. In v1 and v1alpha2, the + # following filter fields are supported: * projectId: Required. Corresponds to + # OperationMetadata.projectId. * createTime: The time this job was created, in + # seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` + # and/or `<=` operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or ` + # CANCELED`. Only one status may be specified. * labels.key where key is a label + # key. Examples: * `projectId = my-project AND createTime >= 1432140000` * ` + # projectId = my-project AND createTime >= 1432140000 AND createTime <= + # 1432150000 AND status = RUNNING` * `projectId = my-project AND labels.color = * + # ` * `projectId = my-project AND labels.color = red` # @param [Fixnum] page_size # The maximum number of results to return. The maximum value is 256. # @param [String] page_token @@ -234,11 +215,11 @@ module Google execute_or_queue_command(command, &block) end - # The worker uses this method to retrieve the assigned operation and - # provide periodic status updates. + # The worker uses this method to retrieve the assigned operation and provide + # periodic status updates. # @param [String] id - # The VM identity token for authenticating the VM instance. - # https://cloud.google.com/compute/docs/instances/verifying-instance-identity + # The VM identity token for authenticating the VM instance. https://cloud.google. + # com/compute/docs/instances/verifying-instance-identity # @param [Google::Apis::GenomicsV2alpha1::CheckInRequest] check_in_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -269,11 +250,11 @@ module Google execute_or_queue_command(command, &block) end - # The worker uses this method to retrieve the assigned operation and - # provide periodic status updates. + # The worker uses this method to retrieve the assigned operation and provide + # periodic status updates. # @param [String] id - # The VM identity token for authenticating the VM instance. - # https://cloud.google.com/compute/docs/instances/verifying-instance-identity + # The VM identity token for authenticating the VM instance. https://cloud.google. + # com/compute/docs/instances/verifying-instance-identity # @param [Google::Apis::GenomicsV2alpha1::CheckInRequest] check_in_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/monitoring_v1.rb b/generated/google/apis/monitoring_v1.rb index 4b7f71f66..d5ebd3ee9 100644 --- a/generated/google/apis/monitoring_v1.rb +++ b/generated/google/apis/monitoring_v1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV1 VERSION = 'V1' - REVISION = '20200728' + REVISION = '20200803' # 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/monitoring_v1/classes.rb b/generated/google/apis/monitoring_v1/classes.rb index 401e74396..348323957 100644 --- a/generated/google/apis/monitoring_v1/classes.rb +++ b/generated/google/apis/monitoring_v1/classes.rb @@ -342,11 +342,9 @@ module Google # 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 ``. + # 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 Empty include Google::Apis::Core::Hashable @@ -708,14 +706,14 @@ module Google # x is above/below a warning threshold that triggers above/below, then the # scorecard is in a warning state - unless x also puts it in a danger state. ( # Danger trumps warning.)As an example, consider a scorecard with the following - # four thresholds: ` value: 90, category: 'DANGER', trigger: 'ABOVE', `, ` - # value: 70, category: 'WARNING', trigger: 'ABOVE', `, ` value: 10, category: - # 'DANGER', trigger: 'BELOW', `, ` value: 20, category: 'WARNING', trigger: - # 'BELOW', `Then: values less than or equal to 10 would put the scorecard in a - # DANGER state, values greater than 10 but less than or equal to 20 a WARNING - # state, values strictly between 20 and 70 an OK state, values greater than or - # equal to 70 but less than 90 a WARNING state, and values greater than or equal - # to 90 a DANGER state. + # four thresholds: ` value: 90, category: 'DANGER', trigger: 'ABOVE', `, ` value: + # 70, category: 'WARNING', trigger: 'ABOVE', `, ` value: 10, category: 'DANGER', + # trigger: 'BELOW', `, ` value: 20, category: 'WARNING', trigger: 'BELOW', ` + # Then: values less than or equal to 10 would put the scorecard in a DANGER + # state, values greater than 10 but less than or equal to 20 a WARNING state, + # values strictly between 20 and 70 an OK state, values greater than or equal to + # 70 but less than 90 a WARNING state, and values greater than or equal to 90 a + # DANGER state. # Corresponds to the JSON property `thresholds` # @return [Array] attr_accessor :thresholds @@ -761,17 +759,16 @@ module Google end # The context of a span, attached to Exemplars in Distribution values during - # aggregation.It contains the name of a span with format: - # projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] + # aggregation.It contains the name of a span with format: projects/[ + # PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] class SpanContext include Google::Apis::Core::Hashable - # The resource name of the span. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] - # [TRACE_ID] is a unique identifier for a trace within a project; it is a 32- - # character hexadecimal encoding of a 16-byte array.[SPAN_ID] is a unique - # identifier for a span within a trace; it is a 16-character hexadecimal - # encoding of an 8-byte array. + # The resource name of the span. The format is: projects/[PROJECT_ID_OR_NUMBER]/ + # traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a + # trace within a project; it is a 32-character hexadecimal encoding of a 16-byte + # array.[SPAN_ID] is a unique identifier for a span within a trace; it is a 16- + # character hexadecimal encoding of an 8-byte array. # Corresponds to the JSON property `spanName` # @return [String] attr_accessor :span_name @@ -1179,11 +1176,9 @@ module Google # 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 ``. + # 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 ``. # Corresponds to the JSON property `blank` # @return [Google::Apis::MonitoringV1::Empty] attr_accessor :blank diff --git a/generated/google/apis/monitoring_v1/service.rb b/generated/google/apis/monitoring_v1/service.rb index 7d623fa17..445527acd 100644 --- a/generated/google/apis/monitoring_v1/service.rb +++ b/generated/google/apis/monitoring_v1/service.rb @@ -55,9 +55,9 @@ module Google # create permission on the specified project. For more information, see Google # Cloud IAM (https://cloud.google.com/iam). # @param [String] parent - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] - # The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name. + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard + # resource name. # @param [Google::Apis::MonitoringV1::Dashboard] dashboard_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -92,8 +92,8 @@ module Google # dashboards.delete permission on the specified dashboard. For more information, # see Google Cloud IAM (https://cloud.google.com/iam). # @param [String] name - # Required. The resource name of the Dashboard. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] + # Required. The resource name of the Dashboard. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -125,10 +125,9 @@ module Google # get permission on the specified dashboard. For more information, see Google # Cloud IAM (https://cloud.google.com/iam). # @param [String] name - # Required. The resource name of the Dashboard. The format is one of: - # dashboards/[DASHBOARD_ID] (for system dashboards) - # projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] (for custom - # dashboards). + # Required. The resource name of the Dashboard. The format is one of: dashboards/ + # [DASHBOARD_ID] (for system dashboards) projects/[PROJECT_ID_OR_NUMBER]/ + # dashboards/[DASHBOARD_ID] (for custom dashboards). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -160,8 +159,8 @@ module Google # list permission on the specified project. For more information, see Google # Cloud IAM (https://cloud.google.com/iam). # @param [String] parent - # Required. The scope of the dashboards to list. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The scope of the dashboards to list. The format is: projects/[ + # PROJECT_ID_OR_NUMBER] # @param [Fixnum] page_size # A positive number that is the maximum number of results to return. If # unspecified, a default of 1000 is used. diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 7ab8ed4e8..504c08bb4 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20200728' + REVISION = '20200803' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index fcb921025..10fba1acf 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -172,9 +172,8 @@ module Google attr_accessor :mutation_record # Required if the policy exists. The resource name for this policy. The format - # is: - # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] - # [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is + # is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] [ + # ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is # created. When calling the alertPolicies.create method, do not include the name # field in the alerting policy passed as part of the request. # Corresponds to the JSON property `name` @@ -366,7 +365,7 @@ module Google # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): - # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at + # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at # least one element. If bounds has only one element, then there are no finite # buckets, and that single element is the common boundary of the overflow and # underflow buckets. @@ -378,7 +377,7 @@ module Google # proportional to the value of the lower bound. Each bucket represents a # constant relative uncertainty on a specific value in the bucket.There are # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: - # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < # N): scale * (growth_factor ^ (i - 1)). # Corresponds to the JSON property `exponentialBuckets` # @return [Google::Apis::MonitoringV3::Exponential] @@ -388,8 +387,7 @@ module Google # overflow and underflow). Each bucket represents a constant absolute # uncertainty on the specific value in the bucket.There are num_finite_buckets + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- - # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) - # . + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). # Corresponds to the JSON property `linearBuckets` # @return [Google::Apis::MonitoringV3::Linear] attr_accessor :linear_buckets @@ -660,20 +658,19 @@ module Google attr_accessor :display_name # Required if the condition exists. The unique resource name for this condition. - # Its format is: - # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[ - # CONDITION_ID] - # [CONDITION_ID] is assigned by Stackdriver Monitoring when the condition is - # created as part of a new or updated alerting policy.When calling the - # alertPolicies.create method, do not include the name field in the conditions - # of the requested alerting policy. Stackdriver Monitoring creates the condition - # identifiers and includes them in the new policy.When calling the alertPolicies. - # update method to update a policy, including a condition name causes the - # existing condition to be updated. Conditions without names are added to the - # updated policy. Existing conditions are deleted if they are not updated.Best - # practice is to preserve [CONDITION_ID] if you make only small changes, such as - # those to condition thresholds, durations, or trigger values. Otherwise, treat - # the change as a new condition and let the existing condition be deleted. + # Its format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/ + # conditions/[CONDITION_ID] [CONDITION_ID] is assigned by Stackdriver Monitoring + # when the condition is created as part of a new or updated alerting policy.When + # calling the alertPolicies.create method, do not include the name field in the + # conditions of the requested alerting policy. Stackdriver Monitoring creates + # the condition identifiers and includes them in the new policy.When calling the + # alertPolicies.update method to update a policy, including a condition name + # causes the existing condition to be updated. Conditions without names are + # added to the updated policy. Existing conditions are deleted if they are not + # updated.Best practice is to preserve [CONDITION_ID] if you make only small + # changes, such as those to condition thresholds, durations, or trigger values. + # Otherwise, treat the change as a new condition and let the existing condition + # be deleted. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -693,8 +690,8 @@ module Google # Optional. Used to perform content matching. This allows matching based on # substrings and regular expressions, together with their negations. Only the - # first 4 MB of an HTTP or HTTPS check's response (and the first 1 MB - # of a TCP check's response) are examined for purposes of content matching. + # first 4 MB of an HTTP or HTTPS check's response (and the first 1 MB of a TCP + # check's response) are examined for purposes of content matching. class ContentMatcher include Google::Apis::Core::Hashable @@ -746,10 +743,8 @@ module Google # attributes according to the schema. For example, a particular Compute Engine # VM instance could be represented by the following object, because the # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` + # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", " + # zone": "us-central1-a" `` # Corresponds to the JSON property `resource` # @return [Google::Apis::MonitoringV3::MonitoredResource] attr_accessor :resource @@ -929,11 +924,10 @@ module Google attr_accessor :range # The sum of squared deviations from the mean of the values in the population. - # For values x_i this is: - # Sum[i=1..n]((x_i - mean)^2) - # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition - # describes Welford's method for accumulating this sum in one pass.If count is - # zero then this field must be zero. + # For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of + # Computer Programming", Vol. 2, page 323, 3rd edition describes Welford's + # method for accumulating this sum in one pass.If count is zero then this field + # must be zero. # Corresponds to the JSON property `sumOfSquaredDeviation` # @return [Float] attr_accessor :sum_of_squared_deviation @@ -955,16 +949,16 @@ module Google end # A DistributionCut defines a TimeSeries and thresholds used for measuring good - # service and total service. The TimeSeries must have ValueType = - # DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed - # good_service will be the count of values x in the Distribution such that range. - # min <= x < range.max. + # service and total service. The TimeSeries must have ValueType = DISTRIBUTION + # and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service + # will be the count of values x in the Distribution such that range.min <= x < + # range.max. class DistributionCut include Google::Apis::Core::Hashable # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) - # specifying a TimeSeries aggregating values. Must have ValueType = - # DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. + # specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION + # and MetricKind = DELTA or MetricKind = CUMULATIVE. # Corresponds to the JSON property `distributionFilter` # @return [String] attr_accessor :distribution_filter @@ -1048,11 +1042,9 @@ module Google # 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 ``. + # 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 Empty include Google::Apis::Core::Hashable @@ -1105,7 +1097,7 @@ module Google # Contextual information about the example value. Examples are:Trace: type. # googleapis.com/google.monitoring.v3.SpanContextLiteral string: type.googleapis. - # com/google.protobuf.StringValueLabels dropped during aggregation: type. + # com/google.protobuf.StringValueLabels dropped during aggregation: type. # googleapis.com/google.monitoring.v3.DroppedLabelsThere may be only a single # attachment of any given message type in a single exemplar, and this is # enforced by the system. @@ -1138,7 +1130,7 @@ module Google # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): - # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at + # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at # least one element. If bounds has only one element, then there are no finite # buckets, and that single element is the common boundary of the overflow and # underflow buckets. @@ -1164,7 +1156,7 @@ module Google # proportional to the value of the lower bound. Each bucket represents a # constant relative uncertainty on a specific value in the bucket.There are # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: - # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < + # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < # N): scale * (growth_factor ^ (i - 1)). class Exponential include Google::Apis::Core::Hashable @@ -1396,18 +1388,17 @@ module Google attr_accessor :is_cluster alias_method :is_cluster?, :is_cluster - # Output only. The name of this group. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] - # When creating a group, this field is ignored and a new name is created - # consisting of the project specified in the call to CreateGroup and a unique [ - # GROUP_ID] that is generated automatically. + # Output only. The name of this group. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] When creating a group, this field is + # ignored and a new name is created consisting of the project specified in the + # call to CreateGroup and a unique [GROUP_ID] that is generated automatically. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The name of the group's parent, if it has one. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] - # For groups with no parent, parent_name is the empty string, "". + # The name of the group's parent, if it has one. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] For groups with no parent, parent_name + # is the empty string, "". # Corresponds to the JSON property `parentName` # @return [String] attr_accessor :parent_name @@ -1548,9 +1539,9 @@ module Google # @return [String] attr_accessor :gcp_zone - # A unique resource name for this InternalChecker. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID] - # [PROJECT_ID_OR_NUMBER] is the Stackdriver Workspace project for the Uptime + # A unique resource name for this InternalChecker. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID] [ + # PROJECT_ID_OR_NUMBER] is the Stackdriver Workspace project for the Uptime # check config associated with the internal checker. # Corresponds to the JSON property `name` # @return [String] @@ -1597,11 +1588,10 @@ module Google # @return [String] attr_accessor :description - # The key for this label. The key must meet the following criteria: - # Does not exceed 100 characters. - # Matches the following regular expression: [a-zA-Z][a-zA-Z0-9_]* - # The first character must be an upper- or lower-case letter. - # The remaining characters must be letters, digits, or underscores. + # The key for this label. The key must meet the following criteria: Does not + # exceed 100 characters. Matches the following regular expression: [a-zA-Z][a-zA- + # Z0-9_]* The first character must be an upper- or lower-case letter. The + # remaining characters must be letters, digits, or underscores. # Corresponds to the JSON property `key` # @return [String] attr_accessor :key @@ -1679,8 +1669,7 @@ module Google # overflow and underflow). Each bucket represents a constant absolute # uncertainty on the specific value in the bucket.There are num_finite_buckets + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- - # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) - # . + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). class Linear include Google::Apis::Core::Hashable @@ -2210,14 +2199,12 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable.The following are specific rules for service defined - # Monitoring metric descriptors: - # type, metric_kind, value_type and description 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.The default - # maximum limit can be overridden. Please follow https://cloud.google.com/ - # monitoring/quotas + # Monitoring metric descriptors: type, metric_kind, value_type and description + # 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.The default maximum limit can be overridden. Please follow https:// + # cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -2235,10 +2222,9 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type.The label key name must follow: - # Only upper and lower-case letters, digits and underscores (_) are allowed. - # Label name must start with a letter or digit. - # The maximum length of a label name is 100 characters.For example, the + # metric type.The label key name must follow: Only upper and lower-case letters, + # digits and underscores (_) are allowed. Label name must start with a letter or + # digit. The maximum length of a label name is 100 characters.For example, the # appengine.googleapis.com/http/server/response_latencies metric type has a # label for the HTTP response code, response_code, so you can look at latencies # for successful responses or just for responses that failed. @@ -2278,16 +2264,14 @@ module Google # The metric type, including its DNS name prefix. The type is not URL-encoded. # All service defined metrics must be prefixed with the service name, in the # format of `service name`/`relative metric name`, such as cloudsql.googleapis. - # com/database/cpu/utilization. The relative metric name must follow: - # Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. - # The maximum number of characters allowed for the relative_metric_name is 100. - # All user-defined metric types have the DNS name custom.googleapis.com, - # external.googleapis.com, or logging.googleapis.com/user/.Metric types should - # use a natural hierarchical grouping. For example: - # "custom.googleapis.com/invoice/paid/amount" - # "external.googleapis.com/prometheus/up" - # "appengine.googleapis.com/http/server/response_latencies" + # com/database/cpu/utilization. The relative metric name must follow: Only upper + # and lower-case letters, digits, '/' and underscores '_' are allowed. The + # maximum number of characters allowed for the relative_metric_name is 100.All + # user-defined metric types have the DNS name custom.googleapis.com, external. + # googleapis.com, or logging.googleapis.com/user/.Metric types should use a + # natural hierarchical grouping. For example: "custom.googleapis.com/invoice/ + # paid/amount" "external.googleapis.com/prometheus/up" "appengine.googleapis.com/ + # http/server/response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2306,65 +2290,34 @@ module Google # a DOUBLE CUMULATIVE metric whose unit is ks`CPU`, and then write the value 12. # 005 (which is 12005/1000), or use Kis`CPU` and write 11.723 (which is 12005/ # 1024).The supported units are a subset of The Unified Code for Units of - # Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) - # bit bit - # By byte - # s second - # min minute - # h hour - # d day - # 1 dimensionlessPrefixes (PREFIX) - # k kilo (10^3) - # M mega (10^6) - # G giga (10^9) - # T tera (10^12) - # P peta (10^15) - # E exa (10^18) - # Z zetta (10^21) - # Y yotta (10^24) - # m milli (10^-3) - # u micro (10^-6) - # n nano (10^-9) - # p pico (10^-12) - # f femto (10^-15) - # a atto (10^-18) - # z zepto (10^-21) - # y yocto (10^-24) - # Ki kibi (2^10) - # Mi mebi (2^20) - # Gi gibi (2^30) - # Ti tebi (2^40) - # Pi pebi (2^50)GrammarThe grammar also includes these connectors: - # / division or ratio (as an infix operator). For examples, kBy/`email` or MiBy/ - # 10ms (although you should almost never have /s in a metric unit; rates should - # always be computed at query time from the underlying cumulative or delta - # value). - # . multiplication or composition (as an infix operator). For examples, GBy.d - # or k`watt`.h.The grammar for a unit is as follows: - # Expression = Component ` "." Component ` ` "/" Component ` ; - # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - # | Annotation - # | "1" - # ; - # Annotation = "`" NAME "`" ; - # Notes: - # Annotation is just a comment if it follows a UNIT. If the annotation is used - # alone, then the unit is equivalent to 1. For examples, `request`/s == 1/s, By` - # transmitted`/s == By/s. - # NAME is a sequence of non-blank printable ASCII characters not containing ` - # or `. - # 1 represents a unitary dimensionless unit (https://en.wikipedia.org/wiki/ - # Dimensionless_quantity) of 1, such as in 1/s. It is typically used when none - # of the basic units are appropriate. For example, "new users per day" can be - # represented as 1/d or `new-users`/d (and a metric value 5 would mean "5 new - # users). Alternatively, "thousands of page views per day" would be represented - # as 1000/d or k1/d or k`page_views`/d (and a metric value of 5.3 would mean " - # 5300 page views per day"). - # % represents dimensionless value of 1/100, and annotates values giving a - # percentage (so the metric values are typically in the range of 0..100, and a - # metric value 3 means "3 percent"). - # 10^2.% indicates a metric contains a ratio, typically in the range 0..1, that - # will be multiplied by 100 and displayed as a percentage (so a metric value 0. + # Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) bit + # bit By byte s second min minute h hour d day 1 dimensionlessPrefixes (PREFIX) + # k kilo (10^3) M mega (10^6) G giga (10^9) T tera (10^12) P peta (10^15) E exa ( + # 10^18) Z zetta (10^21) Y yotta (10^24) m milli (10^-3) u micro (10^-6) n nano ( + # 10^-9) p pico (10^-12) f femto (10^-15) a atto (10^-18) z zepto (10^-21) y + # yocto (10^-24) Ki kibi (2^10) Mi mebi (2^20) Gi gibi (2^30) Ti tebi (2^40) Pi + # pebi (2^50)GrammarThe grammar also includes these connectors: / division or + # ratio (as an infix operator). For examples, kBy/`email` or MiBy/10ms (although + # you should almost never have /s in a metric unit; rates should always be + # computed at query time from the underlying cumulative or delta value). . + # multiplication or composition (as an infix operator). For examples, GBy.d or k` + # watt`.h.The grammar for a unit is as follows: Expression = Component ` "." + # Component ` ` "/" Component ` ; Component = ( [ PREFIX ] UNIT | "%" ) [ + # Annotation ] | Annotation | "1" ; Annotation = "`" NAME "`" ; Notes: + # Annotation is just a comment if it follows a UNIT. If the annotation is used + # alone, then the unit is equivalent to 1. For examples, `request`/s == 1/s, By` + # transmitted`/s == By/s. NAME is a sequence of non-blank printable ASCII + # characters not containing ` or `. 1 represents a unitary dimensionless unit ( + # https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in 1/s. It + # is typically used when none of the basic units are appropriate. For example, " + # new users per day" can be represented as 1/d or `new-users`/d (and a metric + # value 5 would mean "5 new users). Alternatively, "thousands of page views per + # day" would be represented as 1000/d or k1/d or k`page_views`/d (and a metric + # value of 5.3 would mean "5300 page views per day"). % represents dimensionless + # value of 1/100, and annotates values giving a percentage (so the metric values + # are typically in the range of 0..100, and a metric value 3 means "3 percent"). + # 10^2.% indicates a metric contains a ratio, typically in the range 0..1, that + # will be multiplied by 100 and displayed as a percentage (so a metric value 0. # 03 means "3 percent"). # Corresponds to the JSON property `unit` # @return [String] @@ -2570,10 +2523,8 @@ module Google # attributes according to the schema. For example, a particular Compute Engine # VM instance could be represented by the following object, because the # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` + # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", " + # zone": "us-central1-a" `` class MonitoredResource include Google::Apis::Core::Hashable @@ -2609,18 +2560,14 @@ module Google # the use of the labels "instance_id" and "zone" to identify particular VM # instances.Different services can support different monitored resource types. # The following are specific rules to service defined monitored resources for - # Monitoring and Logging: - # The type, display_name, description, labels and launch_stage fields are all - # required. - # The first label of the monitored resource descriptor must be - # resource_container. There are legacy monitored resource descritptors start - # with project_id. - # It must include a location label. - # Maximum of default 5 service defined monitored resource descriptors is - # allowed per service. - # Maximum of default 10 labels per monitored resource is allowed.The default - # maximum limit can be overridden. Please follow https://cloud.google.com/ - # monitoring/quotas + # Monitoring and Logging: The type, display_name, description, labels and + # launch_stage fields are all required. The first label of the monitored + # resource descriptor must be resource_container. There are legacy monitored + # resource descritptors start with project_id. It must include a location label. + # Maximum of default 5 service defined monitored resource descriptors is allowed + # per service. Maximum of default 10 labels per monitored resource is allowed. + # The default maximum limit can be overridden. Please follow https://cloud. + # google.com/monitoring/quotas class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2638,12 +2585,11 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: - # Only upper and lower-case letters, digits and underscores (_) are allowed. - # Label name must start with a letter or digit. - # The maximum length of a label name is 100 characters.For example, an - # individual Google Cloud SQL database is identified by values for the labels - # database_id and location. + # resource type. The label key name must follow: Only upper and lower-case + # letters, digits and underscores (_) are allowed. Label name must start with a + # letter or digit. The maximum length of a label name is 100 characters.For + # example, an individual Google Cloud SQL database is identified by values for + # the labels database_id and location. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2667,11 +2613,10 @@ module Google # represents databases in Google Cloud SQL.All service defined monitored # resource types must be prefixed with the service name, in the format of ` # service name`/`relative resource name`. The relative resource name must follow: - # Only upper and lower-case letters and digits are allowed. - # It must start with upper case character and is recommended to use Upper Camel - # Case style. - # The maximum number of characters allowed for the relative_resource_name is - # 100.Note there are legacy service monitored resources not following this rule. + # Only upper and lower-case letters and digits are allowed. It must start with + # upper case character and is recommended to use Upper Camel Case style. The + # maximum number of characters allowed for the relative_resource_name is 100. + # Note there are legacy service monitored resources not following this rule. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2702,10 +2647,8 @@ module Google # Output only. Values for predefined system metadata labels. System labels are a # kind of metadata extracted by Google, including "machine_image", "vpc", " # subnet_id", "security_group", "name", etc. System label values can be only - # strings, Boolean values, or a list of strings. For example: - # ` "name": "my-test-instance", - # "security_group": ["a", "b", "c"], - # "spot_instance": false ` + # strings, Boolean values, or a list of strings. For example: ` "name": "my-test- + # instance", "security_group": ["a", "b", "c"], "spot_instance": false ` # Corresponds to the JSON property `systemLabels` # @return [Hash] attr_accessor :system_labels @@ -2792,9 +2735,9 @@ module Google # @return [Hash] attr_accessor :labels - # The full REST resource name for this channel. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] - # The [CHANNEL_ID] is automatically assigned by the server on creation. + # The full REST resource name for this channel. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is + # automatically assigned by the server on creation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2879,9 +2822,9 @@ module Google # @return [String] attr_accessor :launch_stage - # The full REST resource name for this descriptor. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE] - # In the above, [TYPE] is the value of the type field. + # The full REST resource name for this descriptor. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE] In the above, [ + # TYPE] is the value of the type field. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2984,27 +2927,25 @@ module Google # A closed time interval. It extends from the start time to the end time, and # includes both: [startTime, endTime]. Valid time intervals depend on the # MetricKind of the metric value. In no case can the end time be earlier than - # the start time. - # For GAUGE metrics, the startTime value is technically optional; if no value - # is specified, the start time defaults to the value of the end time, and the - # interval represents a single point in time. If both start and end times are - # specified, they must be identical. Such an interval is valid only for GAUGE - # metrics, which are point-in-time measurements. The end time of a new interval - # must be at least a millisecond after the end time of the previous interval. - # For DELTA metrics, the start time and end time must specify a non-zero - # interval, with subsequent points specifying contiguous and non-overlapping - # intervals. For DELTA metrics, the start time of the next interval must be at - # least a millisecond after the end time of the previous interval. - # For CUMULATIVE metrics, the start time and end time must specify a a non-zero - # interval, with subsequent points specifying the same start time and - # increasing end times, until an event resets the cumulative value to zero and - # sets a new start time for the following points. The new start time must be at - # least a millisecond after the end time of the previous interval. - # The start time of a new interval must be at least a millisecond after the end - # time of the previous interval because intervals are closed. If the start time - # of a new interval is the same as the end time of the previous interval, then - # data written at the new start time could overwrite data written at the - # previous end time. + # the start time. For GAUGE metrics, the startTime value is technically optional; + # if no value is specified, the start time defaults to the value of the end + # time, and the interval represents a single point in time. If both start and + # end times are specified, they must be identical. Such an interval is valid + # only for GAUGE metrics, which are point-in-time measurements. The end time of + # a new interval must be at least a millisecond after the end time of the + # previous interval. For DELTA metrics, the start time and end time must specify + # a non-zero interval, with subsequent points specifying contiguous and non- + # overlapping intervals. For DELTA metrics, the start time of the next interval + # must be at least a millisecond after the end time of the previous interval. + # For CUMULATIVE metrics, the start time and end time must specify a a non-zero + # interval, with subsequent points specifying the same start time and increasing + # end times, until an event resets the cumulative value to zero and sets a new + # start time for the following points. The new start time must be at least a + # millisecond after the end time of the previous interval. The start time of a + # new interval must be at least a millisecond after the end time of the previous + # interval because intervals are closed. If the start time of a new interval is + # the same as the end time of the previous interval, then data written at the + # new start time could overwrite data written at the previous end time. # Corresponds to the JSON property `interval` # @return [Google::Apis::MonitoringV3::TimeInterval] attr_accessor :interval @@ -3034,27 +2975,25 @@ module Google # A closed time interval. It extends from the start time to the end time, and # includes both: [startTime, endTime]. Valid time intervals depend on the # MetricKind of the metric value. In no case can the end time be earlier than - # the start time. - # For GAUGE metrics, the startTime value is technically optional; if no value - # is specified, the start time defaults to the value of the end time, and the - # interval represents a single point in time. If both start and end times are - # specified, they must be identical. Such an interval is valid only for GAUGE - # metrics, which are point-in-time measurements. The end time of a new interval - # must be at least a millisecond after the end time of the previous interval. - # For DELTA metrics, the start time and end time must specify a non-zero - # interval, with subsequent points specifying contiguous and non-overlapping - # intervals. For DELTA metrics, the start time of the next interval must be at - # least a millisecond after the end time of the previous interval. - # For CUMULATIVE metrics, the start time and end time must specify a a non-zero - # interval, with subsequent points specifying the same start time and - # increasing end times, until an event resets the cumulative value to zero and - # sets a new start time for the following points. The new start time must be at - # least a millisecond after the end time of the previous interval. - # The start time of a new interval must be at least a millisecond after the end - # time of the previous interval because intervals are closed. If the start time - # of a new interval is the same as the end time of the previous interval, then - # data written at the new start time could overwrite data written at the - # previous end time. + # the start time. For GAUGE metrics, the startTime value is technically optional; + # if no value is specified, the start time defaults to the value of the end + # time, and the interval represents a single point in time. If both start and + # end times are specified, they must be identical. Such an interval is valid + # only for GAUGE metrics, which are point-in-time measurements. The end time of + # a new interval must be at least a millisecond after the end time of the + # previous interval. For DELTA metrics, the start time and end time must specify + # a non-zero interval, with subsequent points specifying contiguous and non- + # overlapping intervals. For DELTA metrics, the start time of the next interval + # must be at least a millisecond after the end time of the previous interval. + # For CUMULATIVE metrics, the start time and end time must specify a a non-zero + # interval, with subsequent points specifying the same start time and increasing + # end times, until an event resets the cumulative value to zero and sets a new + # start time for the following points. The new start time must be at least a + # millisecond after the end time of the previous interval. The start time of a + # new interval must be at least a millisecond after the end time of the previous + # interval because intervals are closed. If the start time of a new interval is + # the same as the end time of the previous interval, then data written at the + # new start time could overwrite data written at the previous end time. # Corresponds to the JSON property `timeInterval` # @return [Google::Apis::MonitoringV3::TimeInterval] attr_accessor :time_interval @@ -3180,20 +3119,20 @@ module Google include Google::Apis::Core::Hashable # A DistributionCut defines a TimeSeries and thresholds used for measuring good - # service and total service. The TimeSeries must have ValueType = - # DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed - # good_service will be the count of values x in the Distribution such that range. - # min <= x < range.max. + # service and total service. The TimeSeries must have ValueType = DISTRIBUTION + # and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service + # will be the count of values x in the Distribution such that range.min <= x < + # range.max. # Corresponds to the JSON property `distributionCut` # @return [Google::Apis::MonitoringV3::DistributionCut] attr_accessor :distribution_cut # A TimeSeriesRatio specifies two TimeSeries to use for computing the # good_service / total_service ratio. The specified TimeSeries must have - # ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = - # DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two - # of good, bad, and total, and the relationship good_service + - # bad_service = total_service will be assumed. + # ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or + # MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, + # bad, and total, and the relationship good_service + bad_service = + # total_service will be assumed. # Corresponds to the JSON property `goodTotalRatio` # @return [Google::Apis::MonitoringV3::TimeSeriesRatio] attr_accessor :good_total_ratio @@ -3288,8 +3227,8 @@ module Google # @return [Google::Apis::MonitoringV3::MeshIstio] attr_accessor :mesh_istio - # Resource name for this Service. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + # Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/ + # services/[SERVICE_ID] # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3320,15 +3259,14 @@ module Google # some services, the SLI is well-defined. In such cases, the SLI can be # described easily by referencing the well-known SLI and providing the needed # parameters. Alternatively, a "custom" SLI can be defined with a query to the - # underlying metric store. An SLI is defined to be good_service / - # total_service over any queried time interval. The value of performance always - # falls into the range 0 <= performance <= 1. A custom SLI describes how to - # compute this ratio, whether this is by dividing values from a pair of time - # series, cutting a Distribution into good and bad counts, or counting time - # windows in which the service complies with a criterion. For separation of - # concerns, a single Service-Level Indicator measures performance for only one - # aspect of service quality, such as fraction of successful queries or fast- - # enough queries. + # underlying metric store. An SLI is defined to be good_service / total_service + # over any queried time interval. The value of performance always falls into the + # range 0 <= performance <= 1. A custom SLI describes how to compute this ratio, + # whether this is by dividing values from a pair of time series, cutting a + # Distribution into good and bad counts, or counting time windows in which the + # service complies with a criterion. For separation of concerns, a single + # Service-Level Indicator measures performance for only one aspect of service + # quality, such as fraction of successful queries or fast-enough queries. class ServiceLevelIndicator include Google::Apis::Core::Hashable @@ -3375,9 +3313,8 @@ module Google class ServiceLevelObjective include Google::Apis::Core::Hashable - # A calendar period, semantically "since the start of the current < - # calendar_period>". At this time, only DAY, WEEK, FORTNIGHT, and MONTH are - # supported. + # A calendar period, semantically "since the start of the current ". At this + # time, only DAY, WEEK, FORTNIGHT, and MONTH are supported. # Corresponds to the JSON property `calendarPeriod` # @return [String] attr_accessor :calendar_period @@ -3393,15 +3330,14 @@ module Google # @return [Float] attr_accessor :goal - # Resource name for this ServiceLevelObjective. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[ - # SLO_NAME] + # Resource name for this ServiceLevelObjective. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # A rolling time period, semantically "in the past ". Must be an - # integer multiple of 1 day no larger than 30 days. + # A rolling time period, semantically "in the past ". Must be an integer + # multiple of 1 day no larger than 30 days. # Corresponds to the JSON property `rollingPeriod` # @return [String] attr_accessor :rolling_period @@ -3410,15 +3346,14 @@ module Google # some services, the SLI is well-defined. In such cases, the SLI can be # described easily by referencing the well-known SLI and providing the needed # parameters. Alternatively, a "custom" SLI can be defined with a query to the - # underlying metric store. An SLI is defined to be good_service / - # total_service over any queried time interval. The value of performance always - # falls into the range 0 <= performance <= 1. A custom SLI describes how to - # compute this ratio, whether this is by dividing values from a pair of time - # series, cutting a Distribution into good and bad counts, or counting time - # windows in which the service complies with a criterion. For separation of - # concerns, a single Service-Level Indicator measures performance for only one - # aspect of service quality, such as fraction of successful queries or fast- - # enough queries. + # underlying metric store. An SLI is defined to be good_service / total_service + # over any queried time interval. The value of performance always falls into the + # range 0 <= performance <= 1. A custom SLI describes how to compute this ratio, + # whether this is by dividing values from a pair of time series, cutting a + # Distribution into good and bad counts, or counting time windows in which the + # service complies with a criterion. For separation of concerns, a single + # Service-Level Indicator measures performance for only one aspect of service + # quality, such as fraction of successful queries or fast-enough queries. # Corresponds to the JSON property `serviceLevelIndicator` # @return [Google::Apis::MonitoringV3::ServiceLevelIndicator] attr_accessor :service_level_indicator @@ -3460,17 +3395,16 @@ module Google end # The context of a span, attached to Exemplars in Distribution values during - # aggregation.It contains the name of a span with format: - # projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] + # aggregation.It contains the name of a span with format: projects/[ + # PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] class SpanContext include Google::Apis::Core::Hashable - # The resource name of the span. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] - # [TRACE_ID] is a unique identifier for a trace within a project; it is a 32- - # character hexadecimal encoding of a 16-byte array.[SPAN_ID] is a unique - # identifier for a span within a trace; it is a 16-character hexadecimal - # encoding of an 8-byte array. + # The resource name of the span. The format is: projects/[PROJECT_ID_OR_NUMBER]/ + # traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a + # trace within a project; it is a 32-character hexadecimal encoding of a 16-byte + # array.[SPAN_ID] is a unique identifier for a span within a trace; it is a 16- + # character hexadecimal encoding of an 8-byte array. # Corresponds to the JSON property `spanName` # @return [String] attr_accessor :span_name @@ -3568,27 +3502,25 @@ module Google # A closed time interval. It extends from the start time to the end time, and # includes both: [startTime, endTime]. Valid time intervals depend on the # MetricKind of the metric value. In no case can the end time be earlier than - # the start time. - # For GAUGE metrics, the startTime value is technically optional; if no value - # is specified, the start time defaults to the value of the end time, and the - # interval represents a single point in time. If both start and end times are - # specified, they must be identical. Such an interval is valid only for GAUGE - # metrics, which are point-in-time measurements. The end time of a new interval - # must be at least a millisecond after the end time of the previous interval. - # For DELTA metrics, the start time and end time must specify a non-zero - # interval, with subsequent points specifying contiguous and non-overlapping - # intervals. For DELTA metrics, the start time of the next interval must be at - # least a millisecond after the end time of the previous interval. - # For CUMULATIVE metrics, the start time and end time must specify a a non-zero - # interval, with subsequent points specifying the same start time and - # increasing end times, until an event resets the cumulative value to zero and - # sets a new start time for the following points. The new start time must be at - # least a millisecond after the end time of the previous interval. - # The start time of a new interval must be at least a millisecond after the end - # time of the previous interval because intervals are closed. If the start time - # of a new interval is the same as the end time of the previous interval, then - # data written at the new start time could overwrite data written at the - # previous end time. + # the start time. For GAUGE metrics, the startTime value is technically optional; + # if no value is specified, the start time defaults to the value of the end + # time, and the interval represents a single point in time. If both start and + # end times are specified, they must be identical. Such an interval is valid + # only for GAUGE metrics, which are point-in-time measurements. The end time of + # a new interval must be at least a millisecond after the end time of the + # previous interval. For DELTA metrics, the start time and end time must specify + # a non-zero interval, with subsequent points specifying contiguous and non- + # overlapping intervals. For DELTA metrics, the start time of the next interval + # must be at least a millisecond after the end time of the previous interval. + # For CUMULATIVE metrics, the start time and end time must specify a a non-zero + # interval, with subsequent points specifying the same start time and increasing + # end times, until an event resets the cumulative value to zero and sets a new + # start time for the following points. The new start time must be at least a + # millisecond after the end time of the previous interval. The start time of a + # new interval must be at least a millisecond after the end time of the previous + # interval because intervals are closed. If the start time of a new interval is + # the same as the end time of the previous interval, then data written at the + # new start time could overwrite data written at the previous end time. class TimeInterval include Google::Apis::Core::Hashable @@ -3665,10 +3597,8 @@ module Google # attributes according to the schema. For example, a particular Compute Engine # VM instance could be represented by the following object, because the # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` + # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", " + # zone": "us-central1-a" `` # Corresponds to the JSON property `resource` # @return [Google::Apis::MonitoringV3::MonitoredResource] attr_accessor :resource @@ -3760,10 +3690,10 @@ module Google # A TimeSeriesRatio specifies two TimeSeries to use for computing the # good_service / total_service ratio. The specified TimeSeries must have - # ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = - # DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two - # of good, bad, and total, and the relationship good_service + - # bad_service = total_service will be assumed. + # ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or + # MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, + # bad, and total, and the relationship good_service + bad_service = + # total_service will be assumed. class TimeSeriesRatio include Google::Apis::Core::Hashable @@ -3778,16 +3708,16 @@ module Google # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) # specifying a TimeSeries quantifying good service provided. Must have ValueType - # = DOUBLE or ValueType = INT64 and must have MetricKind = - # DELTA or MetricKind = CUMULATIVE. + # = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = + # CUMULATIVE. # Corresponds to the JSON property `goodServiceFilter` # @return [String] attr_accessor :good_service_filter # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) # specifying a TimeSeries quantifying total demanded service. Must have - # ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = - # DELTA or MetricKind = CUMULATIVE. + # ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or + # MetricKind = CUMULATIVE. # Corresponds to the JSON property `totalServiceFilter` # @return [String] attr_accessor :total_service_filter @@ -3908,13 +3838,12 @@ module Google attr_accessor :distribution_value # A 64-bit double-precision floating-point number. Its magnitude is - # approximately ±10±300 and it has 16 significant - # digits of precision. + # approximately ±10±300 and it has 16 significant digits of precision. # Corresponds to the JSON property `doubleValue` # @return [Float] attr_accessor :double_value - # A 64-bit integer. Its range is approximately ±9.2x1018. + # A 64-bit integer. Its range is approximately ±9.2x1018. # Corresponds to the JSON property `int64Value` # @return [Fixnum] attr_accessor :int64_value @@ -3988,17 +3917,15 @@ module Google # attributes according to the schema. For example, a particular Compute Engine # VM instance could be represented by the following object, because the # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` + # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", " + # zone": "us-central1-a" `` # Corresponds to the JSON property `monitoredResource` # @return [Google::Apis::MonitoringV3::MonitoredResource] attr_accessor :monitored_resource # A unique resource name for this Uptime check configuration. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] - # This field should be omitted when creating the Uptime check configuration; on + # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] This + # field should be omitted when creating the Uptime check configuration; on # create, the resource name is assigned by the server and included in the # response. # Corresponds to the JSON property `name` diff --git a/generated/google/apis/monitoring_v3/service.rb b/generated/google/apis/monitoring_v3/service.rb index e38dc101f..2cae2e31b 100644 --- a/generated/google/apis/monitoring_v3/service.rb +++ b/generated/google/apis/monitoring_v3/service.rb @@ -54,13 +54,13 @@ module Google # Creates a new alerting policy. # @param [String] name # Required. The project in which to create the alerting policy. The format is: - # projects/[PROJECT_ID_OR_NUMBER] - # Note that this field names the parent container in which the alerting policy - # will be written, not the name of the created policy. |name| must be a host - # project of a workspace, otherwise INVALID_ARGUMENT error will return. The - # alerting policy that is returned will have a name that contains a normalized - # representation of this name as a prefix but adds a suffix of the form / - # alertPolicies/[ALERT_POLICY_ID], identifying the policy in the container. + # projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent + # container in which the alerting policy will be written, not the name of the + # created policy. |name| must be a host project of a workspace, otherwise + # INVALID_ARGUMENT error will return. The alerting policy that is returned will + # have a name that contains a normalized representation of this name as a prefix + # but adds a suffix of the form /alertPolicies/[ALERT_POLICY_ID], identifying + # the policy in the container. # @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -93,9 +93,9 @@ module Google # Deletes an alerting policy. # @param [String] name - # Required. The alerting policy to delete. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] - # For more information, see AlertPolicy. + # Required. The alerting policy to delete. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] For more information, + # see AlertPolicy. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -125,8 +125,8 @@ module Google # Gets a single alerting policy. # @param [String] name - # Required. The alerting policy to retrieve. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] + # Required. The alerting policy to retrieve. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -157,10 +157,9 @@ module Google # Lists the existing alerting policies for the workspace. # @param [String] name # Required. The project whose alert policies are to be listed. The format is: - # projects/[PROJECT_ID_OR_NUMBER] - # Note that this field names the parent container in which the alerting policies - # to be listed are stored. To retrieve a single alerting policy by name, use the - # GetAlertPolicy operation, instead. + # projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent + # container in which the alerting policies to be listed are stored. To retrieve + # a single alerting policy by name, use the GetAlertPolicy operation, instead. # @param [String] filter # If provided, this field specifies the criteria that must be met by alert # policies to be included in the response.For more details, see sorting and @@ -214,9 +213,8 @@ module Google # alerting policy. # @param [String] name # Required if the policy exists. The resource name for this policy. The format - # is: - # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] - # [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is + # is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] [ + # ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is # created. When calling the alertPolicies.create method, do not include the name # field in the alerting policy passed as part of the request. # @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object @@ -230,13 +228,12 @@ module Google # user_labels, user_label.nameofkey, enabled, conditions, combiner, etc.If this # field is empty, then the supplied alerting policy replaces the existing policy. # It is the same as deleting the existing policy and adding the supplied policy, - # except for the following: - # The new policy will have the same [ALERT_POLICY_ID] as the former policy. This - # gives you continuity with the former policy in your notifications and - # incidents. - # Conditions in the new policy will keep their former [CONDITION_ID] if the - # supplied condition includes the name field with that [CONDITION_ID]. If the - # supplied condition omits the name field, then a new [CONDITION_ID] is created. + # except for the following: The new policy will have the same [ALERT_POLICY_ID] + # as the former policy. This gives you continuity with the former policy in your + # notifications and incidents. Conditions in the new policy will keep their + # former [CONDITION_ID] if the supplied condition includes the name field with + # that [CONDITION_ID]. If the supplied condition omits the name field, then a + # new [CONDITION_ID] is created. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -267,12 +264,12 @@ module Google execute_or_queue_command(command, &block) end - # Stackdriver Monitoring Agent only: Creates a new time series. + # Stackdriver Monitoring Agent only: Creates a new time series.This method is + # only for use by the Stackdriver Monitoring Agent. Use projects.timeSeries. + # create instead. # @param [String] name - # The project in which to create the time series. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # The project in which to create the time series. The format is: projects/[ + # PROJECT_ID_OR_NUMBER] # @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -305,8 +302,8 @@ module Google # Creates a new group. # @param [String] name - # Required. The project in which to create the group. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project in which to create the group. The format is: projects/[ + # PROJECT_ID_OR_NUMBER] # @param [Google::Apis::MonitoringV3::Group] group_object # @param [Boolean] validate_only # If true, validate this request but do not create the group. @@ -342,8 +339,8 @@ module Google # Deletes an existing group. # @param [String] name - # Required. The group to delete. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + # Required. The group to delete. The format is: projects/[PROJECT_ID_OR_NUMBER]/ + # groups/[GROUP_ID] # @param [Boolean] recursive # If this field is true, then the request means to delete a group with all its # descendants. Otherwise, the request means to delete a group only when it has @@ -378,8 +375,8 @@ module Google # Gets a single group. # @param [String] name - # Required. The group to retrieve. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + # Required. The group to retrieve. The format is: projects/[PROJECT_ID_OR_NUMBER] + # /groups/[GROUP_ID] # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -409,23 +406,20 @@ module Google # Lists the existing groups. # @param [String] name - # Required. The project whose groups are to be listed. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project whose groups are to be listed. The format is: projects/[ + # PROJECT_ID_OR_NUMBER] # @param [String] ancestors_of_group - # A group name. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + # A group name. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] # Returns groups that are ancestors of the specified group. The groups are # returned in order, starting with the immediate parent and ending with the most # distant ancestor. If the specified group has no immediate parent, the results # are empty. # @param [String] children_of_group - # A group name. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + # A group name. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] # Returns groups whose parent_name field contains the group name. If no groups # have this parent, the results are empty. # @param [String] descendants_of_group - # A group name. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + # A group name. The format is: projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] # Returns the descendants of the specified group. This is a superset of the # results returned by the children_of_group filter, and includes children-of- # children, and so forth. @@ -469,11 +463,10 @@ module Google # Updates an existing group. You can change any group attributes except name. # @param [String] name - # Output only. The name of this group. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] - # When creating a group, this field is ignored and a new name is created - # consisting of the project specified in the call to CreateGroup and a unique [ - # GROUP_ID] that is generated automatically. + # Output only. The name of this group. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] When creating a group, this field is + # ignored and a new name is created consisting of the project specified in the + # call to CreateGroup and a unique [GROUP_ID] that is generated automatically. # @param [Google::Apis::MonitoringV3::Group] group_object # @param [Boolean] validate_only # If true, validate this request but do not update the existing group. @@ -509,15 +502,14 @@ module Google # Lists the monitored resources that are members of a group. # @param [String] name - # Required. The group whose members are listed. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] + # Required. The group whose members are listed. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] # @param [String] filter # An optional list filter (https://cloud.google.com/monitoring/api/learn_more# # filtering) describing the members to be returned. The filter may reference the # type, labels, and metadata of monitored resources that comprise the group. For # example, to return only resources representing Compute Engine VM instances, - # use this filter: - # `resource.type = "gce_instance"` + # use this filter: `resource.type = "gce_instance"` # @param [String] interval_end_time # Required. The end of the time interval. # @param [String] interval_start_time @@ -564,8 +556,8 @@ module Google # Creates a new metric descriptor. User-created metric descriptors define custom # metrics (https://cloud.google.com/monitoring/custom-metrics). # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] # @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -600,8 +592,8 @@ module Google # google.com/monitoring/custom-metrics) can be deleted. # @param [String] name # Required. The metric descriptor on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] - # An example of [METRIC_ID] is: "custom.googleapis.com/my_test_metric". + # projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example of [ + # METRIC_ID] is: "custom.googleapis.com/my_test_metric". # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -632,9 +624,9 @@ module Google # Gets a single metric descriptor. This method does not require a Workspace. # @param [String] name # Required. The metric descriptor on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] - # An example value of [METRIC_ID] is "compute.googleapis.com/instance/disk/ - # read_bytes_count". + # projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example + # value of [METRIC_ID] is "compute.googleapis.com/instance/disk/read_bytes_count" + # . # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -665,15 +657,15 @@ module Google # Lists metric descriptors that match a filter. This method does not require a # Workspace. # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] # @param [String] filter # If this field is empty, all custom and system-defined metric descriptors are # returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/ # filters) specifies which metric descriptors are to be returned. For example, # the following filter matches all custom metrics (https://cloud.google.com/ - # monitoring/custom-metrics): - # metric.type = starts_with("custom.googleapis.com/") + # monitoring/custom-metrics): metric.type = starts_with("custom.googleapis.com/") + # # @param [Fixnum] page_size # A positive number that is the maximum number of results to return. # @param [String] page_token @@ -713,9 +705,9 @@ module Google # Gets a single monitored resource descriptor. This method does not require a # Workspace. # @param [String] name - # Required. The monitored resource descriptor to get. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE] - # The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database. + # Required. The monitored resource descriptor to get. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE] The [ + # RESOURCE_TYPE] is a predefined type, such as cloudsql_database. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -746,14 +738,14 @@ module Google # Lists monitored resource descriptors that match a filter. This method does not # require a Workspace. # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] # @param [String] filter # An optional filter (https://cloud.google.com/monitoring/api/v3/filters) # describing the descriptors to be returned. The filter can reference the # descriptor's type and labels. For example, the following filter returns only - # Google Compute Engine descriptors that have an id label: - # resource.type = starts_with("gce_") AND resource.label:id + # Google Compute Engine descriptors that have an id label: resource.type = + # starts_with("gce_") AND resource.label:id # @param [Fixnum] page_size # A positive number that is the maximum number of results to return. # @param [String] page_token @@ -826,10 +818,9 @@ module Google # makes it possible for new channel types to be dynamically added. # @param [String] name # Required. The REST resource name of the parent from which to retrieve the - # notification channel descriptors. The expected syntax is: - # projects/[PROJECT_ID_OR_NUMBER] - # Note that this names the parent container in which to look for the descriptors; - # to retrieve a single descriptor by name, use the + # notification channel descriptors. The expected syntax is: projects/[ + # PROJECT_ID_OR_NUMBER] Note that this names the parent container in which to + # look for the descriptors; to retrieve a single descriptor by name, use the # GetNotificationChannelDescriptor operation, instead. # @param [Fixnum] page_size # The maximum number of results to return in a single response. If not set to a @@ -869,11 +860,10 @@ module Google # Creates a new notification channel, representing a single notification # endpoint such as an email address, SMS number, or PagerDuty service. # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] - # This names the container into which the channel will be written, this does not - # name the newly created channel. The resulting channel's name will have a - # normalized version of this field as a prefix, but will add / + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] This names the container into which the channel will be + # written, this does not name the newly created channel. The resulting channel's + # name will have a normalized version of this field as a prefix, but will add / # notificationChannels/[CHANNEL_ID] to identify the channel. # @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object # @param [String] fields @@ -1031,11 +1021,11 @@ module Google # Lists the notification channels that have been created for the project. # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] - # This names the container in which to look for the notification channels; it - # does not name a specific channel. To query a specific channel by REST resource - # name, use the GetNotificationChannel operation. + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] This names the container in which to look for the + # notification channels; it does not name a specific channel. To query a + # specific channel by REST resource name, use the GetNotificationChannel + # operation. # @param [String] filter # If provided, this field specifies the criteria that must be met by # notification channels to be included in the response.For more details, see @@ -1087,9 +1077,9 @@ module Google # Updates a notification channel. Fields not specified in the field mask remain # unchanged. # @param [String] name - # The full REST resource name for this channel. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] - # The [CHANNEL_ID] is automatically assigned by the server on creation. + # The full REST resource name for this channel. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is + # automatically assigned by the server on creation. # @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object # @param [String] update_mask # The fields to update. @@ -1195,8 +1185,8 @@ module Google # time series in the request were written. If any time series could not be # written, a corresponding failure message is included in the error response. # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1230,8 +1220,8 @@ module Google # Lists time series that match a filter. This method does not require a # Workspace. # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] # @param [String] aggregation_alignment_period # The alignment_period specifies a time interval, in seconds, that is used to # divide the data in all the time series into consistent blocks of time. This @@ -1281,9 +1271,8 @@ module Google # Required. A monitoring filter (https://cloud.google.com/monitoring/api/v3/ # filters) that specifies which time series should be returned. The filter must # specify a single metric type, and can additionally specify metric labels and - # other information. For example: - # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND - # metric.labels.instance_name = "my-instance-name" + # other information. For example: metric.type = "compute.googleapis.com/instance/ + # cpu/usage_time" AND metric.labels.instance_name = "my-instance-name" # @param [String] interval_end_time # Required. The end of the time interval. # @param [String] interval_start_time @@ -1345,8 +1334,8 @@ module Google # Queries time series using Monitoring Query Language. This method does not # require a Workspace. # @param [String] name - # Required. The project on which to execute the request. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. The project on which to execute the request. The format is: projects/ + # [PROJECT_ID_OR_NUMBER] # @param [Google::Apis::MonitoringV3::QueryTimeSeriesRequest] query_time_series_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1415,8 +1404,8 @@ module Google # Uptime check configuration is referenced by an alert policy or other dependent # configs that would be rendered invalid by the deletion. # @param [String] name - # Required. The Uptime check configuration to delete. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] + # Required. The Uptime check configuration to delete. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1446,8 +1435,8 @@ module Google # Gets a single Uptime check configuration. # @param [String] name - # Required. The Uptime check configuration to retrieve. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] + # Required. The Uptime check configuration to retrieve. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1479,8 +1468,7 @@ module Google # out any invalid configurations). # @param [String] parent # Required. The project whose Uptime check configurations are listed. The format - # is: - # projects/[PROJECT_ID_OR_NUMBER] + # is: projects/[PROJECT_ID_OR_NUMBER] # @param [Fixnum] page_size # The maximum number of results to return in a single response. The server may # further constrain the maximum number of results returned in a single page. If @@ -1525,8 +1513,8 @@ module Google # the updated configuration. # @param [String] name # A unique resource name for this Uptime check configuration. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] - # This field should be omitted when creating the Uptime check configuration; on + # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] This + # field should be omitted when creating the Uptime check configuration; on # create, the resource name is assigned by the server and included in the # response. # @param [Google::Apis::MonitoringV3::UptimeCheckConfig] uptime_check_config_object @@ -1567,8 +1555,8 @@ module Google # Create a Service. # @param [String] parent - # Required. Resource name of the parent workspace. The format is: - # projects/[PROJECT_ID_OR_NUMBER] + # Required. Resource name of the parent workspace. The format is: projects/[ + # PROJECT_ID_OR_NUMBER] # @param [Google::Apis::MonitoringV3::Service] service_object # @param [String] service_id # Optional. The Service id to use for this Service. If omitted, an id will be @@ -1605,8 +1593,8 @@ module Google # Soft delete this Service. # @param [String] name - # Required. Resource name of the Service to delete. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + # Required. Resource name of the Service to delete. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1636,8 +1624,8 @@ module Google # Get the named Service. # @param [String] name - # Required. Resource name of the Service. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + # Required. Resource name of the Service. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1668,22 +1656,15 @@ module Google # List Services for this workspace. # @param [String] parent # Required. Resource name of the parent containing the listed services, either a - # project or a Monitoring Workspace. The formats are: - # projects/[PROJECT_ID_OR_NUMBER] - # workspaces/[HOST_PROJECT_ID_OR_NUMBER] + # project or a Monitoring Workspace. The formats are: projects/[ + # PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER] # @param [String] filter # A filter specifying what Services to return. The filter currently supports the - # following fields: - # - `identifier_case` - # - `app_engine.module_id` - # - `cloud_endpoints.service` - # - `mesh_istio.mesh_uid` - # - `mesh_istio.service_namespace` - # - `mesh_istio.service_name` - # - `cluster_istio.location` (deprecated) - # - `cluster_istio.cluster_name` (deprecated) - # - `cluster_istio.service_namespace` (deprecated) - # - `cluster_istio.service_name` (deprecated) + # following fields: - `identifier_case` - `app_engine.module_id` - ` + # cloud_endpoints.service` - `mesh_istio.mesh_uid` - `mesh_istio. + # service_namespace` - `mesh_istio.service_name` - `cluster_istio.location` ( + # deprecated) - `cluster_istio.cluster_name` (deprecated) - `cluster_istio. + # service_namespace` (deprecated) - `cluster_istio.service_name` (deprecated) # identifier_case refers to which option in the identifier oneof is populated. # For example, the filter identifier_case = "CUSTOM" would match all services # with a value for the custom field. Valid options are "CUSTOM", "APP_ENGINE", " @@ -1727,8 +1708,8 @@ module Google # Update this Service. # @param [String] name - # Resource name for this Service. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + # Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/ + # services/[SERVICE_ID] # @param [Google::Apis::MonitoringV3::Service] service_object # @param [String] update_mask # A set of field paths defining which fields to use for the update. @@ -1764,8 +1745,8 @@ module Google # Create a ServiceLevelObjective for the given Service. # @param [String] parent - # Required. Resource name of the parent Service. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] + # Required. Resource name of the parent Service. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] # @param [Google::Apis::MonitoringV3::ServiceLevelObjective] service_level_objective_object # @param [String] service_level_objective_id # Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. @@ -1873,9 +1854,9 @@ module Google # List the ServiceLevelObjectives for the given Service. # @param [String] parent # Required. Resource name of the parent containing the listed SLOs, either a - # project or a Monitoring Workspace. The formats are: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] - # workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/- + # project or a Monitoring Workspace. The formats are: projects/[ + # PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[ + # HOST_PROJECT_ID_OR_NUMBER]/services/- # @param [String] filter # A filter specifying what ServiceLevelObjectives to return. # @param [Fixnum] page_size @@ -1923,9 +1904,8 @@ module Google # Update the given ServiceLevelObjective. # @param [String] name - # Resource name for this ServiceLevelObjective. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[ - # SLO_NAME] + # Resource name for this ServiceLevelObjective. The format is: projects/[ + # PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] # @param [Google::Apis::MonitoringV3::ServiceLevelObjective] service_level_objective_object # @param [String] update_mask # A set of field paths defining which fields to use for the update. diff --git a/generated/google/apis/osconfig_v1beta.rb b/generated/google/apis/osconfig_v1beta.rb index e232374d9..8f2066798 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 = '20200714' + REVISION = '20200731' # 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 cdbc3c5dc..4b671c168 100644 --- a/generated/google/apis/osconfig_v1beta/classes.rb +++ b/generated/google/apis/osconfig_v1beta/classes.rb @@ -395,6 +395,74 @@ module Google end end + # A resource that contains custom validation and enforcement steps. + class ExecResource + include Google::Apis::Core::Hashable + + # A file or script to execute. + # Corresponds to the JSON property `enforce` + # @return [Google::Apis::OsconfigV1beta::ExecResourceExec] + attr_accessor :enforce + + # A file or script to execute. + # Corresponds to the JSON property `validate` + # @return [Google::Apis::OsconfigV1beta::ExecResourceExec] + attr_accessor :validate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enforce = args[:enforce] if args.key?(:enforce) + @validate = args[:validate] if args.key?(:validate) + end + end + + # A file or script to execute. + class ExecResourceExec + include Google::Apis::Core::Hashable + + # Exit codes that indicate success. + # Corresponds to the JSON property `allowedSuccessCodes` + # @return [Array] + attr_accessor :allowed_success_codes + + # Arguments to use. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args + + # A remote or local file. + # Corresponds to the JSON property `file` + # @return [Google::Apis::OsconfigV1beta::File] + attr_accessor :file + + # The script interpreter to use. + # Corresponds to the JSON property `interpreter` + # @return [String] + attr_accessor :interpreter + + # An inline script. + # Corresponds to the JSON property `script` + # @return [String] + attr_accessor :script + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_success_codes = args[:allowed_success_codes] if args.key?(:allowed_success_codes) + @args = args[:args] if args.key?(:args) + @file = args[:file] if args.key?(:file) + @interpreter = args[:interpreter] if args.key?(:interpreter) + @script = args[:script] if args.key?(:script) + end + end + # A step that runs an executable for a PatchJob. class ExecStep include Google::Apis::Core::Hashable @@ -525,6 +593,206 @@ module Google end end + # A resource that extracts an archive + class ExtractArchiveResource + include Google::Apis::Core::Hashable + + # Local file path that signals this resource is in the desired state. + # The absence of this file will indicate whether the archive needs to be + # extracted. + # Corresponds to the JSON property `creates` + # @return [String] + attr_accessor :creates + + # Directory to extract archive to. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # Whether to overwrite existing files during extraction. If this is set to + # true, any existing files in the destination location will be overwritten by + # the extraction. + # Corresponds to the JSON property `overwrite` + # @return [Boolean] + attr_accessor :overwrite + alias_method :overwrite?, :overwrite + + # A remote or local file. + # Corresponds to the JSON property `source` + # @return [Google::Apis::OsconfigV1beta::File] + attr_accessor :source + + # The type of the archive to extract. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creates = args[:creates] if args.key?(:creates) + @destination = args[:destination] if args.key?(:destination) + @overwrite = args[:overwrite] if args.key?(:overwrite) + @source = args[:source] if args.key?(:source) + @type = args[:type] if args.key?(:type) + end + end + + # A remote or local file. + class File + include Google::Apis::Core::Hashable + + # Defaults to false. When false, files will be subject to validations + # based on the file type: + # Remote: A checksum must be specified. + # GCS: An object generation number must be specified. + # Corresponds to the JSON property `allowInsecure` + # @return [Boolean] + attr_accessor :allow_insecure + alias_method :allow_insecure?, :allow_insecure + + # Specifies a file available as a GCS Object. + # Corresponds to the JSON property `gcs` + # @return [Google::Apis::OsconfigV1beta::FileGcs] + attr_accessor :gcs + + # A local path to use. + # Corresponds to the JSON property `localPath` + # @return [String] + attr_accessor :local_path + + # Specifies a file available via some URI. + # Corresponds to the JSON property `remote` + # @return [Google::Apis::OsconfigV1beta::FileRemote] + attr_accessor :remote + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_insecure = args[:allow_insecure] if args.key?(:allow_insecure) + @gcs = args[:gcs] if args.key?(:gcs) + @local_path = args[:local_path] if args.key?(:local_path) + @remote = args[:remote] if args.key?(:remote) + end + end + + # Specifies a file available as a GCS Object. + class FileGcs + include Google::Apis::Core::Hashable + + # Bucket of the GCS object. + # Corresponds to the JSON property `bucket` + # @return [String] + attr_accessor :bucket + + # Generation number of the GCS object. + # Corresponds to the JSON property `generation` + # @return [Fixnum] + attr_accessor :generation + + # Name of the GCS object. + # Corresponds to the JSON property `object` + # @return [String] + attr_accessor :object + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket = args[:bucket] if args.key?(:bucket) + @generation = args[:generation] if args.key?(:generation) + @object = args[:object] if args.key?(:object) + end + end + + # Specifies a file available via some URI. + class FileRemote + include Google::Apis::Core::Hashable + + # SHA256 checksum of the remote file. + # Corresponds to the JSON property `sha256Checksum` + # @return [String] + attr_accessor :sha256_checksum + + # URI from which to fetch the object. It should contain both the protocol + # and path following the format `protocol`://`location`. + # 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) + @sha256_checksum = args[:sha256_checksum] if args.key?(:sha256_checksum) + @uri = args[:uri] if args.key?(:uri) + end + end + + # A resource that manages the state of a file. + class FileResource + include Google::Apis::Core::Hashable + + # A a file with this content. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # A remote or local file. + # Corresponds to the JSON property `file` + # @return [Google::Apis::OsconfigV1beta::File] + attr_accessor :file + + # The absolute path of the file. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + # Consists of three octal digits which represent, in + # order, the permissions of the owner, group, and other users for the + # file (similarly to the numeric mode used in the linux chmod utility). + # Each digit represents a three bit number with the 4 bit + # corresponding to the read permissions, the 2 bit corresponds to the + # write bit, and the one bit corresponds to the execute permission. + # Default behavior is 755. + # Below are some examples of permissions and their associated values: + # read, write, and execute: 7 + # read and execute: 5 + # read and write: 6 + # read only: 4 + # Corresponds to the JSON property `permissions` + # @return [String] + attr_accessor :permissions + + # Desired state of the file. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @file = args[:file] if args.key?(:file) + @path = args[:path] if args.key?(:path) + @permissions = args[:permissions] if args.key?(:permissions) + @state = args[:state] if args.key?(:state) + end + end + # Message encapsulating a value that can be either absolute ("fixed") or # relative ("percent") to a value. class FixedOrPercent @@ -996,6 +1264,252 @@ module Google end end + # A resource that manages a system package. + class PackageResource + include Google::Apis::Core::Hashable + + # A package managed by APT. + # install: `apt-get update && apt-get -y install [name]` + # remove: `apt-get -y remove [name]` + # Corresponds to the JSON property `apt` + # @return [Google::Apis::OsconfigV1beta::PackageResourceApt] + attr_accessor :apt + + # A deb package file. dpkg packages only support INSTALLED state. + # Corresponds to the JSON property `deb` + # @return [Google::Apis::OsconfigV1beta::PackageResourceDeb] + attr_accessor :deb + + # The desired_state the agent should maintain for this package. The + # default is to ensure the package is installed. + # Corresponds to the JSON property `desiredState` + # @return [String] + attr_accessor :desired_state + + # A package managed by GooGet. + # install: `googet -noconfirm install package` + # remove: `googet -noconfirm remove package` + # Corresponds to the JSON property `googet` + # @return [Google::Apis::OsconfigV1beta::PackageResourceGooGet] + attr_accessor :googet + + # An MSI package. MSI packages only support INSTALLED state. + # Install msiexec /i /qn /norestart + # Corresponds to the JSON property `msi` + # @return [Google::Apis::OsconfigV1beta::PackageResourceMsi] + attr_accessor :msi + + # An RPM package file. RPM packages only support INSTALLED state. + # Corresponds to the JSON property `rpm` + # @return [Google::Apis::OsconfigV1beta::PackageResourceRpm] + attr_accessor :rpm + + # A package managed by YUM. + # install: `yum -y install package` + # remove: `yum -y remove package` + # Corresponds to the JSON property `yum` + # @return [Google::Apis::OsconfigV1beta::PackageResourceYum] + attr_accessor :yum + + # A package managed by Zypper. + # install: `zypper -y install package` + # remove: `zypper -y rm package` + # Corresponds to the JSON property `zypper` + # @return [Google::Apis::OsconfigV1beta::PackageResourceZypper] + attr_accessor :zypper + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @apt = args[:apt] if args.key?(:apt) + @deb = args[:deb] if args.key?(:deb) + @desired_state = args[:desired_state] if args.key?(:desired_state) + @googet = args[:googet] if args.key?(:googet) + @msi = args[:msi] if args.key?(:msi) + @rpm = args[:rpm] if args.key?(:rpm) + @yum = args[:yum] if args.key?(:yum) + @zypper = args[:zypper] if args.key?(:zypper) + end + end + + # A package managed by APT. + # install: `apt-get update && apt-get -y install [name]` + # remove: `apt-get -y remove [name]` + class PackageResourceApt + include Google::Apis::Core::Hashable + + # Package name. + # 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) + @name = args[:name] if args.key?(:name) + end + end + + # A deb package file. dpkg packages only support INSTALLED state. + class PackageResourceDeb + include Google::Apis::Core::Hashable + + # Whether dependencies should also be installed. + # install when false: `dpkg -i package` + # install when true: `apt-get update && apt-get -y install package.deb` + # Corresponds to the JSON property `pullDeps` + # @return [Boolean] + attr_accessor :pull_deps + alias_method :pull_deps?, :pull_deps + + # A remote or local file. + # Corresponds to the JSON property `source` + # @return [Google::Apis::OsconfigV1beta::File] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pull_deps = args[:pull_deps] if args.key?(:pull_deps) + @source = args[:source] if args.key?(:source) + end + end + + # A package managed by GooGet. + # install: `googet -noconfirm install package` + # remove: `googet -noconfirm remove package` + class PackageResourceGooGet + include Google::Apis::Core::Hashable + + # Package name. + # 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) + @name = args[:name] if args.key?(:name) + end + end + + # An MSI package. MSI packages only support INSTALLED state. + # Install msiexec /i /qn /norestart + class PackageResourceMsi + include Google::Apis::Core::Hashable + + # Return codes that indicate that the software installed or updated + # successfully. Behaviour defaults to [0] + # Corresponds to the JSON property `allowedSuccessCodes` + # @return [Array] + attr_accessor :allowed_success_codes + + # Flags to use during package install. + # Appended to the defalts of "/i /qn /norestart" + # Corresponds to the JSON property `flags` + # @return [Array] + attr_accessor :flags + + # A remote or local file. + # Corresponds to the JSON property `source` + # @return [Google::Apis::OsconfigV1beta::File] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_success_codes = args[:allowed_success_codes] if args.key?(:allowed_success_codes) + @flags = args[:flags] if args.key?(:flags) + @source = args[:source] if args.key?(:source) + end + end + + # An RPM package file. RPM packages only support INSTALLED state. + class PackageResourceRpm + include Google::Apis::Core::Hashable + + # Whether dependencies should also be installed. + # install when false: `rpm --upgrade --replacepkgs package.rpm` + # install when true: `yum -y install package.rpm` or + # `zypper -y install package.rpm` + # Corresponds to the JSON property `pullDeps` + # @return [Boolean] + attr_accessor :pull_deps + alias_method :pull_deps?, :pull_deps + + # A remote or local file. + # Corresponds to the JSON property `source` + # @return [Google::Apis::OsconfigV1beta::File] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pull_deps = args[:pull_deps] if args.key?(:pull_deps) + @source = args[:source] if args.key?(:source) + end + end + + # A package managed by YUM. + # install: `yum -y install package` + # remove: `yum -y remove package` + class PackageResourceYum + include Google::Apis::Core::Hashable + + # Package name. + # 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) + @name = args[:name] if args.key?(:name) + end + end + + # A package managed by Zypper. + # install: `zypper -y install package` + # remove: `zypper -y rm package` + class PackageResourceZypper + include Google::Apis::Core::Hashable + + # Package name. + # 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) + @name = args[:name] if args.key?(:name) + end + end + # Patch configuration specifications. Contains details on how to apply the # patch(es) to a VM instance. class PatchConfig @@ -1620,6 +2134,213 @@ module Google end end + # A resource that manages a package repository. + class RepositoryResource + include Google::Apis::Core::Hashable + + # Represents a single apt package repository. These will be added to a repo + # file that will be managed at /etc/apt/sources.list.d/google_osconfig.list. + # Corresponds to the JSON property `apt` + # @return [Google::Apis::OsconfigV1beta::RepositoryResourceAptRepository] + attr_accessor :apt + + # Represents a Goo package repository. These will be added to a repo file + # that will be managed at C:/ProgramData/GooGet/repos/google_osconfig.repo. + # Corresponds to the JSON property `goo` + # @return [Google::Apis::OsconfigV1beta::RepositoryResourceGooRepository] + attr_accessor :goo + + # Represents a single yum package repository. These will be added to a repo + # file that will be managed at /etc/yum.repos.d/google_osconfig.repo. + # Corresponds to the JSON property `yum` + # @return [Google::Apis::OsconfigV1beta::RepositoryResourceYumRepository] + attr_accessor :yum + + # Represents a single zypper package repository. These will be added to a + # repo file that will be managed at /etc/zypp/repos.d/google_osconfig.repo. + # Corresponds to the JSON property `zypper` + # @return [Google::Apis::OsconfigV1beta::RepositoryResourceZypperRepository] + attr_accessor :zypper + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @apt = args[:apt] if args.key?(:apt) + @goo = args[:goo] if args.key?(:goo) + @yum = args[:yum] if args.key?(:yum) + @zypper = args[:zypper] if args.key?(:zypper) + end + end + + # Represents a single apt package repository. These will be added to a repo + # file that will be managed at /etc/apt/sources.list.d/google_osconfig.list. + class RepositoryResourceAptRepository + include Google::Apis::Core::Hashable + + # Type of archive files in this repository. The default behavior is DEB. + # Corresponds to the JSON property `archiveType` + # @return [String] + attr_accessor :archive_type + + # List of components for this repository. Must contain at least one item. + # Corresponds to the JSON property `components` + # @return [Array] + attr_accessor :components + + # Distribution of this repository. + # Corresponds to the JSON property `distribution` + # @return [String] + attr_accessor :distribution + + # URI of the key file for this repository. The agent will maintain + # a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg. + # Corresponds to the JSON property `gpgKey` + # @return [String] + attr_accessor :gpg_key + + # URI for this repository. + # 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) + @archive_type = args[:archive_type] if args.key?(:archive_type) + @components = args[:components] if args.key?(:components) + @distribution = args[:distribution] if args.key?(:distribution) + @gpg_key = args[:gpg_key] if args.key?(:gpg_key) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Represents a Goo package repository. These will be added to a repo file + # that will be managed at C:/ProgramData/GooGet/repos/google_osconfig.repo. + class RepositoryResourceGooRepository + include Google::Apis::Core::Hashable + + # The name of the repository. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The url of the repository. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) + end + end + + # Represents a single yum package repository. These will be added to a repo + # file that will be managed at /etc/yum.repos.d/google_osconfig.repo. + class RepositoryResourceYumRepository + include Google::Apis::Core::Hashable + + # The location of the repository directory. + # Corresponds to the JSON property `baseUrl` + # @return [String] + attr_accessor :base_url + + # The display name of the repository. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # URIs of GPG keys. + # Corresponds to the JSON property `gpgKeys` + # @return [Array] + attr_accessor :gpg_keys + + # A one word, unique name for this repository. This will be + # the `repo id` in the yum config file and also the `display_name` if + # `display_name` is omitted. This id is also used as the unique identifier + # when checking for resource conflicts. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @base_url = args[:base_url] if args.key?(:base_url) + @display_name = args[:display_name] if args.key?(:display_name) + @gpg_keys = args[:gpg_keys] if args.key?(:gpg_keys) + @id = args[:id] if args.key?(:id) + end + end + + # Represents a single zypper package repository. These will be added to a + # repo file that will be managed at /etc/zypp/repos.d/google_osconfig.repo. + class RepositoryResourceZypperRepository + include Google::Apis::Core::Hashable + + # The location of the repository directory. + # Corresponds to the JSON property `baseUrl` + # @return [String] + attr_accessor :base_url + + # The display name of the repository. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # URIs of GPG keys. + # Corresponds to the JSON property `gpgKeys` + # @return [Array] + attr_accessor :gpg_keys + + # A one word, unique name for this repository. This will be + # the `repo id` in the zypper config file and also the `display_name` if + # `display_name` is omitted. This id is also used as the unique identifier + # when checking for GuestPolicy conflicts. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @base_url = args[:base_url] if args.key?(:base_url) + @display_name = args[:display_name] if args.key?(:display_name) + @gpg_keys = args[:gpg_keys] if args.key?(:gpg_keys) + @id = args[:id] if args.key?(:id) + end + end + + # A resource that manages a system service. + class ServiceResource + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A software recipe is a set of instructions for installing and configuring a # piece of software. It consists of a set of artifacts that are # downloaded, and a set of steps that install, configure, and/or update the diff --git a/generated/google/apis/osconfig_v1beta/representations.rb b/generated/google/apis/osconfig_v1beta/representations.rb index adaa51bf2..a3ecf3648 100644 --- a/generated/google/apis/osconfig_v1beta/representations.rb +++ b/generated/google/apis/osconfig_v1beta/representations.rb @@ -88,6 +88,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExecResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExecResourceExec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExecStep class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,6 +118,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExtractArchiveResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class File + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FileGcs + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FileRemote + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FileResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FixedOrPercent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -190,6 +232,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PackageResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PackageResourceApt + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PackageResourceDeb + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PackageResourceGooGet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PackageResourceMsi + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PackageResourceRpm + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PackageResourceYum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PackageResourceZypper + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PatchConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +334,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RepositoryResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepositoryResourceAptRepository + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepositoryResourceGooRepository + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepositoryResourceYumRepository + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepositoryResourceZypperRepository + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ServiceResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SoftwareRecipe class Representation < Google::Apis::Core::JsonRepresentation; end @@ -470,6 +596,28 @@ module Google end end + class ExecResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enforce, as: 'enforce', class: Google::Apis::OsconfigV1beta::ExecResourceExec, decorator: Google::Apis::OsconfigV1beta::ExecResourceExec::Representation + + property :validate, as: 'validate', class: Google::Apis::OsconfigV1beta::ExecResourceExec, decorator: Google::Apis::OsconfigV1beta::ExecResourceExec::Representation + + end + end + + class ExecResourceExec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_success_codes, as: 'allowedSuccessCodes' + collection :args, as: 'args' + property :file, as: 'file', class: Google::Apis::OsconfigV1beta::File, decorator: Google::Apis::OsconfigV1beta::File::Representation + + property :interpreter, as: 'interpreter' + property :script, as: 'script' + end + end + class ExecStep # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -507,6 +655,59 @@ module Google end end + class ExtractArchiveResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creates, as: 'creates' + property :destination, as: 'destination' + property :overwrite, as: 'overwrite' + property :source, as: 'source', class: Google::Apis::OsconfigV1beta::File, decorator: Google::Apis::OsconfigV1beta::File::Representation + + property :type, as: 'type' + end + end + + class File + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_insecure, as: 'allowInsecure' + property :gcs, as: 'gcs', class: Google::Apis::OsconfigV1beta::FileGcs, decorator: Google::Apis::OsconfigV1beta::FileGcs::Representation + + property :local_path, as: 'localPath' + property :remote, as: 'remote', class: Google::Apis::OsconfigV1beta::FileRemote, decorator: Google::Apis::OsconfigV1beta::FileRemote::Representation + + end + end + + class FileGcs + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket, as: 'bucket' + property :generation, :numeric_string => true, as: 'generation' + property :object, as: 'object' + end + end + + class FileRemote + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sha256_checksum, as: 'sha256Checksum' + property :uri, as: 'uri' + end + end + + class FileResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :file, as: 'file', class: Google::Apis::OsconfigV1beta::File, decorator: Google::Apis::OsconfigV1beta::File::Representation + + property :path, as: 'path' + property :permissions, as: 'permissions' + property :state, as: 'state' + end + end + class FixedOrPercent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -641,6 +842,83 @@ module Google end end + class PackageResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :apt, as: 'apt', class: Google::Apis::OsconfigV1beta::PackageResourceApt, decorator: Google::Apis::OsconfigV1beta::PackageResourceApt::Representation + + property :deb, as: 'deb', class: Google::Apis::OsconfigV1beta::PackageResourceDeb, decorator: Google::Apis::OsconfigV1beta::PackageResourceDeb::Representation + + property :desired_state, as: 'desiredState' + property :googet, as: 'googet', class: Google::Apis::OsconfigV1beta::PackageResourceGooGet, decorator: Google::Apis::OsconfigV1beta::PackageResourceGooGet::Representation + + property :msi, as: 'msi', class: Google::Apis::OsconfigV1beta::PackageResourceMsi, decorator: Google::Apis::OsconfigV1beta::PackageResourceMsi::Representation + + property :rpm, as: 'rpm', class: Google::Apis::OsconfigV1beta::PackageResourceRpm, decorator: Google::Apis::OsconfigV1beta::PackageResourceRpm::Representation + + property :yum, as: 'yum', class: Google::Apis::OsconfigV1beta::PackageResourceYum, decorator: Google::Apis::OsconfigV1beta::PackageResourceYum::Representation + + property :zypper, as: 'zypper', class: Google::Apis::OsconfigV1beta::PackageResourceZypper, decorator: Google::Apis::OsconfigV1beta::PackageResourceZypper::Representation + + end + end + + class PackageResourceApt + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class PackageResourceDeb + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pull_deps, as: 'pullDeps' + property :source, as: 'source', class: Google::Apis::OsconfigV1beta::File, decorator: Google::Apis::OsconfigV1beta::File::Representation + + end + end + + class PackageResourceGooGet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class PackageResourceMsi + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_success_codes, as: 'allowedSuccessCodes' + collection :flags, as: 'flags' + property :source, as: 'source', class: Google::Apis::OsconfigV1beta::File, decorator: Google::Apis::OsconfigV1beta::File::Representation + + end + end + + class PackageResourceRpm + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pull_deps, as: 'pullDeps' + property :source, as: 'source', class: Google::Apis::OsconfigV1beta::File, decorator: Google::Apis::OsconfigV1beta::File::Representation + + end + end + + class PackageResourceYum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class PackageResourceZypper + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + class PatchConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -788,6 +1066,65 @@ module Google end end + class RepositoryResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :apt, as: 'apt', class: Google::Apis::OsconfigV1beta::RepositoryResourceAptRepository, decorator: Google::Apis::OsconfigV1beta::RepositoryResourceAptRepository::Representation + + property :goo, as: 'goo', class: Google::Apis::OsconfigV1beta::RepositoryResourceGooRepository, decorator: Google::Apis::OsconfigV1beta::RepositoryResourceGooRepository::Representation + + property :yum, as: 'yum', class: Google::Apis::OsconfigV1beta::RepositoryResourceYumRepository, decorator: Google::Apis::OsconfigV1beta::RepositoryResourceYumRepository::Representation + + property :zypper, as: 'zypper', class: Google::Apis::OsconfigV1beta::RepositoryResourceZypperRepository, decorator: Google::Apis::OsconfigV1beta::RepositoryResourceZypperRepository::Representation + + end + end + + class RepositoryResourceAptRepository + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :archive_type, as: 'archiveType' + collection :components, as: 'components' + property :distribution, as: 'distribution' + property :gpg_key, as: 'gpgKey' + property :uri, as: 'uri' + end + end + + class RepositoryResourceGooRepository + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :url, as: 'url' + end + end + + class RepositoryResourceYumRepository + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :base_url, as: 'baseUrl' + property :display_name, as: 'displayName' + collection :gpg_keys, as: 'gpgKeys' + property :id, as: 'id' + end + end + + class RepositoryResourceZypperRepository + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :base_url, as: 'baseUrl' + property :display_name, as: 'displayName' + collection :gpg_keys, as: 'gpgKeys' + property :id, as: 'id' + end + end + + class ServiceResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class SoftwareRecipe # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/oslogin_v1.rb b/generated/google/apis/oslogin_v1.rb index eff3ecac1..8ed6f8791 100644 --- a/generated/google/apis/oslogin_v1.rb +++ b/generated/google/apis/oslogin_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/ module OsloginV1 VERSION = 'V1' - REVISION = '20200215' + REVISION = '20200801' # 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/oslogin_v1/classes.rb b/generated/google/apis/oslogin_v1/classes.rb index 15035035a..07d76e4ef 100644 --- a/generated/google/apis/oslogin_v1/classes.rb +++ b/generated/google/apis/oslogin_v1/classes.rb @@ -22,13 +22,11 @@ module Google module Apis module OsloginV1 - # 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -138,8 +136,8 @@ module Google # @return [String] attr_accessor :shell - # System identifier for which account the username or uid applies to. - # By default, the empty value is used. + # System identifier for which account the username or uid applies to. By default, + # the empty value is used. # Corresponds to the JSON property `systemId` # @return [String] attr_accessor :system_id @@ -188,9 +186,7 @@ module Google # @return [String] attr_accessor :fingerprint - # Public key text in SSH format, defined by - # RFC4253 - # section 6.6. + # Public key text in SSH format, defined by RFC4253 section 6.6. # Corresponds to the JSON property `key` # @return [String] attr_accessor :key diff --git a/generated/google/apis/oslogin_v1/service.rb b/generated/google/apis/oslogin_v1/service.rb index 4ae26d50f..27f276560 100644 --- a/generated/google/apis/oslogin_v1/service.rb +++ b/generated/google/apis/oslogin_v1/service.rb @@ -47,8 +47,8 @@ module Google @batch_path = 'batch' end - # Retrieves the profile information used for logging in to a virtual machine - # on Google Compute Engine. + # Retrieves the profile information used for logging in to a virtual machine on + # Google Compute Engine. # @param [String] name # Required. The unique ID for the user in format `users/`user``. # @param [String] project_id @@ -85,8 +85,8 @@ module Google end # Adds an SSH public key and returns the profile information. Default POSIX - # account information is set when no username and UID exist as part of the - # login profile. + # account information is set when no username and UID exist as part of the login + # profile. # @param [String] parent # Required. The unique ID for the user in format `users/`user``. # @param [Google::Apis::OsloginV1::SshPublicKey] ssh_public_key_object @@ -125,9 +125,8 @@ module Google # Deletes a POSIX account. # @param [String] name # Required. A reference to the POSIX account to update. POSIX accounts are - # identified - # by the project ID they are associated with. A reference to the POSIX - # account is in format `users/`user`/projects/`project``. + # identified by the project ID they are associated with. A reference to the + # POSIX account is in format `users/`user`/projects/`project``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -158,9 +157,8 @@ module Google # Deletes an SSH public key. # @param [String] name # Required. The fingerprint of the public key to update. Public keys are - # identified by - # their SHA-256 fingerprint. The fingerprint of the public key is in format - # `users/`user`/sshPublicKeys/`fingerprint``. + # identified by their SHA-256 fingerprint. The fingerprint of the public key is + # in format `users/`user`/sshPublicKeys/`fingerprint``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -191,9 +189,8 @@ module Google # Retrieves an SSH public key. # @param [String] name # Required. The fingerprint of the public key to retrieve. Public keys are - # identified - # by their SHA-256 fingerprint. The fingerprint of the public key is in - # format `users/`user`/sshPublicKeys/`fingerprint``. + # identified by their SHA-256 fingerprint. The fingerprint of the public key is + # in format `users/`user`/sshPublicKeys/`fingerprint``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -225,9 +222,8 @@ module Google # supports patch semantics. # @param [String] name # Required. The fingerprint of the public key to update. Public keys are - # identified by - # their SHA-256 fingerprint. The fingerprint of the public key is in format - # `users/`user`/sshPublicKeys/`fingerprint``. + # identified by their SHA-256 fingerprint. The fingerprint of the public key is + # in format `users/`user`/sshPublicKeys/`fingerprint``. # @param [Google::Apis::OsloginV1::SshPublicKey] ssh_public_key_object # @param [String] update_mask # Mask to control which fields get updated. Updates all if not present. diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index 72bedd762..d3d3f1a36 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20200730' + REVISION = '20200805' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index c7f15f034..4a773f362 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -291,6 +291,38 @@ module Google end end + # Arbitrary client data that is populated by clients. Duplicate keys and values + # are allowed. + class ClientData + include Google::Apis::Core::Hashable + + # The client specified key of the client data. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The client specified value of the client data. + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + # A contact group. class ContactGroup include Google::Apis::Core::Hashable @@ -468,8 +500,8 @@ module Google # Optional. A field mask to restrict which fields on the person are returned. # Multiple fields can be specified by separating them with commas. Defaults to # the copy mask with metadata and membership fields if not set. Valid values are: - # * addresses * ageRanges * biographies * birthdays * calendarUrls * - # coverPhotos * emailAddresses * events * externalIds * genders * imClients * + # * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData + # * coverPhotos * emailAddresses * events * externalIds * genders * imClients * # interests * locales * memberships * metadata * miscKeywords * names * # nicknames * occupations * organizations * phoneNumbers * photos * relations * # residences * sipAddresses * skills * urls * userDefined @@ -1601,6 +1633,11 @@ module Google # @return [Array] attr_accessor :calendar_urls + # The person's client data. + # Corresponds to the JSON property `clientData` + # @return [Array] + attr_accessor :client_data + # Output only. The person's cover photos. # Corresponds to the JSON property `coverPhotos` # @return [Array] @@ -1763,6 +1800,7 @@ module Google @birthdays = args[:birthdays] if args.key?(:birthdays) @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights) @calendar_urls = args[:calendar_urls] if args.key?(:calendar_urls) + @client_data = args[:client_data] if args.key?(:client_data) @cover_photos = args[:cover_photos] if args.key?(:cover_photos) @email_addresses = args[:email_addresses] if args.key?(:email_addresses) @etag = args[:etag] if args.key?(:etag) @@ -2386,11 +2424,11 @@ module Google # Optional. A field mask to restrict which fields on the person are returned. # Multiple fields can be specified by separating them with commas. Defaults to # empty if not set, which will skip the post mutate get. Valid values are: * - # addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * - # emailAddresses * events * externalIds * genders * imClients * interests * - # locales * memberships * metadata * miscKeywords * names * nicknames * - # occupations * organizations * phoneNumbers * photos * relations * residences * - # sipAddresses * skills * urls * userDefined + # addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * + # coverPhotos * emailAddresses * events * externalIds * genders * imClients * + # interests * locales * memberships * metadata * miscKeywords * names * + # nicknames * occupations * organizations * phoneNumbers * photos * relations * + # residences * sipAddresses * skills * urls * userDefined # Corresponds to the JSON property `personFields` # @return [String] attr_accessor :person_fields diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index 9a6487f9e..bc274662a 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -64,6 +64,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ClientData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ContactGroup class Representation < Google::Apis::Core::JsonRepresentation; end @@ -465,6 +471,16 @@ module Google end end + class ClientData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + class ContactGroup # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -830,6 +846,8 @@ module Google collection :calendar_urls, as: 'calendarUrls', class: Google::Apis::PeopleV1::CalendarUrl, decorator: Google::Apis::PeopleV1::CalendarUrl::Representation + collection :client_data, as: 'clientData', class: Google::Apis::PeopleV1::ClientData, decorator: Google::Apis::PeopleV1::ClientData::Representation + collection :cover_photos, as: 'coverPhotos', class: Google::Apis::PeopleV1::CoverPhoto, decorator: Google::Apis::PeopleV1::CoverPhoto::Representation collection :email_addresses, as: 'emailAddresses', class: Google::Apis::PeopleV1::EmailAddress, decorator: Google::Apis::PeopleV1::EmailAddress::Representation diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index fe3e26cd2..b6fa2d822 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -391,9 +391,9 @@ module Google # Required. A field mask to restrict which fields on each person are returned. # Multiple fields can be specified by separating them with commas. Defaults to # all fields if not set. Valid values are: * addresses * ageRanges * biographies - # * birthdays * calendarUrls * coverPhotos * emailAddresses * events * - # externalIds * genders * imClients * interests * locales * memberships * - # metadata * miscKeywords * names * nicknames * occupations * organizations * + # * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * + # events * externalIds * genders * imClients * interests * locales * memberships + # * metadata * miscKeywords * names * nicknames * occupations * organizations * # phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * # userDefined # @param [Array, String] sources @@ -466,11 +466,11 @@ module Google # Optional. A field mask to restrict which fields on the person are returned. # Multiple fields can be specified by separating them with commas. Defaults to # empty if not set, which will skip the post mutate get. Valid values are: * - # addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * - # emailAddresses * events * externalIds * genders * imClients * interests * - # locales * memberships * metadata * miscKeywords * names * nicknames * - # occupations * organizations * phoneNumbers * photos * relations * residences * - # sipAddresses * skills * urls * userDefined + # addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * + # coverPhotos * emailAddresses * events * externalIds * genders * imClients * + # interests * locales * memberships * metadata * miscKeywords * names * + # nicknames * occupations * organizations * phoneNumbers * photos * relations * + # residences * sipAddresses * skills * urls * userDefined # @param [Array, String] sources # Optional. A mask of what source types to return. Defaults to ReadSourceType. # CONTACT and ReadSourceType.PROFILE if not set. @@ -517,10 +517,10 @@ module Google # Required. A field mask to restrict which fields on the person are returned. # Multiple fields can be specified by separating them with commas. Valid values # are: * addresses * ageRanges * biographies * birthdays * calendarUrls * - # coverPhotos * emailAddresses * events * externalIds * genders * imClients * - # interests * locales * memberships * metadata * miscKeywords * names * - # nicknames * occupations * organizations * phoneNumbers * photos * relations * - # residences * sipAddresses * skills * urls * userDefined + # clientData * coverPhotos * emailAddresses * events * externalIds * genders * + # imClients * interests * locales * memberships * metadata * miscKeywords * + # names * nicknames * occupations * organizations * phoneNumbers * photos * + # relations * residences * sipAddresses * skills * urls * userDefined # @param [String] request_mask_include_field # Required. Comma-separated list of person fields to be included in the response. # Each path should start with `person.`: for example, `person.names` or `person. @@ -565,10 +565,10 @@ module Google # Required. A field mask to restrict which fields on each person are returned. # Multiple fields can be specified by separating them with commas. Valid values # are: * addresses * ageRanges * biographies * birthdays * calendarUrls * - # coverPhotos * emailAddresses * events * externalIds * genders * imClients * - # interests * locales * memberships * metadata * miscKeywords * names * - # nicknames * occupations * organizations * phoneNumbers * photos * relations * - # residences * sipAddresses * skills * urls * userDefined + # clientData * coverPhotos * emailAddresses * events * externalIds * genders * + # imClients * interests * locales * memberships * metadata * miscKeywords * + # names * nicknames * occupations * organizations * phoneNumbers * photos * + # relations * residences * sipAddresses * skills * urls * userDefined # @param [String] request_mask_include_field # Required. Comma-separated list of person fields to be included in the response. # Each path should start with `person.`: for example, `person.names` or `person. @@ -630,10 +630,10 @@ module Google # Required. A field mask to restrict which fields on each person are returned. # Multiple fields can be specified by separating them with commas. Valid values # are: * addresses * ageRanges * biographies * birthdays * calendarUrls * - # coverPhotos * emailAddresses * events * externalIds * genders * imClients * - # interests * locales * memberships * metadata * miscKeywords * names * - # nicknames * occupations * organizations * phoneNumbers * photos * relations * - # residences * sipAddresses * skills * urls * userDefined + # clientData * coverPhotos * emailAddresses * events * externalIds * genders * + # imClients * interests * locales * memberships * metadata * miscKeywords * + # names * nicknames * occupations * organizations * phoneNumbers * photos * + # relations * residences * sipAddresses * skills * urls * userDefined # @param [Boolean] request_sync_token # Optional. Whether the response should include `next_sync_token`, which can be # used to get all changes since the last request. For subsequent sync requests @@ -698,10 +698,10 @@ module Google # Required. A field mask to restrict which fields on each person are returned. # Multiple fields can be specified by separating them with commas. Valid values # are: * addresses * ageRanges * biographies * birthdays * calendarUrls * - # coverPhotos * emailAddresses * events * externalIds * genders * imClients * - # interests * locales * memberships * metadata * miscKeywords * names * - # nicknames * occupations * organizations * phoneNumbers * photos * relations * - # residences * sipAddresses * skills * urls * userDefined + # clientData * coverPhotos * emailAddresses * events * externalIds * genders * + # imClients * interests * locales * memberships * metadata * miscKeywords * + # names * nicknames * occupations * organizations * phoneNumbers * photos * + # relations * residences * sipAddresses * skills * urls * userDefined # @param [Array, String] sources # Required. Directory sources to return. # @param [String] fields @@ -757,9 +757,9 @@ module Google # Optional. A field mask to restrict which fields on each person are returned. # Multiple fields can be specified by separating them with commas. Defaults to # all fields if not set. Valid values are: * addresses * ageRanges * biographies - # * birthdays * calendarUrls * coverPhotos * emailAddresses * events * - # externalIds * genders * imClients * interests * locales * memberships * - # metadata * miscKeywords * names * nicknames * occupations * organizations * + # * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * + # events * externalIds * genders * imClients * interests * locales * memberships + # * metadata * miscKeywords * names * nicknames * occupations * organizations * # phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * # userDefined # @param [Array, String] sources @@ -769,9 +769,9 @@ module Google # Required. A field mask to restrict which fields on the person are updated. # Multiple fields can be specified by separating them with commas. All updated # fields will be replaced. Valid values are: * addresses * biographies * - # birthdays * calendarUrls * emailAddresses * events * externalIds * genders * - # imClients * interests * locales * memberships * miscKeywords * names * - # nicknames * occupations * organizations * phoneNumbers * relations * + # birthdays * calendarUrls * clientData * emailAddresses * events * externalIds * + # genders * imClients * interests * locales * memberships * miscKeywords * + # names * nicknames * occupations * organizations * phoneNumbers * relations * # residences * sipAddresses * urls * userDefined # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -855,10 +855,10 @@ module Google # Required. A field mask to restrict which fields on each person are returned. # Multiple fields can be specified by separating them with commas. Valid values # are: * addresses * ageRanges * biographies * birthdays * calendarUrls * - # coverPhotos * emailAddresses * events * externalIds * genders * imClients * - # interests * locales * memberships * metadata * miscKeywords * names * - # nicknames * occupations * organizations * phoneNumbers * photos * relations * - # residences * sipAddresses * skills * urls * userDefined + # clientData * coverPhotos * emailAddresses * events * externalIds * genders * + # imClients * interests * locales * memberships * metadata * miscKeywords * + # names * nicknames * occupations * organizations * phoneNumbers * photos * + # relations * residences * sipAddresses * skills * urls * userDefined # @param [String] request_mask_include_field # Required. Comma-separated list of person fields to be included in the response. # Each path should start with `person.`: for example, `person.names` or `person. diff --git a/generated/google/apis/webfonts_v1.rb b/generated/google/apis/pubsublite_v1.rb similarity index 60% rename from generated/google/apis/webfonts_v1.rb rename to generated/google/apis/pubsublite_v1.rb index a594a611e..a8bbebec2 100644 --- a/generated/google/apis/webfonts_v1.rb +++ b/generated/google/apis/pubsublite_v1.rb @@ -12,22 +12,23 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'google/apis/webfonts_v1/service.rb' -require 'google/apis/webfonts_v1/classes.rb' -require 'google/apis/webfonts_v1/representations.rb' +require 'google/apis/pubsublite_v1/service.rb' +require 'google/apis/pubsublite_v1/classes.rb' +require 'google/apis/pubsublite_v1/representations.rb' module Google module Apis - # Web Fonts Developer API + # Pub/Sub Lite API # - # The Google Web Fonts Developer API lets you retrieve information about web - # fonts served - # by Google. + # # - # @see https://developers.google.com/fonts/docs/developer_api - module WebfontsV1 + # @see https://cloud.google.com/pubsub/lite/docs + module PubsubliteV1 VERSION = 'V1' - REVISION = '20200720' + REVISION = '20200728' + + # 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/pubsublite_v1/classes.rb b/generated/google/apis/pubsublite_v1/classes.rb new file mode 100644 index 000000000..df7cc5df5 --- /dev/null +++ b/generated/google/apis/pubsublite_v1/classes.rb @@ -0,0 +1,395 @@ +# 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 PubsubliteV1 + + # The throughput capacity configuration for each partition. + class Capacity + include Google::Apis::Core::Hashable + + # Publish throughput capacity per partition in MiB/s. + # Must be >= 4 and <= 16. + # Corresponds to the JSON property `publishMibPerSec` + # @return [Fixnum] + attr_accessor :publish_mib_per_sec + + # Subscribe throughput capacity per partition in MiB/s. + # Must be >= 4 and <= 32. + # Corresponds to the JSON property `subscribeMibPerSec` + # @return [Fixnum] + attr_accessor :subscribe_mib_per_sec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @publish_mib_per_sec = args[:publish_mib_per_sec] if args.key?(:publish_mib_per_sec) + @subscribe_mib_per_sec = args[:subscribe_mib_per_sec] if args.key?(:subscribe_mib_per_sec) + end + end + + # A cursor that describes the position of a message within a topic partition. + class Cursor + include Google::Apis::Core::Hashable + + # The offset of a message within a topic partition. Must be greater than or + # equal 0. + # Corresponds to the JSON property `offset` + # @return [Fixnum] + attr_accessor :offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @offset = args[:offset] if args.key?(:offset) + end + end + + # The settings for a subscription's message delivery. + class DeliveryConfig + include Google::Apis::Core::Hashable + + # The DeliveryRequirement for this subscription. + # Corresponds to the JSON property `deliveryRequirement` + # @return [String] + attr_accessor :delivery_requirement + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delivery_requirement = args[:delivery_requirement] if args.key?(:delivery_requirement) + 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 Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response for ListPartitionCursors + class ListPartitionCursorsResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The partition cursors from this request. + # Corresponds to the JSON property `partitionCursors` + # @return [Array] + attr_accessor :partition_cursors + + 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) + @partition_cursors = args[:partition_cursors] if args.key?(:partition_cursors) + end + end + + # Response for ListSubscriptions. + class ListSubscriptionsResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page of + # results. If this field is omitted, there are no more results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of subscriptions in the requested parent. The order of the + # subscriptions is unspecified. + # Corresponds to the JSON property `subscriptions` + # @return [Array] + attr_accessor :subscriptions + + 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) + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) + end + end + + # Response for ListTopicSubscriptions. + class ListTopicSubscriptionsResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page of + # results. If this field is omitted, there are no more results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The names of subscriptions attached to the topic. The order of the + # subscriptions is unspecified. + # Corresponds to the JSON property `subscriptions` + # @return [Array] + attr_accessor :subscriptions + + 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) + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) + end + end + + # Response for ListTopics. + class ListTopicsResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page of + # results. If this field is omitted, there are no more results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of topic in the requested parent. The order of the topics is + # unspecified. + # Corresponds to the JSON property `topics` + # @return [Array] + attr_accessor :topics + + 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) + @topics = args[:topics] if args.key?(:topics) + end + end + + # The settings for a topic's partitions. + class PartitionConfig + include Google::Apis::Core::Hashable + + # The throughput capacity configuration for each partition. + # Corresponds to the JSON property `capacity` + # @return [Google::Apis::PubsubliteV1::Capacity] + attr_accessor :capacity + + # The number of partitions in the topic. Must be at least 1. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # Every partition in the topic is allocated throughput equivalent to + # `scale` times the standard partition throughput (4 MiB/s). This is also + # reflected in the cost of this topic; a topic with `scale` of 2 and + # count of 10 is charged for 20 partitions. This value must be in the + # range [1,4]. + # Corresponds to the JSON property `scale` + # @return [Fixnum] + attr_accessor :scale + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @capacity = args[:capacity] if args.key?(:capacity) + @count = args[:count] if args.key?(:count) + @scale = args[:scale] if args.key?(:scale) + end + end + + # A pair of a Cursor and the partition it is for. + class PartitionCursor + include Google::Apis::Core::Hashable + + # A cursor that describes the position of a message within a topic partition. + # Corresponds to the JSON property `cursor` + # @return [Google::Apis::PubsubliteV1::Cursor] + attr_accessor :cursor + + # The partition this is for. + # Corresponds to the JSON property `partition` + # @return [Fixnum] + attr_accessor :partition + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cursor = args[:cursor] if args.key?(:cursor) + @partition = args[:partition] if args.key?(:partition) + end + end + + # The settings for a topic's message retention. + class RetentionConfig + include Google::Apis::Core::Hashable + + # The provisioned storage, in bytes, per partition. If the number of bytes + # stored in any of the topic's partitions grows beyond this value, older + # messages will be dropped to make room for newer ones, regardless of the + # value of `period`. + # Corresponds to the JSON property `perPartitionBytes` + # @return [Fixnum] + attr_accessor :per_partition_bytes + + # How long a published message is retained. If unset, messages will be + # retained as long as the bytes retained for each partition is below + # `per_partition_bytes`. + # Corresponds to the JSON property `period` + # @return [String] + attr_accessor :period + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @per_partition_bytes = args[:per_partition_bytes] if args.key?(:per_partition_bytes) + @period = args[:period] if args.key?(:period) + end + end + + # Metadata about a subscription resource. + class Subscription + include Google::Apis::Core::Hashable + + # The settings for a subscription's message delivery. + # Corresponds to the JSON property `deliveryConfig` + # @return [Google::Apis::PubsubliteV1::DeliveryConfig] + attr_accessor :delivery_config + + # The name of the subscription. + # Structured like: + # projects/`project_number`/locations/`location`/subscriptions/`subscription_id` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The name of the topic this subscription is attached to. + # Structured like: + # projects/`project_number`/locations/`location`/topics/`topic_id` + # Corresponds to the JSON property `topic` + # @return [String] + attr_accessor :topic + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delivery_config = args[:delivery_config] if args.key?(:delivery_config) + @name = args[:name] if args.key?(:name) + @topic = args[:topic] if args.key?(:topic) + end + end + + # Metadata about a topic resource. + class Topic + include Google::Apis::Core::Hashable + + # The name of the topic. + # Structured like: + # projects/`project_number`/locations/`location`/topics/`topic_id` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The settings for a topic's partitions. + # Corresponds to the JSON property `partitionConfig` + # @return [Google::Apis::PubsubliteV1::PartitionConfig] + attr_accessor :partition_config + + # The settings for a topic's message retention. + # Corresponds to the JSON property `retentionConfig` + # @return [Google::Apis::PubsubliteV1::RetentionConfig] + attr_accessor :retention_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @partition_config = args[:partition_config] if args.key?(:partition_config) + @retention_config = args[:retention_config] if args.key?(:retention_config) + end + end + + # Response for GetTopicPartitions. + class TopicPartitions + include Google::Apis::Core::Hashable + + # The number of partitions in the topic. + # Corresponds to the JSON property `partitionCount` + # @return [Fixnum] + attr_accessor :partition_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @partition_count = args[:partition_count] if args.key?(:partition_count) + end + end + end + end +end diff --git a/generated/google/apis/pubsublite_v1/representations.rb b/generated/google/apis/pubsublite_v1/representations.rb new file mode 100644 index 000000000..91935b1d5 --- /dev/null +++ b/generated/google/apis/pubsublite_v1/representations.rb @@ -0,0 +1,228 @@ +# 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 PubsubliteV1 + + class Capacity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Cursor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeliveryConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListPartitionCursorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListSubscriptionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTopicSubscriptionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTopicsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartitionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartitionCursor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RetentionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Subscription + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Topic + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TopicPartitions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Capacity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :publish_mib_per_sec, as: 'publishMibPerSec' + property :subscribe_mib_per_sec, as: 'subscribeMibPerSec' + end + end + + class Cursor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :offset, :numeric_string => true, as: 'offset' + end + end + + class DeliveryConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delivery_requirement, as: 'deliveryRequirement' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListPartitionCursorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :partition_cursors, as: 'partitionCursors', class: Google::Apis::PubsubliteV1::PartitionCursor, decorator: Google::Apis::PubsubliteV1::PartitionCursor::Representation + + end + end + + class ListSubscriptionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubliteV1::Subscription, decorator: Google::Apis::PubsubliteV1::Subscription::Representation + + end + end + + class ListTopicSubscriptionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :subscriptions, as: 'subscriptions' + end + end + + class ListTopicsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :topics, as: 'topics', class: Google::Apis::PubsubliteV1::Topic, decorator: Google::Apis::PubsubliteV1::Topic::Representation + + end + end + + class PartitionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :capacity, as: 'capacity', class: Google::Apis::PubsubliteV1::Capacity, decorator: Google::Apis::PubsubliteV1::Capacity::Representation + + property :count, :numeric_string => true, as: 'count' + property :scale, as: 'scale' + end + end + + class PartitionCursor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cursor, as: 'cursor', class: Google::Apis::PubsubliteV1::Cursor, decorator: Google::Apis::PubsubliteV1::Cursor::Representation + + property :partition, :numeric_string => true, as: 'partition' + end + end + + class RetentionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :per_partition_bytes, :numeric_string => true, as: 'perPartitionBytes' + property :period, as: 'period' + end + end + + class Subscription + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delivery_config, as: 'deliveryConfig', class: Google::Apis::PubsubliteV1::DeliveryConfig, decorator: Google::Apis::PubsubliteV1::DeliveryConfig::Representation + + property :name, as: 'name' + property :topic, as: 'topic' + end + end + + class Topic + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :partition_config, as: 'partitionConfig', class: Google::Apis::PubsubliteV1::PartitionConfig, decorator: Google::Apis::PubsubliteV1::PartitionConfig::Representation + + property :retention_config, as: 'retentionConfig', class: Google::Apis::PubsubliteV1::RetentionConfig, decorator: Google::Apis::PubsubliteV1::RetentionConfig::Representation + + end + end + + class TopicPartitions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :partition_count, :numeric_string => true, as: 'partitionCount' + end + end + end + end +end diff --git a/generated/google/apis/pubsublite_v1/service.rb b/generated/google/apis/pubsublite_v1/service.rb new file mode 100644 index 000000000..e55504c4e --- /dev/null +++ b/generated/google/apis/pubsublite_v1/service.rb @@ -0,0 +1,534 @@ +# 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 PubsubliteV1 + # Pub/Sub Lite API + # + # + # + # @example + # require 'google/apis/pubsublite_v1' + # + # Pubsublite = Google::Apis::PubsubliteV1 # Alias the module + # service = Pubsublite::PubsubLiteService.new + # + # @see https://cloud.google.com/pubsub/lite/docs + class PubsubLiteService < 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://pubsublite.googleapis.com/', '') + @batch_path = 'batch' + end + + # Creates a new subscription. + # @param [String] parent + # Required. The parent location in which to create the subscription. + # Structured like `projects/`project_number`/locations/`location``. + # @param [Google::Apis::PubsubliteV1::Subscription] subscription_object + # @param [String] subscription_id + # Required. The ID to use for the subscription, which will become the final + # component + # of the subscription's name. + # This value is structured like: `my-sub-name`. + # @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::PubsubliteV1::Subscription] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Subscription] + # + # @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_admin_project_location_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/admin/{+parent}/subscriptions', options) + command.request_representation = Google::Apis::PubsubliteV1::Subscription::Representation + command.request_object = subscription_object + command.response_representation = Google::Apis::PubsubliteV1::Subscription::Representation + command.response_class = Google::Apis::PubsubliteV1::Subscription + command.params['parent'] = parent unless parent.nil? + command.query['subscriptionId'] = subscription_id unless subscription_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified subscription. + # @param [String] name + # Required. The name of the subscription to delete. + # @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::PubsubliteV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Empty] + # + # @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_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/admin/{+name}', options) + command.response_representation = Google::Apis::PubsubliteV1::Empty::Representation + command.response_class = Google::Apis::PubsubliteV1::Empty + 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 + + # Returns the subscription configuration. + # @param [String] name + # Required. The name of the subscription whose configuration to return. + # @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::PubsubliteV1::Subscription] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Subscription] + # + # @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_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/admin/{+name}', options) + command.response_representation = Google::Apis::PubsubliteV1::Subscription::Representation + command.response_class = Google::Apis::PubsubliteV1::Subscription + 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 + + # Returns the list of subscriptions for the given project. + # @param [String] parent + # Required. The parent whose subscriptions are to be listed. + # Structured like `projects/`project_number`/locations/`location``. + # @param [Fixnum] page_size + # The maximum number of subscriptions to return. The service may return fewer + # than this value. + # If unset or zero, all subscriptions for the parent will be returned. + # @param [String] page_token + # A page token, received from a previous `ListSubscriptions` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListSubscriptions` must + # match the call that provided the 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::PubsubliteV1::ListSubscriptionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::ListSubscriptionsResponse] + # + # @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_admin_project_location_subscriptions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/admin/{+parent}/subscriptions', options) + command.response_representation = Google::Apis::PubsubliteV1::ListSubscriptionsResponse::Representation + command.response_class = Google::Apis::PubsubliteV1::ListSubscriptionsResponse + 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 properties of the specified subscription. + # @param [String] name + # The name of the subscription. + # Structured like: + # projects/`project_number`/locations/`location`/subscriptions/`subscription_id` + # @param [Google::Apis::PubsubliteV1::Subscription] subscription_object + # @param [String] update_mask + # Required. A mask specifying the subscription fields to change. + # @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::PubsubliteV1::Subscription] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Subscription] + # + # @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_admin_project_location_subscription(name, subscription_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/admin/{+name}', options) + command.request_representation = Google::Apis::PubsubliteV1::Subscription::Representation + command.request_object = subscription_object + command.response_representation = Google::Apis::PubsubliteV1::Subscription::Representation + command.response_class = Google::Apis::PubsubliteV1::Subscription + 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 new topic. + # @param [String] parent + # Required. The parent location in which to create the topic. + # Structured like `projects/`project_number`/locations/`location``. + # @param [Google::Apis::PubsubliteV1::Topic] topic_object + # @param [String] topic_id + # Required. The ID to use for the topic, which will become the final component + # of + # the topic's name. + # This value is structured like: `my-topic-name`. + # @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::PubsubliteV1::Topic] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Topic] + # + # @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_admin_project_location_topic(parent, topic_object = nil, topic_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/admin/{+parent}/topics', options) + command.request_representation = Google::Apis::PubsubliteV1::Topic::Representation + command.request_object = topic_object + command.response_representation = Google::Apis::PubsubliteV1::Topic::Representation + command.response_class = Google::Apis::PubsubliteV1::Topic + command.params['parent'] = parent unless parent.nil? + command.query['topicId'] = topic_id unless topic_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified topic. + # @param [String] name + # Required. The name of the topic to delete. + # @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::PubsubliteV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Empty] + # + # @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_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/admin/{+name}', options) + command.response_representation = Google::Apis::PubsubliteV1::Empty::Representation + command.response_class = Google::Apis::PubsubliteV1::Empty + 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 + + # Returns the topic configuration. + # @param [String] name + # Required. The name of the topic whose configuration to return. + # @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::PubsubliteV1::Topic] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Topic] + # + # @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_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/admin/{+name}', options) + command.response_representation = Google::Apis::PubsubliteV1::Topic::Representation + command.response_class = Google::Apis::PubsubliteV1::Topic + 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 + + # Returns the partition information for the requested topic. + # @param [String] name + # Required. The topic whose partition information to return. + # @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::PubsubliteV1::TopicPartitions] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::TopicPartitions] + # + # @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_admin_project_location_topic_partitions(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/admin/{+name}/partitions', options) + command.response_representation = Google::Apis::PubsubliteV1::TopicPartitions::Representation + command.response_class = Google::Apis::PubsubliteV1::TopicPartitions + 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 + + # Returns the list of topics for the given project. + # @param [String] parent + # Required. The parent whose topics are to be listed. + # Structured like `projects/`project_number`/locations/`location``. + # @param [Fixnum] page_size + # The maximum number of topics to return. The service may return fewer than + # this value. + # If unset or zero, all topics for the parent will be returned. + # @param [String] page_token + # A page token, received from a previous `ListTopics` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListTopics` must match + # the call that provided the 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::PubsubliteV1::ListTopicsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::ListTopicsResponse] + # + # @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_admin_project_location_topics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/admin/{+parent}/topics', options) + command.response_representation = Google::Apis::PubsubliteV1::ListTopicsResponse::Representation + command.response_class = Google::Apis::PubsubliteV1::ListTopicsResponse + 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 properties of the specified topic. + # @param [String] name + # The name of the topic. + # Structured like: + # projects/`project_number`/locations/`location`/topics/`topic_id` + # @param [Google::Apis::PubsubliteV1::Topic] topic_object + # @param [String] update_mask + # Required. A mask specifying the topic fields to change. + # @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::PubsubliteV1::Topic] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::Topic] + # + # @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_admin_project_location_topic(name, topic_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/admin/{+name}', options) + command.request_representation = Google::Apis::PubsubliteV1::Topic::Representation + command.request_object = topic_object + command.response_representation = Google::Apis::PubsubliteV1::Topic::Representation + command.response_class = Google::Apis::PubsubliteV1::Topic + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the subscriptions attached to the specified topic. + # @param [String] name + # Required. The name of the topic whose subscriptions to list. + # @param [Fixnum] page_size + # The maximum number of subscriptions to return. The service may return fewer + # than this value. + # If unset or zero, all subscriptions for the given topic will be returned. + # @param [String] page_token + # A page token, received from a previous `ListTopicSubscriptions` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListTopicSubscriptions` + # must match the call that provided the 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::PubsubliteV1::ListTopicSubscriptionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse] + # + # @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_admin_project_location_topic_subscriptions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/admin/{+name}/subscriptions', options) + command.response_representation = Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse::Representation + command.response_class = Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse + command.params['name'] = name unless name.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 + + # Returns all committed cursor information for a subscription. + # @param [String] parent + # Required. The subscription for which to retrieve cursors. + # Structured like + # `projects/`project_number`/locations/`location`/subscriptions/`subscription_id` + # `. + # @param [Fixnum] page_size + # The maximum number of cursors to return. The service may return fewer than + # this value. + # If unset or zero, all cursors for the parent will be returned. + # @param [String] page_token + # A page token, received from a previous `ListPartitionCursors` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListPartitionCursors` + # must match the call that provided the 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::PubsubliteV1::ListPartitionCursorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::ListPartitionCursorsResponse] + # + # @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_cursor_project_location_subscription_cursors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/cursor/{+parent}/cursors', options) + command.response_representation = Google::Apis::PubsubliteV1::ListPartitionCursorsResponse::Representation + command.response_class = Google::Apis::PubsubliteV1::ListPartitionCursorsResponse + 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 + + 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/recommendationengine_v1beta1.rb b/generated/google/apis/recommendationengine_v1beta1.rb index b313f7d1b..ce820694b 100644 --- a/generated/google/apis/recommendationengine_v1beta1.rb +++ b/generated/google/apis/recommendationengine_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/recommendations-ai/docs module RecommendationengineV1beta1 VERSION = 'V1beta1' - REVISION = '20200728' + REVISION = '20200803' # 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/recommendationengine_v1beta1/classes.rb b/generated/google/apis/recommendationengine_v1beta1/classes.rb index 8a3c04a8e..b170bc205 100644 --- a/generated/google/apis/recommendationengine_v1beta1/classes.rb +++ b/generated/google/apis/recommendationengine_v1beta1/classes.rb @@ -23,34 +23,21 @@ module Google 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. + # 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 @@ -65,8 +52,8 @@ module Google # @return [String] attr_accessor :data - # Application specific response metadata. Must be set in the first response - # for streaming APIs. + # 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 @@ -120,9 +107,8 @@ module Google 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` + # 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 @@ -154,17 +140,14 @@ module Google 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) + # 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 @@ -175,16 +158,14 @@ module Google attr_accessor :dataset_id # Optional. Intermediate Cloud Storage directory used for the import. Can be - # specified - # if one wants to have the BigQuery export to a specific Cloud Storage + # specified if one wants to have the BigQuery export to a specific Cloud Storage # directory. # 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. + # in. If not specified, inherits the project id from the parent request. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -208,18 +189,17 @@ module Google end end - # The catalog configuration. - # Next ID: 5. + # 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. + # Configures the catalog level that users send events to, and the level at which + # predictions are 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. + # Required. The ID of the default event store. # Corresponds to the JSON property `defaultEventStoreId` # @return [String] attr_accessor :default_event_store_id @@ -271,31 +251,26 @@ module Google 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"] ` - # ] + # 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. + # 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. + # 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 @@ -308,17 +283,15 @@ module Google 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). + # 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. + # 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 @@ -328,10 +301,10 @@ module Google # @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. + # 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 @@ -364,10 +337,9 @@ module Google 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). + # 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 @@ -382,21 +354,20 @@ module Google 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. + # Configures the catalog level that users send events to, and the level at which + # predictions are 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. + # Optional. Level of the catalog at which events are uploaded. 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. + # Optional. Level of the catalog at which predictions are made. 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 @@ -442,50 +413,47 @@ module Google # @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). + # 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. + # 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 + # 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. + # 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. + # 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. + # 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 @@ -512,20 +480,16 @@ module Google 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"]`` + # 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]` `` + # 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 @@ -579,33 +543,28 @@ module Google end end - # Google Cloud Storage location for input content. - # format. + # 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. + # 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) + # 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 @@ -621,31 +580,6 @@ module Google 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 @@ -691,17 +625,16 @@ module Google # @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. + # 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. + # If not set, will by default update all fields. # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -719,9 +652,9 @@ module Google 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. + # 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 @@ -750,10 +683,9 @@ module Google 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. + # 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 @@ -788,8 +720,8 @@ module Google # @return [String] attr_accessor :operation_name - # Id of the request / operation. This is parroting back the requestId that - # was passed in the request. + # 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 @@ -799,8 +731,8 @@ module Google # @return [Fixnum] attr_accessor :success_count - # Operation last update time. If the operation is done, this is also the - # finish time. + # 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 @@ -834,12 +766,11 @@ module Google # @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. + # 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 @@ -856,9 +787,9 @@ module Google 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. + # 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 @@ -872,8 +803,8 @@ module Google # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig] attr_accessor :errors_config - # A summary of import result. The UserEventImportSummary summarizes - # the import status for user events. + # 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 @@ -904,8 +835,7 @@ module Google # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogInlineSource] attr_accessor :catalog_inline_source - # Google Cloud Storage location for input content. - # format. + # Google Cloud Storage location for input content. format. # Corresponds to the JSON property `gcsSource` # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource] attr_accessor :gcs_source @@ -1035,50 +965,44 @@ module Google 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. + # 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, nothing will be returned. If - # you want generic (unfiltered) popular items to be returned instead, set - # `strictFiltering` to false in `PredictRequest.params`. + # 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, nothing will be returned. If you want + # generic (unfiltered) popular items to be returned instead, set ` + # strictFiltering` to false 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. + # 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. + # 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 @@ -1088,20 +1012,16 @@ module Google # @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. True by default. If set to false, the service - # will return generic (unfiltered) popular items instead of empty if your - # filter blocks all prediction results. + # 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. True by default. If set to + # false, the service will return generic (unfiltered) popular items instead of + # empty if your filter blocks all prediction results. # Corresponds to the JSON property `params` # @return [Hash] attr_accessor :params @@ -1154,15 +1074,15 @@ module Google # @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. + # 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). + # 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 @@ -1191,12 +1111,11 @@ module Google # @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`. + # 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 @@ -1240,25 +1159,22 @@ module Google # @return [Fixnum] attr_accessor :available_quantity - # Optional. Canonical URL directly linking to the item detail page with a - # length limit of 5 KiB.. + # 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) + # 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. + # Use three-character ISO-4217 code. # Corresponds to the JSON property `currencyCode` # @return [String] attr_accessor :currency_code @@ -1273,8 +1189,8 @@ module Google # @return [Array] attr_accessor :images - # Product price range when there are a range of prices for different - # variations of the same product. + # 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 @@ -1310,8 +1226,8 @@ module Google # @return [Float] attr_accessor :display_price - # Optional. Price of the product without any discount. If zero, by default - # set to be the 'displayPrice'. + # 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 @@ -1327,8 +1243,8 @@ module Google end end - # Product price range when there are a range of prices for different - # variations of the same product. + # Product price range when there are a range of prices for different variations + # of the same product. class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange include Google::Apis::Core::Hashable @@ -1359,22 +1275,22 @@ module Google # 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. + # 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. + # 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. + # 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 @@ -1392,23 +1308,22 @@ module Google # @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. + # 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. + # 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. + # 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 @@ -1430,15 +1345,14 @@ module Google end end - # ProductEventDetail captures user event information specific to retail - # products. + # 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. + # 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 @@ -1451,39 +1365,27 @@ module Google 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"]. + # 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` + # 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 @@ -1493,8 +1395,8 @@ module Google # @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. + # 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 @@ -1519,20 +1421,17 @@ module Google 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. + # 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`. + # 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 @@ -1542,10 +1441,10 @@ module Google # @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`. + # 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 @@ -1569,8 +1468,8 @@ module Google end end - # Metadata related to the progress of the PurgeUserEvents operation. - # This will be returned by the google.longrunning.Operation.metadata field. + # 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 @@ -1599,31 +1498,24 @@ module Google 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. + # 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. + # 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 @@ -1641,8 +1533,8 @@ module Google 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. + # successfully done, then this message is returned by the google.longrunning. + # Operations.response field. class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse include Google::Apis::Core::Hashable @@ -1673,8 +1565,7 @@ module Google 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. + # user events to be rejoined with catalog items. # Corresponds to the JSON property `userEventRejoinScope` # @return [String] attr_accessor :user_event_rejoin_scope @@ -1699,41 +1590,34 @@ module Google # @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`. + # 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. + # 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. + # 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. + # 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 @@ -1758,8 +1642,8 @@ module Google end end - # A summary of import result. The UserEventImportSummary summarizes - # the import status for user events. + # A summary of import result. The UserEventImportSummary summarizes the import + # status for user events. class GoogleCloudRecommendationengineV1beta1UserEventImportSummary include Google::Apis::Core::Hashable @@ -1768,8 +1652,8 @@ module Google # @return [Fixnum] attr_accessor :joined_events_count - # Count of user events imported, but with catalog information not found - # in the imported catalog. + # 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 @@ -1808,30 +1692,28 @@ module Google 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). + # 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. + # 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. + # 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 @@ -1842,12 +1724,11 @@ module Google # @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. + # 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 @@ -1896,47 +1777,45 @@ module Google 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. + # 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). + # 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. + # 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``. + # 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`. + # 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 @@ -1955,13 +1834,11 @@ module Google 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 ````. + # 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 @@ -1974,12 +1851,12 @@ module Google 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). + # 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 @@ -1988,15 +1865,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 diff --git a/generated/google/apis/recommendationengine_v1beta1/representations.rb b/generated/google/apis/recommendationengine_v1beta1/representations.rb index b2ae35411..7dda29eae 100644 --- a/generated/google/apis/recommendationengine_v1beta1/representations.rb +++ b/generated/google/apis/recommendationengine_v1beta1/representations.rb @@ -124,12 +124,6 @@ module Google 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 @@ -485,16 +479,6 @@ module Google 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 diff --git a/generated/google/apis/recommendationengine_v1beta1/service.rb b/generated/google/apis/recommendationengine_v1beta1/service.rb index c5862b3bc..7f32e3c74 100644 --- a/generated/google/apis/recommendationengine_v1beta1/service.rb +++ b/generated/google/apis/recommendationengine_v1beta1/service.rb @@ -53,11 +53,11 @@ module Google # @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. + # 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. + # 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 @@ -126,8 +126,8 @@ module Google # Creates a catalog item. # @param [String] parent - # Required. The parent catalog resource name, such as - # "projects/*/locations/global/catalogs/default_catalog". + # 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. @@ -160,9 +160,8 @@ module Google # 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". + # 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 @@ -192,9 +191,8 @@ module Google # 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". + # 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 @@ -222,49 +220,14 @@ module Google execute_or_queue_command(command, &block) end - # Method for getting the catalog items associated with item group id. + # 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. 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. + # 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. @@ -297,13 +260,13 @@ module Google # Gets a list of catalog items. # @param [String] parent - # Required. The parent catalog resource name, such as - # "projects/*/locations/global/catalogs/default_catalog". + # 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. + # 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 @@ -336,16 +299,15 @@ module Google execute_or_queue_command(command, &block) end - # Updates a catalog item. Partial updating is supported. Non-existing - # items will be created. + # 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". + # 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. + # 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 @@ -376,9 +338,8 @@ module Google 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. + # 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 @@ -408,15 +369,14 @@ module Google 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. + # 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 @@ -455,36 +415,30 @@ module Google 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). + # 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 + # 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. @@ -517,9 +471,8 @@ module Google # 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". + # 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. @@ -552,9 +505,9 @@ module Google # 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/" + # 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 @@ -584,12 +537,11 @@ module Google # 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" + # 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. + # 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 @@ -621,25 +573,22 @@ module Google 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. + # 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". + # 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 + # 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. + # 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 @@ -672,12 +621,11 @@ module Google 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. + # 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" @@ -711,47 +659,37 @@ module Google 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. + # 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". + # 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 + # 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. + # 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 @@ -786,13 +724,12 @@ module Google # 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. + # 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`" + # 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. @@ -823,17 +760,16 @@ module Google 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. + # 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". + # 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. @@ -866,9 +802,8 @@ module Google # 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". + # 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. @@ -899,9 +834,8 @@ module Google 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. + # 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 @@ -931,15 +865,14 @@ module Google 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. + # 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 diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index 18f4eb61e..794f2d8dd 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20200504' + REVISION = '20200803' # 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/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index d6e5fc8b1..376828acb 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -26,69 +26,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::RuntimeconfigV1beta1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -107,21 +95,19 @@ module Google # A Cardinality condition for the Waiter resource. A cardinality condition is # met when the number of variables under a specified path prefix reaches a - # predefined number. For example, if you set a Cardinality condition where - # the `path` is set to `/foo` and the number of paths is set to `2`, the - # following variables would meet the condition in a RuntimeConfig resource: - # + `/foo/variable1 = "value1"` - # + `/foo/variable2 = "value2"` - # + `/bar/variable3 = "value3"` - # It would not satisfy the same condition with the `number` set to - # `3`, however, because there is only 2 paths that start with `/foo`. - # Cardinality conditions are recursive; all subtrees under the specific - # path prefix are counted. + # predefined number. For example, if you set a Cardinality condition where the ` + # path` is set to `/foo` and the number of paths is set to `2`, the following + # variables would meet the condition in a RuntimeConfig resource: + `/foo/ + # variable1 = "value1"` + `/foo/variable2 = "value2"` + `/bar/variable3 = " + # value3"` It would not satisfy the same condition with the `number` set to `3`, + # however, because there is only 2 paths that start with `/foo`. Cardinality + # conditions are recursive; all subtrees under the specific path prefix are + # counted. class Cardinality include Google::Apis::Core::Hashable - # The number variables under the `path` that must exist to meet this - # condition. Defaults to 1 if not specified. + # The number variables under the `path` that must exist to meet this condition. + # Defaults to 1 if not specified. # Corresponds to the JSON property `number` # @return [Fixnum] attr_accessor :number @@ -142,13 +128,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -167,16 +151,14 @@ module Google # A Cardinality condition for the Waiter resource. A cardinality condition is # met when the number of variables under a specified path prefix reaches a - # predefined number. For example, if you set a Cardinality condition where - # the `path` is set to `/foo` and the number of paths is set to `2`, the - # following variables would meet the condition in a RuntimeConfig resource: - # + `/foo/variable1 = "value1"` - # + `/foo/variable2 = "value2"` - # + `/bar/variable3 = "value3"` - # It would not satisfy the same condition with the `number` set to - # `3`, however, because there is only 2 paths that start with `/foo`. - # Cardinality conditions are recursive; all subtrees under the specific - # path prefix are counted. + # predefined number. For example, if you set a Cardinality condition where the ` + # path` is set to `/foo` and the number of paths is set to `2`, the following + # variables would meet the condition in a RuntimeConfig resource: + `/foo/ + # variable1 = "value1"` + `/foo/variable2 = "value2"` + `/bar/variable3 = " + # value3"` It would not satisfy the same condition with the `number` set to `3`, + # however, because there is only 2 paths that start with `/foo`. Cardinality + # conditions are recursive; all subtrees under the specific path prefix are + # counted. # Corresponds to the JSON property `cardinality` # @return [Google::Apis::RuntimeconfigV1beta1::Cardinality] attr_accessor :cardinality @@ -191,52 +173,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -254,22 +227,22 @@ module Google end end - # `ListConfigs()` returns the following response. The order of returned - # objects is arbitrary; that is, it is not ordered in any particular way. + # `ListConfigs()` returns the following response. The order of returned objects + # is arbitrary; that is, it is not ordered in any particular way. class ListConfigsResponse include Google::Apis::Core::Hashable - # A list of the configurations in the project. The order of returned - # objects is arbitrary; that is, it is not ordered in any particular way. + # A list of the configurations in the project. The order of returned objects is + # arbitrary; that is, it is not ordered in any particular way. # Corresponds to the JSON property `configs` # @return [Array] attr_accessor :configs - # This token allows you to get the next page of results for list requests. - # If the number of results is larger than `pageSize`, 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 + # This token allows you to get the next page of results for list requests. If + # the number of results is larger than `pageSize`, 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 @@ -289,17 +262,17 @@ module Google class ListVariablesResponse include Google::Apis::Core::Hashable - # This token allows you to get the next page of results for list requests. - # If the number of results is larger than `pageSize`, 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 + # This token allows you to get the next page of results for list requests. If + # the number of results is larger than `pageSize`, 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 - # A list of variables and their values. The order of returned variable - # objects is arbitrary. + # A list of variables and their values. The order of returned variable objects + # is arbitrary. # Corresponds to the JSON property `variables` # @return [Array] attr_accessor :variables @@ -315,16 +288,16 @@ module Google end end - # Response for the `ListWaiters()` method. - # Order of returned waiter objects is arbitrary. + # Response for the `ListWaiters()` method. Order of returned waiter objects is + # arbitrary. class ListWaitersResponse include Google::Apis::Core::Hashable - # This token allows you to get the next page of results for list requests. - # If the number of results is larger than `pageSize`, 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 + # This token allows you to get the next page of results for list requests. If + # the number of results is larger than `pageSize`, 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 @@ -350,47 +323,45 @@ module Google class Operation 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. + # 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). + # 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::RuntimeconfigV1beta1::Status] 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. + # 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``. + # 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`. + # 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 @@ -410,111 +381,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -542,15 +475,13 @@ module Google # @return [String] attr_accessor :description - # The resource name of a runtime config. The name must have the format: - # projects/[PROJECT_ID]/configs/[CONFIG_NAME] - # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an - # arbitrary name that matches the - # `[0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])?` regular expression. - # The length of `[CONFIG_NAME]` must be less than 64 characters. - # You pick the RuntimeConfig resource name, but the server will validate that - # the name adheres to this format. After you create the resource, you cannot - # change the resource's name. + # The resource name of a runtime config. The name must have the format: projects/ + # [PROJECT_ID]/configs/[CONFIG_NAME] The `[PROJECT_ID]` must be a valid project + # ID, and `[CONFIG_NAME]` is an arbitrary name that matches the `[0-9A-Za-z](?:[ + # _.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])?` regular expression. The length of `[ + # CONFIG_NAME]` must be less than 64 characters. You pick the RuntimeConfig + # resource name, but the server will validate that the name adheres to this + # format. After you create the resource, you cannot change the resource's name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -571,66 +502,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::RuntimeconfigV1beta1::Policy] attr_accessor :policy @@ -645,12 +542,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -659,15 +556,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -688,10 +585,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -710,8 +606,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -726,56 +621,52 @@ module Google end end - # Describes a single variable within a RuntimeConfig resource. - # The name denotes the hierarchical variable name. For example, - # `ports/serving_port` is a valid variable name. The variable value is an - # opaque string and only leaf variables can have values (that is, variables - # that do not have any child variables). + # Describes a single variable within a RuntimeConfig resource. The name denotes + # the hierarchical variable name. For example, `ports/serving_port` is a valid + # variable name. The variable value is an opaque string and only leaf variables + # can have values (that is, variables that do not have any child variables). class Variable include Google::Apis::Core::Hashable - # The name of the variable resource, in the format: - # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME] - # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a - # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system - # file path naming. - # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and - # dashes. Slashes are used as path element separators and are not part of the - # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one - # non-slash character. Multiple slashes are coalesced into single slash - # character. Each path segment should match - # [0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])? regular expression. - # The length of a `[VARIABLE_NAME]` must be less than 256 characters. - # Once you create a variable, you cannot change the variable name. + # The name of the variable resource, in the format: projects/[PROJECT_ID]/ + # configs/[CONFIG_NAME]/variables/[VARIABLE_NAME] The `[PROJECT_ID]` must be a + # valid project ID, `[CONFIG_NAME]` must be a valid RuntimeConfig resource and `[ + # VARIABLE_NAME]` follows Unix file system file path naming. The `[VARIABLE_NAME] + # ` can contain ASCII letters, numbers, slashes and dashes. Slashes are used as + # path element separators and are not part of the `[VARIABLE_NAME]` itself, so `[ + # VARIABLE_NAME]` must contain at least one non-slash character. Multiple + # slashes are coalesced into single slash character. Each path segment should + # match [0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])? regular expression. + # The length of a `[VARIABLE_NAME]` must be less than 256 characters. Once you + # create a variable, you cannot change the variable name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output only. The current state of the variable. The variable state - # indicates the outcome of the `variables().watch` call and is visible - # through the `get` and `list` calls. + # Output only. The current state of the variable. The variable state indicates + # the outcome of the `variables().watch` call and is visible through the `get` + # and `list` calls. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state - # The string value of the variable. The length of the value must be less - # than 4096 bytes. Empty values are also accepted. For example, - # `text: "my text value"`. The string must be valid UTF-8. + # The string value of the variable. The length of the value must be less than + # 4096 bytes. Empty values are also accepted. For example, `text: "my text value" + # `. The string must be valid UTF-8. # Corresponds to the JSON property `text` # @return [String] attr_accessor :text - # Output only. The time of the last variable update. - # Timestamp will be UTC timestamp. + # Output only. The time of the last variable update. Timestamp will be UTC + # timestamp. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time - # The binary value of the variable. The length of the value must be less - # than 4096 bytes. Empty values are also accepted. The value must be - # base64 encoded, and must comply with IETF RFC4648 - # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text` - # can be set. + # The binary value of the variable. The length of the value must be less than + # 4096 bytes. Empty values are also accepted. The value must be base64 encoded, + # and must comply with IETF RFC4648 (https://www.ietf.org/rfc/rfc4648.txt). Only + # one of `value` or `text` can be set. # Corresponds to the JSON property `value` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -795,44 +686,38 @@ module Google end end - # A Waiter resource waits for some end condition within a RuntimeConfig - # resource to be met before it returns. For example, assume you have a - # distributed system where each node writes to a Variable resource indicating - # the node's readiness as part of the startup process. - # You then configure a Waiter resource with the success condition set to wait - # until some number of nodes have checked in. Afterwards, your application - # runs some arbitrary code after the condition has been met and the waiter - # returns successfully. - # Once created, a Waiter resource is immutable. - # To learn more about using waiters, read the - # [Creating a - # Waiter](/deployment-manager/runtime-configurator/creating-a-waiter) - # documentation. + # A Waiter resource waits for some end condition within a RuntimeConfig resource + # to be met before it returns. For example, assume you have a distributed system + # where each node writes to a Variable resource indicating the node's readiness + # as part of the startup process. You then configure a Waiter resource with the + # success condition set to wait until some number of nodes have checked in. + # Afterwards, your application runs some arbitrary code after the condition has + # been met and the waiter returns successfully. Once created, a Waiter resource + # is immutable. To learn more about using waiters, read the [Creating a Waiter](/ + # deployment-manager/runtime-configurator/creating-a-waiter) documentation. class Waiter include Google::Apis::Core::Hashable - # Output only. The instant at which this Waiter resource was created. Adding - # the value of `timeout` to this instant yields the timeout deadline for the - # waiter. + # Output only. The instant at which this Waiter resource was created. Adding the + # value of `timeout` to this instant yields the timeout deadline for the waiter. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # Output only. If the value is `false`, it means the waiter is still waiting - # for one of its conditions to be met. - # If true, the waiter has finished. If the waiter finished due to a timeout - # or failure, `error` will be set. + # Output only. If the value is `false`, it means the waiter is still waiting for + # one of its conditions to be met. If true, the waiter has finished. If the + # waiter finished due to a timeout or failure, `error` will be set. # 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). + # 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::RuntimeconfigV1beta1::Status] attr_accessor :error @@ -842,13 +727,12 @@ module Google # @return [Google::Apis::RuntimeconfigV1beta1::EndCondition] attr_accessor :failure - # The name of the Waiter resource, in the format: - # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] - # The `[PROJECT_ID]` must be a valid Google Cloud project ID, - # the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, the - # `[WAITER_NAME]` must match RFC 1035 segment specification, and the length - # of `[WAITER_NAME]` must be less than 64 bytes. - # After you create a Waiter resource, you cannot change the resource name. + # The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[ + # CONFIG_NAME]/waiters/[WAITER_NAME] The `[PROJECT_ID]` must be a valid Google + # Cloud project ID, the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, + # the `[WAITER_NAME]` must match RFC 1035 segment specification, and the length + # of `[WAITER_NAME]` must be less than 64 bytes. After you create a Waiter + # resource, you cannot change the resource name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -858,10 +742,10 @@ module Google # @return [Google::Apis::RuntimeconfigV1beta1::EndCondition] attr_accessor :success - # [Required] Specifies the timeout of the waiter in seconds, beginning from - # the instant that `waiters().create` method is called. If this time elapses - # before the success or failure conditions are met, the waiter fails and sets - # the `error` code to `DEADLINE_EXCEEDED`. + # [Required] Specifies the timeout of the waiter in seconds, beginning from the + # instant that `waiters().create` method is called. If this time elapses before + # the success or failure conditions are met, the waiter fails and sets the ` + # error` code to `DEADLINE_EXCEEDED`. # Corresponds to the JSON property `timeout` # @return [String] attr_accessor :timeout @@ -886,11 +770,10 @@ module Google class WatchVariableRequest include Google::Apis::Core::Hashable - # If specified, checks the current timestamp of the variable and if the - # current timestamp is newer than `newerThan` timestamp, the method returns - # immediately. - # If not specified or the variable has an older timestamp, the watcher waits - # for a the value to change before returning. + # If specified, checks the current timestamp of the variable and if the current + # timestamp is newer than `newerThan` timestamp, the method returns immediately. + # If not specified or the variable has an older timestamp, the watcher waits for + # a the value to change before returning. # Corresponds to the JSON property `newerThan` # @return [String] attr_accessor :newer_than diff --git a/generated/google/apis/runtimeconfig_v1beta1/service.rb b/generated/google/apis/runtimeconfig_v1beta1/service.rb index 591683b43..9375acb22 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/service.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/service.rb @@ -50,22 +50,19 @@ module Google @batch_path = 'batch' end - # Creates a new RuntimeConfig resource. The configuration name must be - # unique within project. + # Creates a new RuntimeConfig resource. The configuration name must be unique + # within project. # @param [String] parent - # The [project - # ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) - # for this request, in the format `projects/[PROJECT_ID]`. + # The [project ID](https://support.google.com/cloud/answer/6158840?hl=en& + # ref_topic=6158848) for this request, in the format `projects/[PROJECT_ID]`. # @param [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig] runtime_config_object # @param [String] request_id - # An optional but recommended unique `request_id`. If the server - # receives two `create()` requests with the same - # `request_id`, then the second request will be ignored and the - # first resource created and stored in the backend is returned. - # Empty `request_id` fields are ignored. - # It is responsibility of the client to ensure uniqueness of the - # `request_id` strings. - # `request_id` strings are limited to 64 characters. + # An optional but recommended unique `request_id`. If the server receives two ` + # create()` requests with the same `request_id`, then the second request will be + # ignored and the first resource created and stored in the backend is returned. + # Empty `request_id` fields are ignored. It is responsibility of the client to + # ensure uniqueness of the `request_id` strings. `request_id` strings are + # limited to 64 characters. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -98,8 +95,8 @@ module Google # Deletes a RuntimeConfig resource. # @param [String] name - # The RuntimeConfig resource to delete, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + # The RuntimeConfig resource to delete, in the format: `projects/[PROJECT_ID]/ + # configs/[CONFIG_NAME]` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -129,8 +126,8 @@ module Google # Gets information about a RuntimeConfig resource. # @param [String] name - # The name of the RuntimeConfig resource to retrieve, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + # The name of the RuntimeConfig resource to retrieve, in the format: `projects/[ + # PROJECT_ID]/configs/[CONFIG_NAME]` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -158,22 +155,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -204,15 +198,14 @@ module Google # Lists all the RuntimeConfig resources within project. # @param [String] parent - # The [project - # ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) - # for this request, in the format `projects/[PROJECT_ID]`. + # The [project ID](https://support.google.com/cloud/answer/6158840?hl=en& + # ref_topic=6158848) for this request, in the format `projects/[PROJECT_ID]`. # @param [Fixnum] page_size # Specifies the number of results to return per page. If there are fewer # elements than the specified number, returns all elements. # @param [String] page_token - # Specifies a page token to use. Set `pageToken` to a `nextPageToken` - # returned by a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to a `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 @@ -243,11 +236,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::RuntimeconfigV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -278,15 +271,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -319,8 +311,8 @@ module Google # Updates a RuntimeConfig resource. The configuration must exist beforehand. # @param [String] name - # The name of the RuntimeConfig resource to update, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + # The name of the RuntimeConfig resource to update, in the format: `projects/[ + # PROJECT_ID]/configs/[CONFIG_NAME]` # @param [Google::Apis::RuntimeconfigV1beta1::RuntimeConfig] runtime_config_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -351,9 +343,8 @@ module Google 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. + # 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 @@ -383,15 +374,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -422,27 +412,23 @@ module Google execute_or_queue_command(command, &block) end - # Creates a variable within the given configuration. You cannot create - # a variable with a name that is a prefix of an existing variable name, or a - # name that has an existing variable name as a prefix. - # To learn more about creating a variable, read the - # [Setting and Getting - # Data](/deployment-manager/runtime-configurator/set-and-get-variables) - # documentation. + # Creates a variable within the given configuration. You cannot create a + # variable with a name that is a prefix of an existing variable name, or a name + # that has an existing variable name as a prefix. To learn more about creating a + # variable, read the [Setting and Getting Data](/deployment-manager/runtime- + # configurator/set-and-get-variables) documentation. # @param [String] parent - # The path to the RutimeConfig resource that this variable should belong to. - # The configuration must exist beforehand; the path must be in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + # The path to the RutimeConfig resource that this variable should belong to. The + # configuration must exist beforehand; the path must be in the format: `projects/ + # [PROJECT_ID]/configs/[CONFIG_NAME]` # @param [Google::Apis::RuntimeconfigV1beta1::Variable] variable_object # @param [String] request_id - # An optional but recommended unique `request_id`. If the server - # receives two `create()` requests with the same - # `request_id`, then the second request will be ignored and the - # first resource created and stored in the backend is returned. - # Empty `request_id` fields are ignored. - # It is responsibility of the client to ensure uniqueness of the - # `request_id` strings. - # `request_id` strings are limited to 64 characters. + # An optional but recommended unique `request_id`. If the server receives two ` + # create()` requests with the same `request_id`, then the second request will be + # ignored and the first resource created and stored in the backend is returned. + # Empty `request_id` fields are ignored. It is responsibility of the client to + # ensure uniqueness of the `request_id` strings. `request_id` strings are + # limited to 64 characters. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -473,17 +459,15 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a variable or multiple variables. - # If you specify a variable name, then that variable is deleted. If you - # specify a prefix and `recursive` is true, then all variables with that - # prefix are deleted. You must set a `recursive` to true if you delete - # variables by prefix. + # Deletes a variable or multiple variables. If you specify a variable name, then + # that variable is deleted. If you specify a prefix and `recursive` is true, + # then all variables with that prefix are deleted. You must set a `recursive` to + # true if you delete variables by prefix. # @param [String] name - # The name of the variable to delete, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` + # The name of the variable to delete, in the format: `projects/[PROJECT_ID]/ + # configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` # @param [Boolean] recursive - # Set to `true` to recursively delete multiple variables with the same - # prefix. + # Set to `true` to recursively delete multiple variables with the same prefix. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -514,8 +498,8 @@ module Google # Gets information about a single variable. # @param [String] name - # The name of the variable to return, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` + # The name of the variable to return, in the format: `projects/[PROJECT_ID]/ + # configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -543,28 +527,27 @@ module Google execute_or_queue_command(command, &block) end - # Lists variables within given a configuration, matching any provided - # filters. This only lists variable names, not the values, unless - # `return_values` is true, in which case only variables that user has IAM - # permission to GetVariable will be returned. + # Lists variables within given a configuration, matching any provided filters. + # This only lists variable names, not the values, unless `return_values` is true, + # in which case only variables that user has IAM permission to GetVariable will + # be returned. # @param [String] parent - # The path to the RuntimeConfig resource for which you want to list - # variables. The configuration must exist beforehand; the path must be in the - # format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + # The path to the RuntimeConfig resource for which you want to list variables. + # The configuration must exist beforehand; the path must be in the format: ` + # projects/[PROJECT_ID]/configs/[CONFIG_NAME]` # @param [String] filter - # Filters variables by matching the specified filter. For example: - # `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. + # Filters variables by matching the specified filter. For example: `projects/ + # example-project/config/[CONFIG_NAME]/variables/example-variable`. # @param [Fixnum] page_size # Specifies the number of results to return per page. If there are fewer # elements than the specified number, returns all elements. # @param [String] page_token - # Specifies a page token to use. Set `pageToken` to a `nextPageToken` - # returned by a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [Boolean] return_values - # The flag indicates whether the user wants to return values of variables. - # If true, then only those variables that user has IAM GetVariable permission - # will be returned along with their values. + # The flag indicates whether the user wants to return values of variables. If + # true, then only those variables that user has IAM GetVariable permission will + # be returned along with their values. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -596,15 +579,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -637,8 +619,8 @@ module Google # Updates an existing variable with a new value. # @param [String] name - # The name of the variable to update, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` + # The name of the variable to update, in the format: `projects/[PROJECT_ID]/ + # configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` # @param [Google::Apis::RuntimeconfigV1beta1::Variable] variable_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -670,19 +652,17 @@ module Google end # Watches a specific variable and waits for a change in the variable's value. - # When there is a change, this method returns the new value or times out. - # If a variable is deleted while being watched, the `variableState` state is - # set to `DELETED` and the method returns the last known variable `value`. - # If you set the deadline for watching to a larger value than internal - # timeout (60 seconds), the current variable value is returned and the - # `variableState` will be `VARIABLE_STATE_UNSPECIFIED`. - # To learn more about creating a watcher, read the - # [Watching a Variable for - # Changes](/deployment-manager/runtime-configurator/watching-a-variable) - # documentation. + # When there is a change, this method returns the new value or times out. If a + # variable is deleted while being watched, the `variableState` state is set to ` + # DELETED` and the method returns the last known variable `value`. If you set + # the deadline for watching to a larger value than internal timeout (60 seconds), + # the current variable value is returned and the `variableState` will be ` + # VARIABLE_STATE_UNSPECIFIED`. To learn more about creating a watcher, read the [ + # Watching a Variable for Changes](/deployment-manager/runtime-configurator/ + # watching-a-variable) documentation. # @param [String] name - # The name of the variable to watch, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + # The name of the variable to watch, in the format: `projects/[PROJECT_ID]/ + # configs/[CONFIG_NAME]` # @param [Google::Apis::RuntimeconfigV1beta1::WatchVariableRequest] watch_variable_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -714,24 +694,22 @@ module Google end # Creates a Waiter resource. This operation returns a long-running Operation - # resource which can be polled for completion. However, a waiter with the - # given name will exist (and can be retrieved) prior to the operation - # completing. If the operation fails, the failed Waiter resource will - # still exist and must be deleted prior to subsequent creation attempts. + # resource which can be polled for completion. However, a waiter with the given + # name will exist (and can be retrieved) prior to the operation completing. If + # the operation fails, the failed Waiter resource will still exist and must be + # deleted prior to subsequent creation attempts. # @param [String] parent - # The path to the configuration that will own the waiter. - # The configuration must exist beforehand; the path must be in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. + # The path to the configuration that will own the waiter. The configuration must + # exist beforehand; the path must be in the format: `projects/[PROJECT_ID]/ + # configs/[CONFIG_NAME]`. # @param [Google::Apis::RuntimeconfigV1beta1::Waiter] waiter_object # @param [String] request_id - # An optional but recommended unique `request_id`. If the server - # receives two `create()` requests with the same - # `request_id`, then the second request will be ignored and the - # first resource created and stored in the backend is returned. - # Empty `request_id` fields are ignored. - # It is responsibility of the client to ensure uniqueness of the - # `request_id` strings. - # `request_id` strings are limited to 64 characters. + # An optional but recommended unique `request_id`. If the server receives two ` + # create()` requests with the same `request_id`, then the second request will be + # ignored and the first resource created and stored in the backend is returned. + # Empty `request_id` fields are ignored. It is responsibility of the client to + # ensure uniqueness of the `request_id` strings. `request_id` strings are + # limited to 64 characters. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -764,8 +742,8 @@ module Google # Deletes the waiter with the specified name. # @param [String] name - # The Waiter resource to delete, in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` + # The Waiter resource to delete, in the format: `projects/[PROJECT_ID]/configs/[ + # CONFIG_NAME]/waiters/[WAITER_NAME]` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -796,8 +774,7 @@ module Google # Gets information about a single waiter. # @param [String] name # The fully-qualified name of the Waiter resource object to retrieve, in the - # format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` + # format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -827,15 +804,15 @@ module Google # List waiters within the given configuration. # @param [String] parent - # The path to the configuration for which you want to get a list of waiters. - # The configuration must exist beforehand; the path must be in the format: - # `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + # The path to the configuration for which you want to get a list of waiters. The + # configuration must exist beforehand; the path must be in the format: `projects/ + # [PROJECT_ID]/configs/[CONFIG_NAME]` # @param [Fixnum] page_size # Specifies the number of results to return per page. If there are fewer # elements than the specified number, returns all elements. # @param [String] page_token - # Specifies a page token to use. Set `pageToken` to a `nextPageToken` - # returned by a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to a `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 @@ -865,15 +842,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::RuntimeconfigV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/safebrowsing_v4.rb b/generated/google/apis/safebrowsing_v4.rb index 94184082c..8f11b32d1 100644 --- a/generated/google/apis/safebrowsing_v4.rb +++ b/generated/google/apis/safebrowsing_v4.rb @@ -29,7 +29,7 @@ module Google # @see https://developers.google.com/safe-browsing/ module SafebrowsingV4 VERSION = 'V4' - REVISION = '20200210' + REVISION = '20200801' end end end diff --git a/generated/google/apis/safebrowsing_v4/classes.rb b/generated/google/apis/safebrowsing_v4/classes.rb index 06104ca94..85e59b199 100644 --- a/generated/google/apis/safebrowsing_v4/classes.rb +++ b/generated/google/apis/safebrowsing_v4/classes.rb @@ -26,8 +26,8 @@ module Google class Checksum include Google::Apis::Core::Hashable - # The SHA256 hash of the client state; that is, of the sorted list of all - # hashes present in the database. + # The SHA256 hash of the client state; that is, of the sorted list of all hashes + # present in the database. # Corresponds to the JSON property `sha256` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -47,8 +47,8 @@ module Google class ClientInfo include Google::Apis::Core::Hashable - # A client ID that (hopefully) uniquely identifies the client implementation - # of the Safe Browsing API. + # A client ID that (hopefully) uniquely identifies the client implementation of + # the Safe Browsing API. # Corresponds to the JSON property `clientId` # @return [String] attr_accessor :client_id @@ -73,35 +73,33 @@ module Google class Constraints include Google::Apis::Core::Hashable - # A client's physical location, expressed as a ISO 31166-1 alpha-2 - # region code. + # A client's physical location, expressed as a ISO 31166-1 alpha-2 region code. # Corresponds to the JSON property `deviceLocation` # @return [String] attr_accessor :device_location - # Requests the lists for a specific language. Expects ISO 639 alpha-2 - # format. + # Requests the lists for a specific language. Expects ISO 639 alpha-2 format. # Corresponds to the JSON property `language` # @return [String] attr_accessor :language - # Sets the maximum number of entries that the client is willing to have - # in the local database for the specified list. This should be a power of - # 2 between 2**10 and 2**20. If zero, no database size limit is set. + # Sets the maximum number of entries that the client is willing to have in the + # local database for the specified list. This should be a power of 2 between 2** + # 10 and 2**20. If zero, no database size limit is set. # Corresponds to the JSON property `maxDatabaseEntries` # @return [Fixnum] attr_accessor :max_database_entries # The maximum size in number of entries. The update will not contain more - # entries than this value. This should be a power of 2 between 2**10 and - # 2**20. If zero, no update size limit is set. + # entries than this value. This should be a power of 2 between 2**10 and 2**20. + # If zero, no update size limit is set. # Corresponds to the JSON property `maxUpdateEntries` # @return [Fixnum] attr_accessor :max_update_entries - # Requests the list for a specific geographic location. If not set the - # server may pick that value based on the user's IP address. Expects ISO - # 3166-1 alpha-2 format. + # Requests the list for a specific geographic location. If not set the server + # may pick that value based on the user's IP address. Expects ISO 3166-1 alpha-2 + # format. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -126,13 +124,11 @@ module Google 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 ````. + # 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 Empty include Google::Apis::Core::Hashable @@ -146,9 +142,7 @@ module Google end # Describes a Safe Browsing API update request. Clients can request updates for - # multiple lists in a single request. - # NOTE: Field index 2 is unused. - # NEXT: 5 + # multiple lists in a single request. NOTE: Field index 2 is unused. NEXT: 5 class FetchThreatListUpdatesRequest include Google::Apis::Core::Hashable @@ -182,8 +176,8 @@ module Google # @return [Array] attr_accessor :list_update_responses - # The minimum duration the client must wait before issuing any update - # request. If this field is not set clients may update as soon as they want. + # The minimum duration the client must wait before issuing any update request. + # If this field is not set clients may update as soon as they want. # Corresponds to the JSON property `minimumWaitDuration` # @return [String] attr_accessor :minimum_wait_duration @@ -247,14 +241,14 @@ module Google attr_accessor :matches # The minimum duration the client must wait before issuing any find hashes - # request. If this field is not set, clients can issue a request as soon as - # they want. + # request. If this field is not set, clients can issue a request as soon as they + # want. # Corresponds to the JSON property `minimumWaitDuration` # @return [String] attr_accessor :minimum_wait_duration - # For requested entities that did not match the threat list, how long to - # cache the response. + # For requested entities that did not match the threat list, how long to cache + # the response. # Corresponds to the JSON property `negativeCacheDuration` # @return [String] attr_accessor :negative_cache_duration @@ -349,8 +343,8 @@ module Google # @return [String] attr_accessor :platform_type - # The current state of the client for the requested list (the encrypted - # client state that was received from the last successful list update). + # The current state of the client for the requested list (the encrypted client + # state that was received from the last successful list update). # Corresponds to the JSON property `state` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -384,9 +378,8 @@ module Google class ListUpdateResponse include Google::Apis::Core::Hashable - # A set of entries to add to a local threat type's list. Repeated to allow - # for a combination of compressed and raw data to be sent in a single - # response. + # A set of entries to add to a local threat type's list. Repeated to allow for a + # combination of compressed and raw data to be sent in a single response. # Corresponds to the JSON property `additions` # @return [Array] attr_accessor :additions @@ -407,8 +400,8 @@ module Google # @return [String] attr_accessor :platform_type - # A set of entries to remove from a local threat type's list. In practice, - # this field is empty or contains exactly one ThreatEntrySet. + # A set of entries to remove from a local threat type's list. In practice, this + # field is empty or contains exactly one ThreatEntrySet. # Corresponds to the JSON property `removals` # @return [Array] attr_accessor :removals @@ -476,21 +469,20 @@ module Google # The uncompressed threat entries in hash format of a particular prefix length. # Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4 # bytes, but some hashes are lengthened if they collide with the hash of a - # popular URL. - # Used for sending ThreatEntrySet to clients that do not support compression, - # or when sending non-4-byte hashes to clients that do support compression. + # popular URL. Used for sending ThreatEntrySet to clients that do not support + # compression, or when sending non-4-byte hashes to clients that do support + # compression. class RawHashes include Google::Apis::Core::Hashable - # The number of bytes for each prefix encoded below. This field can be - # anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). + # The number of bytes for each prefix encoded below. This field can be anywhere + # from 4 (shortest prefix) to 32 (full SHA256 hash). # Corresponds to the JSON property `prefixSize` # @return [Fixnum] attr_accessor :prefix_size # The hashes, in binary format, concatenated into one long string. Hashes are - # sorted in lexicographic order. For JSON API users, hashes are - # base64-encoded. + # sorted in lexicographic order. For JSON API users, hashes are base64-encoded. # Corresponds to the JSON property `rawHashes` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -551,8 +543,8 @@ module Google # @return [Fixnum] attr_accessor :num_entries - # The Golomb-Rice parameter, which is a number between 2 and 28. This field - # is missing (that is, zero) if `num_entries` is zero. + # The Golomb-Rice parameter, which is a number between 2 and 28. This field is + # missing (that is, zero) if `num_entries` is zero. # Corresponds to the JSON property `riceParameter` # @return [Fixnum] attr_accessor :rice_parameter @@ -570,21 +562,20 @@ module Google end end - # An individual threat; for example, a malicious URL or its hash - # representation. Only one of these fields should be set. + # An individual threat; for example, a malicious URL or its hash representation. + # Only one of these fields should be set. class ThreatEntry include Google::Apis::Core::Hashable - # The digest of an executable in SHA256 format. The API supports both - # binary and hex digests. For JSON requests, digests are base64-encoded. + # The digest of an executable in SHA256 format. The API supports both binary and + # hex digests. For JSON requests, digests are base64-encoded. # Corresponds to the JSON property `digest` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :digest - # A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 - # hash. This field is in binary format. For JSON requests, hashes are - # base64-encoded. + # A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. + # This field is in binary format. For JSON requests, hashes are base64-encoded. # Corresponds to the JSON property `hash` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -640,9 +631,9 @@ module Google # The uncompressed threat entries in hash format of a particular prefix length. # Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4 # bytes, but some hashes are lengthened if they collide with the hash of a - # popular URL. - # Used for sending ThreatEntrySet to clients that do not support compression, - # or when sending non-4-byte hashes to clients that do support compression. + # popular URL. Used for sending ThreatEntrySet to clients that do not support + # compression, or when sending non-4-byte hashes to clients that do support + # compression. # Corresponds to the JSON property `rawHashes` # @return [Google::Apis::SafebrowsingV4::RawHashes] attr_accessor :raw_hashes @@ -687,8 +678,8 @@ module Google # @return [Google::Apis::SafebrowsingV4::ClientInfo] attr_accessor :client_info - # An individual threat; for example, a malicious URL or its hash - # representation. Only one of these fields should be set. + # An individual threat; for example, a malicious URL or its hash representation. + # Only one of these fields should be set. # Corresponds to the JSON property `entry` # @return [Google::Apis::SafebrowsingV4::ThreatEntry] attr_accessor :entry @@ -767,8 +758,8 @@ module Google end # Describes an individual threat list. A list is defined by three parameters: - # the type of threat posed, the type of platform targeted by the threat, and - # the type of entries in the list. + # the type of threat posed, the type of platform targeted by the threat, and the + # type of entries in the list. class ThreatListDescriptor include Google::Apis::Core::Hashable @@ -814,8 +805,8 @@ module Google # @return [String] attr_accessor :platform_type - # An individual threat; for example, a malicious URL or its hash - # representation. Only one of these fields should be set. + # An individual threat; for example, a malicious URL or its hash representation. + # Only one of these fields should be set. # Corresponds to the JSON property `threat` # @return [Google::Apis::SafebrowsingV4::ThreatEntry] attr_accessor :threat diff --git a/generated/google/apis/safebrowsing_v4/service.rb b/generated/google/apis/safebrowsing_v4/service.rb index 2b0d21dfe..8b91288b2 100644 --- a/generated/google/apis/safebrowsing_v4/service.rb +++ b/generated/google/apis/safebrowsing_v4/service.rb @@ -55,8 +55,8 @@ module Google # @param [String] encoded_request # A serialized FindFullHashesRequest proto. # @param [String] client_id - # A client ID that (hopefully) uniquely identifies the client implementation - # of the Safe Browsing API. + # A client ID that (hopefully) uniquely identifies the client implementation of + # the Safe Browsing API. # @param [String] client_version # The version of the client implementation. # @param [String] fields @@ -186,8 +186,8 @@ module Google execute_or_queue_command(command, &block) end - # Fetches the most recent threat list updates. A client can request updates - # for multiple lists at once. + # Fetches the most recent threat list updates. A client can request updates for + # multiple lists at once. # @param [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesRequest] fetch_threat_list_updates_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index f600fe9f0..c1e523da1 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 = '20200801' + REVISION = '20200804' # 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 e0d4bd548..b09ff1a61 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -1701,13 +1701,7 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable. The following are specific rules for service defined - # Monitoring metric descriptors: * `type`, `metric_kind`, `value_type` and ` - # description` 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. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # existing data unusable. class MetricDescriptor include Google::Apis::Core::Hashable @@ -1725,12 +1719,10 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, the `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so you can look - # at latencies for successful responses or just for responses that failed. + # metric type. For example, the `appengine.googleapis.com/http/server/ + # response_latencies` metric type has a label for the HTTP response code, ` + # response_code`, so you can look at latencies for successful responses or just + # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -1765,16 +1757,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of ``service name`/`relative metric name``, such as `cloudsql. - # googleapis.com/database/cpu/utilization`. The relative metric name must follow: - # * Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. * The maximum number of characters allowed for the - # relative_metric_name is 100. All user-defined metric types have the DNS name ` - # custom.googleapis.com`, `external.googleapis.com`, or `logging.googleapis.com/ - # user/`. Metric types should use a natural hierarchical grouping. For example: " - # custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/ - # up" "appengine.googleapis.com/http/server/response_latencies" + # All user-defined metric types have the DNS name `custom.googleapis.com` or ` + # external.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1978,16 +1965,9 @@ module Google # name and a set of labels. For example, the monitored resource descriptor for # Google Compute Engine VM instances has a type of `"gce_instance"` and # specifies the use of the labels `"instance_id"` and `"zone"` to identify - # particular VM instances. Different services can support different monitored - # resource types. The following are specific rules to service defined monitored - # resources for Monitoring and Logging: * The `type`, `display_name`, ` - # description`, `labels` and `launch_stage` fields are all required. * The first - # label of the monitored resource descriptor must be `resource_container`. There - # are legacy monitored resource descritptors start with `project_id`. * It must - # include a `location` label. * Maximum of default 5 service defined monitored - # resource descriptors is allowed per service. * Maximum of default 10 labels - # per monitored resource is allowed. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # particular VM instances. Different APIs can support different monitored + # resource types. APIs generally provide a `list` method that returns the + # monitored resource descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2005,11 +1985,8 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, an individual Google Cloud SQL database is identified by values for - # the labels `database_id` and `location`. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2029,15 +2006,8 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type ` - # cloudsql_database` represents databases in Google Cloud SQL. All service - # defined monitored resource types must be prefixed with the service name, in - # the format of ``service name`/`relative resource name``. The relative resource - # name must follow: * Only upper and lower-case letters and digits are allowed. * - # It must start with upper case character and is recommended to use Upper Camel - # Case style. * The maximum number of characters allowed for the - # relative_resource_name is 100. Note there are legacy service monitored - # resources not following this rule. + # Required. The monitored resource type. For example, the type `" + # cloudsql_database"` represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1.rb b/generated/google/apis/serviceconsumermanagement_v1beta1.rb index 0407c3d35..e42c20283 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 = '20200801' + REVISION = '20200804' # 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 71ba3fa12..0ff34186d 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb @@ -1482,13 +1482,7 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable. The following are specific rules for service defined - # Monitoring metric descriptors: * `type`, `metric_kind`, `value_type` and ` - # description` 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. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # existing data unusable. class MetricDescriptor include Google::Apis::Core::Hashable @@ -1506,12 +1500,10 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, the `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so you can look - # at latencies for successful responses or just for responses that failed. + # metric type. For example, the `appengine.googleapis.com/http/server/ + # response_latencies` metric type has a label for the HTTP response code, ` + # response_code`, so you can look at latencies for successful responses or just + # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -1546,16 +1538,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of ``service name`/`relative metric name``, such as `cloudsql. - # googleapis.com/database/cpu/utilization`. The relative metric name must follow: - # * Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. * The maximum number of characters allowed for the - # relative_metric_name is 100. All user-defined metric types have the DNS name ` - # custom.googleapis.com`, `external.googleapis.com`, or `logging.googleapis.com/ - # user/`. Metric types should use a natural hierarchical grouping. For example: " - # custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/ - # up" "appengine.googleapis.com/http/server/response_latencies" + # All user-defined metric types have the DNS name `custom.googleapis.com` or ` + # external.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1759,16 +1746,9 @@ module Google # name and a set of labels. For example, the monitored resource descriptor for # Google Compute Engine VM instances has a type of `"gce_instance"` and # specifies the use of the labels `"instance_id"` and `"zone"` to identify - # particular VM instances. Different services can support different monitored - # resource types. The following are specific rules to service defined monitored - # resources for Monitoring and Logging: * The `type`, `display_name`, ` - # description`, `labels` and `launch_stage` fields are all required. * The first - # label of the monitored resource descriptor must be `resource_container`. There - # are legacy monitored resource descritptors start with `project_id`. * It must - # include a `location` label. * Maximum of default 5 service defined monitored - # resource descriptors is allowed per service. * Maximum of default 10 labels - # per monitored resource is allowed. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # particular VM instances. Different APIs can support different monitored + # resource types. APIs generally provide a `list` method that returns the + # monitored resource descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -1786,11 +1766,8 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, an individual Google Cloud SQL database is identified by values for - # the labels `database_id` and `location`. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -1810,15 +1787,8 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type ` - # cloudsql_database` represents databases in Google Cloud SQL. All service - # defined monitored resource types must be prefixed with the service name, in - # the format of ``service name`/`relative resource name``. The relative resource - # name must follow: * Only upper and lower-case letters and digits are allowed. * - # It must start with upper case character and is recommended to use Upper Camel - # Case style. * The maximum number of characters allowed for the - # relative_resource_name is 100. Note there are legacy service monitored - # resources not following this rule. + # Required. The monitored resource type. For example, the type `" + # cloudsql_database"` represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index b14e47df7..5a6377648 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 = '20200801' + REVISION = '20200804' # 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 c72d583fb..99e0f0d12 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -2039,13 +2039,7 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable. The following are specific rules for service defined - # Monitoring metric descriptors: * `type`, `metric_kind`, `value_type` and ` - # description` 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. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # existing data unusable. class MetricDescriptor include Google::Apis::Core::Hashable @@ -2063,12 +2057,10 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, the `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so you can look - # at latencies for successful responses or just for responses that failed. + # metric type. For example, the `appengine.googleapis.com/http/server/ + # response_latencies` metric type has a label for the HTTP response code, ` + # response_code`, so you can look at latencies for successful responses or just + # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2103,16 +2095,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of ``service name`/`relative metric name``, such as `cloudsql. - # googleapis.com/database/cpu/utilization`. The relative metric name must follow: - # * Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. * The maximum number of characters allowed for the - # relative_metric_name is 100. All user-defined metric types have the DNS name ` - # custom.googleapis.com`, `external.googleapis.com`, or `logging.googleapis.com/ - # user/`. Metric types should use a natural hierarchical grouping. For example: " - # custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/ - # up" "appengine.googleapis.com/http/server/response_latencies" + # All user-defined metric types have the DNS name `custom.googleapis.com` or ` + # external.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2316,16 +2303,9 @@ module Google # name and a set of labels. For example, the monitored resource descriptor for # Google Compute Engine VM instances has a type of `"gce_instance"` and # specifies the use of the labels `"instance_id"` and `"zone"` to identify - # particular VM instances. Different services can support different monitored - # resource types. The following are specific rules to service defined monitored - # resources for Monitoring and Logging: * The `type`, `display_name`, ` - # description`, `labels` and `launch_stage` fields are all required. * The first - # label of the monitored resource descriptor must be `resource_container`. There - # are legacy monitored resource descritptors start with `project_id`. * It must - # include a `location` label. * Maximum of default 5 service defined monitored - # resource descriptors is allowed per service. * Maximum of default 10 labels - # per monitored resource is allowed. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # particular VM instances. Different APIs can support different monitored + # resource types. APIs generally provide a `list` method that returns the + # monitored resource descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2343,11 +2323,8 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, an individual Google Cloud SQL database is identified by values for - # the labels `database_id` and `location`. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2367,15 +2344,8 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type ` - # cloudsql_database` represents databases in Google Cloud SQL. All service - # defined monitored resource types must be prefixed with the service name, in - # the format of ``service name`/`relative resource name``. The relative resource - # name must follow: * Only upper and lower-case letters and digits are allowed. * - # It must start with upper case character and is recommended to use Upper Camel - # Case style. * The maximum number of characters allowed for the - # relative_resource_name is 100. Note there are legacy service monitored - # resources not following this rule. + # Required. The monitored resource type. For example, the type `" + # cloudsql_database"` represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 5eb2d5d03..2e35be71e 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 = '20200801' + REVISION = '20200804' # 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 e1ce96684..da888e926 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -1808,13 +1808,7 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable. The following are specific rules for service defined - # Monitoring metric descriptors: * `type`, `metric_kind`, `value_type` and ` - # description` 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. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # existing data unusable. class MetricDescriptor include Google::Apis::Core::Hashable @@ -1832,12 +1826,10 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, the `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so you can look - # at latencies for successful responses or just for responses that failed. + # metric type. For example, the `appengine.googleapis.com/http/server/ + # response_latencies` metric type has a label for the HTTP response code, ` + # response_code`, so you can look at latencies for successful responses or just + # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -1872,16 +1864,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of ``service name`/`relative metric name``, such as `cloudsql. - # googleapis.com/database/cpu/utilization`. The relative metric name must follow: - # * Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. * The maximum number of characters allowed for the - # relative_metric_name is 100. All user-defined metric types have the DNS name ` - # custom.googleapis.com`, `external.googleapis.com`, or `logging.googleapis.com/ - # user/`. Metric types should use a natural hierarchical grouping. For example: " - # custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/ - # up" "appengine.googleapis.com/http/server/response_latencies" + # All user-defined metric types have the DNS name `custom.googleapis.com` or ` + # external.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2085,16 +2072,9 @@ module Google # name and a set of labels. For example, the monitored resource descriptor for # Google Compute Engine VM instances has a type of `"gce_instance"` and # specifies the use of the labels `"instance_id"` and `"zone"` to identify - # particular VM instances. Different services can support different monitored - # resource types. The following are specific rules to service defined monitored - # resources for Monitoring and Logging: * The `type`, `display_name`, ` - # description`, `labels` and `launch_stage` fields are all required. * The first - # label of the monitored resource descriptor must be `resource_container`. There - # are legacy monitored resource descritptors start with `project_id`. * It must - # include a `location` label. * Maximum of default 5 service defined monitored - # resource descriptors is allowed per service. * Maximum of default 10 labels - # per monitored resource is allowed. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # particular VM instances. Different APIs can support different monitored + # resource types. APIs generally provide a `list` method that returns the + # monitored resource descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2112,11 +2092,8 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, an individual Google Cloud SQL database is identified by values for - # the labels `database_id` and `location`. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2136,15 +2113,8 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type ` - # cloudsql_database` represents databases in Google Cloud SQL. All service - # defined monitored resource types must be prefixed with the service name, in - # the format of ``service name`/`relative resource name``. The relative resource - # name must follow: * Only upper and lower-case letters and digits are allowed. * - # It must start with upper case character and is recommended to use Upper Camel - # Case style. * The maximum number of characters allowed for the - # relative_resource_name is 100. Note there are legacy service monitored - # resources not following this rule. + # Required. The monitored resource type. For example, the type `" + # cloudsql_database"` represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 7c713c1dd..fb22edc7b 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 = '20200801' + REVISION = '20200804' # 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 577ef5a00..ea8a58ec2 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -2493,13 +2493,7 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable. The following are specific rules for service defined - # Monitoring metric descriptors: * `type`, `metric_kind`, `value_type` and ` - # description` 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. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # existing data unusable. class MetricDescriptor include Google::Apis::Core::Hashable @@ -2517,12 +2511,10 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, the `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so you can look - # at latencies for successful responses or just for responses that failed. + # metric type. For example, the `appengine.googleapis.com/http/server/ + # response_latencies` metric type has a label for the HTTP response code, ` + # response_code`, so you can look at latencies for successful responses or just + # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2557,16 +2549,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of ``service name`/`relative metric name``, such as `cloudsql. - # googleapis.com/database/cpu/utilization`. The relative metric name must follow: - # * Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. * The maximum number of characters allowed for the - # relative_metric_name is 100. All user-defined metric types have the DNS name ` - # custom.googleapis.com`, `external.googleapis.com`, or `logging.googleapis.com/ - # user/`. Metric types should use a natural hierarchical grouping. For example: " - # custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/ - # up" "appengine.googleapis.com/http/server/response_latencies" + # All user-defined metric types have the DNS name `custom.googleapis.com` or ` + # external.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2770,16 +2757,9 @@ module Google # name and a set of labels. For example, the monitored resource descriptor for # Google Compute Engine VM instances has a type of `"gce_instance"` and # specifies the use of the labels `"instance_id"` and `"zone"` to identify - # particular VM instances. Different services can support different monitored - # resource types. The following are specific rules to service defined monitored - # resources for Monitoring and Logging: * The `type`, `display_name`, ` - # description`, `labels` and `launch_stage` fields are all required. * The first - # label of the monitored resource descriptor must be `resource_container`. There - # are legacy monitored resource descritptors start with `project_id`. * It must - # include a `location` label. * Maximum of default 5 service defined monitored - # resource descriptors is allowed per service. * Maximum of default 10 labels - # per monitored resource is allowed. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # particular VM instances. Different APIs can support different monitored + # resource types. APIs generally provide a `list` method that returns the + # monitored resource descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2797,11 +2777,8 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, an individual Google Cloud SQL database is identified by values for - # the labels `database_id` and `location`. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2821,15 +2798,8 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type ` - # cloudsql_database` represents databases in Google Cloud SQL. All service - # defined monitored resource types must be prefixed with the service name, in - # the format of ``service name`/`relative resource name``. The relative resource - # name must follow: * Only upper and lower-case letters and digits are allowed. * - # It must start with upper case character and is recommended to use Upper Camel - # Case style. * The maximum number of characters allowed for the - # relative_resource_name is 100. Note there are legacy service monitored - # resources not following this rule. + # Required. The monitored resource type. For example, the type `" + # cloudsql_database"` represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index ae155bf75..2657362ba 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 = '20200801' + REVISION = '20200804' # 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 f5bb06ab0..417e55630 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -2659,13 +2659,7 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable. The following are specific rules for service defined - # Monitoring metric descriptors: * `type`, `metric_kind`, `value_type` and ` - # description` 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. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # existing data unusable. class MetricDescriptor include Google::Apis::Core::Hashable @@ -2683,12 +2677,10 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, the `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so you can look - # at latencies for successful responses or just for responses that failed. + # metric type. For example, the `appengine.googleapis.com/http/server/ + # response_latencies` metric type has a label for the HTTP response code, ` + # response_code`, so you can look at latencies for successful responses or just + # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2723,16 +2715,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of ``service name`/`relative metric name``, such as `cloudsql. - # googleapis.com/database/cpu/utilization`. The relative metric name must follow: - # * Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. * The maximum number of characters allowed for the - # relative_metric_name is 100. All user-defined metric types have the DNS name ` - # custom.googleapis.com`, `external.googleapis.com`, or `logging.googleapis.com/ - # user/`. Metric types should use a natural hierarchical grouping. For example: " - # custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/ - # up" "appengine.googleapis.com/http/server/response_latencies" + # All user-defined metric types have the DNS name `custom.googleapis.com` or ` + # external.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2936,16 +2923,9 @@ module Google # name and a set of labels. For example, the monitored resource descriptor for # Google Compute Engine VM instances has a type of `"gce_instance"` and # specifies the use of the labels `"instance_id"` and `"zone"` to identify - # particular VM instances. Different services can support different monitored - # resource types. The following are specific rules to service defined monitored - # resources for Monitoring and Logging: * The `type`, `display_name`, ` - # description`, `labels` and `launch_stage` fields are all required. * The first - # label of the monitored resource descriptor must be `resource_container`. There - # are legacy monitored resource descritptors start with `project_id`. * It must - # include a `location` label. * Maximum of default 5 service defined monitored - # resource descriptors is allowed per service. * Maximum of default 10 labels - # per monitored resource is allowed. The default maximum limit can be overridden. - # Please follow https://cloud.google.com/monitoring/quotas + # particular VM instances. Different APIs can support different monitored + # resource types. APIs generally provide a `list` method that returns the + # monitored resource descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -2963,11 +2943,8 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: * Only upper and lower-case - # letters, digits and underscores (_) are allowed. * Label name must start with - # a letter or digit. * The maximum length of a label name is 100 characters. For - # example, an individual Google Cloud SQL database is identified by values for - # the labels `database_id` and `location`. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2987,15 +2964,8 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type ` - # cloudsql_database` represents databases in Google Cloud SQL. All service - # defined monitored resource types must be prefixed with the service name, in - # the format of ``service name`/`relative resource name``. The relative resource - # name must follow: * Only upper and lower-case letters and digits are allowed. * - # It must start with upper case character and is recommended to use Upper Camel - # Case style. * The maximum number of characters allowed for the - # relative_resource_name is 100. Note there are legacy service monitored - # resources not following this rule. + # Required. The monitored resource type. For example, the type `" + # cloudsql_database"` represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/sourcerepo_v1.rb b/generated/google/apis/sourcerepo_v1.rb index 39e4e943a..0fa7e0ada 100644 --- a/generated/google/apis/sourcerepo_v1.rb +++ b/generated/google/apis/sourcerepo_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/source-repositories/docs/apis module SourcerepoV1 VERSION = 'V1' - REVISION = '20200520' + REVISION = '20200729' # 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/sourcerepo_v1/classes.rb b/generated/google/apis/sourcerepo_v1/classes.rb index ca09d2a4f..6e09ed3c1 100644 --- a/generated/google/apis/sourcerepo_v1/classes.rb +++ b/generated/google/apis/sourcerepo_v1/classes.rb @@ -34,7 +34,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -43,18 +43,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", @@ -106,7 +106,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/sql_v1beta4.rb b/generated/google/apis/sql_v1beta4.rb index 3d370561a..a0b5385df 100644 --- a/generated/google/apis/sql_v1beta4.rb +++ b/generated/google/apis/sql_v1beta4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-sql/ module SqlV1beta4 VERSION = 'V1beta4' - REVISION = '20200713' + REVISION = '20200728' # 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/sql_v1beta4/classes.rb b/generated/google/apis/sql_v1beta4/classes.rb index bbf1c358b..389106fb1 100644 --- a/generated/google/apis/sql_v1beta4/classes.rb +++ b/generated/google/apis/sql_v1beta4/classes.rb @@ -43,7 +43,7 @@ module Google # @return [String] attr_accessor :name - # The whitelisted value for the access control list. + # The allowlisted value for the access control list. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -446,7 +446,7 @@ module Google include Google::Apis::Core::Hashable # The name of the flag. These flags are passed at instance startup, so - # include both server options and system variables for MySQL. Flags should be + # include both server options and system variables for MySQL. Flags are # specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud # SQL documentation. @@ -454,7 +454,7 @@ module Google # @return [String] attr_accessor :name - # The value of the flag. Booleans should be set to on for true + # The value of the flag. Booleans are set to on for true # and off for false. This field must be omitted if the flag # doesn't take a value. # Corresponds to the JSON property `value` @@ -492,7 +492,7 @@ module Google attr_accessor :connection_name # The current disk usage of the instance in bytes. This property has been - # deprecated. Users should use the + # deprecated. Use the # "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud # Monitoring API instead. Please see ] attr_accessor :matches_storage_class - # A timestamp in RFC 3339 format. This condition is satisfied when the - # noncurrent time on an object is before this timestamp. This condition is - # relevant only for versioned objects. + # A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). + # This condition is satisfied when the noncurrent time on an object is before + # this date in UTC. This condition is relevant only for versioned objects. # Corresponds to the JSON property `noncurrentTimeBefore` - # @return [DateTime] + # @return [Date] attr_accessor :noncurrent_time_before # Relevant only for versioned objects. If the value is N, this condition is diff --git a/generated/google/apis/storage_v1/representations.rb b/generated/google/apis/storage_v1/representations.rb index 303773209..831798184 100644 --- a/generated/google/apis/storage_v1/representations.rb +++ b/generated/google/apis/storage_v1/representations.rb @@ -403,14 +403,14 @@ module Google property :age, as: 'age' property :created_before, as: 'createdBefore', type: Date - property :custom_time_before, as: 'customTimeBefore', type: DateTime + property :custom_time_before, as: 'customTimeBefore', type: Date property :days_since_custom_time, as: 'daysSinceCustomTime' property :days_since_noncurrent_time, as: 'daysSinceNoncurrentTime' property :is_live, as: 'isLive' property :matches_pattern, as: 'matchesPattern' collection :matches_storage_class, as: 'matchesStorageClass' - property :noncurrent_time_before, as: 'noncurrentTimeBefore', type: DateTime + property :noncurrent_time_before, as: 'noncurrentTimeBefore', type: Date property :num_newer_versions, as: 'numNewerVersions' end diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index 5ac0662d1..af1a7d4cd 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-test-lab/ module TestingV1 VERSION = 'V1' - REVISION = '20200720' + REVISION = '20200805' # 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/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index 0dd449ed0..694ccc6da 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -26,13 +26,12 @@ module Google class Account include Google::Apis::Core::Hashable - # Enables automatic Google account login. - # If set, the service automatically generates a Google test account and adds - # it to the device, before executing the test. Note that test accounts might be - # reused. - # Many applications show their full set of functionalities when an account is - # present on the device. Logging into the device with these generated accounts - # allows testing more functionalities. + # Enables automatic Google account login. If set, the service automatically + # generates a Google test account and adds it to the device, before executing + # the test. Note that test accounts might be reused. Many applications show + # their full set of functionalities when an account is present on the device. + # Logging into the device with these generated accounts allows testing more + # functionalities. # Corresponds to the JSON property `googleAuto` # @return [Google::Apis::TestingV1::GoogleAuto] attr_accessor :google_auto @@ -51,26 +50,26 @@ module Google class AndroidDevice include Google::Apis::Core::Hashable - # Required. The id of the Android device to be used. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The id of the Android device to be used. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `androidModelId` # @return [String] attr_accessor :android_model_id - # Required. The id of the Android OS version to be used. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The id of the Android OS version to be used. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `androidVersionId` # @return [String] attr_accessor :android_version_id - # Required. The locale the test device used for testing. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The locale the test device used for testing. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `locale` # @return [String] attr_accessor :locale - # Required. How the device is oriented during the test. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. How the device is oriented during the test. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `orientation` # @return [String] attr_accessor :orientation @@ -139,13 +138,11 @@ module Google end # A test of an Android application that can control an Android component - # independently of its normal lifecycle. - # Android instrumentation tests run an application APK and test APK inside the - # same process on a virtual or physical AndroidDevice. They also specify - # a test runner class, such as com.google.GoogleTestRunner, which can vary - # on the specific instrumentation framework chosen. - # See for - # more information on types of Android tests. + # independently of its normal lifecycle. Android instrumentation tests run an + # application APK and test APK inside the same process on a virtual or physical + # AndroidDevice. They also specify a test runner class, such as com.google. + # GoogleTestRunner, which can vary on the specific instrumentation framework + # chosen. See for more information on types of Android tests. class AndroidInstrumentationTest include Google::Apis::Core::Hashable @@ -154,32 +151,25 @@ module Google # @return [Google::Apis::TestingV1::FileReference] attr_accessor :app_apk - # An Android App Bundle file format, containing a BundleConfig.pb file, - # a base module directory, zero or more dynamic feature module directories. - #

See https://developer.android.com/guide/app-bundle/build for guidance on - # building App Bundles. + # An Android App Bundle file format, containing a BundleConfig.pb file, a base + # module directory, zero or more dynamic feature module directories. See https:// + # developer.android.com/guide/app-bundle/build for guidance on building App + # Bundles. # Corresponds to the JSON property `appBundle` # @return [Google::Apis::TestingV1::AppBundle] attr_accessor :app_bundle - # The java package for the application under test. - # The default value is determined by examining the application's manifest. + # The java package for the application under test. The default value is + # determined by examining the application's manifest. # Corresponds to the JSON property `appPackageId` # @return [String] attr_accessor :app_package_id # The option of whether running each test within its own invocation of - # instrumentation with Android Test Orchestrator or not. - # ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or - # higher! ** - # Orchestrator offers the following benefits: - # - No shared state - # - Crashes are isolated - # - Logs are scoped per test - # See - # - # for more information about Android Test Orchestrator. + # instrumentation with Android Test Orchestrator or not. ** Orchestrator is only + # compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator + # offers the following benefits: - No shared state - Crashes are isolated - Logs + # are scoped per test See for more information about Android Test Orchestrator. # If not set, the test will be run without the orchestrator. # Corresponds to the JSON property `orchestratorOption` # @return [String] @@ -195,24 +185,22 @@ module Google # @return [Google::Apis::TestingV1::FileReference] attr_accessor :test_apk - # The java package for the test to be executed. - # The default value is determined by examining the application's manifest. + # The java package for the test to be executed. The default value is determined + # by examining the application's manifest. # Corresponds to the JSON property `testPackageId` # @return [String] attr_accessor :test_package_id - # The InstrumentationTestRunner class. - # The default value is determined by examining the application's manifest. + # The InstrumentationTestRunner class. The default value is determined by + # examining the application's manifest. # Corresponds to the JSON property `testRunnerClass` # @return [String] attr_accessor :test_runner_class - # Each target must be fully qualified with the package name or class name, - # in one of these formats: - # - "package package_name" - # - "class package_name.class_name" - # - "class package_name.class_name#method_name" - # If empty, all targets in the module will be run. + # Each target must be fully qualified with the package name or class name, in + # one of these formats: - "package package_name" - "class package_name. + # class_name" - "class package_name.class_name#method_name" If empty, all + # targets in the module will be run. # Corresponds to the JSON property `testTargets` # @return [Array] attr_accessor :test_targets @@ -235,34 +223,34 @@ module Google end end - # A set of Android device configuration permutations is defined by the - # the cross-product of the given axes. Internally, the given AndroidMatrix - # will be expanded into a set of AndroidDevices. - # Only supported permutations will be instantiated. Invalid permutations - # (e.g., incompatible models/versions) are ignored. + # A set of Android device configuration permutations is defined by the the cross- + # product of the given axes. Internally, the given AndroidMatrix will be + # expanded into a set of AndroidDevices. Only supported permutations will be + # instantiated. Invalid permutations (e.g., incompatible models/versions) are + # ignored. class AndroidMatrix include Google::Apis::Core::Hashable - # Required. The ids of the set of Android device to be used. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The ids of the set of Android device to be used. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `androidModelIds` # @return [Array] attr_accessor :android_model_ids - # Required. The ids of the set of Android OS version to be used. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The ids of the set of Android OS version to be used. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `androidVersionIds` # @return [Array] attr_accessor :android_version_ids - # Required. The set of locales the test device will enable for testing. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The set of locales the test device will enable for testing. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `locales` # @return [Array] attr_accessor :locales - # Required. The set of orientations to test with. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The set of orientations to test with. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `orientations` # @return [Array] attr_accessor :orientations @@ -284,14 +272,12 @@ module Google class AndroidModel include Google::Apis::Core::Hashable - # The company that this device is branded with. - # Example: "Google", "Samsung". + # The company that this device is branded with. Example: "Google", "Samsung". # Corresponds to the JSON property `brand` # @return [String] attr_accessor :brand - # The name of the industrial design. - # This corresponds to android.os.Build.DEVICE. + # The name of the industrial design. This corresponds to android.os.Build.DEVICE. # Corresponds to the JSON property `codename` # @return [String] attr_accessor :codename @@ -306,14 +292,14 @@ module Google # @return [String] attr_accessor :form_factor - # The unique opaque id for this model. - # Use this for invoking the TestExecutionService. + # The unique opaque id for this model. Use this for invoking the + # TestExecutionService. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # True if and only if tests with this model are recorded by stitching - # together screenshots. See use_low_spec_video_recording in device config. + # True if and only if tests with this model are recorded by stitching together + # screenshots. See use_low_spec_video_recording in device config. # Corresponds to the JSON property `lowFpsVideoRecording` # @return [Boolean] attr_accessor :low_fps_video_recording @@ -324,14 +310,13 @@ module Google # @return [String] attr_accessor :manufacturer - # The human-readable marketing name for this device model. - # Examples: "Nexus 5", "Galaxy S5". + # The human-readable marketing name for this device model. Examples: "Nexus 5", " + # Galaxy S5". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Screen density in DPI. - # This corresponds to ro.sf.lcd_density + # Screen density in DPI. This corresponds to ro.sf.lcd_density # Corresponds to the JSON property `screenDensity` # @return [Fixnum] attr_accessor :screen_density @@ -346,13 +331,12 @@ module Google # @return [Fixnum] attr_accessor :screen_y - # The list of supported ABIs for this device. - # This corresponds to either android.os.Build.SUPPORTED_ABIS (for API level - # 21 and above) or android.os.Build.CPU_ABI/CPU_ABI2. - # The most preferred ABI is the first element in the list. - # Elements are optionally prefixed by "version_id:" (where version_id is - # the id of an AndroidVersion), denoting an ABI that is supported only on - # a particular version. + # The list of supported ABIs for this device. This corresponds to either android. + # os.Build.SUPPORTED_ABIS (for API level 21 and above) or android.os.Build. + # CPU_ABI/CPU_ABI2. The most preferred ABI is the first element in the list. + # Elements are optionally prefixed by "version_id:" (where version_id is the id + # of an AndroidVersion), denoting an ABI that is supported only on a particular + # version. # Corresponds to the JSON property `supportedAbis` # @return [Array] attr_accessor :supported_abis @@ -362,14 +346,13 @@ module Google # @return [Array] attr_accessor :supported_version_ids - # Tags for this dimension. - # Examples: "default", "preview", "deprecated". + # Tags for this dimension. Examples: "default", "preview", "deprecated". # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags - # URL of a thumbnail image (photo) of the device. - # e.g. https://lh3.googleusercontent.com/90WcauuJiCYABEl8U0lcZeuS5STUbf2yW... + # URL of a thumbnail image (photo) of the device. e.g. https://lh3. + # googleusercontent.com/90WcauuJiCYABEl8U0lcZeuS5STUbf2yW... # Corresponds to the JSON property `thumbnailUrl` # @return [String] attr_accessor :thumbnail_url @@ -398,8 +381,8 @@ module Google end end - # A test of an android application that explores the application on a virtual - # or physical Android Device, finding culprits and crashes as it goes. + # A test of an android application that explores the application on a virtual or + # physical Android Device, finding culprits and crashes as it goes. class AndroidRoboTest include Google::Apis::Core::Hashable @@ -408,10 +391,10 @@ module Google # @return [Google::Apis::TestingV1::FileReference] attr_accessor :app_apk - # An Android App Bundle file format, containing a BundleConfig.pb file, - # a base module directory, zero or more dynamic feature module directories. - #

See https://developer.android.com/guide/app-bundle/build for guidance on - # building App Bundles. + # An Android App Bundle file format, containing a BundleConfig.pb file, a base + # module directory, zero or more dynamic feature module directories. See https:// + # developer.android.com/guide/app-bundle/build for guidance on building App + # Bundles. # Corresponds to the JSON property `appBundle` # @return [Google::Apis::TestingV1::AppBundle] attr_accessor :app_bundle @@ -421,28 +404,26 @@ module Google # @return [String] attr_accessor :app_initial_activity - # The java package for the application under test. - # The default value is determined by examining the application's manifest. + # The java package for the application under test. The default value is + # determined by examining the application's manifest. # Corresponds to the JSON property `appPackageId` # @return [String] attr_accessor :app_package_id - # The max depth of the traversal stack Robo can explore. Needs to be at least - # 2 to make Robo explore the app beyond the first activity. - # Default is 50. + # The max depth of the traversal stack Robo can explore. Needs to be at least 2 + # to make Robo explore the app beyond the first activity. Default is 50. # Corresponds to the JSON property `maxDepth` # @return [Fixnum] attr_accessor :max_depth - # The max number of steps Robo can execute. - # Default is no limit. + # The max number of steps Robo can execute. Default is no limit. # Corresponds to the JSON property `maxSteps` # @return [Fixnum] attr_accessor :max_steps - # A set of directives Robo should apply during the crawl. - # This allows users to customize the crawl. For example, the username and - # password for a test account can be provided. + # A set of directives Robo should apply during the crawl. This allows users to + # customize the crawl. For example, the username and password for a test account + # can be provided. # Corresponds to the JSON property `roboDirectives` # @return [Array] attr_accessor :robo_directives @@ -452,10 +433,9 @@ module Google # @return [Google::Apis::TestingV1::FileReference] attr_accessor :robo_script - # The intents used to launch the app for the crawl. - # If none are provided, then the main launcher activity is launched. - # If some are provided, then only those provided are launched (the main - # launcher activity must be provided explicitly). + # The intents used to launch the app for the crawl. If none are provided, then + # the main launcher activity is launched. If some are provided, then only those + # provided are launched (the main launcher activity must be provided explicitly). # Corresponds to the JSON property `startingIntents` # @return [Array] attr_accessor :starting_intents @@ -503,9 +483,8 @@ module Google end end - # A test of an Android Application with a Test Loop. - # The intent \ will be implicitly added, since Games is the only - # user of this api, for the time being. + # A test of an Android Application with a Test Loop. The intent \ will be + # implicitly added, since Games is the only user of this api, for the time being. class AndroidTestLoop include Google::Apis::Core::Hashable @@ -514,34 +493,31 @@ module Google # @return [Google::Apis::TestingV1::FileReference] attr_accessor :app_apk - # An Android App Bundle file format, containing a BundleConfig.pb file, - # a base module directory, zero or more dynamic feature module directories. - #

See https://developer.android.com/guide/app-bundle/build for guidance on - # building App Bundles. + # An Android App Bundle file format, containing a BundleConfig.pb file, a base + # module directory, zero or more dynamic feature module directories. See https:// + # developer.android.com/guide/app-bundle/build for guidance on building App + # Bundles. # Corresponds to the JSON property `appBundle` # @return [Google::Apis::TestingV1::AppBundle] attr_accessor :app_bundle - # The java package for the application under test. - # The default is determined by examining the application's manifest. + # The java package for the application under test. The default is determined by + # examining the application's manifest. # Corresponds to the JSON property `appPackageId` # @return [String] attr_accessor :app_package_id - # The list of scenario labels that should be run during the test. - # The scenario labels should map to labels defined in the application's - # manifest. For example, player_experience and - # com.google.test.loops.player_experience add all of the loops labeled in the - # manifest with the com.google.test.loops.player_experience name to the - # execution. - # Scenarios can also be specified in the scenarios field. + # The list of scenario labels that should be run during the test. The scenario + # labels should map to labels defined in the application's manifest. For example, + # player_experience and com.google.test.loops.player_experience add all of the + # loops labeled in the manifest with the com.google.test.loops.player_experience + # name to the execution. Scenarios can also be specified in the scenarios field. # Corresponds to the JSON property `scenarioLabels` # @return [Array] attr_accessor :scenario_labels - # The list of scenarios that should be run during the test. - # The default is all test loops, derived from the application's - # manifest. + # The list of scenarios that should be run during the test. The default is all + # test loops, derived from the application's manifest. # Corresponds to the JSON property `scenarios` # @return [Array] attr_accessor :scenarios @@ -564,50 +540,46 @@ module Google class AndroidVersion include Google::Apis::Core::Hashable - # The API level for this Android version. - # Examples: 18, 19. + # The API level for this Android version. Examples: 18, 19. # Corresponds to the JSON property `apiLevel` # @return [Fixnum] attr_accessor :api_level - # The code name for this Android version. - # Examples: "JellyBean", "KitKat". + # The code name for this Android version. Examples: "JellyBean", "KitKat". # Corresponds to the JSON property `codeName` # @return [String] attr_accessor :code_name - # Data about the relative number of devices running a - # given configuration of the Android platform. + # Data about the relative number of devices running a given configuration of the + # Android platform. # Corresponds to the JSON property `distribution` # @return [Google::Apis::TestingV1::Distribution] attr_accessor :distribution - # An opaque id for this Android version. - # Use this id to invoke the TestExecutionService. + # An opaque id for this Android version. Use this id to invoke the + # TestExecutionService. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. # Corresponds to the JSON property `releaseDate` # @return [Google::Apis::TestingV1::Date] attr_accessor :release_date - # Tags for this dimension. - # Examples: "default", "preview", "deprecated". + # Tags for this dimension. Examples: "default", "preview", "deprecated". # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags - # A string representing this version of the Android OS. - # Examples: "4.3", "4.4". + # A string representing this version of the Android OS. Examples: "4.3", "4.4". # Corresponds to the JSON property `versionString` # @return [String] attr_accessor :version_string @@ -637,8 +609,8 @@ module Google # @return [Google::Apis::TestingV1::FileReference] attr_accessor :location - # The java package for the APK to be installed. - # Value is determined by examining the application's manifest. + # The java package for the APK to be installed. Value is determined by examining + # the application's manifest. # Corresponds to the JSON property `packageName` # @return [String] attr_accessor :package_name @@ -659,8 +631,8 @@ module Google class ApkDetail include Google::Apis::Core::Hashable - # An Android app manifest. See - # http://developer.android.com/guide/topics/manifest/manifest-intro.html + # An Android app manifest. See http://developer.android.com/guide/topics/ + # manifest/manifest-intro.html # Corresponds to the JSON property `apkManifest` # @return [Google::Apis::TestingV1::ApkManifest] attr_accessor :apk_manifest @@ -675,8 +647,8 @@ module Google end end - # An Android app manifest. See - # http://developer.android.com/guide/topics/manifest/manifest-intro.html + # An Android app manifest. See http://developer.android.com/guide/topics/ + # manifest/manifest-intro.html class ApkManifest include Google::Apis::Core::Hashable @@ -700,8 +672,7 @@ module Google # @return [Fixnum] attr_accessor :min_sdk_version - # Full Java-style package name for this application, e.g. - # "com.example.foo". + # Full Java-style package name for this application, e.g. "com.example.foo". # Corresponds to the JSON property `packageName` # @return [String] attr_accessor :package_name @@ -726,10 +697,10 @@ module Google end end - # An Android App Bundle file format, containing a BundleConfig.pb file, - # a base module directory, zero or more dynamic feature module directories. - #

See https://developer.android.com/guide/app-bundle/build for guidance on - # building App Bundles. + # An Android App Bundle file format, containing a BundleConfig.pb file, a base + # module directory, zero or more dynamic feature module directories. See https:// + # developer.android.com/guide/app-bundle/build for guidance on building App + # Bundles. class AppBundle include Google::Apis::Core::Hashable @@ -752,9 +723,8 @@ module Google class CancelTestMatrixResponse include Google::Apis::Core::Hashable - # The current rolled-up state of the test matrix. - # If this state is already final, then the cancelation request will - # have no effect. + # The current rolled-up state of the test matrix. If this state is already final, + # then the cancelation request will have no effect. # Corresponds to the JSON property `testState` # @return [String] attr_accessor :test_state @@ -794,8 +764,8 @@ module Google end end - # Key-value pair of detailed information about the client which invoked the - # test. Examples: `'Version', '1.0'`, `'Release Track', 'BETA'`. + # Key-value pair of detailed information about the client which invoked the test. + # Examples: `'Version', '1.0'`, `'Release Track', 'BETA'`. class ClientInfoDetail include Google::Apis::Core::Hashable @@ -822,30 +792,29 @@ module Google # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. class Date include Google::Apis::Core::Hashable - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - # if specifying a year by itself or a year and month where the day is not + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + # specifying a year by itself or a year and month where the day is not # significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12, or 0 if specifying a year without a - # month and day. + # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # and day. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. # Corresponds to the JSON property `year` # @return [Fixnum] attr_accessor :year @@ -893,12 +862,12 @@ module Google # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. # Corresponds to the JSON property `addedDate` # @return [Google::Apis::TestingV1::Date] attr_accessor :added_date @@ -944,8 +913,8 @@ module Google end end - # Data about the relative number of devices running a - # given configuration of the Android platform. + # Data about the relative number of devices running a given configuration of the + # Android platform. class Distribution include Google::Apis::Core::Hashable @@ -1005,11 +974,11 @@ module Google # @return [Google::Apis::TestingV1::AndroidDeviceList] attr_accessor :android_device_list - # A set of Android device configuration permutations is defined by the - # the cross-product of the given axes. Internally, the given AndroidMatrix - # will be expanded into a set of AndroidDevices. - # Only supported permutations will be instantiated. Invalid permutations - # (e.g., incompatible models/versions) are ignored. + # A set of Android device configuration permutations is defined by the the cross- + # product of the given axes. Internally, the given AndroidMatrix will be + # expanded into a set of AndroidDevices. Only supported permutations will be + # instantiated. Invalid permutations (e.g., incompatible models/versions) are + # ignored. # Corresponds to the JSON property `androidMatrix` # @return [Google::Apis::TestingV1::AndroidMatrix] attr_accessor :android_matrix @@ -1060,9 +1029,9 @@ module Google class FileReference include Google::Apis::Core::Hashable - # A path to a file in Google Cloud Storage. - # Example: gs://build-app-1414623860166/app%40debug-unaligned.apk - # These paths are expected to be url encoded (percent encoding) + # A path to a file in Google Cloud Storage. Example: gs://build-app- + # 1414623860166/app%40debug-unaligned.apk These paths are expected to be url + # encoded (percent encoding) # Corresponds to the JSON property `gcsPath` # @return [String] attr_accessor :gcs_path @@ -1097,13 +1066,12 @@ module Google end end - # Enables automatic Google account login. - # If set, the service automatically generates a Google test account and adds - # it to the device, before executing the test. Note that test accounts might be - # reused. - # Many applications show their full set of functionalities when an account is - # present on the device. Logging into the device with these generated accounts - # allows testing more functionalities. + # Enables automatic Google account login. If set, the service automatically + # generates a Google test account and adds it to the device, before executing + # the test. Note that test accounts might be reused. Many applications show + # their full set of functionalities when an account is present on the device. + # Logging into the device with these generated accounts allows testing more + # functionalities. class GoogleAuto include Google::Apis::Core::Hashable @@ -1120,10 +1088,9 @@ module Google class GoogleCloudStorage include Google::Apis::Core::Hashable - # Required. The path to a directory in GCS that will - # eventually contain the results for this test. - # The requesting user must have write access on the bucket in the supplied - # path. + # Required. The path to a directory in GCS that will eventually contain the + # results for this test. The requesting user must have write access on the + # bucket in the supplied path. # Corresponds to the JSON property `gcsPath` # @return [String] attr_accessor :gcs_path @@ -1138,22 +1105,22 @@ module Google end end - # The section of an tag. - # https://developer.android.com/guide/topics/manifest/intent-filter-element.html + # The section of an tag. https://developer.android.com/guide/topics/manifest/ + # intent-filter-element.html class IntentFilter include Google::Apis::Core::Hashable - # The android:name value of the tag. + # The android:name value of the tag. # Corresponds to the JSON property `actionNames` # @return [Array] attr_accessor :action_names - # The android:name value of the tag. + # The android:name value of the tag. # Corresponds to the JSON property `categoryNames` # @return [Array] attr_accessor :category_names - # The android:mimeType value of the tag. + # The android:mimeType value of the tag. # Corresponds to the JSON property `mimeType` # @return [String] attr_accessor :mime_type @@ -1174,26 +1141,26 @@ module Google class IosDevice include Google::Apis::Core::Hashable - # Required. The id of the iOS device to be used. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The id of the iOS device to be used. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `iosModelId` # @return [String] attr_accessor :ios_model_id - # Required. The id of the iOS major software version to be used. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The id of the iOS major software version to be used. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `iosVersionId` # @return [String] attr_accessor :ios_version_id - # Required. The locale the test device used for testing. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. The locale the test device used for testing. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `locale` # @return [String] attr_accessor :locale - # Required. How the device is oriented during the test. - # Use the TestEnvironmentDiscoveryService to get supported options. + # Required. How the device is oriented during the test. Use the + # TestEnvironmentDiscoveryService to get supported options. # Corresponds to the JSON property `orientation` # @return [String] attr_accessor :orientation @@ -1267,16 +1234,13 @@ module Google end end - # A description of an iOS device tests may be run on. - # Next tag: 13 + # A description of an iOS device tests may be run on. Next tag: 13 class IosModel include Google::Apis::Core::Hashable - # Device capabilities. - # Copied from - # https://developer.apple.com/library/archive/documentation/DeviceInformation/ - # Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/ - # DeviceCompatibilityMatrix.html + # Device capabilities. Copied from https://developer.apple.com/library/archive/ + # documentation/DeviceInformation/Reference/iOSDeviceCompatibility/ + # DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html # Corresponds to the JSON property `deviceCapabilities` # @return [Array] attr_accessor :device_capabilities @@ -1286,14 +1250,14 @@ module Google # @return [String] attr_accessor :form_factor - # The unique opaque id for this model. - # Use this for invoking the TestExecutionService. + # The unique opaque id for this model. Use this for invoking the + # TestExecutionService. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # The human-readable name for this device model. - # Examples: "iPhone 4s", "iPad Mini 2". + # The human-readable name for this device model. Examples: "iPhone 4s", "iPad + # Mini 2". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1318,8 +1282,7 @@ module Google # @return [Array] attr_accessor :supported_version_ids - # Tags for this dimension. - # Examples: "default", "preview", "deprecated". + # Tags for this dimension. Examples: "default", "preview", "deprecated". # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags @@ -1405,10 +1368,9 @@ module Google class IosTestSetup include Google::Apis::Core::Hashable - # The network traffic profile used for running the test. - # Available network profiles can be queried by using the - # NETWORK_CONFIGURATION environment type when calling - # TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog. + # The network traffic profile used for running the test. Available network + # profiles can be queried by using the NETWORK_CONFIGURATION environment type + # when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog. # Corresponds to the JSON property `networkProfile` # @return [String] attr_accessor :network_profile @@ -1427,20 +1389,18 @@ module Google class IosVersion include Google::Apis::Core::Hashable - # An opaque id for this iOS version. - # Use this id to invoke the TestExecutionService. + # An opaque id for this iOS version. Use this id to invoke the + # TestExecutionService. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # An integer representing the major iOS version. - # Examples: "8", "9". + # An integer representing the major iOS version. Examples: "8", "9". # Corresponds to the JSON property `majorVersion` # @return [Fixnum] attr_accessor :major_version - # An integer representing the minor iOS version. - # Examples: "1", "2". + # An integer representing the minor iOS version. Examples: "1", "2". # Corresponds to the JSON property `minorVersion` # @return [Fixnum] attr_accessor :minor_version @@ -1450,8 +1410,7 @@ module Google # @return [Array] attr_accessor :supported_xcode_version_ids - # Tags for this dimension. - # Examples: "default", "preview", "deprecated". + # Tags for this dimension. Examples: "default", "preview", "deprecated". # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags @@ -1470,12 +1429,12 @@ module Google end end - # A test of an iOS application that uses the XCTest framework. - # Xcode supports the option to "build for testing", which generates an - # .xctestrun file that contains a test specification (arguments, test methods, - # etc). This test type accepts a zip file containing the .xctestrun file and - # the corresponding contents of the Build/Products directory that contains all - # the binaries needed to run the tests. + # A test of an iOS application that uses the XCTest framework. Xcode supports + # the option to "build for testing", which generates an .xctestrun file that + # contains a test specification (arguments, test methods, etc). This test type + # accepts a zip file containing the .xctestrun file and the corresponding + # contents of the Build/Products directory that contains all the binaries needed + # to run the tests. class IosXcTest include Google::Apis::Core::Hashable @@ -1497,9 +1456,9 @@ module Google # @return [Google::Apis::TestingV1::FileReference] attr_accessor :tests_zip - # The Xcode version that should be used for the test. - # Use the TestEnvironmentDiscoveryService to get supported options. - # Defaults to the latest Xcode version Firebase Test Lab supports. + # The Xcode version that should be used for the test. Use the + # TestEnvironmentDiscoveryService to get supported options. Defaults to the + # latest Xcode version Firebase Test Lab supports. # Corresponds to the JSON property `xcodeVersion` # @return [String] attr_accessor :xcode_version @@ -1540,26 +1499,23 @@ module Google class Locale include Google::Apis::Core::Hashable - # The id for this locale. - # Example: "en_US". + # The id for this locale. Example: "en_US". # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A human-friendly name for this language/locale. - # Example: "English". + # A human-friendly name for this language/locale. Example: "English". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # A human-friendly string representing the region for this - # locale. Example: "United States". Not present for every locale. + # A human-friendly string representing the region for this locale. Example: " + # United States". Not present for every locale. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region - # Tags for this dimension. - # Example: "default". + # Tags for this dimension. Example: "default". # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags @@ -1578,14 +1534,13 @@ module Google end # Shards test cases into the specified groups of packages, classes, and/or - # methods. - # With manual sharding enabled, specifying test targets via + # methods. With manual sharding enabled, specifying test targets via # environment_variables or in InstrumentationTest is invalid. class ManualSharding include Google::Apis::Core::Hashable - # Required. Group of packages, classes, and/or test methods to be run for - # each shard. When any physical devices are selected, the number of + # Required. Group of packages, classes, and/or test methods to be run for each + # shard. When any physical devices are selected, the number of # test_targets_for_shard must be >= 1 and <= 50. When no physical devices are # selected, the number must be >= 1 and <= 250. # Corresponds to the JSON property `testTargetsForShard` @@ -1662,11 +1617,8 @@ module Google attr_accessor :obb # Required. OBB file name which must conform to the format as specified by - # Android - # e.g. [main|patch].0300110.com.example.android.obb - # which will be installed into - # \/Android/obb/\/ - # on the device. + # Android e.g. [main|patch].0300110.com.example.android.obb which will be + # installed into \/Android/obb/\/ on the device. # Corresponds to the JSON property `obbFileName` # @return [String] attr_accessor :obb_file_name @@ -1686,20 +1638,17 @@ module Google class Orientation include Google::Apis::Core::Hashable - # The id for this orientation. - # Example: "portrait". + # The id for this orientation. Example: "portrait". # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A human-friendly name for this orientation. - # Example: "portrait". + # A human-friendly name for this orientation. Example: "portrait". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Tags for this dimension. - # Example: "default". + # Tags for this dimension. Example: "default". # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags @@ -1720,9 +1669,8 @@ module Google class ProvidedSoftwareCatalog include Google::Apis::Core::Hashable - # A string representing the current version of Android Test - # Orchestrator that is provided by TestExecutionService. - # Example: "1.0.2 beta". + # A string representing the current version of Android Test Orchestrator that is + # provided by TestExecutionService. Example: "1.0.2 beta". # Corresponds to the JSON property `orchestratorVersion` # @return [String] attr_accessor :orchestrator_version @@ -1747,19 +1695,15 @@ module Google attr_accessor :content # Required. Where to put the content on the device. Must be an absolute, - # allowlisted path. If the file exists, it will be replaced. - # The following device-side directories and any of their subdirectories are - # allowlisted: - #

$`EXTERNAL_STORAGE`, /sdcard, or /storage

- #

$`ANDROID_DATA`/local/tmp, or /data/local/tmp

- #

Specifying a path outside of these directory trees is invalid. - #

The paths /sdcard and /data will be made available and treated as - # implicit path substitutions. E.g. if /sdcard on a particular device does - # not map to external storage, the system will replace it with the external - # storage path prefix for that device and copy the file there. - #

It is strongly advised to use the - # Environment API in app and test code to access files on the device in a + # allowlisted path. If the file exists, it will be replaced. The following + # device-side directories and any of their subdirectories are allowlisted: $` + # EXTERNAL_STORAGE`, /sdcard, or /storage $`ANDROID_DATA`/local/tmp, or /data/ + # local/tmp Specifying a path outside of these directory trees is invalid. The + # paths /sdcard and /data will be made available and treated as implicit path + # substitutions. E.g. if /sdcard on a particular device does not map to external + # storage, the system will replace it with the external storage path prefix for + # that device and copy the file there. It is strongly advised to use the + # Environment API in app and test code to access files on the device in a # portable way. # Corresponds to the JSON property `devicePath` # @return [String] @@ -1790,8 +1734,8 @@ module Google # @return [String] attr_accessor :results_url - # Represents a tool results execution resource. - # This has the results of a TestMatrix. + # Represents a tool results execution resource. This has the results of a + # TestMatrix. # Corresponds to the JSON property `toolResultsExecution` # @return [Google::Apis::TestingV1::ToolResultsExecution] attr_accessor :tool_results_execution @@ -1819,8 +1763,7 @@ module Google class RoboDirective include Google::Apis::Core::Hashable - # Required. The type of action that Robo should perform on the specified - # element. + # Required. The type of action that Robo should perform on the specified element. # Corresponds to the JSON property `actionType` # @return [String] attr_accessor :action_type @@ -1831,13 +1774,10 @@ module Google # @return [String] attr_accessor :input_text - # Required. The android resource name of the target UI element. - # For example, - # in Java: R.string.foo - # in xml: @string/foo - # Only the "foo" part is needed. - # Reference doc: - # https://developer.android.com/guide/topics/resources/accessing-resources.html + # Required. The android resource name of the target UI element. For example, in + # Java: R.string.foo in xml: @string/foo Only the "foo" part is needed. + # Reference doc: https://developer.android.com/guide/topics/resources/accessing- + # resources.html # Corresponds to the JSON property `resourceName` # @return [String] attr_accessor :resource_name @@ -1921,17 +1861,16 @@ module Google include Google::Apis::Core::Hashable # Shards test cases into the specified groups of packages, classes, and/or - # methods. - # With manual sharding enabled, specifying test targets via + # methods. With manual sharding enabled, specifying test targets via # environment_variables or in InstrumentationTest is invalid. # Corresponds to the JSON property `manualSharding` # @return [Google::Apis::TestingV1::ManualSharding] attr_accessor :manual_sharding - # Uniformly shards test cases given a total number of shards. - # For Instrumentation test, it will be translated to “-e numShard” “-e - # shardIndex” AndroidJUnitRunner arguments. With uniform sharding enabled, - # specifying these sharding arguments via environment_variables is invalid. + # Uniformly shards test cases given a total number of shards. For + # Instrumentation test, it will be translated to "-e numShard" "-e shardIndex" + # AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these + # sharding arguments via environment_variables is invalid. # Corresponds to the JSON property `uniformSharding` # @return [Google::Apis::TestingV1::UniformSharding] attr_accessor :uniform_sharding @@ -1951,8 +1890,7 @@ module Google class StartActivityIntent include Google::Apis::Core::Hashable - # Action name. - # Required for START_ACTIVITY. + # Action name. Required for START_ACTIVITY. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action @@ -1983,8 +1921,8 @@ module Google class SystraceSetup include Google::Apis::Core::Hashable - # Systrace duration in seconds. - # Should be between 1 and 30 seconds. 0 disables systrace. + # Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables + # systrace. # Corresponds to the JSON property `durationSeconds` # @return [Fixnum] attr_accessor :duration_seconds @@ -2003,16 +1941,15 @@ module Google class TestDetails include Google::Apis::Core::Hashable - # Output only. If the TestState is ERROR, then this string will contain - # human-readable details about the error. + # Output only. If the TestState is ERROR, then this string will contain human- + # readable details about the error. # Corresponds to the JSON property `errorMessage` # @return [String] attr_accessor :error_message - # Output only. Human-readable, detailed descriptions of the test's progress. - # For example: "Provisioning a device", "Starting Test". - # During the course of execution new data may be appended - # to the end of progress_messages. + # Output only. Human-readable, detailed descriptions of the test's progress. For + # example: "Provisioning a device", "Starting Test". During the course of + # execution new data may be appended to the end of progress_messages. # Corresponds to the JSON property `progressMessages` # @return [Array] attr_accessor :progress_messages @@ -2100,8 +2037,8 @@ module Google # @return [Google::Apis::TestingV1::Shard] attr_accessor :shard - # Output only. Indicates the current progress of the test execution - # (e.g., FINISHED). + # Output only. Indicates the current progress of the test execution (e.g., + # FINISHED). # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -2121,8 +2058,8 @@ module Google # @return [String] attr_accessor :timestamp - # Represents a tool results step resource. - # This has the results of a TestExecution. + # Represents a tool results step resource. This has the results of a + # TestExecution. # Corresponds to the JSON property `toolResultsStep` # @return [Google::Apis::TestingV1::ToolResultsStep] attr_accessor :tool_results_step @@ -2162,22 +2099,21 @@ module Google # @return [Google::Apis::TestingV1::EnvironmentMatrix] attr_accessor :environment_matrix - # The number of times a TestExecution should be re-attempted if one or more - # of its test cases fail for any reason. - # The maximum number of reruns allowed is 10. + # The number of times a TestExecution should be re-attempted if one or more of + # its test cases fail for any reason. The maximum number of reruns allowed is 10. # Default is 0, which implies no reruns. # Corresponds to the JSON property `flakyTestAttempts` # @return [Fixnum] attr_accessor :flaky_test_attempts - # Output only. Describes why the matrix is considered invalid. - # Only useful for matrices in the INVALID state. + # Output only. Describes why the matrix is considered invalid. Only useful for + # matrices in the INVALID state. # Corresponds to the JSON property `invalidMatrixDetails` # @return [String] attr_accessor :invalid_matrix_details - # Output Only. The overall outcome of the test. - # Only set when the test matrix state is FINISHED. + # Output Only. The overall outcome of the test. Only set when the test matrix + # state is FINISHED. # Corresponds to the JSON property `outcomeSummary` # @return [String] attr_accessor :outcome_summary @@ -2197,8 +2133,8 @@ module Google # @return [String] attr_accessor :state - # Output only. The list of test executions that the service creates for - # this matrix. + # Output only. The list of test executions that the service creates for this + # matrix. # Corresponds to the JSON property `testExecutions` # @return [Array] attr_accessor :test_executions @@ -2248,19 +2184,19 @@ module Google # @return [Google::Apis::TestingV1::Account] attr_accessor :account - # APKs to install in addition to those being directly tested. - # Currently capped at 100. + # APKs to install in addition to those being directly tested. Currently capped + # at 100. # Corresponds to the JSON property `additionalApks` # @return [Array] attr_accessor :additional_apks # List of directories on the device to upload to GCS at the end of the test; - # they must be absolute paths under /sdcard, /storage or /data/local/tmp. - # Path names are restricted to characters a-z A-Z 0-9 _ - . + and / - # Note: The paths /sdcard and /data will be made available and treated as - # implicit path substitutions. E.g. if /sdcard on a particular device does - # not map to external storage, the system will replace it with the external - # storage path prefix for that device. + # they must be absolute paths under /sdcard, /storage or /data/local/tmp. Path + # names are restricted to characters a-z A-Z 0-9 _ - . + and / Note: The paths / + # sdcard and /data will be made available and treated as implicit path + # substitutions. E.g. if /sdcard on a particular device does not map to external + # storage, the system will replace it with the external storage path prefix for + # that device. # Corresponds to the JSON property `directoriesToPull` # @return [Array] attr_accessor :directories_to_pull @@ -2271,8 +2207,8 @@ module Google attr_accessor :dont_autogrant_permissions alias_method :dont_autogrant_permissions?, :dont_autogrant_permissions - # Environment variables to set for the test (only applicable for - # instrumentation tests). + # Environment variables to set for the test (only applicable for instrumentation + # tests). # Corresponds to the JSON property `environmentVariables` # @return [Array] attr_accessor :environment_variables @@ -2282,18 +2218,17 @@ module Google # @return [Array] attr_accessor :files_to_push - # The network traffic profile used for running the test. - # Available network profiles can be queried by using the - # NETWORK_CONFIGURATION environment type when calling - # TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog. + # The network traffic profile used for running the test. Available network + # profiles can be queried by using the NETWORK_CONFIGURATION environment type + # when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog. # Corresponds to the JSON property `networkProfile` # @return [String] attr_accessor :network_profile - # Systrace configuration for the run. - # If set a systrace will be taken, starting on test start and lasting for the - # configured duration. The systrace file thus obtained is put in the results - # bucket together with the other artifacts from the run. + # Systrace configuration for the run. If set a systrace will be taken, starting + # on test start and lasting for the configured duration. The systrace file thus + # obtained is put in the results bucket together with the other artifacts from + # the run. # Corresponds to the JSON property `systrace` # @return [Google::Apis::TestingV1::SystraceSetup] attr_accessor :systrace @@ -2320,26 +2255,23 @@ module Google include Google::Apis::Core::Hashable # A test of an Android application that can control an Android component - # independently of its normal lifecycle. - # Android instrumentation tests run an application APK and test APK inside the - # same process on a virtual or physical AndroidDevice. They also specify - # a test runner class, such as com.google.GoogleTestRunner, which can vary - # on the specific instrumentation framework chosen. - # See for - # more information on types of Android tests. + # independently of its normal lifecycle. Android instrumentation tests run an + # application APK and test APK inside the same process on a virtual or physical + # AndroidDevice. They also specify a test runner class, such as com.google. + # GoogleTestRunner, which can vary on the specific instrumentation framework + # chosen. See for more information on types of Android tests. # Corresponds to the JSON property `androidInstrumentationTest` # @return [Google::Apis::TestingV1::AndroidInstrumentationTest] attr_accessor :android_instrumentation_test - # A test of an android application that explores the application on a virtual - # or physical Android Device, finding culprits and crashes as it goes. + # A test of an android application that explores the application on a virtual or + # physical Android Device, finding culprits and crashes as it goes. # Corresponds to the JSON property `androidRoboTest` # @return [Google::Apis::TestingV1::AndroidRoboTest] attr_accessor :android_robo_test - # A test of an Android Application with a Test Loop. - # The intent \ will be implicitly added, since Games is the only - # user of this api, for the time being. + # A test of an Android Application with a Test Loop. The intent \ will be + # implicitly added, since Games is the only user of this api, for the time being. # Corresponds to the JSON property `androidTestLoop` # @return [Google::Apis::TestingV1::AndroidTestLoop] attr_accessor :android_test_loop @@ -2368,12 +2300,12 @@ module Google # @return [Google::Apis::TestingV1::IosTestSetup] attr_accessor :ios_test_setup - # A test of an iOS application that uses the XCTest framework. - # Xcode supports the option to "build for testing", which generates an - # .xctestrun file that contains a test specification (arguments, test methods, - # etc). This test type accepts a zip file containing the .xctestrun file and - # the corresponding contents of the Build/Products directory that contains all - # the binaries needed to run the tests. + # A test of an iOS application that uses the XCTest framework. Xcode supports + # the option to "build for testing", which generates an .xctestrun file that + # contains a test specification (arguments, test methods, etc). This test type + # accepts a zip file containing the .xctestrun file and the corresponding + # contents of the Build/Products directory that contains all the binaries needed + # to run the tests. # Corresponds to the JSON property `iosXcTest` # @return [Google::Apis::TestingV1::IosXcTest] attr_accessor :ios_xc_test @@ -2383,9 +2315,8 @@ module Google # @return [Google::Apis::TestingV1::TestSetup] attr_accessor :test_setup - # Max time a test execution is allowed to run before it is - # automatically cancelled. - # The default value is 5 min. + # Max time a test execution is allowed to run before it is automatically + # cancelled. The default value is 5 min. # Corresponds to the JSON property `testTimeout` # @return [String] attr_accessor :test_timeout @@ -2413,10 +2344,10 @@ module Google class TestTargetsForShard include Google::Apis::Core::Hashable - # Group of packages, classes, and/or test methods to be run for each shard. - # The targets need to be specified in AndroidJUnitRunner argument format. For - # example, “package com.my.packages” “class com.my.package.MyClass”. - # The number of shard_test_targets must be greater than 0. + # Group of packages, classes, and/or test methods to be run for each shard. The + # targets need to be specified in AndroidJUnitRunner argument format. For + # example, "package com.my.packages" "class com.my.package.MyClass". The number + # of shard_test_targets must be greater than 0. # Corresponds to the JSON property `testTargets` # @return [Array] attr_accessor :test_targets @@ -2431,8 +2362,8 @@ module Google end end - # Represents a tool results execution resource. - # This has the results of a TestMatrix. + # Represents a tool results execution resource. This has the results of a + # TestMatrix. class ToolResultsExecution include Google::Apis::Core::Hashable @@ -2488,8 +2419,8 @@ module Google end end - # Represents a tool results step resource. - # This has the results of a TestExecution. + # Represents a tool results step resource. This has the results of a + # TestExecution. class ToolResultsStep include Google::Apis::Core::Hashable @@ -2569,16 +2500,16 @@ module Google end end - # Uniformly shards test cases given a total number of shards. - # For Instrumentation test, it will be translated to “-e numShard” “-e - # shardIndex” AndroidJUnitRunner arguments. With uniform sharding enabled, - # specifying these sharding arguments via environment_variables is invalid. + # Uniformly shards test cases given a total number of shards. For + # Instrumentation test, it will be translated to "-e numShard" "-e shardIndex" + # AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these + # sharding arguments via environment_variables is invalid. class UniformSharding include Google::Apis::Core::Hashable - # Required. Total number of shards. When any physical devices are selected, - # the number must be >= 1 and <= 50. When no physical devices are selected, - # the number must be >= 1 and <= 250. + # Required. Total number of shards. When any physical devices are selected, the + # number must be >= 1 and <= 50. When no physical devices are selected, the + # number must be >= 1 and <= 250. # Corresponds to the JSON property `numShards` # @return [Fixnum] attr_accessor :num_shards @@ -2597,14 +2528,12 @@ module Google class XcodeVersion include Google::Apis::Core::Hashable - # Tags for this Xcode version. - # Example: "default". + # Tags for this Xcode version. Example: "default". # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags - # The id for this version. - # Example: "9.2". + # The id for this version. Example: "9.2". # Corresponds to the JSON property `version` # @return [String] attr_accessor :version diff --git a/generated/google/apis/testing_v1/service.rb b/generated/google/apis/testing_v1/service.rb index 60aeca97c..e1421ce99 100644 --- a/generated/google/apis/testing_v1/service.rb +++ b/generated/google/apis/testing_v1/service.rb @@ -78,13 +78,12 @@ module Google execute_or_queue_command(command, &block) end - # Cancels unfinished test executions in a test matrix. - # This call returns immediately and cancellation proceeds asychronously. - # If the matrix is already final, this operation will have no effect. - # May return any of the following canonical error codes: - # - PERMISSION_DENIED - if the user is not authorized to read project - # - INVALID_ARGUMENT - if the request is malformed - # - NOT_FOUND - if the Test Matrix does not exist + # Cancels unfinished test executions in a test matrix. This call returns + # immediately and cancellation proceeds asynchronously. If the matrix is already + # final, this operation will have no effect. May return any of the following + # canonical error codes: - PERMISSION_DENIED - if the user is not authorized to + # read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if + # the Test Matrix does not exist # @param [String] project_id # Cloud project that owns the test. # @param [String] test_matrix_id @@ -118,21 +117,18 @@ module Google end # Creates and runs a matrix of tests according to the given specifications. - # Unsupported environments will be returned in the state UNSUPPORTED. - # Matrices are limited to at most 200 supported executions. - # May return any of the following canonical error codes: - # - PERMISSION_DENIED - if the user is not authorized to write to project - # - INVALID_ARGUMENT - if the request is malformed or if the matrix expands - # to more than 200 supported executions + # Unsupported environments will be returned in the state UNSUPPORTED. Matrices + # are limited to at most 200 supported executions. May return any of the + # following canonical error codes: - PERMISSION_DENIED - if the user is not + # authorized to write to project - INVALID_ARGUMENT - if the request is + # malformed or if the matrix expands to more than 200 supported executions # @param [String] project_id # The GCE project under which this job will run. # @param [Google::Apis::TestingV1::TestMatrix] test_matrix_object # @param [String] request_id - # A string id used to detect duplicated requests. - # Ids are automatically scoped to a project, so - # users should ensure the ID is unique per-project. - # A UUID is recommended. - # Optional, but strongly recommended. + # A string id used to detect duplicated requests. Ids are automatically scoped + # to a project, so users should ensure the ID is unique per-project. A UUID is + # recommended. Optional, but strongly recommended. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -163,11 +159,10 @@ module Google execute_or_queue_command(command, &block) end - # Checks the status of a test matrix. - # May return any of the following canonical error codes: - # - PERMISSION_DENIED - if the user is not authorized to read project - # - INVALID_ARGUMENT - if the request is malformed - # - NOT_FOUND - if the Test Matrix does not exist + # Checks the status of a test matrix. May return any of the following canonical + # error codes: - PERMISSION_DENIED - if the user is not authorized to read + # project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the + # Test Matrix does not exist # @param [String] project_id # Cloud project that owns the test matrix. # @param [String] test_matrix_id @@ -200,11 +195,10 @@ module Google execute_or_queue_command(command, &block) end - # Gets the catalog of supported test environments. - # May return any of the following canonical error codes: - # - INVALID_ARGUMENT - if the request is malformed - # - NOT_FOUND - if the environment type does not exist - # - INTERNAL - if an internal error occurred + # Gets the catalog of supported test environments. May return any of the + # following canonical error codes: - INVALID_ARGUMENT - if the request is + # malformed - NOT_FOUND - if the environment type does not exist - INTERNAL - if + # an internal error occurred # @param [String] environment_type # Required. The type of environment that should be listed. # @param [String] project_id diff --git a/generated/google/apis/webfonts_v1/classes.rb b/generated/google/apis/webfonts_v1/classes.rb deleted file mode 100644 index 6822bac91..000000000 --- a/generated/google/apis/webfonts_v1/classes.rb +++ /dev/null @@ -1,114 +0,0 @@ -# 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 WebfontsV1 - - # Metadata describing a family of fonts. - class Webfont - include Google::Apis::Core::Hashable - - # The category of the font. - # Corresponds to the JSON property `category` - # @return [String] - attr_accessor :category - - # The name of the font. - # Corresponds to the JSON property `family` - # @return [String] - attr_accessor :family - - # The font files (with all supported scripts) for each one of the available - # variants, as a key : value map. - # Corresponds to the JSON property `files` - # @return [Hash] - attr_accessor :files - - # This kind represents a webfont object in the webfonts service. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The date (format "yyyy-MM-dd") the font was modified for the last time. - # Corresponds to the JSON property `lastModified` - # @return [String] - attr_accessor :last_modified - - # The scripts supported by the font. - # Corresponds to the JSON property `subsets` - # @return [Array] - attr_accessor :subsets - - # The available variants for the font. - # Corresponds to the JSON property `variants` - # @return [Array] - attr_accessor :variants - - # The font version. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @category = args[:category] if args.key?(:category) - @family = args[:family] if args.key?(:family) - @files = args[:files] if args.key?(:files) - @kind = args[:kind] if args.key?(:kind) - @last_modified = args[:last_modified] if args.key?(:last_modified) - @subsets = args[:subsets] if args.key?(:subsets) - @variants = args[:variants] if args.key?(:variants) - @version = args[:version] if args.key?(:version) - end - end - - # Response containing the list of fonts currently served by the - # Google Fonts API. - class WebfontList - include Google::Apis::Core::Hashable - - # The list of fonts currently served by the Google Fonts API. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # This kind represents a list of webfont objects in the webfonts service. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - end - end -end diff --git a/generated/google/apis/webfonts_v1/representations.rb b/generated/google/apis/webfonts_v1/representations.rb deleted file mode 100644 index d31668d88..000000000 --- a/generated/google/apis/webfonts_v1/representations.rb +++ /dev/null @@ -1,61 +0,0 @@ -# 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 WebfontsV1 - - class Webfont - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class WebfontList - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Webfont - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :category, as: 'category' - property :family, as: 'family' - hash :files, as: 'files' - property :kind, as: 'kind' - property :last_modified, as: 'lastModified' - collection :subsets, as: 'subsets' - collection :variants, as: 'variants' - property :version, as: 'version' - end - end - - class WebfontList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::WebfontsV1::Webfont, decorator: Google::Apis::WebfontsV1::Webfont::Representation - - property :kind, as: 'kind' - end - end - end - end -end diff --git a/generated/google/apis/webfonts_v1/service.rb b/generated/google/apis/webfonts_v1/service.rb deleted file mode 100644 index 0a10c7a4a..000000000 --- a/generated/google/apis/webfonts_v1/service.rb +++ /dev/null @@ -1,92 +0,0 @@ -# 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 WebfontsV1 - # Web Fonts Developer API - # - # The Google Web Fonts Developer API lets you retrieve information about web - # fonts served - # by Google. - # - # @example - # require 'google/apis/webfonts_v1' - # - # Webfonts = Google::Apis::WebfontsV1 # Alias the module - # service = Webfonts::WebfontsService.new - # - # @see https://developers.google.com/fonts/docs/developer_api - class WebfontsService < 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://webfonts.googleapis.com/', '') - @batch_path = 'batch' - end - - # Retrieves the list of fonts currently served by the Google Fonts Developer - # API. - # @param [String] sort - # Enables sorting of the list. - # @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::WebfontsV1::WebfontList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::WebfontsV1::WebfontList] - # - # @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_webfonts(sort: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/webfonts', options) - command.response_representation = Google::Apis::WebfontsV1::WebfontList::Representation - command.response_class = Google::Apis::WebfontsV1::WebfontList - command.query['sort'] = sort unless sort.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/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 8d34df747..a43d7b18f 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/ module YoutubeV3 VERSION = 'V3' - REVISION = '20200802' + REVISION = '20200806' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'