From 70ca22e0302e653e092624af772a2f4a62e393cc Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 18 Sep 2020 00:39:13 +0000 Subject: [PATCH] Autogenerated update (2020-09-18) Delete: - sql_v1beta4 Update: - appengine_v1 - appengine_v1beta - chat_v1 - cloudkms_v1 - cloudtasks_v2beta2 - content_v2_1 - dfareporting_v3_3 - dfareporting_v3_4 - pubsub_v1beta2 - pubsublite_v1 - redis_v1beta1 - secretmanager_v1 - tagmanager_v2 - youtube_v3 --- api_names_out.yaml | 83 +++ generated/google/apis/appengine_v1.rb | 2 +- generated/google/apis/appengine_v1beta.rb | 2 +- generated/google/apis/chat_v1.rb | 2 +- generated/google/apis/chat_v1/classes.rb | 6 +- generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudkms_v1/classes.rb | 7 + .../apis/cloudkms_v1/representations.rb | 1 + generated/google/apis/cloudtasks_v2beta2.rb | 2 +- .../google/apis/cloudtasks_v2beta2/classes.rb | 44 +- .../cloudtasks_v2beta2/representations.rb | 1 + generated/google/apis/content_v2_1.rb | 2 +- generated/google/apis/content_v2_1/classes.rb | 2 +- generated/google/apis/dfareporting_v3_3.rb | 2 +- .../google/apis/dfareporting_v3_3/service.rb | 105 ++-- generated/google/apis/dfareporting_v3_4.rb | 2 +- .../google/apis/dfareporting_v3_4/service.rb | 105 ++-- generated/google/apis/pubsub_v1beta2.rb | 2 +- .../google/apis/pubsub_v1beta2/classes.rb | 7 + .../apis/pubsub_v1beta2/representations.rb | 1 + generated/google/apis/pubsublite_v1.rb | 2 +- .../google/apis/pubsublite_v1/classes.rb | 72 +++ .../apis/pubsublite_v1/representations.rb | 33 ++ .../google/apis/pubsublite_v1/service.rb | 33 ++ generated/google/apis/redis_v1beta1.rb | 2 +- .../google/apis/redis_v1beta1/classes.rb | 386 -------------- .../apis/redis_v1beta1/representations.rb | 139 ----- generated/google/apis/secretmanager_v1.rb | 2 +- .../{sql_v1beta4.rb => sqladmin_v1beta4.rb} | 10 +- .../classes.rb | 239 +++++---- .../representations.rb | 191 +++---- .../service.rb | 488 +++++++++--------- generated/google/apis/tagmanager_v2.rb | 2 +- generated/google/apis/youtube_v3.rb | 2 +- generated/google/apis/youtube_v3/service.rb | 4 +- 35 files changed, 880 insertions(+), 1105 deletions(-) rename generated/google/apis/{sql_v1beta4.rb => sqladmin_v1beta4.rb} (83%) rename generated/google/apis/{sql_v1beta4 => sqladmin_v1beta4}/classes.rb (93%) rename generated/google/apis/{sql_v1beta4 => sqladmin_v1beta4}/representations.rb (81%) rename generated/google/apis/{sql_v1beta4 => sqladmin_v1beta4}/service.rb (80%) diff --git a/api_names_out.yaml b/api_names_out.yaml index d4727d9c8..3e1e49511 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -22881,6 +22881,7 @@ "/cloudkms:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/cloudkms:v1/AuditLogConfig/logType": log_type "/cloudkms:v1/Binding": binding +"/cloudkms:v1/Binding/bindingId": binding_id "/cloudkms:v1/Binding/condition": condition "/cloudkms:v1/Binding/members": members "/cloudkms:v1/Binding/members/member": member @@ -25568,6 +25569,7 @@ "/cloudtasks:v2beta2/AttemptStatus/responseTime": response_time "/cloudtasks:v2beta2/AttemptStatus/scheduleTime": schedule_time "/cloudtasks:v2beta2/Binding": binding +"/cloudtasks:v2beta2/Binding/bindingId": binding_id "/cloudtasks:v2beta2/Binding/condition": condition "/cloudtasks:v2beta2/Binding/members": members "/cloudtasks:v2beta2/Binding/members/member": member @@ -118180,6 +118182,7 @@ "/pubsub:v1beta2/AcknowledgeRequest/ackIds": ack_ids "/pubsub:v1beta2/AcknowledgeRequest/ackIds/ack_id": ack_id "/pubsub:v1beta2/Binding": binding +"/pubsub:v1beta2/Binding/bindingId": binding_id "/pubsub:v1beta2/Binding/condition": condition "/pubsub:v1beta2/Binding/members": members "/pubsub:v1beta2/Binding/members/member": member @@ -118312,6 +118315,15 @@ "/pubsublite:v1/Capacity": capacity "/pubsublite:v1/Capacity/publishMibPerSec": publish_mib_per_sec "/pubsublite:v1/Capacity/subscribeMibPerSec": subscribe_mib_per_sec +"/pubsublite:v1/ComputeMessageStatsRequest": compute_message_stats_request +"/pubsublite:v1/ComputeMessageStatsRequest/endCursor": end_cursor +"/pubsublite:v1/ComputeMessageStatsRequest/partition": partition +"/pubsublite:v1/ComputeMessageStatsRequest/startCursor": start_cursor +"/pubsublite:v1/ComputeMessageStatsResponse": compute_message_stats_response +"/pubsublite:v1/ComputeMessageStatsResponse/messageBytes": message_bytes +"/pubsublite:v1/ComputeMessageStatsResponse/messageCount": message_count +"/pubsublite:v1/ComputeMessageStatsResponse/minimumEventTime": minimum_event_time +"/pubsublite:v1/ComputeMessageStatsResponse/minimumPublishTime": minimum_publish_time "/pubsublite:v1/Cursor": cursor "/pubsublite:v1/Cursor/offset": offset "/pubsublite:v1/DeliveryConfig": delivery_config @@ -118393,6 +118405,8 @@ "/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/pubsublite.topicStats.projects.locations.topics.computeMessageStats": compute_topic_message_stats +"/pubsublite:v1/pubsublite.topicStats.projects.locations.topics.computeMessageStats/topic": topic "/pubsublite:v1/quotaUser": quota_user "/qpxExpress:v1/AircraftData": aircraft_data "/qpxExpress:v1/AircraftData/code": code @@ -135601,16 +135615,22 @@ "/sqladmin:v1beta4/BackupConfiguration/binaryLogEnabled": binary_log_enabled "/sqladmin:v1beta4/BackupConfiguration/enabled": enabled "/sqladmin:v1beta4/BackupConfiguration/kind": kind +"/sqladmin:v1beta4/BackupConfiguration/location": location +"/sqladmin:v1beta4/BackupConfiguration/pointInTimeRecoveryEnabled": point_in_time_recovery_enabled "/sqladmin:v1beta4/BackupConfiguration/replicationLogArchivingEnabled": replication_log_archiving_enabled "/sqladmin:v1beta4/BackupConfiguration/startTime": start_time "/sqladmin:v1beta4/BackupRun": backup_run +"/sqladmin:v1beta4/BackupRun/backupKind": backup_kind "/sqladmin:v1beta4/BackupRun/description": description +"/sqladmin:v1beta4/BackupRun/diskEncryptionConfiguration": disk_encryption_configuration +"/sqladmin:v1beta4/BackupRun/diskEncryptionStatus": disk_encryption_status "/sqladmin:v1beta4/BackupRun/endTime": end_time "/sqladmin:v1beta4/BackupRun/enqueuedTime": enqueued_time "/sqladmin:v1beta4/BackupRun/error": error "/sqladmin:v1beta4/BackupRun/id": id "/sqladmin:v1beta4/BackupRun/instance": instance "/sqladmin:v1beta4/BackupRun/kind": kind +"/sqladmin:v1beta4/BackupRun/location": location "/sqladmin:v1beta4/BackupRun/selfLink": self_link "/sqladmin:v1beta4/BackupRun/startTime": start_time "/sqladmin:v1beta4/BackupRun/status": status @@ -135630,6 +135650,7 @@ "/sqladmin:v1beta4/CloneContext/destinationInstanceName": destination_instance_name "/sqladmin:v1beta4/CloneContext/kind": kind "/sqladmin:v1beta4/CloneContext/pitrTimestampMs": pitr_timestamp_ms +"/sqladmin:v1beta4/CloneContext/pointInTime": point_in_time "/sqladmin:v1beta4/Database": database "/sqladmin:v1beta4/Database/charset": charset "/sqladmin:v1beta4/Database/collation": collation @@ -135639,6 +135660,7 @@ "/sqladmin:v1beta4/Database/name": name "/sqladmin:v1beta4/Database/project": project "/sqladmin:v1beta4/Database/selfLink": self_link +"/sqladmin:v1beta4/Database/sqlserverDatabaseDetails": sqlserver_database_details "/sqladmin:v1beta4/DatabaseFlags": database_flags "/sqladmin:v1beta4/DatabaseFlags/name": name "/sqladmin:v1beta4/DatabaseFlags/value": value @@ -135669,6 +135691,7 @@ "/sqladmin:v1beta4/DatabaseInstance/replicaNames": replica_names "/sqladmin:v1beta4/DatabaseInstance/replicaNames/replica_name": replica_name "/sqladmin:v1beta4/DatabaseInstance/rootPassword": root_password +"/sqladmin:v1beta4/DatabaseInstance/scheduledMaintenance": scheduled_maintenance "/sqladmin:v1beta4/DatabaseInstance/selfLink": self_link "/sqladmin:v1beta4/DatabaseInstance/serverCaCert": server_ca_cert "/sqladmin:v1beta4/DatabaseInstance/serviceAccountEmailAddress": service_account_email_address @@ -135708,6 +135731,7 @@ "/sqladmin:v1beta4/ExportContext/databases/database": database "/sqladmin:v1beta4/ExportContext/fileType": file_type "/sqladmin:v1beta4/ExportContext/kind": kind +"/sqladmin:v1beta4/ExportContext/offload": offload "/sqladmin:v1beta4/ExportContext/sqlExportOptions": sql_export_options "/sqladmin:v1beta4/ExportContext/sqlExportOptions/mysqlExportOptions": mysql_export_options "/sqladmin:v1beta4/ExportContext/sqlExportOptions/mysqlExportOptions/masterData": master_data @@ -135719,6 +135743,8 @@ "/sqladmin:v1beta4/FailoverContext/kind": kind "/sqladmin:v1beta4/FailoverContext/settingsVersion": settings_version "/sqladmin:v1beta4/Flag": flag +"/sqladmin:v1beta4/Flag/allowedIntValues": allowed_int_values +"/sqladmin:v1beta4/Flag/allowedIntValues/allowed_int_value": allowed_int_value "/sqladmin:v1beta4/Flag/allowedStringValues": allowed_string_values "/sqladmin:v1beta4/Flag/allowedStringValues/allowed_string_value": allowed_string_value "/sqladmin:v1beta4/Flag/appliesTo": applies_to @@ -135735,6 +135761,11 @@ "/sqladmin:v1beta4/FlagsListResponse/items/item": item "/sqladmin:v1beta4/FlagsListResponse/kind": kind "/sqladmin:v1beta4/ImportContext": import_context +"/sqladmin:v1beta4/ImportContext/bakImportOptions": bak_import_options +"/sqladmin:v1beta4/ImportContext/bakImportOptions/encryptionOptions": encryption_options +"/sqladmin:v1beta4/ImportContext/bakImportOptions/encryptionOptions/certPath": cert_path +"/sqladmin:v1beta4/ImportContext/bakImportOptions/encryptionOptions/pvkPassword": pvk_password +"/sqladmin:v1beta4/ImportContext/bakImportOptions/encryptionOptions/pvkPath": pvk_path "/sqladmin:v1beta4/ImportContext/csvImportOptions": csv_import_options "/sqladmin:v1beta4/ImportContext/csvImportOptions/columns": columns "/sqladmin:v1beta4/ImportContext/csvImportOptions/columns/column": column @@ -135786,6 +135817,10 @@ "/sqladmin:v1beta4/LocationPreference/followGaeApplication": follow_gae_application "/sqladmin:v1beta4/LocationPreference/kind": kind "/sqladmin:v1beta4/LocationPreference/zone": zone +"/sqladmin:v1beta4/MaintenanceDenyPeriod": maintenance_deny_period +"/sqladmin:v1beta4/MaintenanceDenyPeriod/endDate": end_date +"/sqladmin:v1beta4/MaintenanceDenyPeriod/startDate": start_date +"/sqladmin:v1beta4/MaintenanceDenyPeriod/time": time "/sqladmin:v1beta4/MaintenanceWindow": maintenance_window "/sqladmin:v1beta4/MaintenanceWindow/day": day "/sqladmin:v1beta4/MaintenanceWindow/hour": hour @@ -135804,8 +135839,14 @@ "/sqladmin:v1beta4/MySqlReplicaConfiguration/username": username "/sqladmin:v1beta4/MySqlReplicaConfiguration/verifyServerCertificate": verify_server_certificate "/sqladmin:v1beta4/OnPremisesConfiguration": on_premises_configuration +"/sqladmin:v1beta4/OnPremisesConfiguration/caCertificate": ca_certificate +"/sqladmin:v1beta4/OnPremisesConfiguration/clientCertificate": client_certificate +"/sqladmin:v1beta4/OnPremisesConfiguration/clientKey": client_key +"/sqladmin:v1beta4/OnPremisesConfiguration/dumpFilePath": dump_file_path "/sqladmin:v1beta4/OnPremisesConfiguration/hostPort": host_port "/sqladmin:v1beta4/OnPremisesConfiguration/kind": kind +"/sqladmin:v1beta4/OnPremisesConfiguration/password": password +"/sqladmin:v1beta4/OnPremisesConfiguration/username": username "/sqladmin:v1beta4/Operation": operation "/sqladmin:v1beta4/Operation/endTime": end_time "/sqladmin:v1beta4/Operation/error": error @@ -135839,10 +135880,14 @@ "/sqladmin:v1beta4/ReplicaConfiguration/failoverTarget": failover_target "/sqladmin:v1beta4/ReplicaConfiguration/kind": kind "/sqladmin:v1beta4/ReplicaConfiguration/mysqlReplicaConfiguration": mysql_replica_configuration +"/sqladmin:v1beta4/Reschedule": reschedule +"/sqladmin:v1beta4/Reschedule/rescheduleType": reschedule_type +"/sqladmin:v1beta4/Reschedule/scheduleTime": schedule_time "/sqladmin:v1beta4/RestoreBackupContext": restore_backup_context "/sqladmin:v1beta4/RestoreBackupContext/backupRunId": backup_run_id "/sqladmin:v1beta4/RestoreBackupContext/instanceId": instance_id "/sqladmin:v1beta4/RestoreBackupContext/kind": kind +"/sqladmin:v1beta4/RestoreBackupContext/project": project "/sqladmin:v1beta4/RotateServerCaContext": rotate_server_ca_context "/sqladmin:v1beta4/RotateServerCaContext/kind": kind "/sqladmin:v1beta4/RotateServerCaContext/nextVersion": next_version @@ -135852,6 +135897,7 @@ "/sqladmin:v1beta4/Settings/authorizedGaeApplications/authorized_gae_application": authorized_gae_application "/sqladmin:v1beta4/Settings/availabilityType": availability_type "/sqladmin:v1beta4/Settings/backupConfiguration": backup_configuration +"/sqladmin:v1beta4/Settings/collation": collation "/sqladmin:v1beta4/Settings/crashSafeReplicationEnabled": crash_safe_replication_enabled "/sqladmin:v1beta4/Settings/dataDiskSizeGb": data_disk_size_gb "/sqladmin:v1beta4/Settings/dataDiskType": data_disk_type @@ -135861,6 +135907,8 @@ "/sqladmin:v1beta4/Settings/ipConfiguration": ip_configuration "/sqladmin:v1beta4/Settings/kind": kind "/sqladmin:v1beta4/Settings/locationPreference": location_preference +"/sqladmin:v1beta4/Settings/maintenanceDenyPeriods": maintenance_deny_periods +"/sqladmin:v1beta4/Settings/maintenanceDenyPeriods/maintenance_deny_period": maintenance_deny_period "/sqladmin:v1beta4/Settings/maintenanceWindow": maintenance_window "/sqladmin:v1beta4/Settings/pricingPlan": pricing_plan "/sqladmin:v1beta4/Settings/replicationType": replication_type @@ -135870,6 +135918,27 @@ "/sqladmin:v1beta4/Settings/tier": tier "/sqladmin:v1beta4/Settings/userLabels": user_labels "/sqladmin:v1beta4/Settings/userLabels/user_label": user_label +"/sqladmin:v1beta4/SqlExternalSyncSettingError": sql_external_sync_setting_error +"/sqladmin:v1beta4/SqlExternalSyncSettingError/detail": detail +"/sqladmin:v1beta4/SqlExternalSyncSettingError/kind": kind +"/sqladmin:v1beta4/SqlExternalSyncSettingError/type": type +"/sqladmin:v1beta4/SqlInstancesRescheduleMaintenanceRequestBody": sql_instances_reschedule_maintenance_request_body +"/sqladmin:v1beta4/SqlInstancesRescheduleMaintenanceRequestBody/reschedule": reschedule +"/sqladmin:v1beta4/SqlInstancesVerifyExternalSyncSettingsResponse": sql_instances_verify_external_sync_settings_response +"/sqladmin:v1beta4/SqlInstancesVerifyExternalSyncSettingsResponse/errors": errors +"/sqladmin:v1beta4/SqlInstancesVerifyExternalSyncSettingsResponse/errors/error": error +"/sqladmin:v1beta4/SqlInstancesVerifyExternalSyncSettingsResponse/kind": kind +"/sqladmin:v1beta4/SqlScheduledMaintenance": sql_scheduled_maintenance +"/sqladmin:v1beta4/SqlScheduledMaintenance/canDefer": can_defer +"/sqladmin:v1beta4/SqlScheduledMaintenance/canReschedule": can_reschedule +"/sqladmin:v1beta4/SqlScheduledMaintenance/startTime": start_time +"/sqladmin:v1beta4/SqlServerDatabaseDetails": sql_server_database_details +"/sqladmin:v1beta4/SqlServerDatabaseDetails/compatibilityLevel": compatibility_level +"/sqladmin:v1beta4/SqlServerDatabaseDetails/recoveryModel": recovery_model +"/sqladmin:v1beta4/SqlServerUserDetails": sql_server_user_details +"/sqladmin:v1beta4/SqlServerUserDetails/disabled": disabled +"/sqladmin:v1beta4/SqlServerUserDetails/serverRoles": server_roles +"/sqladmin:v1beta4/SqlServerUserDetails/serverRoles/server_role": server_role "/sqladmin:v1beta4/SslCert": ssl_cert "/sqladmin:v1beta4/SslCert/cert": cert "/sqladmin:v1beta4/SslCert/certSerialNumber": cert_serial_number @@ -135918,6 +135987,8 @@ "/sqladmin:v1beta4/User/name": name "/sqladmin:v1beta4/User/password": password "/sqladmin:v1beta4/User/project": project +"/sqladmin:v1beta4/User/sqlserverUserDetails": sqlserver_user_details +"/sqladmin:v1beta4/User/type": type "/sqladmin:v1beta4/UsersListResponse": list_users_response "/sqladmin:v1beta4/UsersListResponse/items": items "/sqladmin:v1beta4/UsersListResponse/items/item": item @@ -136038,6 +136109,18 @@ "/sqladmin:v1beta4/sql.operations.list/maxResults": max_results "/sqladmin:v1beta4/sql.operations.list/pageToken": page_token "/sqladmin:v1beta4/sql.operations.list/project": project +"/sqladmin:v1beta4/sql.projects.instances.rescheduleMaintenance": reschedule_project_instance_maintenance +"/sqladmin:v1beta4/sql.projects.instances.rescheduleMaintenance/instance": instance +"/sqladmin:v1beta4/sql.projects.instances.rescheduleMaintenance/project": project +"/sqladmin:v1beta4/sql.projects.instances.startExternalSync": start_project_instance_external_sync +"/sqladmin:v1beta4/sql.projects.instances.startExternalSync/instance": instance +"/sqladmin:v1beta4/sql.projects.instances.startExternalSync/project": project +"/sqladmin:v1beta4/sql.projects.instances.startExternalSync/syncMode": sync_mode +"/sqladmin:v1beta4/sql.projects.instances.verifyExternalSyncSettings": verify_project_instance_external_sync_settings +"/sqladmin:v1beta4/sql.projects.instances.verifyExternalSyncSettings/instance": instance +"/sqladmin:v1beta4/sql.projects.instances.verifyExternalSyncSettings/project": project +"/sqladmin:v1beta4/sql.projects.instances.verifyExternalSyncSettings/syncMode": sync_mode +"/sqladmin:v1beta4/sql.projects.instances.verifyExternalSyncSettings/verifyConnectionOnly": verify_connection_only "/sqladmin:v1beta4/sql.sslCerts.createEphemeral": create_ssl_cert_ephemeral "/sqladmin:v1beta4/sql.sslCerts.createEphemeral/instance": instance "/sqladmin:v1beta4/sql.sslCerts.createEphemeral/project": project diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index 8d0ef086b..b2607e5ba 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 = '20200903' + REVISION = '20200914' # 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.rb b/generated/google/apis/appengine_v1beta.rb index ba3bd04d2..d8fce215c 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 = '20200903' + REVISION = '20200914' # 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/chat_v1.rb b/generated/google/apis/chat_v1.rb index 5869816f7..49a12a7a2 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 = '20200801' + REVISION = '20200909' end end end diff --git a/generated/google/apis/chat_v1/classes.rb b/generated/google/apis/chat_v1/classes.rb index 21f71f028..5d5cef72b 100644 --- a/generated/google/apis/chat_v1/classes.rb +++ b/generated/google/apis/chat_v1/classes.rb @@ -332,7 +332,7 @@ module Google end end - # Hangouts Chat events. + # Google Chat events. class DeprecatedEvent include Google::Apis::Core::Hashable @@ -343,7 +343,7 @@ module Google 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 [ + # authorization or configuration flow outside of Google Chat. See the [ # Authorizing access to 3p services guide](/hangouts/chat/how-tos/auth-3p) for # more information. # Corresponds to the JSON property `configCompleteRedirectUrl` @@ -373,7 +373,7 @@ module Google # 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 + # from the Google 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] diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index 832454f58..f31d240ba 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 = '20200814' + REVISION = '20200903' # 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 207c5a7de..6ff575e93 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -278,6 +278,12 @@ module Google class Binding include Google::Apis::Core::Hashable + # A client-specified ID for this binding. Expected to be globally unique to + # support the internal bindings-by-ID API. + # Corresponds to the JSON property `bindingId` + # @return [String] + attr_accessor :binding_id + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -339,6 +345,7 @@ module Google # Update properties of this object def update!(**args) + @binding_id = args[:binding_id] if args.key?(:binding_id) @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index 8b2815695..f1cd5ac11 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -306,6 +306,7 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :binding_id, as: 'bindingId' property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation collection :members, as: 'members' diff --git a/generated/google/apis/cloudtasks_v2beta2.rb b/generated/google/apis/cloudtasks_v2beta2.rb index 961945a4a..b51deeb46 100644 --- a/generated/google/apis/cloudtasks_v2beta2.rb +++ b/generated/google/apis/cloudtasks_v2beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta2 VERSION = 'V2beta2' - REVISION = '20200804' + REVISION = '20200909' # 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/cloudtasks_v2beta2/classes.rb b/generated/google/apis/cloudtasks_v2beta2/classes.rb index f93066306..1a7a4c568 100644 --- a/generated/google/apis/cloudtasks_v2beta2/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta2/classes.rb @@ -330,6 +330,12 @@ module Google class Binding include Google::Apis::Core::Hashable + # A client-specified ID for this binding. Expected to be globally unique to + # support the internal bindings-by-ID API. + # Corresponds to the JSON property `bindingId` + # @return [String] + attr_accessor :binding_id + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -391,6 +397,7 @@ module Google # Update properties of this object def update!(**args) + @binding_id = args[:binding_id] if args.key?(:binding_id) @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) @@ -1036,25 +1043,24 @@ module Google class RateLimits include Google::Apis::Core::Hashable - # Output only. The max burst size. Max burst size limits how fast tasks in queue - # are processed when many tasks are in the queue and the rate is high. This - # field allows the queue to have a high rate so processing starts shortly after - # a task is enqueued, but still limits resource usage when many tasks are - # enqueued in a short period of time. The [token bucket](https://wikipedia.org/ - # wiki/Token_Bucket) algorithm is used to control the rate of task dispatches. - # Each queue has a token bucket that holds tokens, up to the maximum specified - # by `max_burst_size`. Each time a task is dispatched, a token is removed from - # the bucket. Tasks will be dispatched until the queue's bucket runs out of - # tokens. The bucket will be continuously refilled with new tokens based on - # max_tasks_dispatched_per_second. Cloud Tasks will pick the value of ` - # max_burst_size` based on the value of max_tasks_dispatched_per_second. For App - # Engine queues that were created or updated using `queue.yaml/xml`, ` - # max_burst_size` is equal to [bucket_size](https://cloud.google.com/appengine/ - # docs/standard/python/config/queueref#bucket_size). Since `max_burst_size` is - # output only, if UpdateQueue is called on a queue created by `queue.yaml/xml`, ` - # max_burst_size` will be reset based on the value of - # max_tasks_dispatched_per_second, regardless of whether - # max_tasks_dispatched_per_second is updated. + # The max burst size. Max burst size limits how fast tasks in queue are + # processed when many tasks are in the queue and the rate is high. This field + # allows the queue to have a high rate so processing starts shortly after a task + # is enqueued, but still limits resource usage when many tasks are enqueued in a + # short period of time. The [token bucket](https://wikipedia.org/wiki/ + # Token_Bucket) algorithm is used to control the rate of task dispatches. Each + # queue has a token bucket that holds tokens, up to the maximum specified by ` + # max_burst_size`. Each time a task is dispatched, a token is removed from the + # bucket. Tasks will be dispatched until the queue's bucket runs out of tokens. + # The bucket will be continuously refilled with new tokens based on + # max_dispatches_per_second. The default value of `max_burst_size` is picked by + # Cloud Tasks based on the value of max_dispatches_per_second. The maximum value + # of `max_burst_size` is 500. For App Engine queues that were created or updated + # using `queue.yaml/xml`, `max_burst_size` is equal to [bucket_size](https:// + # cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). + # If UpdateQueue is called on a queue without explicitly setting a value for ` + # max_burst_size`, `max_burst_size` value will get updated if UpdateQueue is + # updating max_dispatches_per_second. # Corresponds to the JSON property `maxBurstSize` # @return [Fixnum] attr_accessor :max_burst_size diff --git a/generated/google/apis/cloudtasks_v2beta2/representations.rb b/generated/google/apis/cloudtasks_v2beta2/representations.rb index f83775d00..e8768cc51 100644 --- a/generated/google/apis/cloudtasks_v2beta2/representations.rb +++ b/generated/google/apis/cloudtasks_v2beta2/representations.rb @@ -283,6 +283,7 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :binding_id, as: 'bindingId' property :condition, as: 'condition', class: Google::Apis::CloudtasksV2beta2::Expr, decorator: Google::Apis::CloudtasksV2beta2::Expr::Representation collection :members, as: 'members' diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 3605d0344..31bfd67be 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20200902' + REVISION = '20200908' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 2c7bc6593..1f379d8fa 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -6210,7 +6210,7 @@ module Google class OrderreturnsRefundOperation include Google::Apis::Core::Hashable - # If true, the item will be fully refunded. // Allowed only when payment_type is + # If true, the item will be fully refunded. Allowed only when payment_type is # FOP. Merchant can choose this refund option to indicate the full remaining # amount of corresponding object to be refunded to the customer via FOP. # Corresponds to the JSON property `fullRefund` diff --git a/generated/google/apis/dfareporting_v3_3.rb b/generated/google/apis/dfareporting_v3_3.rb index c4889375d..e7c10af91 100644 --- a/generated/google/apis/dfareporting_v3_3.rb +++ b/generated/google/apis/dfareporting_v3_3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_3 VERSION = 'V3_3' - REVISION = '20200825' + REVISION = '20200916' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_3/service.rb b/generated/google/apis/dfareporting_v3_3/service.rb index 6e13cd15e..a5887a9a3 100644 --- a/generated/google/apis/dfareporting_v3_3/service.rb +++ b/generated/google/apis/dfareporting_v3_3/service.rb @@ -339,9 +339,9 @@ module Google # Updates an existing account user profile. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::AccountUserProfile] account_user_profile_object # @param [Fixnum] id # AccountUserProfile ID. + # @param [Google::Apis::DfareportingV3_3::AccountUserProfile] account_user_profile_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -359,7 +359,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_account_user_profile(profile_id, account_user_profile_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_account_user_profile(profile_id, id, account_user_profile_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/accountUserProfiles', options) command.request_representation = Google::Apis::DfareportingV3_3::AccountUserProfile::Representation command.request_object = account_user_profile_object @@ -498,9 +498,9 @@ module Google # Updates an existing account. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Account] account_object # @param [Fixnum] id # Account ID. + # @param [Google::Apis::DfareportingV3_3::Account] account_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -518,7 +518,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_account(profile_id, account_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_account(profile_id, id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/accounts', options) command.request_representation = Google::Apis::DfareportingV3_3::Account::Representation command.request_object = account_object @@ -744,9 +744,9 @@ module Google # Updates an existing ad. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Ad] ad_object # @param [Fixnum] id # Ad ID. + # @param [Google::Apis::DfareportingV3_3::Ad] ad_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -764,7 +764,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_ad(profile_id, ad_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_ad(profile_id, id, ad_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/ads', options) command.request_representation = Google::Apis::DfareportingV3_3::Ad::Representation command.request_object = ad_object @@ -965,9 +965,9 @@ module Google # Updates an existing advertiser group. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::AdvertiserGroup] advertiser_group_object # @param [Fixnum] id # AdvertiserGroup ID. + # @param [Google::Apis::DfareportingV3_3::AdvertiserGroup] advertiser_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -985,7 +985,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_advertiser_group(profile_id, advertiser_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_advertiser_group(profile_id, id, advertiser_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/advertiserGroups', options) command.request_representation = Google::Apis::DfareportingV3_3::AdvertiserGroup::Representation command.request_object = advertiser_group_object @@ -1168,9 +1168,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::LandingPage] landing_page_object # @param [Fixnum] id # LandingPage ID. + # @param [Google::Apis::DfareportingV3_3::LandingPage] landing_page_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1188,7 +1188,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_advertiser_landing_page(profile_id, landing_page_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_advertiser_landing_page(profile_id, id, landing_page_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/advertiserLandingPages', options) command.request_representation = Google::Apis::DfareportingV3_3::LandingPage::Representation command.request_object = landing_page_object @@ -1376,9 +1376,9 @@ module Google # Updates an existing advertiser. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Advertiser] advertiser_object # @param [Fixnum] id # Advertiser ID. + # @param [Google::Apis::DfareportingV3_3::Advertiser] advertiser_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1396,7 +1396,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_advertiser(profile_id, advertiser_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_advertiser(profile_id, id, advertiser_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/advertisers', options) command.request_representation = Google::Apis::DfareportingV3_3::Advertiser::Representation command.request_object = advertiser_object @@ -1697,9 +1697,9 @@ module Google # Updates an existing campaign. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Campaign] campaign_object # @param [Fixnum] id # Campaign ID. + # @param [Google::Apis::DfareportingV3_3::Campaign] campaign_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1717,7 +1717,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_campaign(profile_id, campaign_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_campaign(profile_id, id, campaign_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/campaigns', options) command.request_representation = Google::Apis::DfareportingV3_3::Campaign::Representation command.request_object = campaign_object @@ -2127,9 +2127,9 @@ module Google # Updates an existing content category. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::ContentCategory] content_category_object # @param [Fixnum] id # ContentCategory ID. + # @param [Google::Apis::DfareportingV3_3::ContentCategory] content_category_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2147,7 +2147,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_content_category(profile_id, content_category_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_content_category(profile_id, id, content_category_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/contentCategories', options) command.request_representation = Google::Apis::DfareportingV3_3::ContentCategory::Representation command.request_object = content_category_object @@ -2532,9 +2532,9 @@ module Google # User profile ID associated with this request. # @param [Fixnum] creative_field_id # CreativeField ID. - # @param [Google::Apis::DfareportingV3_3::CreativeFieldValue] creative_field_value_object # @param [Fixnum] id # CreativeFieldValue ID. + # @param [Google::Apis::DfareportingV3_3::CreativeFieldValue] creative_field_value_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2552,7 +2552,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_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative_field_value(profile_id, creative_field_id, id, creative_field_value_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) command.request_representation = Google::Apis::DfareportingV3_3::CreativeFieldValue::Representation command.request_object = creative_field_value_object @@ -2760,9 +2760,9 @@ module Google # Updates an existing creative field. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::CreativeField] creative_field_object # @param [Fixnum] id # CreativeField ID. + # @param [Google::Apis::DfareportingV3_3::CreativeField] creative_field_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2780,7 +2780,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_creative_field(profile_id, creative_field_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative_field(profile_id, id, creative_field_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields', options) command.request_representation = Google::Apis::DfareportingV3_3::CreativeField::Representation command.request_object = creative_field_object @@ -2956,9 +2956,9 @@ module Google # Updates an existing creative group. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::CreativeGroup] creative_group_object # @param [Fixnum] id # CreativeGroup ID. + # @param [Google::Apis::DfareportingV3_3::CreativeGroup] creative_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2976,7 +2976,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_creative_group(profile_id, creative_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative_group(profile_id, id, creative_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeGroups', options) command.request_representation = Google::Apis::DfareportingV3_3::CreativeGroup::Representation command.request_object = creative_group_object @@ -3176,9 +3176,9 @@ module Google # Updates an existing creative. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Creative] creative_object # @param [Fixnum] id # Creative ID. + # @param [Google::Apis::DfareportingV3_3::Creative] creative_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3196,7 +3196,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_creative(profile_id, creative_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative(profile_id, id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creatives', options) command.request_representation = Google::Apis::DfareportingV3_3::Creative::Representation command.request_object = creative_object @@ -3716,9 +3716,9 @@ module Google # Updates an existing event tag. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::EventTag] event_tag_object # @param [Fixnum] id # EventTag ID. + # @param [Google::Apis::DfareportingV3_3::EventTag] event_tag_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3736,7 +3736,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_event_tag(profile_id, event_tag_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_event_tag(profile_id, id, event_tag_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/eventTags', options) command.request_representation = Google::Apis::DfareportingV3_3::EventTag::Representation command.request_object = event_tag_object @@ -4086,9 +4086,9 @@ module Google # Updates an existing floodlight activity. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::FloodlightActivity] floodlight_activity_object # @param [Fixnum] id # FloodlightActivity ID. + # @param [Google::Apis::DfareportingV3_3::FloodlightActivity] floodlight_activity_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4106,7 +4106,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_floodlight_activity(profile_id, floodlight_activity_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_floodlight_activity(profile_id, id, floodlight_activity_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivities', options) command.request_representation = Google::Apis::DfareportingV3_3::FloodlightActivity::Representation command.request_object = floodlight_activity_object @@ -4293,9 +4293,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::FloodlightActivityGroup] floodlight_activity_group_object # @param [Fixnum] id # FloodlightActivityGroup ID. + # @param [Google::Apis::DfareportingV3_3::FloodlightActivityGroup] floodlight_activity_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4313,7 +4313,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_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_floodlight_activity_group(profile_id, id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivityGroups', options) command.request_representation = Google::Apis::DfareportingV3_3::FloodlightActivityGroup::Representation command.request_object = floodlight_activity_group_object @@ -4430,9 +4430,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::FloodlightConfiguration] floodlight_configuration_object # @param [Fixnum] id # FloodlightConfiguration ID. + # @param [Google::Apis::DfareportingV3_3::FloodlightConfiguration] floodlight_configuration_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4450,7 +4450,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_floodlight_configuration(profile_id, floodlight_configuration_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_floodlight_configuration(profile_id, id, floodlight_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightConfigurations', options) command.request_representation = Google::Apis::DfareportingV3_3::FloodlightConfiguration::Representation command.request_object = floodlight_configuration_object @@ -5297,9 +5297,9 @@ module Google # Updates an existing placement group. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::PlacementGroup] placement_group_object # @param [Fixnum] id # PlacementGroup ID. + # @param [Google::Apis::DfareportingV3_3::PlacementGroup] placement_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5317,7 +5317,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_placement_group(profile_id, placement_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_placement_group(profile_id, id, placement_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/placementGroups', options) command.request_representation = Google::Apis::DfareportingV3_3::PlacementGroup::Representation command.request_object = placement_group_object @@ -5518,9 +5518,9 @@ module Google # Updates an existing placement strategy. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::PlacementStrategy] placement_strategy_object # @param [Fixnum] id # PlacementStrategy ID. + # @param [Google::Apis::DfareportingV3_3::PlacementStrategy] placement_strategy_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5538,7 +5538,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_placement_strategy(profile_id, placement_strategy_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_placement_strategy(profile_id, id, placement_strategy_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/placementStrategies', options) command.request_representation = Google::Apis::DfareportingV3_3::PlacementStrategy::Representation command.request_object = placement_strategy_object @@ -5803,9 +5803,9 @@ module Google # Updates an existing placement. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Placement] placement_object # @param [Fixnum] id # Placement ID. + # @param [Google::Apis::DfareportingV3_3::Placement] placement_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5823,7 +5823,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_placement(profile_id, placement_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_placement(profile_id, id, placement_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/placements', options) command.request_representation = Google::Apis::DfareportingV3_3::Placement::Representation command.request_object = placement_object @@ -6151,11 +6151,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Fixnum] remarketing_list_id + # @param [Fixnum] id # RemarketingList ID. # @param [Google::Apis::DfareportingV3_3::RemarketingListShare] remarketing_list_share_object - # @param [Fixnum] id - # RemarketingListShare ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6173,14 +6171,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 patch_remarketing_list_share(profile_id, remarketing_list_id, remarketing_list_share_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingLists/{remarketingListId}/remarketingListShares', options) + def patch_remarketing_list_share(profile_id, id, remarketing_list_share_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingListShares', options) command.request_representation = Google::Apis::DfareportingV3_3::RemarketingListShare::Representation command.request_object = remarketing_list_share_object command.response_representation = Google::Apis::DfareportingV3_3::RemarketingListShare::Representation command.response_class = Google::Apis::DfareportingV3_3::RemarketingListShare command.params['profileId'] = profile_id unless profile_id.nil? - command.params['remarketingListId'] = remarketing_list_id unless remarketing_list_id.nil? command.query['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -6350,9 +6347,9 @@ module Google # Updates an existing remarketing list. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::RemarketingList] remarketing_list_object # @param [Fixnum] id # RemarketingList ID. + # @param [Google::Apis::DfareportingV3_3::RemarketingList] remarketing_list_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6370,7 +6367,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_remarketing_list(profile_id, remarketing_list_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_remarketing_list(profile_id, id, remarketing_list_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingLists', options) command.request_representation = Google::Apis::DfareportingV3_3::RemarketingList::Representation command.request_object = remarketing_list_object @@ -6941,9 +6938,9 @@ module Google # Updates an existing site. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Site] site_object # @param [Fixnum] id # Site ID. + # @param [Google::Apis::DfareportingV3_3::Site] site_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6961,7 +6958,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_site(profile_id, site_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_site(profile_id, id, site_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/sites', options) command.request_representation = Google::Apis::DfareportingV3_3::Site::Representation command.request_object = site_object @@ -7240,9 +7237,9 @@ module Google # Updates an existing subaccount. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::Subaccount] subaccount_object # @param [Fixnum] id # Subaccount ID. + # @param [Google::Apis::DfareportingV3_3::Subaccount] subaccount_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7260,7 +7257,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_subaccount(profile_id, subaccount_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_subaccount(profile_id, id, subaccount_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/subaccounts', options) command.request_representation = Google::Apis::DfareportingV3_3::Subaccount::Representation command.request_object = subaccount_object @@ -7523,9 +7520,9 @@ module Google # Updates an existing targeting template. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::TargetingTemplate] targeting_template_object # @param [Fixnum] id # TargetingTemplate ID. + # @param [Google::Apis::DfareportingV3_3::TargetingTemplate] targeting_template_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7543,7 +7540,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_targeting_template(profile_id, targeting_template_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_targeting_template(profile_id, id, targeting_template_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/targetingTemplates', options) command.request_representation = Google::Apis::DfareportingV3_3::TargetingTemplate::Representation command.request_object = targeting_template_object @@ -7935,9 +7932,9 @@ module Google # Updates an existing user role. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_3::UserRole] user_role_object # @param [Fixnum] id # UserRole ID. + # @param [Google::Apis::DfareportingV3_3::UserRole] user_role_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7955,7 +7952,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_user_role(profile_id, user_role_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_user_role(profile_id, id, user_role_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/userRoles', options) command.request_representation = Google::Apis::DfareportingV3_3::UserRole::Representation command.request_object = user_role_object diff --git a/generated/google/apis/dfareporting_v3_4.rb b/generated/google/apis/dfareporting_v3_4.rb index d0de1f2ce..76dc39b65 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 = '20200825' + REVISION = '20200916' # 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 dd06bb99d..b063779f2 100644 --- a/generated/google/apis/dfareporting_v3_4/service.rb +++ b/generated/google/apis/dfareporting_v3_4/service.rb @@ -339,9 +339,9 @@ module Google # Updates an existing account user profile. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::AccountUserProfile] account_user_profile_object # @param [Fixnum] id # AccountUserProfile ID. + # @param [Google::Apis::DfareportingV3_4::AccountUserProfile] account_user_profile_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -359,7 +359,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_account_user_profile(profile_id, account_user_profile_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_account_user_profile(profile_id, id, account_user_profile_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/accountUserProfiles', options) command.request_representation = Google::Apis::DfareportingV3_4::AccountUserProfile::Representation command.request_object = account_user_profile_object @@ -498,9 +498,9 @@ module Google # Updates an existing account. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Account] account_object # @param [Fixnum] id # Account ID. + # @param [Google::Apis::DfareportingV3_4::Account] account_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -518,7 +518,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_account(profile_id, account_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_account(profile_id, id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/accounts', options) command.request_representation = Google::Apis::DfareportingV3_4::Account::Representation command.request_object = account_object @@ -744,9 +744,9 @@ module Google # Updates an existing ad. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Ad] ad_object # @param [Fixnum] id # Ad ID. + # @param [Google::Apis::DfareportingV3_4::Ad] ad_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -764,7 +764,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_ad(profile_id, ad_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_ad(profile_id, id, ad_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/ads', options) command.request_representation = Google::Apis::DfareportingV3_4::Ad::Representation command.request_object = ad_object @@ -965,9 +965,9 @@ module Google # Updates an existing advertiser group. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::AdvertiserGroup] advertiser_group_object # @param [Fixnum] id # AdvertiserGroup ID. + # @param [Google::Apis::DfareportingV3_4::AdvertiserGroup] advertiser_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -985,7 +985,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_advertiser_group(profile_id, advertiser_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_advertiser_group(profile_id, id, advertiser_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/advertiserGroups', options) command.request_representation = Google::Apis::DfareportingV3_4::AdvertiserGroup::Representation command.request_object = advertiser_group_object @@ -1168,9 +1168,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::LandingPage] landing_page_object # @param [Fixnum] id # LandingPage ID. + # @param [Google::Apis::DfareportingV3_4::LandingPage] landing_page_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1188,7 +1188,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_advertiser_landing_page(profile_id, landing_page_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_advertiser_landing_page(profile_id, id, landing_page_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/advertiserLandingPages', options) command.request_representation = Google::Apis::DfareportingV3_4::LandingPage::Representation command.request_object = landing_page_object @@ -1376,9 +1376,9 @@ module Google # Updates an existing advertiser. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Advertiser] advertiser_object # @param [Fixnum] id # Advertiser ID. + # @param [Google::Apis::DfareportingV3_4::Advertiser] advertiser_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1396,7 +1396,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_advertiser(profile_id, advertiser_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_advertiser(profile_id, id, advertiser_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/advertisers', options) command.request_representation = Google::Apis::DfareportingV3_4::Advertiser::Representation command.request_object = advertiser_object @@ -1697,9 +1697,9 @@ module Google # Updates an existing campaign. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Campaign] campaign_object # @param [Fixnum] id # Campaign ID. + # @param [Google::Apis::DfareportingV3_4::Campaign] campaign_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1717,7 +1717,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_campaign(profile_id, campaign_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_campaign(profile_id, id, campaign_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/campaigns', options) command.request_representation = Google::Apis::DfareportingV3_4::Campaign::Representation command.request_object = campaign_object @@ -2127,9 +2127,9 @@ module Google # Updates an existing content category. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::ContentCategory] content_category_object # @param [Fixnum] id # ContentCategory ID. + # @param [Google::Apis::DfareportingV3_4::ContentCategory] content_category_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2147,7 +2147,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_content_category(profile_id, content_category_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_content_category(profile_id, id, content_category_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/contentCategories', options) command.request_representation = Google::Apis::DfareportingV3_4::ContentCategory::Representation command.request_object = content_category_object @@ -2532,9 +2532,9 @@ module Google # User profile ID associated with this request. # @param [Fixnum] creative_field_id # CreativeField ID. - # @param [Google::Apis::DfareportingV3_4::CreativeFieldValue] creative_field_value_object # @param [Fixnum] id # CreativeFieldValue ID. + # @param [Google::Apis::DfareportingV3_4::CreativeFieldValue] creative_field_value_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2552,7 +2552,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_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative_field_value(profile_id, creative_field_id, id, creative_field_value_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) command.request_representation = Google::Apis::DfareportingV3_4::CreativeFieldValue::Representation command.request_object = creative_field_value_object @@ -2760,9 +2760,9 @@ module Google # Updates an existing creative field. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::CreativeField] creative_field_object # @param [Fixnum] id # CreativeField ID. + # @param [Google::Apis::DfareportingV3_4::CreativeField] creative_field_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2780,7 +2780,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_creative_field(profile_id, creative_field_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative_field(profile_id, id, creative_field_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields', options) command.request_representation = Google::Apis::DfareportingV3_4::CreativeField::Representation command.request_object = creative_field_object @@ -2956,9 +2956,9 @@ module Google # Updates an existing creative group. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::CreativeGroup] creative_group_object # @param [Fixnum] id # CreativeGroup ID. + # @param [Google::Apis::DfareportingV3_4::CreativeGroup] creative_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2976,7 +2976,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_creative_group(profile_id, creative_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative_group(profile_id, id, creative_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeGroups', options) command.request_representation = Google::Apis::DfareportingV3_4::CreativeGroup::Representation command.request_object = creative_group_object @@ -3176,9 +3176,9 @@ module Google # Updates an existing creative. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Creative] creative_object # @param [Fixnum] id # Creative ID. + # @param [Google::Apis::DfareportingV3_4::Creative] creative_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3196,7 +3196,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_creative(profile_id, creative_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_creative(profile_id, id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/creatives', options) command.request_representation = Google::Apis::DfareportingV3_4::Creative::Representation command.request_object = creative_object @@ -3749,9 +3749,9 @@ module Google # Updates an existing event tag. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::EventTag] event_tag_object # @param [Fixnum] id # EventTag ID. + # @param [Google::Apis::DfareportingV3_4::EventTag] event_tag_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3769,7 +3769,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_event_tag(profile_id, event_tag_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_event_tag(profile_id, id, event_tag_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/eventTags', options) command.request_representation = Google::Apis::DfareportingV3_4::EventTag::Representation command.request_object = event_tag_object @@ -4119,9 +4119,9 @@ module Google # Updates an existing floodlight activity. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::FloodlightActivity] floodlight_activity_object # @param [Fixnum] id # FloodlightActivity ID. + # @param [Google::Apis::DfareportingV3_4::FloodlightActivity] floodlight_activity_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4139,7 +4139,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_floodlight_activity(profile_id, floodlight_activity_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_floodlight_activity(profile_id, id, floodlight_activity_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivities', options) command.request_representation = Google::Apis::DfareportingV3_4::FloodlightActivity::Representation command.request_object = floodlight_activity_object @@ -4326,9 +4326,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::FloodlightActivityGroup] floodlight_activity_group_object # @param [Fixnum] id # FloodlightActivityGroup ID. + # @param [Google::Apis::DfareportingV3_4::FloodlightActivityGroup] floodlight_activity_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4346,7 +4346,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_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_floodlight_activity_group(profile_id, id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivityGroups', options) command.request_representation = Google::Apis::DfareportingV3_4::FloodlightActivityGroup::Representation command.request_object = floodlight_activity_group_object @@ -4463,9 +4463,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::FloodlightConfiguration] floodlight_configuration_object # @param [Fixnum] id # FloodlightConfiguration ID. + # @param [Google::Apis::DfareportingV3_4::FloodlightConfiguration] floodlight_configuration_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4483,7 +4483,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_floodlight_configuration(profile_id, floodlight_configuration_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_floodlight_configuration(profile_id, id, floodlight_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightConfigurations', options) command.request_representation = Google::Apis::DfareportingV3_4::FloodlightConfiguration::Representation command.request_object = floodlight_configuration_object @@ -5330,9 +5330,9 @@ module Google # Updates an existing placement group. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::PlacementGroup] placement_group_object # @param [Fixnum] id # PlacementGroup ID. + # @param [Google::Apis::DfareportingV3_4::PlacementGroup] placement_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5350,7 +5350,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_placement_group(profile_id, placement_group_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_placement_group(profile_id, id, placement_group_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/placementGroups', options) command.request_representation = Google::Apis::DfareportingV3_4::PlacementGroup::Representation command.request_object = placement_group_object @@ -5551,9 +5551,9 @@ module Google # Updates an existing placement strategy. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::PlacementStrategy] placement_strategy_object # @param [Fixnum] id # PlacementStrategy ID. + # @param [Google::Apis::DfareportingV3_4::PlacementStrategy] placement_strategy_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5571,7 +5571,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_placement_strategy(profile_id, placement_strategy_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_placement_strategy(profile_id, id, placement_strategy_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/placementStrategies', options) command.request_representation = Google::Apis::DfareportingV3_4::PlacementStrategy::Representation command.request_object = placement_strategy_object @@ -5836,9 +5836,9 @@ module Google # Updates an existing placement. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Placement] placement_object # @param [Fixnum] id # Placement ID. + # @param [Google::Apis::DfareportingV3_4::Placement] placement_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5856,7 +5856,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_placement(profile_id, placement_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_placement(profile_id, id, placement_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/placements', options) command.request_representation = Google::Apis::DfareportingV3_4::Placement::Representation command.request_object = placement_object @@ -6184,11 +6184,9 @@ module Google # semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Fixnum] remarketing_list_id + # @param [Fixnum] id # RemarketingList ID. # @param [Google::Apis::DfareportingV3_4::RemarketingListShare] remarketing_list_share_object - # @param [Fixnum] id - # RemarketingListShare ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6206,14 +6204,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 patch_remarketing_list_share(profile_id, remarketing_list_id, remarketing_list_share_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingLists/{remarketingListId}/remarketingListShares', options) + def patch_remarketing_list_share(profile_id, id, remarketing_list_share_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingListShares', options) command.request_representation = Google::Apis::DfareportingV3_4::RemarketingListShare::Representation command.request_object = remarketing_list_share_object command.response_representation = Google::Apis::DfareportingV3_4::RemarketingListShare::Representation command.response_class = Google::Apis::DfareportingV3_4::RemarketingListShare command.params['profileId'] = profile_id unless profile_id.nil? - command.params['remarketingListId'] = remarketing_list_id unless remarketing_list_id.nil? command.query['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -6383,9 +6380,9 @@ module Google # Updates an existing remarketing list. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::RemarketingList] remarketing_list_object # @param [Fixnum] id # RemarketingList ID. + # @param [Google::Apis::DfareportingV3_4::RemarketingList] remarketing_list_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6403,7 +6400,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_remarketing_list(profile_id, remarketing_list_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_remarketing_list(profile_id, id, remarketing_list_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingLists', options) command.request_representation = Google::Apis::DfareportingV3_4::RemarketingList::Representation command.request_object = remarketing_list_object @@ -6974,9 +6971,9 @@ module Google # Updates an existing site. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Site] site_object # @param [Fixnum] id # Site ID. + # @param [Google::Apis::DfareportingV3_4::Site] site_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6994,7 +6991,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_site(profile_id, site_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_site(profile_id, id, site_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/sites', options) command.request_representation = Google::Apis::DfareportingV3_4::Site::Representation command.request_object = site_object @@ -7273,9 +7270,9 @@ module Google # Updates an existing subaccount. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::Subaccount] subaccount_object # @param [Fixnum] id # Subaccount ID. + # @param [Google::Apis::DfareportingV3_4::Subaccount] subaccount_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7293,7 +7290,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_subaccount(profile_id, subaccount_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_subaccount(profile_id, id, subaccount_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/subaccounts', options) command.request_representation = Google::Apis::DfareportingV3_4::Subaccount::Representation command.request_object = subaccount_object @@ -7556,9 +7553,9 @@ module Google # Updates an existing targeting template. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::TargetingTemplate] targeting_template_object # @param [Fixnum] id # TargetingTemplate ID. + # @param [Google::Apis::DfareportingV3_4::TargetingTemplate] targeting_template_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7576,7 +7573,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_targeting_template(profile_id, targeting_template_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_targeting_template(profile_id, id, targeting_template_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/targetingTemplates', options) command.request_representation = Google::Apis::DfareportingV3_4::TargetingTemplate::Representation command.request_object = targeting_template_object @@ -7968,9 +7965,9 @@ module Google # Updates an existing user role. This method supports patch semantics. # @param [Fixnum] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV3_4::UserRole] user_role_object # @param [Fixnum] id # UserRole ID. + # @param [Google::Apis::DfareportingV3_4::UserRole] user_role_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7988,7 +7985,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_user_role(profile_id, user_role_object = nil, id: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_user_role(profile_id, id, user_role_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'userprofiles/{profileId}/userRoles', options) command.request_representation = Google::Apis::DfareportingV3_4::UserRole::Representation command.request_object = user_role_object diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index f2c6803a2..027cc0e50 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20200807' + REVISION = '20200909' # 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/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index 67f3f8b1a..db599b4b3 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -46,6 +46,12 @@ module Google class Binding include Google::Apis::Core::Hashable + # A client-specified ID for this binding. Expected to be globally unique to + # support the internal bindings-by-ID API. + # Corresponds to the JSON property `bindingId` + # @return [String] + attr_accessor :binding_id + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -107,6 +113,7 @@ module Google # Update properties of this object def update!(**args) + @binding_id = args[:binding_id] if args.key?(:binding_id) @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) diff --git a/generated/google/apis/pubsub_v1beta2/representations.rb b/generated/google/apis/pubsub_v1beta2/representations.rb index 2a7f20cf9..2b346c940 100644 --- a/generated/google/apis/pubsub_v1beta2/representations.rb +++ b/generated/google/apis/pubsub_v1beta2/representations.rb @@ -170,6 +170,7 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :binding_id, as: 'bindingId' property :condition, as: 'condition', class: Google::Apis::PubsubV1beta2::Expr, decorator: Google::Apis::PubsubV1beta2::Expr::Representation collection :members, as: 'members' diff --git a/generated/google/apis/pubsublite_v1.rb b/generated/google/apis/pubsublite_v1.rb index f4b1cab1e..2c0de2715 100644 --- a/generated/google/apis/pubsublite_v1.rb +++ b/generated/google/apis/pubsublite_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/lite/docs module PubsubliteV1 VERSION = 'V1' - REVISION = '20200818' + REVISION = '20200915' # 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/pubsublite_v1/classes.rb b/generated/google/apis/pubsublite_v1/classes.rb index 39ca9ff95..ec4b85872 100644 --- a/generated/google/apis/pubsublite_v1/classes.rb +++ b/generated/google/apis/pubsublite_v1/classes.rb @@ -47,6 +47,78 @@ module Google end end + # Compute statistics about a range of messages in a given topic and partition. + class ComputeMessageStatsRequest + include Google::Apis::Core::Hashable + + # A cursor that describes the position of a message within a topic partition. + # Corresponds to the JSON property `endCursor` + # @return [Google::Apis::PubsubliteV1::Cursor] + attr_accessor :end_cursor + + # Required. The partition for which we should compute message stats. + # Corresponds to the JSON property `partition` + # @return [Fixnum] + attr_accessor :partition + + # A cursor that describes the position of a message within a topic partition. + # Corresponds to the JSON property `startCursor` + # @return [Google::Apis::PubsubliteV1::Cursor] + attr_accessor :start_cursor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_cursor = args[:end_cursor] if args.key?(:end_cursor) + @partition = args[:partition] if args.key?(:partition) + @start_cursor = args[:start_cursor] if args.key?(:start_cursor) + end + end + + # Response containing stats for messages in the requested topic and partition. + class ComputeMessageStatsResponse + include Google::Apis::Core::Hashable + + # The number of quota bytes accounted to these messages. + # Corresponds to the JSON property `messageBytes` + # @return [Fixnum] + attr_accessor :message_bytes + + # The count of messages. + # Corresponds to the JSON property `messageCount` + # @return [Fixnum] + attr_accessor :message_count + + # The minimum event timestamp across these messages. For the purposes of this + # computation, if a message does not have an event time, we use the publish time. + # The timestamp will be unset if there are no messages. + # Corresponds to the JSON property `minimumEventTime` + # @return [String] + attr_accessor :minimum_event_time + + # The minimum publish timestamp across these messages. Note that publish + # timestamps within a partition are non-decreasing. The timestamp will be unset + # if there are no messages. + # Corresponds to the JSON property `minimumPublishTime` + # @return [String] + attr_accessor :minimum_publish_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message_bytes = args[:message_bytes] if args.key?(:message_bytes) + @message_count = args[:message_count] if args.key?(:message_count) + @minimum_event_time = args[:minimum_event_time] if args.key?(:minimum_event_time) + @minimum_publish_time = args[:minimum_publish_time] if args.key?(:minimum_publish_time) + end + end + # A cursor that describes the position of a message within a topic partition. class Cursor include Google::Apis::Core::Hashable diff --git a/generated/google/apis/pubsublite_v1/representations.rb b/generated/google/apis/pubsublite_v1/representations.rb index 91935b1d5..5846581a7 100644 --- a/generated/google/apis/pubsublite_v1/representations.rb +++ b/generated/google/apis/pubsublite_v1/representations.rb @@ -28,6 +28,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ComputeMessageStatsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ComputeMessageStatsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Cursor class Representation < Google::Apis::Core::JsonRepresentation; end @@ -114,6 +126,27 @@ module Google end end + class ComputeMessageStatsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_cursor, as: 'endCursor', class: Google::Apis::PubsubliteV1::Cursor, decorator: Google::Apis::PubsubliteV1::Cursor::Representation + + property :partition, :numeric_string => true, as: 'partition' + property :start_cursor, as: 'startCursor', class: Google::Apis::PubsubliteV1::Cursor, decorator: Google::Apis::PubsubliteV1::Cursor::Representation + + end + end + + class ComputeMessageStatsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message_bytes, :numeric_string => true, as: 'messageBytes' + property :message_count, :numeric_string => true, as: 'messageCount' + property :minimum_event_time, as: 'minimumEventTime' + property :minimum_publish_time, as: 'minimumPublishTime' + end + end + class Cursor # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/pubsublite_v1/service.rb b/generated/google/apis/pubsublite_v1/service.rb index 8a2e95180..a6835cbba 100644 --- a/generated/google/apis/pubsublite_v1/service.rb +++ b/generated/google/apis/pubsublite_v1/service.rb @@ -512,6 +512,39 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Compute statistics about a range of messages in a given topic and partition. + # @param [String] topic + # Required. The topic for which we should compute message stats. + # @param [Google::Apis::PubsubliteV1::ComputeMessageStatsRequest] compute_message_stats_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubliteV1::ComputeMessageStatsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubliteV1::ComputeMessageStatsResponse] + # + # @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 compute_topic_message_stats(topic, compute_message_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/topicStats/{+topic}:computeMessageStats', options) + command.request_representation = Google::Apis::PubsubliteV1::ComputeMessageStatsRequest::Representation + command.request_object = compute_message_stats_request_object + command.response_representation = Google::Apis::PubsubliteV1::ComputeMessageStatsResponse::Representation + command.response_class = Google::Apis::PubsubliteV1::ComputeMessageStatsResponse + command.params['topic'] = topic unless topic.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 diff --git a/generated/google/apis/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb index 0dbdf70f6..ff43556a3 100644 --- a/generated/google/apis/redis_v1beta1.rb +++ b/generated/google/apis/redis_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1beta1 VERSION = 'V1beta1' - REVISION = '20200810' + REVISION = '20200916' # 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/redis_v1beta1/classes.rb b/generated/google/apis/redis_v1beta1/classes.rb index 8f8f1dc2d..6772e6d2d 100644 --- a/generated/google/apis/redis_v1beta1/classes.rb +++ b/generated/google/apis/redis_v1beta1/classes.rb @@ -214,392 +214,6 @@ module Google end end - # - class GoogleCloudSaasacceleratorManagementProvidersV1Instance - include Google::Apis::Core::Hashable - - # consumer_defined_name is the name that is set by the consumer. On the other - # hand Name field represents system-assigned id of an instance so consumers are - # not necessarily aware of it. consumer_defined_name is used for notification/UI - # purposes for consumer to recognize their instances. - # Corresponds to the JSON property `consumerDefinedName` - # @return [String] - attr_accessor :consumer_defined_name - - # Output only. Timestamp when the resource was created. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Optional. Resource labels to represent user provided metadata. Each label is a - # key-value pair, where both the key and the value are arbitrary strings - # provided by the user. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The MaintenancePolicies that have been attached to the instance. The key must - # be of the type name of the oneof policy name defined in MaintenancePolicy, and - # the referenced policy must define the same policy type. For complete details - # of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. - # Corresponds to the JSON property `maintenancePolicyNames` - # @return [Hash] - attr_accessor :maintenance_policy_names - - # The MaintenanceSchedule contains the scheduling information of published - # maintenance schedule. - # Corresponds to the JSON property `maintenanceSchedules` - # @return [Hash] - attr_accessor :maintenance_schedules - - # Maintenance settings associated with instance. Allows service producers and - # end users to assign settings that controls maintenance on this instance. - # Corresponds to the JSON property `maintenanceSettings` - # @return [Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings] - attr_accessor :maintenance_settings - - # Unique name of the resource. It uses the form: `projects/`project_id`/ - # locations/`location_id`/instances/`instance_id`` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Output only. Custom string attributes used primarily to expose producer- - # specific information in monitoring dashboards. See go/get-instance-metadata. - # Corresponds to the JSON property `producerMetadata` - # @return [Hash] - attr_accessor :producer_metadata - - # Output only. The list of data plane resources provisioned for this instance, e. - # g. compute VMs. See go/get-instance-metadata. - # Corresponds to the JSON property `provisionedResources` - # @return [Array] - attr_accessor :provisioned_resources - - # Link to the SLM instance template. Only populated when updating SLM instances - # via SSA's Actuation service adaptor. Service producers with custom control - # plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they - # should use software_versions. - # Corresponds to the JSON property `slmInstanceTemplate` - # @return [String] - attr_accessor :slm_instance_template - - # SloMetadata contains resources required for proper SLO classification of the - # instance. - # Corresponds to the JSON property `sloMetadata` - # @return [Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata] - attr_accessor :slo_metadata - - # Software versions that are used to deploy this instance. This can be mutated - # by rollout services. - # Corresponds to the JSON property `softwareVersions` - # @return [Hash] - attr_accessor :software_versions - - # Output only. Current lifecycle state of the resource (e.g. if it's being - # created or ready to use). - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Output only. ID of the associated GCP tenant project. See go/get-instance- - # metadata. - # Corresponds to the JSON property `tenantProjectId` - # @return [String] - attr_accessor :tenant_project_id - - # Output only. Timestamp when the resource was last modified. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consumer_defined_name = args[:consumer_defined_name] if args.key?(:consumer_defined_name) - @create_time = args[:create_time] if args.key?(:create_time) - @labels = args[:labels] if args.key?(:labels) - @maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names) - @maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules) - @maintenance_settings = args[:maintenance_settings] if args.key?(:maintenance_settings) - @name = args[:name] if args.key?(:name) - @producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata) - @provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources) - @slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template) - @slo_metadata = args[:slo_metadata] if args.key?(:slo_metadata) - @software_versions = args[:software_versions] if args.key?(:software_versions) - @state = args[:state] if args.key?(:state) - @tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id) - @update_time = args[:update_time] if args.key?(:update_time) - end - end - - # Maintenance schedule which is exposed to customer and potentially end user, - # indicating published upcoming future maintenance schedule - class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule - include Google::Apis::Core::Hashable - - # Can this scheduled update be rescheduled? By default, it's true and API needs - # to do explicitly check whether it's set, if it's set as false explicitly, it's - # false - # Corresponds to the JSON property `canReschedule` - # @return [Boolean] - attr_accessor :can_reschedule - alias_method :can_reschedule?, :can_reschedule - - # The scheduled end time for the maintenance. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # The rollout management policy this maintenance schedule is associated with. - # When doing reschedule update request, the reschedule should be against this - # given policy. - # Corresponds to the JSON property `rolloutManagementPolicy` - # @return [String] - attr_accessor :rollout_management_policy - - # The scheduled start time for the maintenance. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule) - @end_time = args[:end_time] if args.key?(:end_time) - @rollout_management_policy = args[:rollout_management_policy] if args.key?(:rollout_management_policy) - @start_time = args[:start_time] if args.key?(:start_time) - end - end - - # Maintenance settings associated with instance. Allows service producers and - # end users to assign settings that controls maintenance on this instance. - class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings - include Google::Apis::Core::Hashable - - # Optional. Exclude instance from maintenance. When true, rollout service will - # not attempt maintenance on the instance. Rollout service will include the - # instance in reported rollout progress as not attempted. - # Corresponds to the JSON property `exclude` - # @return [Boolean] - attr_accessor :exclude - alias_method :exclude?, :exclude - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exclude = args[:exclude] if args.key?(:exclude) - end - end - - # Node information for custom per-node SLO implementations. SSA does not support - # per-node SLO, but producers can populate per-node information in SloMetadata - # for custom precomputations. SSA Eligibility Exporter will emit per-node metric - # based on this information. - class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata - include Google::Apis::Core::Hashable - - # By default node is eligible if instance is eligible. But individual node might - # be excluded from SLO by adding entry here. For semantic see SloMetadata. - # exclusions. If both instance and node level exclusions are present for time - # period, the node level's reason will be reported by Eligibility Exporter. - # Corresponds to the JSON property `exclusions` - # @return [Array] - attr_accessor :exclusions - - # The location of the node, if different from instance location. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The id of the node. This should be equal to SaasInstanceNode.node_id. - # Corresponds to the JSON property `nodeId` - # @return [String] - attr_accessor :node_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exclusions = args[:exclusions] if args.key?(:exclusions) - @location = args[:location] if args.key?(:location) - @node_id = args[:node_id] if args.key?(:node_id) - end - end - - # Describes provisioned dataplane resources. - class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource - include Google::Apis::Core::Hashable - - # Type of the resource. This can be either a GCP resource or a custom one (e.g. - # another cloud provider's VM). For GCP compute resources use singular form of - # the names listed in GCP compute API documentation (https://cloud.google.com/ - # compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: ' - # compute-instance', 'compute-disk', 'compute-autoscaler'. - # Corresponds to the JSON property `resourceType` - # @return [String] - attr_accessor :resource_type - - # URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/ - # projects/...)". - # Corresponds to the JSON property `resourceUrl` - # @return [String] - attr_accessor :resource_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @resource_type = args[:resource_type] if args.key?(:resource_type) - @resource_url = args[:resource_url] if args.key?(:resource_url) - end - end - - # SloEligibility is a tuple containing eligibility value: true if an instance is - # eligible for SLO calculation or false if it should be excluded from all SLO- - # related calculations along with a user-defined reason. - class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility - include Google::Apis::Core::Hashable - - # Whether an instance is eligible or ineligible. - # Corresponds to the JSON property `eligible` - # @return [Boolean] - attr_accessor :eligible - alias_method :eligible?, :eligible - - # User-defined reason for the current value of instance eligibility. Usually, - # this can be directly mapped to the internal state. An empty reason is allowed. - # Corresponds to the JSON property `reason` - # @return [String] - attr_accessor :reason - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @eligible = args[:eligible] if args.key?(:eligible) - @reason = args[:reason] if args.key?(:reason) - end - end - - # SloExclusion represents an exclusion in SLI calculation applies to all SLOs. - class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion - include Google::Apis::Core::Hashable - - # Exclusion duration. No restrictions on the possible values. When an ongoing - # operation is taking longer than initially expected, an existing entry in the - # exclusion list can be updated by extending the duration. This is supported by - # the subsystem exporting eligibility data as long as such extension is - # committed at least 10 minutes before the original exclusion expiration - - # otherwise it is possible that there will be "gaps" in the exclusion - # application in the exported timeseries. - # Corresponds to the JSON property `duration` - # @return [String] - attr_accessor :duration - - # Human-readable reason for the exclusion. This should be a static string (e.g. " - # Disruptive update in progress") and should not contain dynamically generated - # data (e.g. instance name). Can be left empty. - # Corresponds to the JSON property `reason` - # @return [String] - attr_accessor :reason - - # Name of an SLI that this exclusion applies to. Can be left empty, signaling - # that the instance should be excluded from all SLIs defined in the service SLO - # configuration. - # Corresponds to the JSON property `sliName` - # @return [String] - attr_accessor :sli_name - - # Start time of the exclusion. No alignment (e.g. to a full minute) needed. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @duration = args[:duration] if args.key?(:duration) - @reason = args[:reason] if args.key?(:reason) - @sli_name = args[:sli_name] if args.key?(:sli_name) - @start_time = args[:start_time] if args.key?(:start_time) - end - end - - # SloMetadata contains resources required for proper SLO classification of the - # instance. - class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata - include Google::Apis::Core::Hashable - - # SloEligibility is a tuple containing eligibility value: true if an instance is - # eligible for SLO calculation or false if it should be excluded from all SLO- - # related calculations along with a user-defined reason. - # Corresponds to the JSON property `eligibility` - # @return [Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility] - attr_accessor :eligibility - - # List of SLO exclusion windows. When multiple entries in the list match ( - # matching the exclusion time-window against current time point) the exclusion - # reason used in the first matching entry will be published. It is not needed to - # include expired exclusion in this list, as only the currently applicable - # exclusions are taken into account by the eligibility exporting subsystem (the - # historical state of exclusions will be reflected in the historically produced - # timeseries regardless of the current state). This field can be used to mark - # the instance as temporary ineligible for the purpose of SLO calculation. For - # permanent instance SLO exclusion, use of custom instance eligibility is - # recommended. See 'eligibility' field below. - # Corresponds to the JSON property `exclusions` - # @return [Array] - attr_accessor :exclusions - - # Optional. List of nodes. Some producers need to use per-node metadata to - # calculate SLO. This field allows such producers to publish per-node SLO meta - # data, which will be consumed by SSA Eligibility Exporter and published in the - # form of per node metric to Monarch. - # Corresponds to the JSON property `nodes` - # @return [Array] - attr_accessor :nodes - - # Name of the SLO tier the Instance belongs to. This name will be expected to - # match the tiers specified in the service SLO configuration. Field is mandatory - # and must not be empty. - # Corresponds to the JSON property `tier` - # @return [String] - attr_accessor :tier - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @eligibility = args[:eligibility] if args.key?(:eligibility) - @exclusions = args[:exclusions] if args.key?(:exclusions) - @nodes = args[:nodes] if args.key?(:nodes) - @tier = args[:tier] if args.key?(:tier) - end - end - # Request for Import. class ImportInstanceRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/redis_v1beta1/representations.rb b/generated/google/apis/redis_v1beta1/representations.rb index 210899ca6..c4e57631f 100644 --- a/generated/google/apis/redis_v1beta1/representations.rb +++ b/generated/google/apis/redis_v1beta1/representations.rb @@ -70,54 +70,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudSaasacceleratorManagementProvidersV1Instance - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ImportInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -246,97 +198,6 @@ module Google end end - class GoogleCloudSaasacceleratorManagementProvidersV1Instance - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :consumer_defined_name, as: 'consumerDefinedName' - property :create_time, as: 'createTime' - hash :labels, as: 'labels' - hash :maintenance_policy_names, as: 'maintenancePolicyNames' - hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule::Representation - - property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings::Representation - - property :name, as: 'name' - hash :producer_metadata, as: 'producerMetadata' - collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation - - property :slm_instance_template, as: 'slmInstanceTemplate' - property :slo_metadata, as: 'sloMetadata', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata::Representation - - hash :software_versions, as: 'softwareVersions' - property :state, as: 'state' - property :tenant_project_id, as: 'tenantProjectId' - property :update_time, as: 'updateTime' - end - end - - class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :can_reschedule, as: 'canReschedule' - property :end_time, as: 'endTime' - property :rollout_management_policy, as: 'rolloutManagementPolicy' - property :start_time, as: 'startTime' - end - end - - class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :exclude, as: 'exclude' - end - end - - class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exclusions, as: 'exclusions', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation - - property :location, as: 'location' - property :node_id, as: 'nodeId' - end - end - - class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :resource_type, as: 'resourceType' - property :resource_url, as: 'resourceUrl' - end - end - - class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :eligible, as: 'eligible' - property :reason, as: 'reason' - end - end - - class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :duration, as: 'duration' - property :reason, as: 'reason' - property :sli_name, as: 'sliName' - property :start_time, as: 'startTime' - end - end - - class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :eligibility, as: 'eligibility', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation - - collection :exclusions, as: 'exclusions', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation - - collection :nodes, as: 'nodes', class: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation - - property :tier, as: 'tier' - end - end - class ImportInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/secretmanager_v1.rb b/generated/google/apis/secretmanager_v1.rb index b3f548b88..f995d6edd 100644 --- a/generated/google/apis/secretmanager_v1.rb +++ b/generated/google/apis/secretmanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/secret-manager/ module SecretmanagerV1 VERSION = 'V1' - REVISION = '20200903' + REVISION = '20200911' # 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.rb b/generated/google/apis/sqladmin_v1beta4.rb similarity index 83% rename from generated/google/apis/sql_v1beta4.rb rename to generated/google/apis/sqladmin_v1beta4.rb index d1e347027..783c064b4 100644 --- a/generated/google/apis/sql_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'google/apis/sql_v1beta4/service.rb' -require 'google/apis/sql_v1beta4/classes.rb' -require 'google/apis/sql_v1beta4/representations.rb' +require 'google/apis/sqladmin_v1beta4/service.rb' +require 'google/apis/sqladmin_v1beta4/classes.rb' +require 'google/apis/sqladmin_v1beta4/representations.rb' module Google module Apis @@ -23,9 +23,9 @@ module Google # API for Cloud SQL database instance management # # @see https://developers.google.com/cloud-sql/ - module SqlV1beta4 + module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20200828' + REVISION = '20200903' # 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/sqladmin_v1beta4/classes.rb similarity index 93% rename from generated/google/apis/sql_v1beta4/classes.rb rename to generated/google/apis/sqladmin_v1beta4/classes.rb index 5170bd6b6..b183c8765 100644 --- a/generated/google/apis/sql_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis - module SqlV1beta4 + module SqladminV1beta4 # An entry for an Access Control list. class AclEntry @@ -162,12 +162,12 @@ module Google # Disk encryption configuration for an instance. # Corresponds to the JSON property `diskEncryptionConfiguration` - # @return [Google::Apis::SqlV1beta4::DiskEncryptionConfiguration] + # @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration] attr_accessor :disk_encryption_configuration # Disk encryption status for an instance. # Corresponds to the JSON property `diskEncryptionStatus` - # @return [Google::Apis::SqlV1beta4::DiskEncryptionStatus] + # @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus] attr_accessor :disk_encryption_status # The time the backup operation completed in UTC timezone in RFC 3339 format, @@ -184,7 +184,7 @@ module Google # Database instance operation error. # Corresponds to the JSON property `error` - # @return [Google::Apis::SqlV1beta4::OperationError] + # @return [Google::Apis::SqladminV1beta4::OperationError] attr_accessor :error # The identifier for this backup run. Unique only for a specific Cloud SQL @@ -261,12 +261,12 @@ module Google end # Backup run list results. - class BackupRunsListResponse + class ListBackupRunsResponse include Google::Apis::Core::Hashable # A list of backup runs in reverse chronological order of the enqueued time. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#backupRunsList*. @@ -329,7 +329,7 @@ module Google # Binary log coordinates. # Corresponds to the JSON property `binLogCoordinates` - # @return [Google::Apis::SqlV1beta4::BinLogCoordinates] + # @return [Google::Apis::SqladminV1beta4::BinLogCoordinates] attr_accessor :bin_log_coordinates # Name of the Cloud SQL instance to be created as a clone. @@ -414,7 +414,7 @@ module Google # Represents a Sql Server database on the Cloud SQL instance. # Corresponds to the JSON property `sqlserverDatabaseDetails` - # @return [Google::Apis::SqlV1beta4::SqlServerDatabaseDetails] + # @return [Google::Apis::SqladminV1beta4::SqlServerDatabaseDetails] attr_accessor :sqlserver_database_details def initialize(**args) @@ -464,7 +464,7 @@ module Google end end - # A Cloud SQL instance resource. Next field: 35 + # A Cloud SQL instance resource. Next field: 36 class DatabaseInstance include Google::Apis::Core::Hashable @@ -499,12 +499,12 @@ module Google # Disk encryption configuration for an instance. # Corresponds to the JSON property `diskEncryptionConfiguration` - # @return [Google::Apis::SqlV1beta4::DiskEncryptionConfiguration] + # @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration] attr_accessor :disk_encryption_configuration # Disk encryption status for an instance. # Corresponds to the JSON property `diskEncryptionStatus` - # @return [Google::Apis::SqlV1beta4::DiskEncryptionStatus] + # @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus] attr_accessor :disk_encryption_status # This field is deprecated and will be removed from a future version of the API. @@ -516,7 +516,7 @@ module Google # The name and status of the failover replica. This property is applicable only # to Second Generation instances. # Corresponds to the JSON property `failoverReplica` - # @return [Google::Apis::SqlV1beta4::DatabaseInstance::FailoverReplica] + # @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica] attr_accessor :failover_replica # The Compute Engine zone that the instance is currently serving from. This @@ -527,7 +527,7 @@ module Google attr_accessor :gce_zone # The instance type. This can be one of the following. *CLOUD_SQL_INSTANCE*: A - # Cloud SQL instance that is not replicating from a master. * + # Cloud SQL instance that is not replicating from a primary instance. * # ON_PREMISES_INSTANCE*: An instance running on the customer's premises. * # READ_REPLICA_INSTANCE*: A Cloud SQL instance configured as a read-replica. # Corresponds to the JSON property `instanceType` @@ -536,7 +536,7 @@ module Google # The assigned IP addresses for the instance. # Corresponds to the JSON property `ipAddresses` - # @return [Array] + # @return [Array] attr_accessor :ip_addresses # The IPv6 address assigned to the instance. (Deprecated) This property was @@ -550,7 +550,7 @@ module Google # @return [String] attr_accessor :kind - # The name of the instance which will act as master in the replication setup. + # The name of the instance which will act as primary in the replication setup. # Corresponds to the JSON property `masterInstanceName` # @return [String] attr_accessor :master_instance_name @@ -567,7 +567,7 @@ module Google # On-premises instance configuration. # Corresponds to the JSON property `onPremisesConfiguration` - # @return [Google::Apis::SqlV1beta4::OnPremisesConfiguration] + # @return [Google::Apis::SqladminV1beta4::OnPremisesConfiguration] attr_accessor :on_premises_configuration # The project ID of the project containing the Cloud SQL instance. The Google @@ -584,9 +584,9 @@ module Google # @return [String] attr_accessor :region - # Read-replica configuration for connecting to the master. + # Read-replica configuration for connecting to the primary instance. # Corresponds to the JSON property `replicaConfiguration` - # @return [Google::Apis::SqlV1beta4::ReplicaConfiguration] + # @return [Google::Apis::SqladminV1beta4::ReplicaConfiguration] attr_accessor :replica_configuration # The replicas of the instance. @@ -601,7 +601,7 @@ module Google # Any scheduled maintenancce for this instance. # Corresponds to the JSON property `scheduledMaintenance` - # @return [Google::Apis::SqlV1beta4::SqlScheduledMaintenance] + # @return [Google::Apis::SqladminV1beta4::SqlScheduledMaintenance] attr_accessor :scheduled_maintenance # The URI of this resource. @@ -611,7 +611,7 @@ module Google # SslCerts Resource # Corresponds to the JSON property `serverCaCert` - # @return [Google::Apis::SqlV1beta4::SslCert] + # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :server_ca_cert # The service account email address assigned to the instance. This property is @@ -622,7 +622,7 @@ module Google # Database instance settings. # Corresponds to the JSON property `settings` - # @return [Google::Apis::SqlV1beta4::Settings] + # @return [Google::Apis::SqladminV1beta4::Settings] attr_accessor :settings # The current serving state of the Cloud SQL instance. This can be one of the @@ -683,8 +683,8 @@ module Google include Google::Apis::Core::Hashable # The availability status of the failover replica. A false status indicates that - # the failover replica is out of sync. The master can only failover to the - # failover replica when the status is true. + # the failover replica is out of sync. The primary instance can only failover to + # the failover replica when the status is true. # Corresponds to the JSON property `available` # @return [Boolean] attr_accessor :available @@ -710,12 +710,12 @@ module Google end # Database list response. - class DatabasesListResponse + class ListDatabasesResponse include Google::Apis::Core::Hashable # List of database resources in the instance. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#databasesList*. @@ -734,7 +734,7 @@ module Google end end - # Read-replica configuration for connecting to the on-premises master. + # Read-replica configuration for connecting to the on-premises primary instance. class DemoteMasterConfiguration include Google::Apis::Core::Hashable @@ -745,7 +745,7 @@ module Google # Read-replica configuration specific to MySQL databases. # Corresponds to the JSON property `mysqlReplicaConfiguration` - # @return [Google::Apis::SqlV1beta4::DemoteMasterMySqlReplicaConfiguration] + # @return [Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration] attr_accessor :mysql_replica_configuration def initialize(**args) @@ -759,7 +759,7 @@ module Google end end - # Database instance demote master context. + # Database instance demote primary instance context. class DemoteMasterContext include Google::Apis::Core::Hashable @@ -768,24 +768,24 @@ module Google # @return [String] attr_accessor :kind - # The name of the instance which will act as on-premises master in the + # The name of the instance which will act as on-premises primary instance in the # replication setup. # Corresponds to the JSON property `masterInstanceName` # @return [String] attr_accessor :master_instance_name - # Read-replica configuration for connecting to the on-premises master. + # Read-replica configuration for connecting to the on-premises primary instance. # Corresponds to the JSON property `replicaConfiguration` - # @return [Google::Apis::SqlV1beta4::DemoteMasterConfiguration] + # @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration] attr_accessor :replica_configuration # Verify GTID consistency for demote operation. Default value: *True*. Second # Generation instances only. Setting this flag to false enables you to bypass - # GTID consistency check between on-premises master and Cloud SQL instance - # during the demotion operation but also exposes you to the risk of future - # replication failures. Change the value only if you know the reason for the - # GTID divergence and are confident that doing so will not cause any replication - # issues. + # GTID consistency check between on-premises primary instance and Cloud SQL + # instance during the demotion operation but also exposes you to the risk of + # future replication failures. Change the value only if you know the reason for + # the GTID divergence and are confident that doing so will not cause any + # replication issues. # Corresponds to the JSON property `verifyGtidConsistency` # @return [Boolean] attr_accessor :verify_gtid_consistency @@ -911,7 +911,7 @@ module Google # Options for exporting data as CSV. # Corresponds to the JSON property `csvExportOptions` - # @return [Google::Apis::SqlV1beta4::ExportContext::CsvExportOptions] + # @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions] attr_accessor :csv_export_options # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no @@ -944,7 +944,7 @@ module Google # Options for exporting data as SQL statements. # Corresponds to the JSON property `sqlExportOptions` - # @return [Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions] + # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions] attr_accessor :sql_export_options # The path to the file in Google Cloud Storage where the export will be stored. @@ -995,7 +995,7 @@ module Google # Options for exporting from MySQL. # Corresponds to the JSON property `mysqlExportOptions` - # @return [Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions] + # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions] attr_accessor :mysql_export_options # Export only schemas. @@ -1154,12 +1154,12 @@ module Google end # Flags list response. - class FlagsListResponse + class ListFlagsResponse include Google::Apis::Core::Hashable # List of flags. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#flagsList*. @@ -1184,12 +1184,12 @@ module Google # Import parameters specific to SQL Server .BAK files # Corresponds to the JSON property `bakImportOptions` - # @return [Google::Apis::SqlV1beta4::ImportContext::BakImportOptions] + # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions] attr_accessor :bak_import_options # Options for importing data as CSV. # Corresponds to the JSON property `csvImportOptions` - # @return [Google::Apis::SqlV1beta4::ImportContext::CsvImportOptions] + # @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions] attr_accessor :csv_import_options # The target database for the import. If *fileType* is *SQL*, this field is @@ -1245,7 +1245,7 @@ module Google # # Corresponds to the JSON property `encryptionOptions` - # @return [Google::Apis::SqlV1beta4::ImportContext::BakImportOptions::EncryptionOptions] + # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions] attr_accessor :encryption_options def initialize(**args) @@ -1321,12 +1321,12 @@ module Google end # Database instance clone request. - class InstancesCloneRequest + class CloneInstancesRequest include Google::Apis::Core::Hashable # Database instance clone context. # Corresponds to the JSON property `cloneContext` - # @return [Google::Apis::SqlV1beta4::CloneContext] + # @return [Google::Apis::SqladminV1beta4::CloneContext] attr_accessor :clone_context def initialize(**args) @@ -1339,13 +1339,13 @@ module Google end end - # Database demote master request. + # Database demote primary instance request. class InstancesDemoteMasterRequest include Google::Apis::Core::Hashable - # Database instance demote master context. + # Database instance demote primary instance context. # Corresponds to the JSON property `demoteMasterContext` - # @return [Google::Apis::SqlV1beta4::DemoteMasterContext] + # @return [Google::Apis::SqladminV1beta4::DemoteMasterContext] attr_accessor :demote_master_context def initialize(**args) @@ -1359,12 +1359,12 @@ module Google end # Database instance export request. - class InstancesExportRequest + class ExportInstancesRequest include Google::Apis::Core::Hashable # Database instance export context. # Corresponds to the JSON property `exportContext` - # @return [Google::Apis::SqlV1beta4::ExportContext] + # @return [Google::Apis::SqladminV1beta4::ExportContext] attr_accessor :export_context def initialize(**args) @@ -1383,7 +1383,7 @@ module Google # Database instance failover context. # Corresponds to the JSON property `failoverContext` - # @return [Google::Apis::SqlV1beta4::FailoverContext] + # @return [Google::Apis::SqladminV1beta4::FailoverContext] attr_accessor :failover_context def initialize(**args) @@ -1397,12 +1397,12 @@ module Google end # Database instance import request. - class InstancesImportRequest + class ImportInstancesRequest include Google::Apis::Core::Hashable # Database instance import context. # Corresponds to the JSON property `importContext` - # @return [Google::Apis::SqlV1beta4::ImportContext] + # @return [Google::Apis::SqladminV1beta4::ImportContext] attr_accessor :import_context def initialize(**args) @@ -1416,12 +1416,12 @@ module Google end # Database instances list response. - class InstancesListResponse + class ListInstancesResponse include Google::Apis::Core::Hashable # List of database instance resources. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#instancesList*. @@ -1437,7 +1437,7 @@ module Google # List of warnings that occurred while handling the request. # Corresponds to the JSON property `warnings` - # @return [Array] + # @return [Array] attr_accessor :warnings def initialize(**args) @@ -1464,7 +1464,7 @@ module Google # List of server CA certificates for the instance. # Corresponds to the JSON property `certs` - # @return [Array] + # @return [Array] attr_accessor :certs # This is always *sql#instancesListServerCas*. @@ -1485,13 +1485,13 @@ module Google end # Database instance restore backup request. - class InstancesRestoreBackupRequest + class RestoreInstancesBackupRequest include Google::Apis::Core::Hashable # Database instance restore from backup context. Backup context contains source # instance id and project id. # Corresponds to the JSON property `restoreBackupContext` - # @return [Google::Apis::SqlV1beta4::RestoreBackupContext] + # @return [Google::Apis::SqladminV1beta4::RestoreBackupContext] attr_accessor :restore_backup_context def initialize(**args) @@ -1510,7 +1510,7 @@ module Google # Instance rotate server CA context. # Corresponds to the JSON property `rotateServerCaContext` - # @return [Google::Apis::SqlV1beta4::RotateServerCaContext] + # @return [Google::Apis::SqladminV1beta4::RotateServerCaContext] attr_accessor :rotate_server_ca_context def initialize(**args) @@ -1529,7 +1529,7 @@ module Google # Database Instance truncate log context. # Corresponds to the JSON property `truncateLogContext` - # @return [Google::Apis::SqlV1beta4::TruncateLogContext] + # @return [Google::Apis::SqladminV1beta4::TruncateLogContext] attr_accessor :truncate_log_context def initialize(**args) @@ -1550,7 +1550,7 @@ module Google # using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: # *192.168.100.0/24*). # Corresponds to the JSON property `authorizedNetworks` - # @return [Array] + # @return [Array] attr_accessor :authorized_networks # Whether the instance is assigned a public IP address or not. @@ -1659,6 +1659,45 @@ module Google end end + # Maintenance Deny Periods. This specifies a date range during when all CSA + # rollout will be denied. + class MaintenanceDenyPeriod + include Google::Apis::Core::Hashable + + # "maintenance deny period" end date. If the year of the end date is empty, the + # year of the start date also must be empty. In this case, it means the no + # maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., + # 2020-11-01, or mm-dd, i.e., 11-01 + # Corresponds to the JSON property `endDate` + # @return [String] + attr_accessor :end_date + + # "maintenance deny period" start date. If the year of the start date is empty, + # the year of the end date also must be empty. In this case, it means the no + # maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., + # 2020-11-01, or mm-dd, i.e., 11-01 + # Corresponds to the JSON property `startDate` + # @return [String] + attr_accessor :start_date + + # Time in UTC when the "no maintenance interval" starts on start_date and ends + # on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00 + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @start_date = args[:start_date] if args.key?(:start_date) + @time = args[:time] if args.key?(:time) + end + end + # Maintenance window. This specifies when a Cloud SQL instance is restarted for # system maintenance purposes. class MaintenanceWindow @@ -1756,8 +1795,8 @@ module Google # @return [String] attr_accessor :username - # Whether or not to check the master's Common Name value in the certificate that - # it sends during the SSL handshake. + # Whether or not to check the primary instance's Common Name value in the + # certificate that it sends during the SSL handshake. # Corresponds to the JSON property `verifyServerCertificate` # @return [Boolean] attr_accessor :verify_server_certificate @@ -1859,17 +1898,17 @@ module Google # Database instance operation errors list wrapper. # Corresponds to the JSON property `error` - # @return [Google::Apis::SqlV1beta4::OperationErrors] + # @return [Google::Apis::SqladminV1beta4::OperationErrors] attr_accessor :error # Database instance export context. # Corresponds to the JSON property `exportContext` - # @return [Google::Apis::SqlV1beta4::ExportContext] + # @return [Google::Apis::SqladminV1beta4::ExportContext] attr_accessor :export_context # Database instance import context. # Corresponds to the JSON property `importContext` - # @return [Google::Apis::SqlV1beta4::ImportContext] + # @return [Google::Apis::SqladminV1beta4::ImportContext] attr_accessor :import_context # The time this operation was enqueued in UTC timezone in RFC 3339 format, for @@ -1995,7 +2034,7 @@ module Google # The list of errors encountered while processing this operation. # Corresponds to the JSON property `errors` - # @return [Array] + # @return [Array] attr_accessor :errors # This is always *sql#operationErrors*. @@ -2015,12 +2054,12 @@ module Google end # Database instance list operations response. - class OperationsListResponse + class ListOperationsResponse include Google::Apis::Core::Hashable # List of operation resources. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#operationsList*. @@ -2046,15 +2085,15 @@ module Google end end - # Read-replica configuration for connecting to the master. + # Read-replica configuration for connecting to the primary instance. class ReplicaConfiguration include Google::Apis::Core::Hashable # Specifies if the replica is the failover target. If the field is set to *true* - # the replica will be designated as a failover replica. In case the master - # instance fails, the replica instance will be promoted as the new master + # the replica will be designated as a failover replica. In case the primary + # instance fails, the replica instance will be promoted as the new primary # instance. Only one replica can be specified as failover target, and the - # replica has to be in different zone with the master instance. + # replica has to be in different zone with the primary instance. # Corresponds to the JSON property `failoverTarget` # @return [Boolean] attr_accessor :failover_target @@ -2067,7 +2106,7 @@ module Google # Read-replica configuration specific to MySQL databases. # Corresponds to the JSON property `mysqlReplicaConfiguration` - # @return [Google::Apis::SqlV1beta4::MySqlReplicaConfiguration] + # @return [Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration] attr_accessor :mysql_replica_configuration def initialize(**args) @@ -2203,7 +2242,7 @@ module Google # Database instance backup configuration. # Corresponds to the JSON property `backupConfiguration` - # @return [Google::Apis::SqlV1beta4::BackupConfiguration] + # @return [Google::Apis::SqladminV1beta4::BackupConfiguration] attr_accessor :backup_configuration # The name of server Instance collation. @@ -2232,7 +2271,7 @@ module Google # The database flags passed to the instance at startup. # Corresponds to the JSON property `databaseFlags` - # @return [Array] + # @return [Array] attr_accessor :database_flags # Configuration specific to read replica instances. Indicates whether @@ -2244,7 +2283,7 @@ module Google # IP Management configuration. # Corresponds to the JSON property `ipConfiguration` - # @return [Google::Apis::SqlV1beta4::IpConfiguration] + # @return [Google::Apis::SqladminV1beta4::IpConfiguration] attr_accessor :ip_configuration # This is always *sql#settings*. @@ -2258,13 +2297,18 @@ module Google # instance will be located as close as possible within the region. Only one # location may be specified. # Corresponds to the JSON property `locationPreference` - # @return [Google::Apis::SqlV1beta4::LocationPreference] + # @return [Google::Apis::SqladminV1beta4::LocationPreference] attr_accessor :location_preference + # Maintenance deny periods + # Corresponds to the JSON property `maintenanceDenyPeriods` + # @return [Array] + attr_accessor :maintenance_deny_periods + # Maintenance window. This specifies when a Cloud SQL instance is restarted for # system maintenance purposes. # Corresponds to the JSON property `maintenanceWindow` - # @return [Google::Apis::SqlV1beta4::MaintenanceWindow] + # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow] attr_accessor :maintenance_window # The pricing plan for this instance. This can be either *PER_USE* or *PACKAGE*. @@ -2332,6 +2376,7 @@ module Google @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) @kind = args[:kind] if args.key?(:kind) @location_preference = args[:location_preference] if args.key?(:location_preference) + @maintenance_deny_periods = args[:maintenance_deny_periods] if args.key?(:maintenance_deny_periods) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) @replication_type = args[:replication_type] if args.key?(:replication_type) @@ -2343,7 +2388,7 @@ module Google end end - # External master migration setting error. + # External primary instance migration setting error. class SqlExternalSyncSettingError include Google::Apis::Core::Hashable @@ -2380,7 +2425,7 @@ module Google # Required. The type of the reschedule the user wants. # Corresponds to the JSON property `reschedule` - # @return [Google::Apis::SqlV1beta4::Reschedule] + # @return [Google::Apis::SqladminV1beta4::Reschedule] attr_accessor :reschedule def initialize(**args) @@ -2399,7 +2444,7 @@ module Google # List of migration violations. # Corresponds to the JSON property `errors` - # @return [Array] + # @return [Array] attr_accessor :errors # This is always *sql#migrationSettingErrorList*. @@ -2577,7 +2622,7 @@ module Google # SslCerts Resource # Corresponds to the JSON property `certInfo` - # @return [Google::Apis::SqlV1beta4::SslCert] + # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :cert_info # The private key for the client cert, in pem format. Keep private in order to @@ -2617,7 +2662,7 @@ module Google end # SslCerts insert request. - class SslCertsInsertRequest + class InsertSslCertsRequest include Google::Apis::Core::Hashable # User supplied name. Must be a distinct name from the other certificates for @@ -2637,12 +2682,12 @@ module Google end # SslCert insert response. - class SslCertsInsertResponse + class InsertSslCertsResponse include Google::Apis::Core::Hashable # SslCertDetail. # Corresponds to the JSON property `clientCert` - # @return [Google::Apis::SqlV1beta4::SslCertDetail] + # @return [Google::Apis::SqladminV1beta4::SslCertDetail] attr_accessor :client_cert # This is always *sql#sslCertsInsert*. @@ -2654,12 +2699,12 @@ module Google # resource, only the fields relevant to the operation are populated in the # resource. # Corresponds to the JSON property `operation` - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] attr_accessor :operation # SslCerts Resource # Corresponds to the JSON property `serverCaCert` - # @return [Google::Apis::SqlV1beta4::SslCert] + # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :server_ca_cert def initialize(**args) @@ -2676,12 +2721,12 @@ module Google end # SslCerts list response. - class SslCertsListResponse + class ListSslCertsResponse include Google::Apis::Core::Hashable # List of client certificates for the instance. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#sslCertsList*. @@ -2745,12 +2790,12 @@ module Google end # Tiers list response. - class TiersListResponse + class ListTiersResponse include Google::Apis::Core::Hashable # List of tiers. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#tiersList*. @@ -2842,7 +2887,7 @@ module Google # Represents a Sql Server user on the Cloud SQL instance. # Corresponds to the JSON property `sqlserverUserDetails` - # @return [Google::Apis::SqlV1beta4::SqlServerUserDetails] + # @return [Google::Apis::SqladminV1beta4::SqlServerUserDetails] attr_accessor :sqlserver_user_details # The user type. It determines the method to authenticate the user during login. @@ -2870,12 +2915,12 @@ module Google end # User list response. - class UsersListResponse + class ListUsersResponse include Google::Apis::Core::Hashable # List of user resources in the instance. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items # This is always *sql#usersList*. diff --git a/generated/google/apis/sql_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb similarity index 81% rename from generated/google/apis/sql_v1beta4/representations.rb rename to generated/google/apis/sqladmin_v1beta4/representations.rb index f785caeac..32bc45892 100644 --- a/generated/google/apis/sql_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis - module SqlV1beta4 + module SqladminV1beta4 class AclEntry class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,7 +46,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BackupRunsListResponse + class ListBackupRunsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -88,7 +88,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DatabasesListResponse + class ListDatabasesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -160,7 +160,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class FlagsListResponse + class ListFlagsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -190,7 +190,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class InstancesCloneRequest + class CloneInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -202,7 +202,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class InstancesExportRequest + class ExportInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -214,13 +214,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class InstancesImportRequest + class ImportInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class InstancesListResponse + class ListInstancesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -232,7 +232,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class InstancesRestoreBackupRequest + class RestoreInstancesBackupRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -268,6 +268,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MaintenanceDenyPeriod + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MaintenanceWindow class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,7 +310,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class OperationsListResponse + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -394,19 +400,19 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SslCertsInsertRequest + class InsertSslCertsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SslCertsInsertResponse + class InsertSslCertsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SslCertsListResponse + class ListSslCertsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -418,7 +424,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TiersListResponse + class ListTiersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -436,7 +442,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class UsersListResponse + class ListUsersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -478,13 +484,13 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :backup_kind, as: 'backupKind' property :description, as: 'description' - property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqlV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqlV1beta4::DiskEncryptionConfiguration::Representation + property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation - property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqlV1beta4::DiskEncryptionStatus, decorator: Google::Apis::SqlV1beta4::DiskEncryptionStatus::Representation + property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqladminV1beta4::DiskEncryptionStatus, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionStatus::Representation property :end_time, as: 'endTime' property :enqueued_time, as: 'enqueuedTime' - property :error, as: 'error', class: Google::Apis::SqlV1beta4::OperationError, decorator: Google::Apis::SqlV1beta4::OperationError::Representation + property :error, as: 'error', class: Google::Apis::SqladminV1beta4::OperationError, decorator: Google::Apis::SqladminV1beta4::OperationError::Representation property :id, :numeric_string => true, as: 'id' property :instance, as: 'instance' @@ -498,10 +504,10 @@ module Google end end - class BackupRunsListResponse + class ListBackupRunsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::BackupRun, decorator: Google::Apis::SqlV1beta4::BackupRun::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::BackupRun, decorator: Google::Apis::SqladminV1beta4::BackupRun::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' @@ -520,7 +526,7 @@ module Google class CloneContext # @private class Representation < Google::Apis::Core::JsonRepresentation - property :bin_log_coordinates, as: 'binLogCoordinates', class: Google::Apis::SqlV1beta4::BinLogCoordinates, decorator: Google::Apis::SqlV1beta4::BinLogCoordinates::Representation + property :bin_log_coordinates, as: 'binLogCoordinates', class: Google::Apis::SqladminV1beta4::BinLogCoordinates, decorator: Google::Apis::SqladminV1beta4::BinLogCoordinates::Representation property :destination_instance_name, as: 'destinationInstanceName' property :kind, as: 'kind' @@ -540,7 +546,7 @@ module Google property :name, as: 'name' property :project, as: 'project' property :self_link, as: 'selfLink' - property :sqlserver_database_details, as: 'sqlserverDatabaseDetails', class: Google::Apis::SqlV1beta4::SqlServerDatabaseDetails, decorator: Google::Apis::SqlV1beta4::SqlServerDatabaseDetails::Representation + property :sqlserver_database_details, as: 'sqlserverDatabaseDetails', class: Google::Apis::SqladminV1beta4::SqlServerDatabaseDetails, decorator: Google::Apis::SqladminV1beta4::SqlServerDatabaseDetails::Representation end end @@ -560,37 +566,37 @@ module Google property :connection_name, as: 'connectionName' property :current_disk_size, :numeric_string => true, as: 'currentDiskSize' property :database_version, as: 'databaseVersion' - property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqlV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqlV1beta4::DiskEncryptionConfiguration::Representation + property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation - property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqlV1beta4::DiskEncryptionStatus, decorator: Google::Apis::SqlV1beta4::DiskEncryptionStatus::Representation + property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqladminV1beta4::DiskEncryptionStatus, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionStatus::Representation property :etag, as: 'etag' - property :failover_replica, as: 'failoverReplica', class: Google::Apis::SqlV1beta4::DatabaseInstance::FailoverReplica, decorator: Google::Apis::SqlV1beta4::DatabaseInstance::FailoverReplica::Representation + property :failover_replica, as: 'failoverReplica', class: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica::Representation property :gce_zone, as: 'gceZone' property :instance_type, as: 'instanceType' - collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqlV1beta4::IpMapping, decorator: Google::Apis::SqlV1beta4::IpMapping::Representation + collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation property :ipv6_address, as: 'ipv6Address' property :kind, as: 'kind' property :master_instance_name, as: 'masterInstanceName' property :max_disk_size, :numeric_string => true, as: 'maxDiskSize' property :name, as: 'name' - property :on_premises_configuration, as: 'onPremisesConfiguration', class: Google::Apis::SqlV1beta4::OnPremisesConfiguration, decorator: Google::Apis::SqlV1beta4::OnPremisesConfiguration::Representation + property :on_premises_configuration, as: 'onPremisesConfiguration', class: Google::Apis::SqladminV1beta4::OnPremisesConfiguration, decorator: Google::Apis::SqladminV1beta4::OnPremisesConfiguration::Representation property :project, as: 'project' property :region, as: 'region' - property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqlV1beta4::ReplicaConfiguration, decorator: Google::Apis::SqlV1beta4::ReplicaConfiguration::Representation + property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::ReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::ReplicaConfiguration::Representation collection :replica_names, as: 'replicaNames' property :root_password, as: 'rootPassword' - property :scheduled_maintenance, as: 'scheduledMaintenance', class: Google::Apis::SqlV1beta4::SqlScheduledMaintenance, decorator: Google::Apis::SqlV1beta4::SqlScheduledMaintenance::Representation + property :scheduled_maintenance, as: 'scheduledMaintenance', class: Google::Apis::SqladminV1beta4::SqlScheduledMaintenance, decorator: Google::Apis::SqladminV1beta4::SqlScheduledMaintenance::Representation property :self_link, as: 'selfLink' - property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqlV1beta4::SslCert, decorator: Google::Apis::SqlV1beta4::SslCert::Representation + property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :service_account_email_address, as: 'serviceAccountEmailAddress' - property :settings, as: 'settings', class: Google::Apis::SqlV1beta4::Settings, decorator: Google::Apis::SqlV1beta4::Settings::Representation + property :settings, as: 'settings', class: Google::Apis::SqladminV1beta4::Settings, decorator: Google::Apis::SqladminV1beta4::Settings::Representation property :state, as: 'state' collection :suspension_reason, as: 'suspensionReason' @@ -605,10 +611,10 @@ module Google end end - class DatabasesListResponse + class ListDatabasesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::Database, decorator: Google::Apis::SqlV1beta4::Database::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Database, decorator: Google::Apis::SqladminV1beta4::Database::Representation property :kind, as: 'kind' end @@ -618,7 +624,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' - property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqlV1beta4::DemoteMasterMySqlReplicaConfiguration, decorator: Google::Apis::SqlV1beta4::DemoteMasterMySqlReplicaConfiguration::Representation + property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration::Representation end end @@ -628,7 +634,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :master_instance_name, as: 'masterInstanceName' - property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqlV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqlV1beta4::DemoteMasterConfiguration::Representation + property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration::Representation property :verify_gtid_consistency, as: 'verifyGtidConsistency' end @@ -665,13 +671,13 @@ module Google class ExportContext # @private class Representation < Google::Apis::Core::JsonRepresentation - property :csv_export_options, as: 'csvExportOptions', class: Google::Apis::SqlV1beta4::ExportContext::CsvExportOptions, decorator: Google::Apis::SqlV1beta4::ExportContext::CsvExportOptions::Representation + property :csv_export_options, as: 'csvExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions::Representation collection :databases, as: 'databases' property :file_type, as: 'fileType' property :kind, as: 'kind' property :offload, as: 'offload' - property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions, decorator: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions::Representation + property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::Representation property :uri, as: 'uri' end @@ -686,7 +692,7 @@ module Google class SqlExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :mysql_export_options, as: 'mysqlExportOptions', class: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions, decorator: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions::Representation + property :mysql_export_options, as: 'mysqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions::Representation property :schema_only, as: 'schemaOnly' collection :tables, as: 'tables' @@ -725,10 +731,10 @@ module Google end end - class FlagsListResponse + class ListFlagsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::Flag, decorator: Google::Apis::SqlV1beta4::Flag::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Flag, decorator: Google::Apis::SqladminV1beta4::Flag::Representation property :kind, as: 'kind' end @@ -737,9 +743,9 @@ module Google class ImportContext # @private class Representation < Google::Apis::Core::JsonRepresentation - property :bak_import_options, as: 'bakImportOptions', class: Google::Apis::SqlV1beta4::ImportContext::BakImportOptions, decorator: Google::Apis::SqlV1beta4::ImportContext::BakImportOptions::Representation + property :bak_import_options, as: 'bakImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::Representation - property :csv_import_options, as: 'csvImportOptions', class: Google::Apis::SqlV1beta4::ImportContext::CsvImportOptions, decorator: Google::Apis::SqlV1beta4::ImportContext::CsvImportOptions::Representation + property :csv_import_options, as: 'csvImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions::Representation property :database, as: 'database' property :file_type, as: 'fileType' @@ -751,7 +757,7 @@ module Google class BakImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :encryption_options, as: 'encryptionOptions', class: Google::Apis::SqlV1beta4::ImportContext::BakImportOptions::EncryptionOptions, decorator: Google::Apis::SqlV1beta4::ImportContext::BakImportOptions::EncryptionOptions::Representation + property :encryption_options, as: 'encryptionOptions', class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions::Representation end @@ -774,10 +780,10 @@ module Google end end - class InstancesCloneRequest + class CloneInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :clone_context, as: 'cloneContext', class: Google::Apis::SqlV1beta4::CloneContext, decorator: Google::Apis::SqlV1beta4::CloneContext::Representation + property :clone_context, as: 'cloneContext', class: Google::Apis::SqladminV1beta4::CloneContext, decorator: Google::Apis::SqladminV1beta4::CloneContext::Representation end end @@ -785,15 +791,15 @@ module Google class InstancesDemoteMasterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :demote_master_context, as: 'demoteMasterContext', class: Google::Apis::SqlV1beta4::DemoteMasterContext, decorator: Google::Apis::SqlV1beta4::DemoteMasterContext::Representation + property :demote_master_context, as: 'demoteMasterContext', class: Google::Apis::SqladminV1beta4::DemoteMasterContext, decorator: Google::Apis::SqladminV1beta4::DemoteMasterContext::Representation end end - class InstancesExportRequest + class ExportInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :export_context, as: 'exportContext', class: Google::Apis::SqlV1beta4::ExportContext, decorator: Google::Apis::SqlV1beta4::ExportContext::Representation + property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta4::ExportContext, decorator: Google::Apis::SqladminV1beta4::ExportContext::Representation end end @@ -801,27 +807,27 @@ module Google class InstancesFailoverRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :failover_context, as: 'failoverContext', class: Google::Apis::SqlV1beta4::FailoverContext, decorator: Google::Apis::SqlV1beta4::FailoverContext::Representation + property :failover_context, as: 'failoverContext', class: Google::Apis::SqladminV1beta4::FailoverContext, decorator: Google::Apis::SqladminV1beta4::FailoverContext::Representation end end - class InstancesImportRequest + class ImportInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :import_context, as: 'importContext', class: Google::Apis::SqlV1beta4::ImportContext, decorator: Google::Apis::SqlV1beta4::ImportContext::Representation + property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta4::ImportContext, decorator: Google::Apis::SqladminV1beta4::ImportContext::Representation end end - class InstancesListResponse + class ListInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::DatabaseInstance, decorator: Google::Apis::SqlV1beta4::DatabaseInstance::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::DatabaseInstance, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' - collection :warnings, as: 'warnings', class: Google::Apis::SqlV1beta4::ApiWarning, decorator: Google::Apis::SqlV1beta4::ApiWarning::Representation + collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1beta4::ApiWarning, decorator: Google::Apis::SqladminV1beta4::ApiWarning::Representation end end @@ -830,16 +836,16 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :active_version, as: 'activeVersion' - collection :certs, as: 'certs', class: Google::Apis::SqlV1beta4::SslCert, decorator: Google::Apis::SqlV1beta4::SslCert::Representation + collection :certs, as: 'certs', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :kind, as: 'kind' end end - class InstancesRestoreBackupRequest + class RestoreInstancesBackupRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqlV1beta4::RestoreBackupContext, decorator: Google::Apis::SqlV1beta4::RestoreBackupContext::Representation + property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1beta4::RestoreBackupContext, decorator: Google::Apis::SqladminV1beta4::RestoreBackupContext::Representation end end @@ -847,7 +853,7 @@ module Google class InstancesRotateServerCaRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :rotate_server_ca_context, as: 'rotateServerCaContext', class: Google::Apis::SqlV1beta4::RotateServerCaContext, decorator: Google::Apis::SqlV1beta4::RotateServerCaContext::Representation + property :rotate_server_ca_context, as: 'rotateServerCaContext', class: Google::Apis::SqladminV1beta4::RotateServerCaContext, decorator: Google::Apis::SqladminV1beta4::RotateServerCaContext::Representation end end @@ -855,7 +861,7 @@ module Google class InstancesTruncateLogRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :truncate_log_context, as: 'truncateLogContext', class: Google::Apis::SqlV1beta4::TruncateLogContext, decorator: Google::Apis::SqlV1beta4::TruncateLogContext::Representation + property :truncate_log_context, as: 'truncateLogContext', class: Google::Apis::SqladminV1beta4::TruncateLogContext, decorator: Google::Apis::SqladminV1beta4::TruncateLogContext::Representation end end @@ -863,7 +869,7 @@ module Google class IpConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqlV1beta4::AclEntry, decorator: Google::Apis::SqlV1beta4::AclEntry::Representation + collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1beta4::AclEntry, decorator: Google::Apis::SqladminV1beta4::AclEntry::Representation property :ipv4_enabled, as: 'ipv4Enabled' property :private_network, as: 'privateNetwork' @@ -889,6 +895,15 @@ module Google end end + class MaintenanceDenyPeriod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate' + property :start_date, as: 'startDate' + property :time, as: 'time' + end + end + class MaintenanceWindow # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -934,11 +949,11 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :end_time, as: 'endTime' - property :error, as: 'error', class: Google::Apis::SqlV1beta4::OperationErrors, decorator: Google::Apis::SqlV1beta4::OperationErrors::Representation + property :error, as: 'error', class: Google::Apis::SqladminV1beta4::OperationErrors, decorator: Google::Apis::SqladminV1beta4::OperationErrors::Representation - property :export_context, as: 'exportContext', class: Google::Apis::SqlV1beta4::ExportContext, decorator: Google::Apis::SqlV1beta4::ExportContext::Representation + property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta4::ExportContext, decorator: Google::Apis::SqladminV1beta4::ExportContext::Representation - property :import_context, as: 'importContext', class: Google::Apis::SqlV1beta4::ImportContext, decorator: Google::Apis::SqlV1beta4::ImportContext::Representation + property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta4::ImportContext, decorator: Google::Apis::SqladminV1beta4::ImportContext::Representation property :insert_time, as: 'insertTime' property :kind, as: 'kind' @@ -966,16 +981,16 @@ module Google class OperationErrors # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :errors, as: 'errors', class: Google::Apis::SqlV1beta4::OperationError, decorator: Google::Apis::SqlV1beta4::OperationError::Representation + collection :errors, as: 'errors', class: Google::Apis::SqladminV1beta4::OperationError, decorator: Google::Apis::SqladminV1beta4::OperationError::Representation property :kind, as: 'kind' end end - class OperationsListResponse + class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::Operation, decorator: Google::Apis::SqlV1beta4::Operation::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Operation, decorator: Google::Apis::SqladminV1beta4::Operation::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' @@ -987,7 +1002,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :failover_target, as: 'failoverTarget' property :kind, as: 'kind' - property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqlV1beta4::MySqlReplicaConfiguration, decorator: Google::Apis::SqlV1beta4::MySqlReplicaConfiguration::Representation + property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration::Representation end end @@ -1024,21 +1039,23 @@ module Google property :activation_policy, as: 'activationPolicy' collection :authorized_gae_applications, as: 'authorizedGaeApplications' property :availability_type, as: 'availabilityType' - property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqlV1beta4::BackupConfiguration, decorator: Google::Apis::SqlV1beta4::BackupConfiguration::Representation + property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1beta4::BackupConfiguration, decorator: Google::Apis::SqladminV1beta4::BackupConfiguration::Representation property :collation, as: 'collation' property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled' property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb' property :data_disk_type, as: 'dataDiskType' - collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqlV1beta4::DatabaseFlags, decorator: Google::Apis::SqlV1beta4::DatabaseFlags::Representation + collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta4::DatabaseFlags, decorator: Google::Apis::SqladminV1beta4::DatabaseFlags::Representation property :database_replication_enabled, as: 'databaseReplicationEnabled' - property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqlV1beta4::IpConfiguration, decorator: Google::Apis::SqlV1beta4::IpConfiguration::Representation + property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta4::IpConfiguration, decorator: Google::Apis::SqladminV1beta4::IpConfiguration::Representation property :kind, as: 'kind' - property :location_preference, as: 'locationPreference', class: Google::Apis::SqlV1beta4::LocationPreference, decorator: Google::Apis::SqlV1beta4::LocationPreference::Representation + property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta4::LocationPreference, decorator: Google::Apis::SqladminV1beta4::LocationPreference::Representation - property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqlV1beta4::MaintenanceWindow, decorator: Google::Apis::SqlV1beta4::MaintenanceWindow::Representation + collection :maintenance_deny_periods, as: 'maintenanceDenyPeriods', class: Google::Apis::SqladminV1beta4::MaintenanceDenyPeriod, decorator: Google::Apis::SqladminV1beta4::MaintenanceDenyPeriod::Representation + + property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation property :pricing_plan, as: 'pricingPlan' property :replication_type, as: 'replicationType' @@ -1062,7 +1079,7 @@ module Google class SqlInstancesRescheduleMaintenanceRequestBody # @private class Representation < Google::Apis::Core::JsonRepresentation - property :reschedule, as: 'reschedule', class: Google::Apis::SqlV1beta4::Reschedule, decorator: Google::Apis::SqlV1beta4::Reschedule::Representation + property :reschedule, as: 'reschedule', class: Google::Apis::SqladminV1beta4::Reschedule, decorator: Google::Apis::SqladminV1beta4::Reschedule::Representation end end @@ -1070,7 +1087,7 @@ module Google class SqlInstancesVerifyExternalSyncSettingsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :errors, as: 'errors', class: Google::Apis::SqlV1beta4::SqlExternalSyncSettingError, decorator: Google::Apis::SqlV1beta4::SqlExternalSyncSettingError::Representation + collection :errors, as: 'errors', class: Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError, decorator: Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError::Representation property :kind, as: 'kind' end @@ -1119,7 +1136,7 @@ module Google class SslCertDetail # @private class Representation < Google::Apis::Core::JsonRepresentation - property :cert_info, as: 'certInfo', class: Google::Apis::SqlV1beta4::SslCert, decorator: Google::Apis::SqlV1beta4::SslCert::Representation + property :cert_info, as: 'certInfo', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :cert_private_key, as: 'certPrivateKey' end @@ -1132,30 +1149,30 @@ module Google end end - class SslCertsInsertRequest + class InsertSslCertsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :common_name, as: 'commonName' end end - class SslCertsInsertResponse + class InsertSslCertsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :client_cert, as: 'clientCert', class: Google::Apis::SqlV1beta4::SslCertDetail, decorator: Google::Apis::SqlV1beta4::SslCertDetail::Representation + property :client_cert, as: 'clientCert', class: Google::Apis::SqladminV1beta4::SslCertDetail, decorator: Google::Apis::SqladminV1beta4::SslCertDetail::Representation property :kind, as: 'kind' - property :operation, as: 'operation', class: Google::Apis::SqlV1beta4::Operation, decorator: Google::Apis::SqlV1beta4::Operation::Representation + property :operation, as: 'operation', class: Google::Apis::SqladminV1beta4::Operation, decorator: Google::Apis::SqladminV1beta4::Operation::Representation - property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqlV1beta4::SslCert, decorator: Google::Apis::SqlV1beta4::SslCert::Representation + property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation end end - class SslCertsListResponse + class ListSslCertsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::SslCert, decorator: Google::Apis::SqlV1beta4::SslCert::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :kind, as: 'kind' end @@ -1172,10 +1189,10 @@ module Google end end - class TiersListResponse + class ListTiersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::Tier, decorator: Google::Apis::SqlV1beta4::Tier::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Tier, decorator: Google::Apis::SqladminV1beta4::Tier::Representation property :kind, as: 'kind' end @@ -1199,16 +1216,16 @@ module Google property :name, as: 'name' property :password, as: 'password' property :project, as: 'project' - property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqlV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqlV1beta4::SqlServerUserDetails::Representation + property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqladminV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqladminV1beta4::SqlServerUserDetails::Representation property :type, as: 'type' end end - class UsersListResponse + class ListUsersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqlV1beta4::User, decorator: Google::Apis::SqlV1beta4::User::Representation + collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::User, decorator: Google::Apis::SqladminV1beta4::User::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' diff --git a/generated/google/apis/sql_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb similarity index 80% rename from generated/google/apis/sql_v1beta4/service.rb rename to generated/google/apis/sqladmin_v1beta4/service.rb index 87fdf7f72..5c356c523 100644 --- a/generated/google/apis/sql_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -19,16 +19,16 @@ require 'google/apis/errors' module Google module Apis - module SqlV1beta4 + module SqladminV1beta4 # Cloud SQL Admin API # # API for Cloud SQL database instance management # # @example - # require 'google/apis/sql_v1beta4' + # require 'google/apis/sqladmin_v1beta4' # - # Sql = Google::Apis::SqlV1beta4 # Alias the module - # service = Sql::SQLAdminService.new + # Sqladmin = Google::Apis::SqladminV1beta4 # Alias the module + # service = Sqladmin::SQLAdminService.new # # @see https://developers.google.com/cloud-sql/ class SQLAdminService < Google::Apis::Core::BaseService @@ -64,18 +64,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['id'] = id unless id.nil? @@ -100,18 +100,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::BackupRun] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::BackupRun] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::BackupRun] + # @return [Google::Apis::SqladminV1beta4::BackupRun] # # @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_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options) - command.response_representation = Google::Apis::SqlV1beta4::BackupRun::Representation - command.response_class = Google::Apis::SqlV1beta4::BackupRun + command.response_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation + command.response_class = Google::Apis::SqladminV1beta4::BackupRun command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['id'] = id unless id.nil? @@ -126,7 +126,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::BackupRun] backup_run_object + # @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -136,20 +136,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options) - command.request_representation = Google::Apis::SqlV1beta4::BackupRun::Representation + command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation command.request_object = backup_run_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -177,18 +177,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::BackupRunsListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::BackupRunsListResponse] + # @return [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] # # @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_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options) - command.response_representation = Google::Apis::SqlV1beta4::BackupRunsListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::BackupRunsListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['maxResults'] = max_results unless max_results.nil? @@ -214,18 +214,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.nil? @@ -251,18 +251,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Database] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Database] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Database] + # @return [Google::Apis::SqladminV1beta4::Database] # # @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_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) - command.response_representation = Google::Apis::SqlV1beta4::Database::Representation - command.response_class = Google::Apis::SqlV1beta4::Database + command.response_representation = Google::Apis::SqladminV1beta4::Database::Representation + command.response_class = Google::Apis::SqladminV1beta4::Database command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.nil? @@ -277,7 +277,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::Database] database_object + # @param [Google::Apis::SqladminV1beta4::Database] database_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -287,20 +287,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options) - command.request_representation = Google::Apis::SqlV1beta4::Database::Representation + command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -322,18 +322,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::DatabasesListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListDatabasesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::DatabasesListResponse] + # @return [Google::Apis::SqladminV1beta4::ListDatabasesResponse] # # @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_databases(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options) - command.response_representation = Google::Apis::SqlV1beta4::DatabasesListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::DatabasesListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -349,7 +349,7 @@ module Google # Database instance ID. This does not include the project ID. # @param [String] database # Name of the database to be updated in the instance. - # @param [Google::Apis::SqlV1beta4::Database] database_object + # @param [Google::Apis::SqladminV1beta4::Database] database_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -359,20 +359,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) - command.request_representation = Google::Apis::SqlV1beta4::Database::Representation + command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.nil? @@ -389,7 +389,7 @@ module Google # Database instance ID. This does not include the project ID. # @param [String] database # Name of the database to be updated in the instance. - # @param [Google::Apis::SqlV1beta4::Database] database_object + # @param [Google::Apis::SqladminV1beta4::Database] database_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -399,20 +399,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) - command.request_representation = Google::Apis::SqlV1beta4::Database::Representation + command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.nil? @@ -434,18 +434,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::FlagsListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListFlagsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::FlagsListResponse] + # @return [Google::Apis::SqladminV1beta4::ListFlagsResponse] # # @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_flags(database_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/flags', options) - command.response_representation = Google::Apis::SqlV1beta4::FlagsListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::FlagsListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse command.query['databaseVersion'] = database_version unless database_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -470,18 +470,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCa', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -496,7 +496,7 @@ module Google # @param [String] instance # The ID of the Cloud SQL instance to be cloned (source). This does not include # the project ID. - # @param [Google::Apis::SqlV1beta4::InstancesCloneRequest] instances_clone_request_object + # @param [Google::Apis::SqladminV1beta4::CloneInstancesRequest] clone_instances_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -506,20 +506,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def clone_instance(project, instance, instances_clone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/clone', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesCloneRequest::Representation - command.request_object = instances_clone_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation + command.request_object = clone_instances_request_object + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -541,18 +541,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -566,7 +566,7 @@ module Google # ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance name. - # @param [Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object + # @param [Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -576,20 +576,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest::Representation + command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest::Representation command.request_object = instances_demote_master_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -603,7 +603,7 @@ module Google # Project ID of the project that contains the instance to be exported. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::InstancesExportRequest] instances_export_request_object + # @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -613,20 +613,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/export', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesExportRequest::Representation - command.request_object = instances_export_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation + command.request_object = export_instances_request_object + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -640,7 +640,7 @@ module Google # ID of the project that contains the read replica. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::InstancesFailoverRequest] instances_failover_request_object + # @param [Google::Apis::SqladminV1beta4::InstancesFailoverRequest] instances_failover_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -650,20 +650,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/failover', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesFailoverRequest::Representation + command.request_representation = Google::Apis::SqladminV1beta4::InstancesFailoverRequest::Representation command.request_object = instances_failover_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -685,18 +685,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::DatabaseInstance] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::DatabaseInstance] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::DatabaseInstance] + # @return [Google::Apis::SqladminV1beta4::DatabaseInstance] # # @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_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}', options) - command.response_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation - command.response_class = Google::Apis::SqlV1beta4::DatabaseInstance + command.response_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation + command.response_class = Google::Apis::SqladminV1beta4::DatabaseInstance command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -710,7 +710,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::InstancesImportRequest] instances_import_request_object + # @param [Google::Apis::SqladminV1beta4::ImportInstancesRequest] import_instances_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -720,20 +720,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/import', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesImportRequest::Representation - command.request_object = instances_import_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation + command.request_object = import_instances_request_object + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -745,7 +745,7 @@ module Google # @param [String] project # Project ID of the project to which the newly created Cloud SQL instances # should belong. - # @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object + # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -755,20 +755,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances', options) - command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation + command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -800,18 +800,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::InstancesListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListInstancesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::InstancesListResponse] + # @return [Google::Apis::SqladminV1beta4::ListInstancesResponse] # # @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_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances', options) - command.response_representation = Google::Apis::SqlV1beta4::InstancesListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::InstancesListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse command.params['project'] = project unless project.nil? command.query['filter'] = filter unless filter.nil? command.query['maxResults'] = max_results unless max_results.nil? @@ -839,18 +839,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::InstancesListServerCasResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::InstancesListServerCasResponse] + # @return [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] # # @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_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCas', options) - command.response_representation = Google::Apis::SqlV1beta4::InstancesListServerCasResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::InstancesListServerCasResponse + command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -863,7 +863,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object + # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -873,20 +873,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}', options) - command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation + command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -909,18 +909,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def promote_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -943,18 +943,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -976,18 +976,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def restart_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restart', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1001,7 +1001,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest] instances_restore_backup_request_object + # @param [Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest] restore_instances_backup_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1011,20 +1011,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest::Representation - command.request_object = instances_restore_backup_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation + command.request_object = restore_instances_backup_request_object + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1038,7 +1038,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object + # @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1048,20 +1048,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest::Representation + command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest::Representation command.request_object = instances_rotate_server_ca_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1083,18 +1083,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startReplica', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1116,18 +1116,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/stopReplica', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1140,7 +1140,7 @@ module Google # Project ID of the Cloud SQL project. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object + # @param [Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1150,20 +1150,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/truncateLog', options) - command.request_representation = Google::Apis::SqlV1beta4::InstancesTruncateLogRequest::Representation + command.request_representation = Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest::Representation command.request_object = instances_truncate_log_request_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1177,7 +1177,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object + # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1187,20 +1187,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}', options) - command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation + command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1222,18 +1222,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations/{operation}', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? @@ -1261,18 +1261,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::OperationsListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::OperationsListResponse] + # @return [Google::Apis::SqladminV1beta4::ListOperationsResponse] # # @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_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations', options) - command.response_representation = Google::Apis::SqlV1beta4::OperationsListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::OperationsListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse command.params['project'] = project unless project.nil? command.query['instance'] = instance unless instance.nil? command.query['maxResults'] = max_results unless max_results.nil? @@ -1287,7 +1287,7 @@ module Google # ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object + # @param [Google::Apis::SqladminV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1297,20 +1297,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance', options) - command.request_representation = Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation + command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation command.request_object = sql_instances_reschedule_maintenance_request_body_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1318,7 +1318,7 @@ module Google execute_or_queue_command(command, &block) end - # Start External master migration. + # Start External primary instance migration. # @param [String] project # ID of the project that contains the instance. # @param [String] instance @@ -1334,18 +1334,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_project_instance_external_sync(project, instance, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['syncMode'] = sync_mode unless sync_mode.nil? @@ -1354,7 +1354,7 @@ module Google execute_or_queue_command(command, &block) end - # Verify External master external sync settings. + # Verify External primary instance external sync settings. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance @@ -1372,18 +1372,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] + # @return [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] # # @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 verify_project_instance_external_sync_settings(project, instance, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options) - command.response_representation = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse + command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['syncMode'] = sync_mode unless sync_mode.nil? @@ -1400,7 +1400,7 @@ module Google # Project ID of the Cloud SQL project. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object + # @param [Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1410,20 +1410,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::SslCert] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::SslCert] + # @return [Google::Apis::SqladminV1beta4::SslCert] # # @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_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral', options) - command.request_representation = Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest::Representation + command.request_representation = Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest::Representation command.request_object = ssl_certs_create_ephemeral_request_object - command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation - command.response_class = Google::Apis::SqlV1beta4::SslCert + command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation + command.response_class = Google::Apis::SqladminV1beta4::SslCert command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1448,18 +1448,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil? @@ -1486,18 +1486,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::SslCert] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::SslCert] + # @return [Google::Apis::SqladminV1beta4::SslCert] # # @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_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) - command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation - command.response_class = Google::Apis::SqlV1beta4::SslCert + command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation + command.response_class = Google::Apis::SqladminV1beta4::SslCert command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil? @@ -1513,7 +1513,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::SslCertsInsertRequest] ssl_certs_insert_request_object + # @param [Google::Apis::SqladminV1beta4::InsertSslCertsRequest] insert_ssl_certs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1523,20 +1523,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::SslCertsInsertResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::SslCertsInsertResponse] + # @return [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] # # @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_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options) - command.request_representation = Google::Apis::SqlV1beta4::SslCertsInsertRequest::Representation - command.request_object = ssl_certs_insert_request_object - command.response_representation = Google::Apis::SqlV1beta4::SslCertsInsertResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::SslCertsInsertResponse + command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation + command.request_object = insert_ssl_certs_request_object + command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::InsertSslCertsResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1558,18 +1558,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::SslCertsListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListSslCertsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::SslCertsListResponse] + # @return [Google::Apis::SqladminV1beta4::ListSslCertsResponse] # # @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_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options) - command.response_representation = Google::Apis::SqlV1beta4::SslCertsListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::SslCertsListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1590,18 +1590,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::TiersListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListTiersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::TiersListResponse] + # @return [Google::Apis::SqladminV1beta4::ListTiersResponse] # # @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_tiers(project, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/tiers', options) - command.response_representation = Google::Apis::SqlV1beta4::TiersListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::TiersListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1626,18 +1626,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['host'] = host unless host.nil? @@ -1652,7 +1652,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::User] user_object + # @param [Google::Apis::SqladminV1beta4::User] user_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1662,20 +1662,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) - command.request_representation = Google::Apis::SqlV1beta4::User::Representation + command.request_representation = Google::Apis::SqladminV1beta4::User::Representation command.request_object = user_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1697,18 +1697,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::UsersListResponse] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::ListUsersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::UsersListResponse] + # @return [Google::Apis::SqladminV1beta4::ListUsersResponse] # # @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_users(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) - command.response_representation = Google::Apis::SqlV1beta4::UsersListResponse::Representation - command.response_class = Google::Apis::SqlV1beta4::UsersListResponse + command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? @@ -1721,7 +1721,7 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. - # @param [Google::Apis::SqlV1beta4::User] user_object + # @param [Google::Apis::SqladminV1beta4::User] user_object # @param [String] host # Optional. Host of the user in the instance. # @param [String] name @@ -1735,20 +1735,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SqlV1beta4::Operation] + # @return [Google::Apis::SqladminV1beta4::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user(project, instance, user_object = nil, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) - command.request_representation = Google::Apis::SqlV1beta4::User::Representation + command.request_representation = Google::Apis::SqladminV1beta4::User::Representation command.request_object = user_object - command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation - command.response_class = Google::Apis::SqlV1beta4::Operation + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['host'] = host unless host.nil? diff --git a/generated/google/apis/tagmanager_v2.rb b/generated/google/apis/tagmanager_v2.rb index 6c0926b64..b5282243c 100644 --- a/generated/google/apis/tagmanager_v2.rb +++ b/generated/google/apis/tagmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/tag-manager module TagmanagerV2 VERSION = 'V2' - REVISION = '20200826' + REVISION = '20200916' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 225f9d927..81efbd825 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 = '20200912' + REVISION = '20200916' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index 83bbc8359..c1b68722c 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -44,8 +44,8 @@ module Google attr_accessor :quota_user def initialize - super('https://www.googleapis.com/', '') - @batch_path = 'batch/youtube' + super('https://youtube.googleapis.com/', '') + @batch_path = 'batch' end # Inserts a new resource into this collection.