Autogenerated update (2018-03-28)
Update: - androidmanagement_v1 - cloudbuild_v1 - pubsub_v1
This commit is contained in:
parent
513d8c10ae
commit
ec3162c59b
|
@ -6144,6 +6144,7 @@
|
||||||
"/androidmanagement:v1/Command": command
|
"/androidmanagement:v1/Command": command
|
||||||
"/androidmanagement:v1/Command/createTime": create_time
|
"/androidmanagement:v1/Command/createTime": create_time
|
||||||
"/androidmanagement:v1/Command/duration": duration
|
"/androidmanagement:v1/Command/duration": duration
|
||||||
|
"/androidmanagement:v1/Command/errorCode": error_code
|
||||||
"/androidmanagement:v1/Command/newPassword": new_password
|
"/androidmanagement:v1/Command/newPassword": new_password
|
||||||
"/androidmanagement:v1/Command/resetPasswordFlags": reset_password_flags
|
"/androidmanagement:v1/Command/resetPasswordFlags": reset_password_flags
|
||||||
"/androidmanagement:v1/Command/resetPasswordFlags/reset_password_flag": reset_password_flag
|
"/androidmanagement:v1/Command/resetPasswordFlags/reset_password_flag": reset_password_flag
|
||||||
|
@ -6367,6 +6368,8 @@
|
||||||
"/androidmanagement:v1/Policy/dataRoamingDisabled": data_roaming_disabled
|
"/androidmanagement:v1/Policy/dataRoamingDisabled": data_roaming_disabled
|
||||||
"/androidmanagement:v1/Policy/debuggingFeaturesAllowed": debugging_features_allowed
|
"/androidmanagement:v1/Policy/debuggingFeaturesAllowed": debugging_features_allowed
|
||||||
"/androidmanagement:v1/Policy/defaultPermissionPolicy": default_permission_policy
|
"/androidmanagement:v1/Policy/defaultPermissionPolicy": default_permission_policy
|
||||||
|
"/androidmanagement:v1/Policy/deviceOwnerLockScreenInfo": device_owner_lock_screen_info
|
||||||
|
"/androidmanagement:v1/Policy/encryptionPolicy": encryption_policy
|
||||||
"/androidmanagement:v1/Policy/ensureVerifyAppsEnabled": ensure_verify_apps_enabled
|
"/androidmanagement:v1/Policy/ensureVerifyAppsEnabled": ensure_verify_apps_enabled
|
||||||
"/androidmanagement:v1/Policy/factoryResetDisabled": factory_reset_disabled
|
"/androidmanagement:v1/Policy/factoryResetDisabled": factory_reset_disabled
|
||||||
"/androidmanagement:v1/Policy/frpAdminEmails": frp_admin_emails
|
"/androidmanagement:v1/Policy/frpAdminEmails": frp_admin_emails
|
||||||
|
@ -6378,6 +6381,7 @@
|
||||||
"/androidmanagement:v1/Policy/keyguardDisabledFeatures": keyguard_disabled_features
|
"/androidmanagement:v1/Policy/keyguardDisabledFeatures": keyguard_disabled_features
|
||||||
"/androidmanagement:v1/Policy/keyguardDisabledFeatures/keyguard_disabled_feature": keyguard_disabled_feature
|
"/androidmanagement:v1/Policy/keyguardDisabledFeatures/keyguard_disabled_feature": keyguard_disabled_feature
|
||||||
"/androidmanagement:v1/Policy/kioskCustomLauncherEnabled": kiosk_custom_launcher_enabled
|
"/androidmanagement:v1/Policy/kioskCustomLauncherEnabled": kiosk_custom_launcher_enabled
|
||||||
|
"/androidmanagement:v1/Policy/locationMode": location_mode
|
||||||
"/androidmanagement:v1/Policy/longSupportMessage": long_support_message
|
"/androidmanagement:v1/Policy/longSupportMessage": long_support_message
|
||||||
"/androidmanagement:v1/Policy/maximumTimeToLock": maximum_time_to_lock
|
"/androidmanagement:v1/Policy/maximumTimeToLock": maximum_time_to_lock
|
||||||
"/androidmanagement:v1/Policy/mobileNetworksConfigDisabled": mobile_networks_config_disabled
|
"/androidmanagement:v1/Policy/mobileNetworksConfigDisabled": mobile_networks_config_disabled
|
||||||
|
@ -6400,7 +6404,9 @@
|
||||||
"/androidmanagement:v1/Policy/screenCaptureDisabled": screen_capture_disabled
|
"/androidmanagement:v1/Policy/screenCaptureDisabled": screen_capture_disabled
|
||||||
"/androidmanagement:v1/Policy/setUserIconDisabled": set_user_icon_disabled
|
"/androidmanagement:v1/Policy/setUserIconDisabled": set_user_icon_disabled
|
||||||
"/androidmanagement:v1/Policy/setWallpaperDisabled": set_wallpaper_disabled
|
"/androidmanagement:v1/Policy/setWallpaperDisabled": set_wallpaper_disabled
|
||||||
|
"/androidmanagement:v1/Policy/shareLocationDisabled": share_location_disabled
|
||||||
"/androidmanagement:v1/Policy/shortSupportMessage": short_support_message
|
"/androidmanagement:v1/Policy/shortSupportMessage": short_support_message
|
||||||
|
"/androidmanagement:v1/Policy/skipFirstUseHintsEnabled": skip_first_use_hints_enabled
|
||||||
"/androidmanagement:v1/Policy/smsDisabled": sms_disabled
|
"/androidmanagement:v1/Policy/smsDisabled": sms_disabled
|
||||||
"/androidmanagement:v1/Policy/statusBarDisabled": status_bar_disabled
|
"/androidmanagement:v1/Policy/statusBarDisabled": status_bar_disabled
|
||||||
"/androidmanagement:v1/Policy/statusReportingSettings": status_reporting_settings
|
"/androidmanagement:v1/Policy/statusReportingSettings": status_reporting_settings
|
||||||
|
@ -6411,6 +6417,7 @@
|
||||||
"/androidmanagement:v1/Policy/uninstallAppsDisabled": uninstall_apps_disabled
|
"/androidmanagement:v1/Policy/uninstallAppsDisabled": uninstall_apps_disabled
|
||||||
"/androidmanagement:v1/Policy/unmuteMicrophoneDisabled": unmute_microphone_disabled
|
"/androidmanagement:v1/Policy/unmuteMicrophoneDisabled": unmute_microphone_disabled
|
||||||
"/androidmanagement:v1/Policy/usbFileTransferDisabled": usb_file_transfer_disabled
|
"/androidmanagement:v1/Policy/usbFileTransferDisabled": usb_file_transfer_disabled
|
||||||
|
"/androidmanagement:v1/Policy/usbMassStorageEnabled": usb_mass_storage_enabled
|
||||||
"/androidmanagement:v1/Policy/version": version
|
"/androidmanagement:v1/Policy/version": version
|
||||||
"/androidmanagement:v1/Policy/vpnConfigDisabled": vpn_config_disabled
|
"/androidmanagement:v1/Policy/vpnConfigDisabled": vpn_config_disabled
|
||||||
"/androidmanagement:v1/Policy/wifiConfigDisabled": wifi_config_disabled
|
"/androidmanagement:v1/Policy/wifiConfigDisabled": wifi_config_disabled
|
||||||
|
@ -12875,7 +12882,16 @@
|
||||||
"/cloudbilling:v1/fields": fields
|
"/cloudbilling:v1/fields": fields
|
||||||
"/cloudbilling:v1/key": key
|
"/cloudbilling:v1/key": key
|
||||||
"/cloudbilling:v1/quotaUser": quota_user
|
"/cloudbilling:v1/quotaUser": quota_user
|
||||||
|
"/cloudbuild:v1/ArtifactObjects": artifact_objects
|
||||||
|
"/cloudbuild:v1/ArtifactObjects/location": location
|
||||||
|
"/cloudbuild:v1/ArtifactObjects/paths": paths
|
||||||
|
"/cloudbuild:v1/ArtifactObjects/paths/path": path
|
||||||
|
"/cloudbuild:v1/Artifacts": artifacts
|
||||||
|
"/cloudbuild:v1/Artifacts/images": images
|
||||||
|
"/cloudbuild:v1/Artifacts/images/image": image
|
||||||
|
"/cloudbuild:v1/Artifacts/objects": objects
|
||||||
"/cloudbuild:v1/Build": build
|
"/cloudbuild:v1/Build": build
|
||||||
|
"/cloudbuild:v1/Build/artifacts": artifacts
|
||||||
"/cloudbuild:v1/Build/buildTriggerId": build_trigger_id
|
"/cloudbuild:v1/Build/buildTriggerId": build_trigger_id
|
||||||
"/cloudbuild:v1/Build/createTime": create_time
|
"/cloudbuild:v1/Build/createTime": create_time
|
||||||
"/cloudbuild:v1/Build/finishTime": finish_time
|
"/cloudbuild:v1/Build/finishTime": finish_time
|
||||||
|
@ -12981,10 +12997,12 @@
|
||||||
"/cloudbuild:v1/RepoSource/repoName": repo_name
|
"/cloudbuild:v1/RepoSource/repoName": repo_name
|
||||||
"/cloudbuild:v1/RepoSource/tagName": tag_name
|
"/cloudbuild:v1/RepoSource/tagName": tag_name
|
||||||
"/cloudbuild:v1/Results": results
|
"/cloudbuild:v1/Results": results
|
||||||
|
"/cloudbuild:v1/Results/artifactManifest": artifact_manifest
|
||||||
"/cloudbuild:v1/Results/buildStepImages": build_step_images
|
"/cloudbuild:v1/Results/buildStepImages": build_step_images
|
||||||
"/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image
|
"/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image
|
||||||
"/cloudbuild:v1/Results/images": images
|
"/cloudbuild:v1/Results/images": images
|
||||||
"/cloudbuild:v1/Results/images/image": image
|
"/cloudbuild:v1/Results/images/image": image
|
||||||
|
"/cloudbuild:v1/Results/numArtifacts": num_artifacts
|
||||||
"/cloudbuild:v1/RetryBuildRequest": retry_build_request
|
"/cloudbuild:v1/RetryBuildRequest": retry_build_request
|
||||||
"/cloudbuild:v1/Secret": secret
|
"/cloudbuild:v1/Secret": secret
|
||||||
"/cloudbuild:v1/Secret/kmsKeyName": kms_key_name
|
"/cloudbuild:v1/Secret/kmsKeyName": kms_key_name
|
||||||
|
@ -71391,6 +71409,40 @@
|
||||||
"/testing:v1/testing.testEnvironmentCatalog.get": get_test_environment_catalog
|
"/testing:v1/testing.testEnvironmentCatalog.get": get_test_environment_catalog
|
||||||
"/testing:v1/testing.testEnvironmentCatalog.get/environmentType": environment_type
|
"/testing:v1/testing.testEnvironmentCatalog.get/environmentType": environment_type
|
||||||
"/testing:v1/testing.testEnvironmentCatalog.get/projectId": project_id
|
"/testing:v1/testing.testEnvironmentCatalog.get/projectId": project_id
|
||||||
|
"/texttospeech:v1beta1/AudioConfig": audio_config
|
||||||
|
"/texttospeech:v1beta1/AudioConfig/audioEncoding": audio_encoding
|
||||||
|
"/texttospeech:v1beta1/AudioConfig/pitch": pitch
|
||||||
|
"/texttospeech:v1beta1/AudioConfig/sampleRateHertz": sample_rate_hertz
|
||||||
|
"/texttospeech:v1beta1/AudioConfig/speakingRate": speaking_rate
|
||||||
|
"/texttospeech:v1beta1/AudioConfig/volumeGainDb": volume_gain_db
|
||||||
|
"/texttospeech:v1beta1/ListVoicesResponse": list_voices_response
|
||||||
|
"/texttospeech:v1beta1/ListVoicesResponse/voices": voices
|
||||||
|
"/texttospeech:v1beta1/ListVoicesResponse/voices/voice": voice
|
||||||
|
"/texttospeech:v1beta1/SynthesisInput": synthesis_input
|
||||||
|
"/texttospeech:v1beta1/SynthesisInput/ssml": ssml
|
||||||
|
"/texttospeech:v1beta1/SynthesisInput/text": text
|
||||||
|
"/texttospeech:v1beta1/SynthesizeSpeechRequest": synthesize_speech_request
|
||||||
|
"/texttospeech:v1beta1/SynthesizeSpeechRequest/audioConfig": audio_config
|
||||||
|
"/texttospeech:v1beta1/SynthesizeSpeechRequest/input": input
|
||||||
|
"/texttospeech:v1beta1/SynthesizeSpeechRequest/voice": voice
|
||||||
|
"/texttospeech:v1beta1/SynthesizeSpeechResponse": synthesize_speech_response
|
||||||
|
"/texttospeech:v1beta1/SynthesizeSpeechResponse/audioContent": audio_content
|
||||||
|
"/texttospeech:v1beta1/Voice": voice
|
||||||
|
"/texttospeech:v1beta1/Voice/languageCodes": language_codes
|
||||||
|
"/texttospeech:v1beta1/Voice/languageCodes/language_code": language_code
|
||||||
|
"/texttospeech:v1beta1/Voice/name": name
|
||||||
|
"/texttospeech:v1beta1/Voice/naturalSampleRateHertz": natural_sample_rate_hertz
|
||||||
|
"/texttospeech:v1beta1/Voice/ssmlGender": ssml_gender
|
||||||
|
"/texttospeech:v1beta1/VoiceSelectionParams": voice_selection_params
|
||||||
|
"/texttospeech:v1beta1/VoiceSelectionParams/languageCode": language_code
|
||||||
|
"/texttospeech:v1beta1/VoiceSelectionParams/name": name
|
||||||
|
"/texttospeech:v1beta1/VoiceSelectionParams/ssmlGender": ssml_gender
|
||||||
|
"/texttospeech:v1beta1/fields": fields
|
||||||
|
"/texttospeech:v1beta1/key": key
|
||||||
|
"/texttospeech:v1beta1/quotaUser": quota_user
|
||||||
|
"/texttospeech:v1beta1/texttospeech.text.synthesize": synthesize_text_speech
|
||||||
|
"/texttospeech:v1beta1/texttospeech.voices.list": list_voices
|
||||||
|
"/texttospeech:v1beta1/texttospeech.voices.list/languageCode": language_code
|
||||||
"/toolresults:v1beta3/AndroidAppInfo": android_app_info
|
"/toolresults:v1beta3/AndroidAppInfo": android_app_info
|
||||||
"/toolresults:v1beta3/AndroidAppInfo/name": name
|
"/toolresults:v1beta3/AndroidAppInfo/name": name
|
||||||
"/toolresults:v1beta3/AndroidAppInfo/packageName": package_name
|
"/toolresults:v1beta3/AndroidAppInfo/packageName": package_name
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/android/management
|
# @see https://developers.google.com/android/management
|
||||||
module AndroidmanagementV1
|
module AndroidmanagementV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180305'
|
REVISION = '20180320'
|
||||||
|
|
||||||
# Manage Android devices and apps for your customers
|
# Manage Android devices and apps for your customers
|
||||||
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
||||||
|
|
|
@ -238,6 +238,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :duration
|
attr_accessor :duration
|
||||||
|
|
||||||
|
# If the command failed, an error code explaining the failure. This is not set
|
||||||
|
# when the command is cancelled by the caller.
|
||||||
|
# Corresponds to the JSON property `errorCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :error_code
|
||||||
|
|
||||||
# For commands of type RESET_PASSWORD, optionally specifies the new password.
|
# For commands of type RESET_PASSWORD, optionally specifies the new password.
|
||||||
# Corresponds to the JSON property `newPassword`
|
# Corresponds to the JSON property `newPassword`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -268,6 +274,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
@duration = args[:duration] if args.key?(:duration)
|
@duration = args[:duration] if args.key?(:duration)
|
||||||
|
@error_code = args[:error_code] if args.key?(:error_code)
|
||||||
@new_password = args[:new_password] if args.key?(:new_password)
|
@new_password = args[:new_password] if args.key?(:new_password)
|
||||||
@reset_password_flags = args[:reset_password_flags] if args.key?(:reset_password_flags)
|
@reset_password_flags = args[:reset_password_flags] if args.key?(:reset_password_flags)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@ -1636,9 +1643,8 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :android_device_policy_tracks
|
attr_accessor :android_device_policy_tracks
|
||||||
|
|
||||||
# The auto update policy value. Specifies whether the user is given a choice to
|
# The app auto update policy, which controls when automatic app updates can be
|
||||||
# configure the app update policy, or otherwise contains the enforced update
|
# applied.
|
||||||
# policy
|
|
||||||
# Corresponds to the JSON property `appAutoUpdatePolicy`
|
# Corresponds to the JSON property `appAutoUpdatePolicy`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :app_auto_update_policy
|
attr_accessor :app_auto_update_policy
|
||||||
|
@ -1733,6 +1739,17 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :default_permission_policy
|
attr_accessor :default_permission_policy
|
||||||
|
|
||||||
|
# Provides a user-facing message with locale info. The maximum message length is
|
||||||
|
# 4096 characters.
|
||||||
|
# Corresponds to the JSON property `deviceOwnerLockScreenInfo`
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
|
||||||
|
attr_accessor :device_owner_lock_screen_info
|
||||||
|
|
||||||
|
# Whether encryption is enabled
|
||||||
|
# Corresponds to the JSON property `encryptionPolicy`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encryption_policy
|
||||||
|
|
||||||
# Whether app verification is force-enabled.
|
# Whether app verification is force-enabled.
|
||||||
# Corresponds to the JSON property `ensureVerifyAppsEnabled`
|
# Corresponds to the JSON property `ensureVerifyAppsEnabled`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
|
@ -1794,6 +1811,12 @@ module Google
|
||||||
attr_accessor :kiosk_custom_launcher_enabled
|
attr_accessor :kiosk_custom_launcher_enabled
|
||||||
alias_method :kiosk_custom_launcher_enabled?, :kiosk_custom_launcher_enabled
|
alias_method :kiosk_custom_launcher_enabled?, :kiosk_custom_launcher_enabled
|
||||||
|
|
||||||
|
# The degree of location detection enabled. The user may change the value unless
|
||||||
|
# the user is otherwise blocked from accessing device settings.
|
||||||
|
# Corresponds to the JSON property `locationMode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location_mode
|
||||||
|
|
||||||
# Provides a user-facing message with locale info. The maximum message length is
|
# Provides a user-facing message with locale info. The maximum message length is
|
||||||
# 4096 characters.
|
# 4096 characters.
|
||||||
# Corresponds to the JSON property `longSupportMessage`
|
# Corresponds to the JSON property `longSupportMessage`
|
||||||
|
@ -1917,12 +1940,26 @@ module Google
|
||||||
attr_accessor :set_wallpaper_disabled
|
attr_accessor :set_wallpaper_disabled
|
||||||
alias_method :set_wallpaper_disabled?, :set_wallpaper_disabled
|
alias_method :set_wallpaper_disabled?, :set_wallpaper_disabled
|
||||||
|
|
||||||
|
# Whether location sharing is disabled.
|
||||||
|
# Corresponds to the JSON property `shareLocationDisabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :share_location_disabled
|
||||||
|
alias_method :share_location_disabled?, :share_location_disabled
|
||||||
|
|
||||||
# Provides a user-facing message with locale info. The maximum message length is
|
# Provides a user-facing message with locale info. The maximum message length is
|
||||||
# 4096 characters.
|
# 4096 characters.
|
||||||
# Corresponds to the JSON property `shortSupportMessage`
|
# Corresponds to the JSON property `shortSupportMessage`
|
||||||
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
|
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
|
||||||
attr_accessor :short_support_message
|
attr_accessor :short_support_message
|
||||||
|
|
||||||
|
# Flag to skip hints on the first use. Enterprise admin can enable the system
|
||||||
|
# recommendation for apps to skip their user tutorial and other introductory
|
||||||
|
# hints on first start-up.
|
||||||
|
# Corresponds to the JSON property `skipFirstUseHintsEnabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :skip_first_use_hints_enabled
|
||||||
|
alias_method :skip_first_use_hints_enabled?, :skip_first_use_hints_enabled
|
||||||
|
|
||||||
# Whether sending and receiving SMS messages is disabled.
|
# Whether sending and receiving SMS messages is disabled.
|
||||||
# Corresponds to the JSON property `smsDisabled`
|
# Corresponds to the JSON property `smsDisabled`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
|
@ -1977,6 +2014,13 @@ module Google
|
||||||
attr_accessor :usb_file_transfer_disabled
|
attr_accessor :usb_file_transfer_disabled
|
||||||
alias_method :usb_file_transfer_disabled?, :usb_file_transfer_disabled
|
alias_method :usb_file_transfer_disabled?, :usb_file_transfer_disabled
|
||||||
|
|
||||||
|
# Allows admins to toggle whether USB storge is enabled or disabled on user's
|
||||||
|
# devices. Next ID: 113
|
||||||
|
# Corresponds to the JSON property `usbMassStorageEnabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :usb_mass_storage_enabled
|
||||||
|
alias_method :usb_mass_storage_enabled?, :usb_mass_storage_enabled
|
||||||
|
|
||||||
# The version of the policy. This is a read-only field. The version is
|
# The version of the policy. This is a read-only field. The version is
|
||||||
# incremented each time the policy is updated.
|
# incremented each time the policy is updated.
|
||||||
# Corresponds to the JSON property `version`
|
# Corresponds to the JSON property `version`
|
||||||
|
@ -2028,6 +2072,8 @@ module Google
|
||||||
@data_roaming_disabled = args[:data_roaming_disabled] if args.key?(:data_roaming_disabled)
|
@data_roaming_disabled = args[:data_roaming_disabled] if args.key?(:data_roaming_disabled)
|
||||||
@debugging_features_allowed = args[:debugging_features_allowed] if args.key?(:debugging_features_allowed)
|
@debugging_features_allowed = args[:debugging_features_allowed] if args.key?(:debugging_features_allowed)
|
||||||
@default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
|
@default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
|
||||||
|
@device_owner_lock_screen_info = args[:device_owner_lock_screen_info] if args.key?(:device_owner_lock_screen_info)
|
||||||
|
@encryption_policy = args[:encryption_policy] if args.key?(:encryption_policy)
|
||||||
@ensure_verify_apps_enabled = args[:ensure_verify_apps_enabled] if args.key?(:ensure_verify_apps_enabled)
|
@ensure_verify_apps_enabled = args[:ensure_verify_apps_enabled] if args.key?(:ensure_verify_apps_enabled)
|
||||||
@factory_reset_disabled = args[:factory_reset_disabled] if args.key?(:factory_reset_disabled)
|
@factory_reset_disabled = args[:factory_reset_disabled] if args.key?(:factory_reset_disabled)
|
||||||
@frp_admin_emails = args[:frp_admin_emails] if args.key?(:frp_admin_emails)
|
@frp_admin_emails = args[:frp_admin_emails] if args.key?(:frp_admin_emails)
|
||||||
|
@ -2037,6 +2083,7 @@ module Google
|
||||||
@keyguard_disabled = args[:keyguard_disabled] if args.key?(:keyguard_disabled)
|
@keyguard_disabled = args[:keyguard_disabled] if args.key?(:keyguard_disabled)
|
||||||
@keyguard_disabled_features = args[:keyguard_disabled_features] if args.key?(:keyguard_disabled_features)
|
@keyguard_disabled_features = args[:keyguard_disabled_features] if args.key?(:keyguard_disabled_features)
|
||||||
@kiosk_custom_launcher_enabled = args[:kiosk_custom_launcher_enabled] if args.key?(:kiosk_custom_launcher_enabled)
|
@kiosk_custom_launcher_enabled = args[:kiosk_custom_launcher_enabled] if args.key?(:kiosk_custom_launcher_enabled)
|
||||||
|
@location_mode = args[:location_mode] if args.key?(:location_mode)
|
||||||
@long_support_message = args[:long_support_message] if args.key?(:long_support_message)
|
@long_support_message = args[:long_support_message] if args.key?(:long_support_message)
|
||||||
@maximum_time_to_lock = args[:maximum_time_to_lock] if args.key?(:maximum_time_to_lock)
|
@maximum_time_to_lock = args[:maximum_time_to_lock] if args.key?(:maximum_time_to_lock)
|
||||||
@mobile_networks_config_disabled = args[:mobile_networks_config_disabled] if args.key?(:mobile_networks_config_disabled)
|
@mobile_networks_config_disabled = args[:mobile_networks_config_disabled] if args.key?(:mobile_networks_config_disabled)
|
||||||
|
@ -2057,7 +2104,9 @@ module Google
|
||||||
@screen_capture_disabled = args[:screen_capture_disabled] if args.key?(:screen_capture_disabled)
|
@screen_capture_disabled = args[:screen_capture_disabled] if args.key?(:screen_capture_disabled)
|
||||||
@set_user_icon_disabled = args[:set_user_icon_disabled] if args.key?(:set_user_icon_disabled)
|
@set_user_icon_disabled = args[:set_user_icon_disabled] if args.key?(:set_user_icon_disabled)
|
||||||
@set_wallpaper_disabled = args[:set_wallpaper_disabled] if args.key?(:set_wallpaper_disabled)
|
@set_wallpaper_disabled = args[:set_wallpaper_disabled] if args.key?(:set_wallpaper_disabled)
|
||||||
|
@share_location_disabled = args[:share_location_disabled] if args.key?(:share_location_disabled)
|
||||||
@short_support_message = args[:short_support_message] if args.key?(:short_support_message)
|
@short_support_message = args[:short_support_message] if args.key?(:short_support_message)
|
||||||
|
@skip_first_use_hints_enabled = args[:skip_first_use_hints_enabled] if args.key?(:skip_first_use_hints_enabled)
|
||||||
@sms_disabled = args[:sms_disabled] if args.key?(:sms_disabled)
|
@sms_disabled = args[:sms_disabled] if args.key?(:sms_disabled)
|
||||||
@status_bar_disabled = args[:status_bar_disabled] if args.key?(:status_bar_disabled)
|
@status_bar_disabled = args[:status_bar_disabled] if args.key?(:status_bar_disabled)
|
||||||
@status_reporting_settings = args[:status_reporting_settings] if args.key?(:status_reporting_settings)
|
@status_reporting_settings = args[:status_reporting_settings] if args.key?(:status_reporting_settings)
|
||||||
|
@ -2067,6 +2116,7 @@ module Google
|
||||||
@uninstall_apps_disabled = args[:uninstall_apps_disabled] if args.key?(:uninstall_apps_disabled)
|
@uninstall_apps_disabled = args[:uninstall_apps_disabled] if args.key?(:uninstall_apps_disabled)
|
||||||
@unmute_microphone_disabled = args[:unmute_microphone_disabled] if args.key?(:unmute_microphone_disabled)
|
@unmute_microphone_disabled = args[:unmute_microphone_disabled] if args.key?(:unmute_microphone_disabled)
|
||||||
@usb_file_transfer_disabled = args[:usb_file_transfer_disabled] if args.key?(:usb_file_transfer_disabled)
|
@usb_file_transfer_disabled = args[:usb_file_transfer_disabled] if args.key?(:usb_file_transfer_disabled)
|
||||||
|
@usb_mass_storage_enabled = args[:usb_mass_storage_enabled] if args.key?(:usb_mass_storage_enabled)
|
||||||
@version = args[:version] if args.key?(:version)
|
@version = args[:version] if args.key?(:version)
|
||||||
@vpn_config_disabled = args[:vpn_config_disabled] if args.key?(:vpn_config_disabled)
|
@vpn_config_disabled = args[:vpn_config_disabled] if args.key?(:vpn_config_disabled)
|
||||||
@wifi_config_disabled = args[:wifi_config_disabled] if args.key?(:wifi_config_disabled)
|
@wifi_config_disabled = args[:wifi_config_disabled] if args.key?(:wifi_config_disabled)
|
||||||
|
|
|
@ -324,6 +324,7 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :create_time, as: 'createTime'
|
property :create_time, as: 'createTime'
|
||||||
property :duration, as: 'duration'
|
property :duration, as: 'duration'
|
||||||
|
property :error_code, as: 'errorCode'
|
||||||
property :new_password, as: 'newPassword'
|
property :new_password, as: 'newPassword'
|
||||||
collection :reset_password_flags, as: 'resetPasswordFlags'
|
collection :reset_password_flags, as: 'resetPasswordFlags'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
|
@ -663,6 +664,9 @@ module Google
|
||||||
property :data_roaming_disabled, as: 'dataRoamingDisabled'
|
property :data_roaming_disabled, as: 'dataRoamingDisabled'
|
||||||
property :debugging_features_allowed, as: 'debuggingFeaturesAllowed'
|
property :debugging_features_allowed, as: 'debuggingFeaturesAllowed'
|
||||||
property :default_permission_policy, as: 'defaultPermissionPolicy'
|
property :default_permission_policy, as: 'defaultPermissionPolicy'
|
||||||
|
property :device_owner_lock_screen_info, as: 'deviceOwnerLockScreenInfo', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
|
||||||
|
|
||||||
|
property :encryption_policy, as: 'encryptionPolicy'
|
||||||
property :ensure_verify_apps_enabled, as: 'ensureVerifyAppsEnabled'
|
property :ensure_verify_apps_enabled, as: 'ensureVerifyAppsEnabled'
|
||||||
property :factory_reset_disabled, as: 'factoryResetDisabled'
|
property :factory_reset_disabled, as: 'factoryResetDisabled'
|
||||||
collection :frp_admin_emails, as: 'frpAdminEmails'
|
collection :frp_admin_emails, as: 'frpAdminEmails'
|
||||||
|
@ -672,6 +676,7 @@ module Google
|
||||||
property :keyguard_disabled, as: 'keyguardDisabled'
|
property :keyguard_disabled, as: 'keyguardDisabled'
|
||||||
collection :keyguard_disabled_features, as: 'keyguardDisabledFeatures'
|
collection :keyguard_disabled_features, as: 'keyguardDisabledFeatures'
|
||||||
property :kiosk_custom_launcher_enabled, as: 'kioskCustomLauncherEnabled'
|
property :kiosk_custom_launcher_enabled, as: 'kioskCustomLauncherEnabled'
|
||||||
|
property :location_mode, as: 'locationMode'
|
||||||
property :long_support_message, as: 'longSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
|
property :long_support_message, as: 'longSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
|
||||||
|
|
||||||
property :maximum_time_to_lock, :numeric_string => true, as: 'maximumTimeToLock'
|
property :maximum_time_to_lock, :numeric_string => true, as: 'maximumTimeToLock'
|
||||||
|
@ -697,8 +702,10 @@ module Google
|
||||||
property :screen_capture_disabled, as: 'screenCaptureDisabled'
|
property :screen_capture_disabled, as: 'screenCaptureDisabled'
|
||||||
property :set_user_icon_disabled, as: 'setUserIconDisabled'
|
property :set_user_icon_disabled, as: 'setUserIconDisabled'
|
||||||
property :set_wallpaper_disabled, as: 'setWallpaperDisabled'
|
property :set_wallpaper_disabled, as: 'setWallpaperDisabled'
|
||||||
|
property :share_location_disabled, as: 'shareLocationDisabled'
|
||||||
property :short_support_message, as: 'shortSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
|
property :short_support_message, as: 'shortSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
|
||||||
|
|
||||||
|
property :skip_first_use_hints_enabled, as: 'skipFirstUseHintsEnabled'
|
||||||
property :sms_disabled, as: 'smsDisabled'
|
property :sms_disabled, as: 'smsDisabled'
|
||||||
property :status_bar_disabled, as: 'statusBarDisabled'
|
property :status_bar_disabled, as: 'statusBarDisabled'
|
||||||
property :status_reporting_settings, as: 'statusReportingSettings', class: Google::Apis::AndroidmanagementV1::StatusReportingSettings, decorator: Google::Apis::AndroidmanagementV1::StatusReportingSettings::Representation
|
property :status_reporting_settings, as: 'statusReportingSettings', class: Google::Apis::AndroidmanagementV1::StatusReportingSettings, decorator: Google::Apis::AndroidmanagementV1::StatusReportingSettings::Representation
|
||||||
|
@ -710,6 +717,7 @@ module Google
|
||||||
property :uninstall_apps_disabled, as: 'uninstallAppsDisabled'
|
property :uninstall_apps_disabled, as: 'uninstallAppsDisabled'
|
||||||
property :unmute_microphone_disabled, as: 'unmuteMicrophoneDisabled'
|
property :unmute_microphone_disabled, as: 'unmuteMicrophoneDisabled'
|
||||||
property :usb_file_transfer_disabled, as: 'usbFileTransferDisabled'
|
property :usb_file_transfer_disabled, as: 'usbFileTransferDisabled'
|
||||||
|
property :usb_mass_storage_enabled, as: 'usbMassStorageEnabled'
|
||||||
property :version, :numeric_string => true, as: 'version'
|
property :version, :numeric_string => true, as: 'version'
|
||||||
property :vpn_config_disabled, as: 'vpnConfigDisabled'
|
property :vpn_config_disabled, as: 'vpnConfigDisabled'
|
||||||
property :wifi_config_disabled, as: 'wifiConfigDisabled'
|
property :wifi_config_disabled, as: 'wifiConfigDisabled'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-builder/docs/
|
# @see https://cloud.google.com/container-builder/docs/
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180314'
|
REVISION = '20180327'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -22,6 +22,69 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
|
|
||||||
|
# Files in the workspace to upload to Cloud Storage upon successful
|
||||||
|
# completion of all build steps.
|
||||||
|
class ArtifactObjects
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Cloud Storage bucket and optional object path, in the form
|
||||||
|
# "gs://bucket/path/to/somewhere/". (see [Bucket Name
|
||||||
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
||||||
|
# ).
|
||||||
|
# Files in the workspace matching any path pattern will be uploaded to
|
||||||
|
# Cloud Storage with this location as a prefix.
|
||||||
|
# Corresponds to the JSON property `location`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location
|
||||||
|
|
||||||
|
# Path globs used to match files in the build's workspace.
|
||||||
|
# Corresponds to the JSON property `paths`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :paths
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@location = args[:location] if args.key?(:location)
|
||||||
|
@paths = args[:paths] if args.key?(:paths)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Artifacts produced by a build that should be uploaded upon
|
||||||
|
# successful completion of all build steps.
|
||||||
|
class Artifacts
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of images to be pushed upon the successful completion of all build
|
||||||
|
# steps.
|
||||||
|
# The images will be pushed using the builder service account's credentials.
|
||||||
|
# The digests of the pushed images will be stored in the Build resource's
|
||||||
|
# results field.
|
||||||
|
# If any of the images fail to be pushed, the build is marked FAILURE.
|
||||||
|
# Corresponds to the JSON property `images`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :images
|
||||||
|
|
||||||
|
# Files in the workspace to upload to Cloud Storage upon successful
|
||||||
|
# completion of all build steps.
|
||||||
|
# Corresponds to the JSON property `objects`
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ArtifactObjects]
|
||||||
|
attr_accessor :objects
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@images = args[:images] if args.key?(:images)
|
||||||
|
@objects = args[:objects] if args.key?(:objects)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A build resource in the Container Builder API.
|
# A build resource in the Container Builder API.
|
||||||
# At a high level, a `Build` describes where to find source code, how to build
|
# At a high level, a `Build` describes where to find source code, how to build
|
||||||
# it (for example, the builder image to run on the source), and where to store
|
# it (for example, the builder image to run on the source), and where to store
|
||||||
|
@ -39,6 +102,12 @@ module Google
|
||||||
class Build
|
class Build
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Artifacts produced by a build that should be uploaded upon
|
||||||
|
# successful completion of all build steps.
|
||||||
|
# Corresponds to the JSON property `artifacts`
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Artifacts]
|
||||||
|
attr_accessor :artifacts
|
||||||
|
|
||||||
# The ID of the `BuildTrigger` that triggered this build, if it was
|
# The ID of the `BuildTrigger` that triggered this build, if it was
|
||||||
# triggered automatically.
|
# triggered automatically.
|
||||||
# @OutputOnly
|
# @OutputOnly
|
||||||
|
@ -182,6 +251,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@artifacts = args[:artifacts] if args.key?(:artifacts)
|
||||||
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
||||||
|
@ -849,6 +919,11 @@ module Google
|
||||||
class Results
|
class Results
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Path to the artifact manifest. Only populated when artifacts are uploaded.
|
||||||
|
# Corresponds to the JSON property `artifactManifest`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :artifact_manifest
|
||||||
|
|
||||||
# List of build step digests, in the order corresponding to build step
|
# List of build step digests, in the order corresponding to build step
|
||||||
# indices.
|
# indices.
|
||||||
# Corresponds to the JSON property `buildStepImages`
|
# Corresponds to the JSON property `buildStepImages`
|
||||||
|
@ -860,14 +935,21 @@ module Google
|
||||||
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
|
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
|
||||||
attr_accessor :images
|
attr_accessor :images
|
||||||
|
|
||||||
|
# Number of artifacts uploaded. Only populated when artifacts are uploaded.
|
||||||
|
# Corresponds to the JSON property `numArtifacts`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :num_artifacts
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@artifact_manifest = args[:artifact_manifest] if args.key?(:artifact_manifest)
|
||||||
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
||||||
@images = args[:images] if args.key?(:images)
|
@images = args[:images] if args.key?(:images)
|
||||||
|
@num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,18 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
|
|
||||||
|
class ArtifactObjects
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Artifacts
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Build
|
class Build
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -172,9 +184,28 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ArtifactObjects
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :location, as: 'location'
|
||||||
|
collection :paths, as: 'paths'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Artifacts
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :images, as: 'images'
|
||||||
|
property :objects, as: 'objects', class: Google::Apis::CloudbuildV1::ArtifactObjects, decorator: Google::Apis::CloudbuildV1::ArtifactObjects::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Build
|
class Build
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1::Artifacts, decorator: Google::Apis::CloudbuildV1::Artifacts::Representation
|
||||||
|
|
||||||
property :build_trigger_id, as: 'buildTriggerId'
|
property :build_trigger_id, as: 'buildTriggerId'
|
||||||
property :create_time, as: 'createTime'
|
property :create_time, as: 'createTime'
|
||||||
property :finish_time, as: 'finishTime'
|
property :finish_time, as: 'finishTime'
|
||||||
|
@ -359,9 +390,11 @@ module Google
|
||||||
class Results
|
class Results
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :artifact_manifest, as: 'artifactManifest'
|
||||||
collection :build_step_images, as: 'buildStepImages'
|
collection :build_step_images, as: 'buildStepImages'
|
||||||
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
||||||
|
|
||||||
|
property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/pubsub/docs
|
# @see https://cloud.google.com/pubsub/docs
|
||||||
module PubsubV1
|
module PubsubV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180103'
|
REVISION = '20180319'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -182,6 +182,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Response for the `ListTopicSnapshots` method.
|
# Response for the `ListTopicSnapshots` method.
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
class ListTopicSnapshotsResponse
|
class ListTopicSnapshotsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -747,6 +748,7 @@ module Google
|
||||||
# of acknowledged messages, and thus configures how far back in time a `Seek`
|
# of acknowledged messages, and thus configures how far back in time a `Seek`
|
||||||
# can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
|
# can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
|
||||||
# minutes.
|
# minutes.
|
||||||
|
# [ALPHA] This field is a part of a closed Alpha API.
|
||||||
# Corresponds to the JSON property `messageRetentionDuration`
|
# Corresponds to the JSON property `messageRetentionDuration`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :message_retention_duration
|
attr_accessor :message_retention_duration
|
||||||
|
@ -770,6 +772,7 @@ module Google
|
||||||
# messages are not expunged from the subscription's backlog, even if they are
|
# messages are not expunged from the subscription's backlog, even if they are
|
||||||
# acknowledged, until they fall out of the `message_retention_duration`
|
# acknowledged, until they fall out of the `message_retention_duration`
|
||||||
# window.
|
# window.
|
||||||
|
# [ALPHA] This field is a part of a closed Alpha API.
|
||||||
# Corresponds to the JSON property `retainAckedMessages`
|
# Corresponds to the JSON property `retainAckedMessages`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :retain_acked_messages
|
attr_accessor :retain_acked_messages
|
||||||
|
|
|
@ -47,6 +47,7 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
# Creates a snapshot from the requested subscription.
|
# Creates a snapshot from the requested subscription.
|
||||||
# If the snapshot already exists, returns `ALREADY_EXISTS`.
|
# If the snapshot already exists, returns `ALREADY_EXISTS`.
|
||||||
# If the requested subscription doesn't exist, returns `NOT_FOUND`.
|
# If the requested subscription doesn't exist, returns `NOT_FOUND`.
|
||||||
|
@ -100,6 +101,7 @@ module Google
|
||||||
# are immediately dropped. After a snapshot is deleted, a new one may be
|
# are immediately dropped. After a snapshot is deleted, a new one may be
|
||||||
# created with the same name, but the new one has no association with the old
|
# created with the same name, but the new one has no association with the old
|
||||||
# snapshot or its subscription, unless the same subscription is specified.
|
# snapshot or its subscription, unless the same subscription is specified.
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
# @param [String] snapshot
|
# @param [String] snapshot
|
||||||
# The name of the snapshot to delete.
|
# The name of the snapshot to delete.
|
||||||
# Format is `projects/`project`/snapshots/`snap``.
|
# Format is `projects/`project`/snapshots/`snap``.
|
||||||
|
@ -131,6 +133,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets the configuration details of a snapshot.
|
# Gets the configuration details of a snapshot.
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
# @param [String] snapshot
|
# @param [String] snapshot
|
||||||
# The name of the snapshot to get.
|
# The name of the snapshot to get.
|
||||||
# Format is `projects/`project`/snapshots/`snap``.
|
# Format is `projects/`project`/snapshots/`snap``.
|
||||||
|
@ -195,6 +198,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists the existing snapshots.
|
# Lists the existing snapshots.
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# The name of the cloud project that snapshots belong to.
|
# The name of the cloud project that snapshots belong to.
|
||||||
# Format is `projects/`project``.
|
# Format is `projects/`project``.
|
||||||
|
@ -235,6 +239,7 @@ module Google
|
||||||
|
|
||||||
# Updates an existing snapshot. Note that certain properties of a
|
# Updates an existing snapshot. Note that certain properties of a
|
||||||
# snapshot are not modifiable.
|
# snapshot are not modifiable.
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the snapshot.
|
# The name of the snapshot.
|
||||||
# @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object
|
# @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object
|
||||||
|
@ -718,6 +723,7 @@ module Google
|
||||||
|
|
||||||
# Seeks an existing subscription to a point in time or to a given snapshot,
|
# Seeks an existing subscription to a point in time or to a given snapshot,
|
||||||
# whichever is provided in the request.
|
# whichever is provided in the request.
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
# @param [String] subscription
|
# @param [String] subscription
|
||||||
# The subscription to affect.
|
# The subscription to affect.
|
||||||
# @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object
|
# @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object
|
||||||
|
@ -1111,6 +1117,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists the names of the snapshots on this topic.
|
# Lists the names of the snapshots on this topic.
|
||||||
|
# [ALPHA] This method is a part of a closed Alpha API.
|
||||||
# @param [String] topic
|
# @param [String] topic
|
||||||
# The name of the topic that snapshots are attached to.
|
# The name of the topic that snapshots are attached to.
|
||||||
# Format is `projects/`project`/topics/`topic``.
|
# Format is `projects/`project`/topics/`topic``.
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/texttospeech_v1beta1/service.rb'
|
||||||
|
require 'google/apis/texttospeech_v1beta1/classes.rb'
|
||||||
|
require 'google/apis/texttospeech_v1beta1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Cloud Text-to-Speech API
|
||||||
|
#
|
||||||
|
# Cloud Text-to-Speech API.
|
||||||
|
#
|
||||||
|
# @see http://cloud.google.com/speech/text-to-speech/
|
||||||
|
module TexttospeechV1beta1
|
||||||
|
VERSION = 'V1beta1'
|
||||||
|
REVISION = '20180323'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,278 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module TexttospeechV1beta1
|
||||||
|
|
||||||
|
# Description of audio data to be synthesized.
|
||||||
|
class AudioConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. The format of the requested audio byte stream.
|
||||||
|
# Corresponds to the JSON property `audioEncoding`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :audio_encoding
|
||||||
|
|
||||||
|
# Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
|
||||||
|
# semitones from the original pitch. -20 means decrease 20 semitones from the
|
||||||
|
# original pitch.
|
||||||
|
# Corresponds to the JSON property `pitch`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :pitch
|
||||||
|
|
||||||
|
# The synthesis sample rate (in hertz) for this audio. Optional. If this is
|
||||||
|
# different from the voice's natural sample rate, then the synthesizer will
|
||||||
|
# honor this request by converting to the desired sample rate (which might
|
||||||
|
# result in worse audio quality), unless the specified sample rate is not
|
||||||
|
# supported for the encoding chosen, in which case it will fail the request
|
||||||
|
# and return google.rpc.Code.INVALID_ARGUMENT.
|
||||||
|
# Corresponds to the JSON property `sampleRateHertz`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :sample_rate_hertz
|
||||||
|
|
||||||
|
# Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
|
||||||
|
# native speed supported by the specific voice. 2.0 is twice as fast, and
|
||||||
|
# 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
|
||||||
|
# other values < 0.25 or > 4.0 will return an error.
|
||||||
|
# Corresponds to the JSON property `speakingRate`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :speaking_rate
|
||||||
|
|
||||||
|
# Optional volume gain (in dB) of the normal native volume supported by the
|
||||||
|
# specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
|
||||||
|
# 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
|
||||||
|
# will play at approximately half the amplitude of the normal native signal
|
||||||
|
# amplitude. A value of +6.0 (dB) will play at approximately twice the
|
||||||
|
# amplitude of the normal native signal amplitude. Strongly recommend not to
|
||||||
|
# exceed +10 (dB) as there's usually no effective increase in loudness for
|
||||||
|
# any value greater than that.
|
||||||
|
# Corresponds to the JSON property `volumeGainDb`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :volume_gain_db
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
|
||||||
|
@pitch = args[:pitch] if args.key?(:pitch)
|
||||||
|
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
||||||
|
@speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
|
||||||
|
@volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The message returned to the client by the `ListVoices` method.
|
||||||
|
class ListVoicesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of voices.
|
||||||
|
# Corresponds to the JSON property `voices`
|
||||||
|
# @return [Array<Google::Apis::TexttospeechV1beta1::Voice>]
|
||||||
|
attr_accessor :voices
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@voices = args[:voices] if args.key?(:voices)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
||||||
|
# supplied. Supplying both or neither returns
|
||||||
|
# google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
|
||||||
|
# characters.
|
||||||
|
class SynthesisInput
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The SSML document to be synthesized. The SSML document must be valid
|
||||||
|
# and well-formed. Otherwise the RPC will fail and return
|
||||||
|
# google.rpc.Code.INVALID_ARGUMENT. For more information, see
|
||||||
|
# [SSML](/speech/text-to-speech/docs/ssml).
|
||||||
|
# Corresponds to the JSON property `ssml`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ssml
|
||||||
|
|
||||||
|
# The raw text to be synthesized.
|
||||||
|
# Corresponds to the JSON property `text`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :text
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@ssml = args[:ssml] if args.key?(:ssml)
|
||||||
|
@text = args[:text] if args.key?(:text)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The top-level message sent by the client for the `SynthesizeSpeech` method.
|
||||||
|
class SynthesizeSpeechRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Description of audio data to be synthesized.
|
||||||
|
# Corresponds to the JSON property `audioConfig`
|
||||||
|
# @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
|
||||||
|
attr_accessor :audio_config
|
||||||
|
|
||||||
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
||||||
|
# supplied. Supplying both or neither returns
|
||||||
|
# google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
|
||||||
|
# characters.
|
||||||
|
# Corresponds to the JSON property `input`
|
||||||
|
# @return [Google::Apis::TexttospeechV1beta1::SynthesisInput]
|
||||||
|
attr_accessor :input
|
||||||
|
|
||||||
|
# Description of which voice to use for a synthesis request.
|
||||||
|
# Corresponds to the JSON property `voice`
|
||||||
|
# @return [Google::Apis::TexttospeechV1beta1::VoiceSelectionParams]
|
||||||
|
attr_accessor :voice
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@audio_config = args[:audio_config] if args.key?(:audio_config)
|
||||||
|
@input = args[:input] if args.key?(:input)
|
||||||
|
@voice = args[:voice] if args.key?(:voice)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The message returned to the client by the `SynthesizeSpeech` method.
|
||||||
|
class SynthesizeSpeechResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The audio data bytes encoded as specified in the request, including the
|
||||||
|
# header (For LINEAR16 audio, we include the WAV header). Note: as
|
||||||
|
# with all bytes fields, protobuffers use a pure binary representation,
|
||||||
|
# whereas JSON representations use base64.
|
||||||
|
# Corresponds to the JSON property `audioContent`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :audio_content
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@audio_content = args[:audio_content] if args.key?(:audio_content)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Description of a voice supported by the TTS service.
|
||||||
|
class Voice
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The languages that this voice supports, expressed as
|
||||||
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
||||||
|
# "en-US", "es-419", "cmn-tw").
|
||||||
|
# Corresponds to the JSON property `languageCodes`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :language_codes
|
||||||
|
|
||||||
|
# The name of this voice. Each distinct voice has a unique name.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The natural sample rate (in hertz) for this voice.
|
||||||
|
# Corresponds to the JSON property `naturalSampleRateHertz`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :natural_sample_rate_hertz
|
||||||
|
|
||||||
|
# The gender of this voice.
|
||||||
|
# Corresponds to the JSON property `ssmlGender`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ssml_gender
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@language_codes = args[:language_codes] if args.key?(:language_codes)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@natural_sample_rate_hertz = args[:natural_sample_rate_hertz] if args.key?(:natural_sample_rate_hertz)
|
||||||
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Description of which voice to use for a synthesis request.
|
||||||
|
class VoiceSelectionParams
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The language (and optionally also the region) of the voice expressed as a
|
||||||
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
|
||||||
|
# "en-US". Required. This should not include a script tag (e.g. use
|
||||||
|
# "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
|
||||||
|
# from the input provided in the SynthesisInput. The TTS service
|
||||||
|
# will use this parameter to help choose an appropriate voice. Note that
|
||||||
|
# the TTS service may choose a voice with a slightly different language code
|
||||||
|
# than the one selected; it may substitute a different region
|
||||||
|
# (e.g. using en-US rather than en-CA if there isn't a Canadian voice
|
||||||
|
# available), or even a different language, e.g. using "nb" (Norwegian
|
||||||
|
# Bokmal) instead of "no" (Norwegian)".
|
||||||
|
# Corresponds to the JSON property `languageCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language_code
|
||||||
|
|
||||||
|
# The name of the voice. Optional; if not set, the service will choose a
|
||||||
|
# voice based on the other parameters such as language_code and gender.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The preferred gender of the voice. Optional; if not set, the service will
|
||||||
|
# choose a voice based on the other parameters such as language_code and
|
||||||
|
# name. Note that this is only a preference, not requirement; if a
|
||||||
|
# voice of the appropriate gender is not available, the synthesizer should
|
||||||
|
# substitute a voice with a different gender rather than failing the request.
|
||||||
|
# Corresponds to the JSON property `ssmlGender`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ssml_gender
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@language_code = args[:language_code] if args.key?(:language_code)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,133 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module TexttospeechV1beta1
|
||||||
|
|
||||||
|
class AudioConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListVoicesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SynthesisInput
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SynthesizeSpeechRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SynthesizeSpeechResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Voice
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class VoiceSelectionParams
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AudioConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :audio_encoding, as: 'audioEncoding'
|
||||||
|
property :pitch, as: 'pitch'
|
||||||
|
property :sample_rate_hertz, as: 'sampleRateHertz'
|
||||||
|
property :speaking_rate, as: 'speakingRate'
|
||||||
|
property :volume_gain_db, as: 'volumeGainDb'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListVoicesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :voices, as: 'voices', class: Google::Apis::TexttospeechV1beta1::Voice, decorator: Google::Apis::TexttospeechV1beta1::Voice::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SynthesisInput
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ssml, as: 'ssml'
|
||||||
|
property :text, as: 'text'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SynthesizeSpeechRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1beta1::AudioConfig, decorator: Google::Apis::TexttospeechV1beta1::AudioConfig::Representation
|
||||||
|
|
||||||
|
property :input, as: 'input', class: Google::Apis::TexttospeechV1beta1::SynthesisInput, decorator: Google::Apis::TexttospeechV1beta1::SynthesisInput::Representation
|
||||||
|
|
||||||
|
property :voice, as: 'voice', class: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SynthesizeSpeechResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :audio_content, :base64 => true, as: 'audioContent'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Voice
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :language_codes, as: 'languageCodes'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :natural_sample_rate_hertz, as: 'naturalSampleRateHertz'
|
||||||
|
property :ssml_gender, as: 'ssmlGender'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class VoiceSelectionParams
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :language_code, as: 'languageCode'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :ssml_gender, as: 'ssmlGender'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,128 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module TexttospeechV1beta1
|
||||||
|
# Cloud Text-to-Speech API
|
||||||
|
#
|
||||||
|
# Cloud Text-to-Speech API.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/texttospeech_v1beta1'
|
||||||
|
#
|
||||||
|
# Texttospeech = Google::Apis::TexttospeechV1beta1 # Alias the module
|
||||||
|
# service = Texttospeech::TexttospeechService.new
|
||||||
|
#
|
||||||
|
# @see http://cloud.google.com/speech/text-to-speech/
|
||||||
|
class TexttospeechService < Google::Apis::Core::BaseService
|
||||||
|
# @return [String]
|
||||||
|
# API key. Your API key identifies your project and provides you with API access,
|
||||||
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# @return [String]
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
super('https://texttospeech.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Synthesizes speech synchronously: receive results after all text input
|
||||||
|
# has been processed.
|
||||||
|
# @param [Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest] synthesize_speech_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::TexttospeechV1beta1::SynthesizeSpeechResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::TexttospeechV1beta1::SynthesizeSpeechResponse]
|
||||||
|
#
|
||||||
|
# @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 synthesize_text_speech(synthesize_speech_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/text:synthesize', options)
|
||||||
|
command.request_representation = Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest::Representation
|
||||||
|
command.request_object = synthesize_speech_request_object
|
||||||
|
command.response_representation = Google::Apis::TexttospeechV1beta1::SynthesizeSpeechResponse::Representation
|
||||||
|
command.response_class = Google::Apis::TexttospeechV1beta1::SynthesizeSpeechResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns a list of Voice
|
||||||
|
# supported for synthesis.
|
||||||
|
# @param [String] language_code
|
||||||
|
# Optional (but recommended)
|
||||||
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
|
||||||
|
# specified, the ListVoices call will only return voices that can be used to
|
||||||
|
# synthesize this language_code. E.g. when specifying "en-NZ", you will get
|
||||||
|
# supported "en-*" voices; when specifying "no", you will get supported
|
||||||
|
# "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
|
||||||
|
# will also get supported "cmn-*" voices; specifying "zh-hk" will also get
|
||||||
|
# supported "yue-*" voices.
|
||||||
|
# @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::TexttospeechV1beta1::ListVoicesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::TexttospeechV1beta1::ListVoicesResponse]
|
||||||
|
#
|
||||||
|
# @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_voices(language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/voices', options)
|
||||||
|
command.response_representation = Google::Apis::TexttospeechV1beta1::ListVoicesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::TexttospeechV1beta1::ListVoicesResponse
|
||||||
|
command.query['languageCode'] = language_code unless language_code.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue