Autogenerated update (2017-11-30)

Update:
- androidenterprise_v1
- androidmanagement_v1
- bigquerydatatransfer_v1
- cloudkms_v1
- compute_beta
- dialogflow_v2beta1
- fusiontables_v2
- ml_v1
- speech_v1
- speech_v1beta1
- testing_v1
This commit is contained in:
Google APIs 2017-11-30 00:35:37 +00:00
parent b35f5face3
commit 33497b6dd8
33 changed files with 2441 additions and 266 deletions

View File

@ -5280,6 +5280,7 @@
"/androidenterprise:v1/Device/androidId": android_id
"/androidenterprise:v1/Device/kind": kind
"/androidenterprise:v1/Device/managementType": management_type
"/androidenterprise:v1/Device/policy": policy
"/androidenterprise:v1/DeviceState": device_state
"/androidenterprise:v1/DeviceState/accountState": account_state
"/androidenterprise:v1/DeviceState/kind": kind
@ -5418,6 +5419,10 @@
"/androidenterprise:v1/Permission/kind": kind
"/androidenterprise:v1/Permission/name": name
"/androidenterprise:v1/Permission/permissionId": permission_id
"/androidenterprise:v1/Policy": policy
"/androidenterprise:v1/Policy/productAvailabilityPolicy": product_availability_policy
"/androidenterprise:v1/Policy/productPolicy": product_policy
"/androidenterprise:v1/Policy/productPolicy/product_policy": product_policy
"/androidenterprise:v1/Product": product
"/androidenterprise:v1/Product/appVersion": app_version
"/androidenterprise:v1/Product/appVersion/app_version": app_version
@ -5449,6 +5454,10 @@
"/androidenterprise:v1/ProductPermissions/permission": permission
"/androidenterprise:v1/ProductPermissions/permission/permission": permission
"/androidenterprise:v1/ProductPermissions/productId": product_id
"/androidenterprise:v1/ProductPolicy": product_policy
"/androidenterprise:v1/ProductPolicy/productId": product_id
"/androidenterprise:v1/ProductPolicy/tracks": tracks
"/androidenterprise:v1/ProductPolicy/tracks/track": track
"/androidenterprise:v1/ProductSet": product_set
"/androidenterprise:v1/ProductSet/kind": kind
"/androidenterprise:v1/ProductSet/productId": product_id
@ -5557,10 +5566,20 @@
"/androidenterprise:v1/androidenterprise.devices.list": list_devices
"/androidenterprise:v1/androidenterprise.devices.list/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.devices.list/userId": user_id
"/androidenterprise:v1/androidenterprise.devices.patch": patch_device
"/androidenterprise:v1/androidenterprise.devices.patch/deviceId": device_id
"/androidenterprise:v1/androidenterprise.devices.patch/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.devices.patch/updateMask": update_mask
"/androidenterprise:v1/androidenterprise.devices.patch/userId": user_id
"/androidenterprise:v1/androidenterprise.devices.setState": set_device_state
"/androidenterprise:v1/androidenterprise.devices.setState/deviceId": device_id
"/androidenterprise:v1/androidenterprise.devices.setState/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.devices.setState/userId": user_id
"/androidenterprise:v1/androidenterprise.devices.update": update_device
"/androidenterprise:v1/androidenterprise.devices.update/deviceId": device_id
"/androidenterprise:v1/androidenterprise.devices.update/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.devices.update/updateMask": update_mask
"/androidenterprise:v1/androidenterprise.devices.update/userId": user_id
"/androidenterprise:v1/androidenterprise.enterprises.acknowledgeNotificationSet": acknowledge_enterprise_notification_set
"/androidenterprise:v1/androidenterprise.enterprises.acknowledgeNotificationSet/notificationSetId": notification_set_id
"/androidenterprise:v1/androidenterprise.enterprises.completeSignup": complete_enterprise_signup
@ -5814,6 +5833,9 @@
"/androidenterprise:v1/key": key
"/androidenterprise:v1/quotaUser": quota_user
"/androidenterprise:v1/userIp": user_ip
"/androidmanagement:v1/AlwaysOnVpnPackage": always_on_vpn_package
"/androidmanagement:v1/AlwaysOnVpnPackage/lockdownEnabled": lockdown_enabled
"/androidmanagement:v1/AlwaysOnVpnPackage/packageName": package_name
"/androidmanagement:v1/ApiLevelCondition": api_level_condition
"/androidmanagement:v1/ApiLevelCondition/minApiLevel": min_api_level
"/androidmanagement:v1/Application": application
@ -6002,6 +6024,9 @@
"/androidmanagement:v1/Operation/name": name
"/androidmanagement:v1/Operation/response": response
"/androidmanagement:v1/Operation/response/response": response
"/androidmanagement:v1/PackageNameList": package_name_list
"/androidmanagement:v1/PackageNameList/packageNames": package_names
"/androidmanagement:v1/PackageNameList/packageNames/package_name": package_name
"/androidmanagement:v1/PasswordRequirements": password_requirements
"/androidmanagement:v1/PasswordRequirements/maximumFailedPasswordsForWipe": maximum_failed_passwords_for_wipe
"/androidmanagement:v1/PasswordRequirements/passwordExpirationTimeout": password_expiration_timeout
@ -6024,48 +6049,84 @@
"/androidmanagement:v1/PersistentPreferredActivity/categories/category": category
"/androidmanagement:v1/PersistentPreferredActivity/receiverActivity": receiver_activity
"/androidmanagement:v1/Policy": policy
"/androidmanagement:v1/Policy/accountTypesWithManagementDisabled": account_types_with_management_disabled
"/androidmanagement:v1/Policy/accountTypesWithManagementDisabled/account_types_with_management_disabled": account_types_with_management_disabled
"/androidmanagement:v1/Policy/addUserDisabled": add_user_disabled
"/androidmanagement:v1/Policy/adjustVolumeDisabled": adjust_volume_disabled
"/androidmanagement:v1/Policy/alwaysOnVpnPackage": always_on_vpn_package
"/androidmanagement:v1/Policy/applications": applications
"/androidmanagement:v1/Policy/applications/application": application
"/androidmanagement:v1/Policy/autoTimeRequired": auto_time_required
"/androidmanagement:v1/Policy/blockApplicationsEnabled": block_applications_enabled
"/androidmanagement:v1/Policy/bluetoothConfigDisabled": bluetooth_config_disabled
"/androidmanagement:v1/Policy/bluetoothContactSharingDisabled": bluetooth_contact_sharing_disabled
"/androidmanagement:v1/Policy/bluetoothDisabled": bluetooth_disabled
"/androidmanagement:v1/Policy/cameraDisabled": camera_disabled
"/androidmanagement:v1/Policy/cellBroadcastsConfigDisabled": cell_broadcasts_config_disabled
"/androidmanagement:v1/Policy/complianceRules": compliance_rules
"/androidmanagement:v1/Policy/complianceRules/compliance_rule": compliance_rule
"/androidmanagement:v1/Policy/createWindowsDisabled": create_windows_disabled
"/androidmanagement:v1/Policy/credentialsConfigDisabled": credentials_config_disabled
"/androidmanagement:v1/Policy/dataRoamingDisabled": data_roaming_disabled
"/androidmanagement:v1/Policy/debuggingFeaturesAllowed": debugging_features_allowed
"/androidmanagement:v1/Policy/defaultPermissionPolicy": default_permission_policy
"/androidmanagement:v1/Policy/ensureVerifyAppsEnabled": ensure_verify_apps_enabled
"/androidmanagement:v1/Policy/factoryResetDisabled": factory_reset_disabled
"/androidmanagement:v1/Policy/frpAdminEmails": frp_admin_emails
"/androidmanagement:v1/Policy/frpAdminEmails/frp_admin_email": frp_admin_email
"/androidmanagement:v1/Policy/funDisabled": fun_disabled
"/androidmanagement:v1/Policy/installAppsDisabled": install_apps_disabled
"/androidmanagement:v1/Policy/installUnknownSourcesAllowed": install_unknown_sources_allowed
"/androidmanagement:v1/Policy/keyguardDisabled": keyguard_disabled
"/androidmanagement:v1/Policy/keyguardDisabledFeatures": keyguard_disabled_features
"/androidmanagement:v1/Policy/keyguardDisabledFeatures/keyguard_disabled_feature": keyguard_disabled_feature
"/androidmanagement:v1/Policy/longSupportMessage": long_support_message
"/androidmanagement:v1/Policy/maximumTimeToLock": maximum_time_to_lock
"/androidmanagement:v1/Policy/mobileNetworksConfigDisabled": mobile_networks_config_disabled
"/androidmanagement:v1/Policy/modifyAccountsDisabled": modify_accounts_disabled
"/androidmanagement:v1/Policy/mountPhysicalMediaDisabled": mount_physical_media_disabled
"/androidmanagement:v1/Policy/name": name
"/androidmanagement:v1/Policy/networkEscapeHatchEnabled": network_escape_hatch_enabled
"/androidmanagement:v1/Policy/networkResetDisabled": network_reset_disabled
"/androidmanagement:v1/Policy/openNetworkConfiguration": open_network_configuration
"/androidmanagement:v1/Policy/openNetworkConfiguration/open_network_configuration": open_network_configuration
"/androidmanagement:v1/Policy/outgoingBeamDisabled": outgoing_beam_disabled
"/androidmanagement:v1/Policy/outgoingCallsDisabled": outgoing_calls_disabled
"/androidmanagement:v1/Policy/passwordRequirements": password_requirements
"/androidmanagement:v1/Policy/permittedInputMethods": permitted_input_methods
"/androidmanagement:v1/Policy/persistentPreferredActivities": persistent_preferred_activities
"/androidmanagement:v1/Policy/persistentPreferredActivities/persistent_preferred_activity": persistent_preferred_activity
"/androidmanagement:v1/Policy/recommendedGlobalProxy": recommended_global_proxy
"/androidmanagement:v1/Policy/removeUserDisabled": remove_user_disabled
"/androidmanagement:v1/Policy/safeBootDisabled": safe_boot_disabled
"/androidmanagement:v1/Policy/screenCaptureDisabled": screen_capture_disabled
"/androidmanagement:v1/Policy/setUserIconDisabled": set_user_icon_disabled
"/androidmanagement:v1/Policy/setWallpaperDisabled": set_wallpaper_disabled
"/androidmanagement:v1/Policy/shortSupportMessage": short_support_message
"/androidmanagement:v1/Policy/smsDisabled": sms_disabled
"/androidmanagement:v1/Policy/statusBarDisabled": status_bar_disabled
"/androidmanagement:v1/Policy/statusReportingSettings": status_reporting_settings
"/androidmanagement:v1/Policy/stayOnPluggedModes": stay_on_plugged_modes
"/androidmanagement:v1/Policy/stayOnPluggedModes/stay_on_plugged_mode": stay_on_plugged_mode
"/androidmanagement:v1/Policy/systemUpdate": system_update
"/androidmanagement:v1/Policy/tetheringConfigDisabled": tethering_config_disabled
"/androidmanagement:v1/Policy/uninstallAppsDisabled": uninstall_apps_disabled
"/androidmanagement:v1/Policy/unmuteMicrophoneDisabled": unmute_microphone_disabled
"/androidmanagement:v1/Policy/usbFileTransferDisabled": usb_file_transfer_disabled
"/androidmanagement:v1/Policy/version": version
"/androidmanagement:v1/Policy/vpnConfigDisabled": vpn_config_disabled
"/androidmanagement:v1/Policy/wifiConfigDisabled": wifi_config_disabled
"/androidmanagement:v1/Policy/wifiConfigsLockdownEnabled": wifi_configs_lockdown_enabled
"/androidmanagement:v1/PowerManagementEvent": power_management_event
"/androidmanagement:v1/PowerManagementEvent/batteryLevel": battery_level
"/androidmanagement:v1/PowerManagementEvent/createTime": create_time
"/androidmanagement:v1/PowerManagementEvent/eventType": event_type
"/androidmanagement:v1/ProxyInfo": proxy_info
"/androidmanagement:v1/ProxyInfo/excludedHosts": excluded_hosts
"/androidmanagement:v1/ProxyInfo/excludedHosts/excluded_host": excluded_host
"/androidmanagement:v1/ProxyInfo/host": host
"/androidmanagement:v1/ProxyInfo/pacUri": pac_uri
"/androidmanagement:v1/ProxyInfo/port": port
"/androidmanagement:v1/SignupUrl": signup_url
"/androidmanagement:v1/SignupUrl/name": name
"/androidmanagement:v1/SignupUrl/url": url
@ -46497,6 +46558,8 @@
"/fusiontables:v2/fusiontables.table.patch": patch_table
"/fusiontables:v2/fusiontables.table.patch/replaceViewDefinition": replace_view_definition
"/fusiontables:v2/fusiontables.table.patch/tableId": table_id
"/fusiontables:v2/fusiontables.table.refetchSheet": refetch_table_sheet
"/fusiontables:v2/fusiontables.table.refetchSheet/tableId": table_id
"/fusiontables:v2/fusiontables.table.replaceRows": replace_table_rows
"/fusiontables:v2/fusiontables.table.replaceRows/delimiter": delimiter
"/fusiontables:v2/fusiontables.table.replaceRows/encoding": encoding
@ -50921,6 +50984,7 @@
"/ml:v1/GoogleCloudMlV1__OperationMetadata/labels/label": label
"/ml:v1/GoogleCloudMlV1__OperationMetadata/modelName": model_name
"/ml:v1/GoogleCloudMlV1__OperationMetadata/operationType": operation_type
"/ml:v1/GoogleCloudMlV1__OperationMetadata/projectNumber": project_number
"/ml:v1/GoogleCloudMlV1__OperationMetadata/startTime": start_time
"/ml:v1/GoogleCloudMlV1__OperationMetadata/version": version
"/ml:v1/GoogleCloudMlV1__ParameterSpec": google_cloud_ml_v1__parameter_spec
@ -50945,6 +51009,7 @@
"/ml:v1/GoogleCloudMlV1__PredictionInput/outputPath": output_path
"/ml:v1/GoogleCloudMlV1__PredictionInput/region": region
"/ml:v1/GoogleCloudMlV1__PredictionInput/runtimeVersion": runtime_version
"/ml:v1/GoogleCloudMlV1__PredictionInput/signatureName": signature_name
"/ml:v1/GoogleCloudMlV1__PredictionInput/uri": uri
"/ml:v1/GoogleCloudMlV1__PredictionInput/versionName": version_name
"/ml:v1/GoogleCloudMlV1__PredictionOutput": google_cloud_ml_v1__prediction_output
@ -50964,6 +51029,7 @@
"/ml:v1/GoogleCloudMlV1__TrainingInput/parameterServerCount": parameter_server_count
"/ml:v1/GoogleCloudMlV1__TrainingInput/parameterServerType": parameter_server_type
"/ml:v1/GoogleCloudMlV1__TrainingInput/pythonModule": python_module
"/ml:v1/GoogleCloudMlV1__TrainingInput/pythonVersion": python_version
"/ml:v1/GoogleCloudMlV1__TrainingInput/region": region
"/ml:v1/GoogleCloudMlV1__TrainingInput/runtimeVersion": runtime_version
"/ml:v1/GoogleCloudMlV1__TrainingInput/scaleTier": scale_tier
@ -54093,6 +54159,85 @@
"/plusDomains:v1/plusDomains.people.listByCircle/pageToken": page_token
"/plusDomains:v1/quotaUser": quota_user
"/plusDomains:v1/userIp": user_ip
"/poly:v1/Asset": asset
"/poly:v1/Asset/authorName": author_name
"/poly:v1/Asset/createTime": create_time
"/poly:v1/Asset/description": description
"/poly:v1/Asset/displayName": display_name
"/poly:v1/Asset/formats": formats
"/poly:v1/Asset/formats/format": format
"/poly:v1/Asset/isCurated": is_curated
"/poly:v1/Asset/license": license
"/poly:v1/Asset/name": name
"/poly:v1/Asset/presentationParams": presentation_params
"/poly:v1/Asset/thumbnail": thumbnail
"/poly:v1/Asset/updateTime": update_time
"/poly:v1/Asset/visibility": visibility
"/poly:v1/File": file
"/poly:v1/File/contentType": content_type
"/poly:v1/File/relativePath": relative_path
"/poly:v1/File/url": url
"/poly:v1/Format": format
"/poly:v1/Format/formatComplexity": format_complexity
"/poly:v1/Format/formatType": format_type
"/poly:v1/Format/resources": resources
"/poly:v1/Format/resources/resource": resource
"/poly:v1/Format/root": root
"/poly:v1/FormatComplexity": format_complexity
"/poly:v1/FormatComplexity/lodHint": lod_hint
"/poly:v1/FormatComplexity/triangleCount": triangle_count
"/poly:v1/ListAssetsResponse": list_assets_response
"/poly:v1/ListAssetsResponse/assets": assets
"/poly:v1/ListAssetsResponse/assets/asset": asset
"/poly:v1/ListAssetsResponse/nextPageToken": next_page_token
"/poly:v1/ListAssetsResponse/totalSize": total_size
"/poly:v1/ListLikedAssetsResponse": list_liked_assets_response
"/poly:v1/ListLikedAssetsResponse/assets": assets
"/poly:v1/ListLikedAssetsResponse/assets/asset": asset
"/poly:v1/ListLikedAssetsResponse/nextPageToken": next_page_token
"/poly:v1/ListLikedAssetsResponse/totalSize": total_size
"/poly:v1/ListUserAssetsResponse": list_user_assets_response
"/poly:v1/ListUserAssetsResponse/nextPageToken": next_page_token
"/poly:v1/ListUserAssetsResponse/totalSize": total_size
"/poly:v1/ListUserAssetsResponse/userAssets": user_assets
"/poly:v1/ListUserAssetsResponse/userAssets/user_asset": user_asset
"/poly:v1/PresentationParams": presentation_params
"/poly:v1/PresentationParams/colorSpace": color_space
"/poly:v1/PresentationParams/orientingRotation": orienting_rotation
"/poly:v1/Quaternion": quaternion
"/poly:v1/Quaternion/w": w
"/poly:v1/Quaternion/x": x
"/poly:v1/Quaternion/y": y
"/poly:v1/Quaternion/z": z
"/poly:v1/UserAsset": user_asset
"/poly:v1/UserAsset/asset": asset
"/poly:v1/fields": fields
"/poly:v1/key": key
"/poly:v1/poly.assets.get": get_asset
"/poly:v1/poly.assets.get/name": name
"/poly:v1/poly.assets.list": list_assets
"/poly:v1/poly.assets.list/category": category
"/poly:v1/poly.assets.list/curated": curated
"/poly:v1/poly.assets.list/format": format
"/poly:v1/poly.assets.list/keywords": keywords
"/poly:v1/poly.assets.list/maxComplexity": max_complexity
"/poly:v1/poly.assets.list/orderBy": order_by
"/poly:v1/poly.assets.list/pageSize": page_size
"/poly:v1/poly.assets.list/pageToken": page_token
"/poly:v1/poly.users.assets.list": list_user_assets
"/poly:v1/poly.users.assets.list/format": format
"/poly:v1/poly.users.assets.list/name": name
"/poly:v1/poly.users.assets.list/orderBy": order_by
"/poly:v1/poly.users.assets.list/pageSize": page_size
"/poly:v1/poly.users.assets.list/pageToken": page_token
"/poly:v1/poly.users.assets.list/visibility": visibility
"/poly:v1/poly.users.likedassets.list": list_user_likedassets
"/poly:v1/poly.users.likedassets.list/format": format
"/poly:v1/poly.users.likedassets.list/name": name
"/poly:v1/poly.users.likedassets.list/orderBy": order_by
"/poly:v1/poly.users.likedassets.list/pageSize": page_size
"/poly:v1/poly.users.likedassets.list/pageToken": page_token
"/poly:v1/quotaUser": quota_user
"/prediction:v1.2/Input": input
"/prediction:v1.2/Input/input": input
"/prediction:v1.2/Input/input/csvInstance": csv_instance

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20171108'
REVISION = '20171123'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -446,8 +446,6 @@ module Google
# A Devices resource represents a mobile device managed by the EMM and belonging
# to a specific enterprise user.
# This collection cannot be modified via the API. It is automatically populated
# as devices are set up to be managed.
class Device
include Google::Apis::Core::Hashable
@ -479,6 +477,11 @@ module Google
# @return [String]
attr_accessor :management_type
# The device policy for a given managed device.
# Corresponds to the JSON property `policy`
# @return [Google::Apis::AndroidenterpriseV1::Policy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
@ -488,6 +491,7 @@ module Google
@android_id = args[:android_id] if args.key?(:android_id)
@kind = args[:kind] if args.key?(:kind)
@management_type = args[:management_type] if args.key?(:management_type)
@policy = args[:policy] if args.key?(:policy)
end
end
@ -1570,6 +1574,39 @@ module Google
end
end
# The device policy for a given managed device.
class Policy
include Google::Apis::Core::Hashable
# The availability granted to the device for the specified products. "all" gives
# the device access to all products, regardless of approval status. "allApproved"
# entitles the device to access all products that are approved for the
# enterprise. "allApproved" and "all" do not enable automatic visibility of "
# alpha" or "beta" tracks. "whitelist" grants the device access the products
# specified in productPolicy[]. Only products that are approved or products that
# were previously approved (products with revoked approval) by the enterprise
# can be whitelisted. If no value is provided, the availability set at the user
# level is applied by default.
# Corresponds to the JSON property `productAvailabilityPolicy`
# @return [String]
attr_accessor :product_availability_policy
# The list of product policies.
# Corresponds to the JSON property `productPolicy`
# @return [Array<Google::Apis::AndroidenterpriseV1::ProductPolicy>]
attr_accessor :product_policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@product_availability_policy = args[:product_availability_policy] if args.key?(:product_availability_policy)
@product_policy = args[:product_policy] if args.key?(:product_policy)
end
end
# A Products resource represents an app in the Google Play store that is
# available to at least some users in the enterprise. (Some apps are restricted
# to a single enterprise, and no information about them is made available
@ -1801,6 +1838,44 @@ module Google
end
end
# The policy for a product.
class ProductPolicy
include Google::Apis::Core::Hashable
# The ID of the product. For example, "app:com.google.android.gm".
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Grants visibility to the specified track(s) of the product to the device. The
# track available to the device is based on the following order of preference:
# alpha, beta, production. For example, if an app has a prod version, a beta
# version and an alpha version and the enterprise has been granted visibility to
# both the alpha and beta tracks, if tracks is `"beta", "production"` then the
# beta version of the app is made available to the device. If there are no app
# versions in the specified track adding the "alpha" and "beta" values to the
# list of tracks will have no effect. Note that the enterprise requires access
# to alpha and/or beta tracks before users can be granted visibility to apps in
# those tracks.
# The allowed sets are: `` (considered equivalent to `"production"`) `"
# production"` `"beta", "production"` `"alpha", "beta", "production"` The order
# of elements is not relevant. Any other set of tracks will be rejected with an
# error.
# Corresponds to the JSON property `tracks`
# @return [Array<String>]
attr_accessor :tracks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@product_id = args[:product_id] if args.key?(:product_id)
@tracks = args[:tracks] if args.key?(:tracks)
end
end
# A set of products.
class ProductSet
include Google::Apis::Core::Hashable

View File

@ -274,6 +274,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Product
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -304,6 +310,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ProductPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductSet
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -547,6 +559,8 @@ module Google
property :android_id, as: 'androidId'
property :kind, as: 'kind'
property :management_type, as: 'managementType'
property :policy, as: 'policy', class: Google::Apis::AndroidenterpriseV1::Policy, decorator: Google::Apis::AndroidenterpriseV1::Policy::Representation
end
end
@ -834,6 +848,15 @@ module Google
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :product_availability_policy, as: 'productAvailabilityPolicy'
collection :product_policy, as: 'productPolicy', class: Google::Apis::AndroidenterpriseV1::ProductPolicy, decorator: Google::Apis::AndroidenterpriseV1::ProductPolicy::Representation
end
end
class Product
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -890,6 +913,14 @@ module Google
end
end
class ProductPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :product_id, as: 'productId'
collection :tracks, as: 'tracks'
end
end
class ProductSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -177,6 +177,56 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the device policy. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] device_id
# The ID of the device.
# @param [Google::Apis::AndroidenterpriseV1::Device] device_object
# @param [String] update_mask
# Mask that identifies which fields to update. If not set, all modifiable fields
# will be modified.
# When set in a query parameter, this field should be specified as updateMask=<
# field1>,<field2>,...
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Device]
#
# @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_device(enterprise_id, user_id, device_id, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Device
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets whether a device's access to Google services is enabled or disabled. The
# device state takes effect only if enforcing EMM policies on Android devices is
# enabled in the Google Admin Console. Otherwise, the device state is ignored
@ -225,6 +275,56 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the device policy
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] device_id
# The ID of the device.
# @param [Google::Apis::AndroidenterpriseV1::Device] device_object
# @param [String] update_mask
# Mask that identifies which fields to update. If not set, all modifiable fields
# will be modified.
# When set in a query parameter, this field should be specified as updateMask=<
# field1>,<field2>,...
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Device]
#
# @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_device(enterprise_id, user_id, device_id, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Device
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Acknowledges notifications that were received from Enterprises.
# PullNotificationSet to prevent subsequent calls from returning the same
# notifications.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20171030'
REVISION = '20171127'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -22,6 +22,32 @@ module Google
module Apis
module AndroidmanagementV1
# Configuration for an always-on VPN connection.
class AlwaysOnVpnPackage
include Google::Apis::Core::Hashable
# Disallows networking when the VPN is not connected.
# Corresponds to the JSON property `lockdownEnabled`
# @return [Boolean]
attr_accessor :lockdown_enabled
alias_method :lockdown_enabled?, :lockdown_enabled
# The package name of the VPN app.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lockdown_enabled = args[:lockdown_enabled] if args.key?(:lockdown_enabled)
@package_name = args[:package_name] if args.key?(:package_name)
end
end
# A compliance rule condition which is satisfied if the Android Framework API
# level on the device does not meet a minimum requirement. There can only be one
# rule with this type of condition per policy.
@ -1307,6 +1333,25 @@ module Google
end
end
# A list of package names.
class PackageNameList
include Google::Apis::Core::Hashable
# A list of package names.
# Corresponds to the JSON property `packageNames`
# @return [Array<String>]
attr_accessor :package_names
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@package_names = args[:package_names] if args.key?(:package_names)
end
end
# Requirements for the password used to unlock a device.
class PasswordRequirements
include Google::Apis::Core::Hashable
@ -1466,6 +1511,12 @@ module Google
class Policy
include Google::Apis::Core::Hashable
# Account types that cannot be managed by the user. <i>Requires the beta version
# of Android Cloud Policy.</i>
# Corresponds to the JSON property `accountTypesWithManagementDisabled`
# @return [Array<String>]
attr_accessor :account_types_with_management_disabled
# Whether adding new users and profiles is disabled.
# Corresponds to the JSON property `addUserDisabled`
# @return [Boolean]
@ -1478,6 +1529,11 @@ module Google
attr_accessor :adjust_volume_disabled
alias_method :adjust_volume_disabled?, :adjust_volume_disabled
# Configuration for an always-on VPN connection.
# Corresponds to the JSON property `alwaysOnVpnPackage`
# @return [Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage]
attr_accessor :always_on_vpn_package
# Policy applied to apps.
# Corresponds to the JSON property `applications`
# @return [Array<Google::Apis::AndroidmanagementV1::ApplicationPolicy>]
@ -1499,12 +1555,41 @@ module Google
attr_accessor :block_applications_enabled
alias_method :block_applications_enabled?, :block_applications_enabled
# Whether configuring bluetooth is disabled. <i>Requires the beta version of
# Android Cloud Policy.</i>
# Corresponds to the JSON property `bluetoothConfigDisabled`
# @return [Boolean]
attr_accessor :bluetooth_config_disabled
alias_method :bluetooth_config_disabled?, :bluetooth_config_disabled
# Whether bluetooth contact sharing is disabled. <i>Requires the beta version of
# Android Cloud Policy.</i>
# Corresponds to the JSON property `bluetoothContactSharingDisabled`
# @return [Boolean]
attr_accessor :bluetooth_contact_sharing_disabled
alias_method :bluetooth_contact_sharing_disabled?, :bluetooth_contact_sharing_disabled
# Whether bluetooth is disabled. Prefer this setting over
# bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by
# the user. <i>Requires the beta version of Android Cloud Policy.</i>
# Corresponds to the JSON property `bluetoothDisabled`
# @return [Boolean]
attr_accessor :bluetooth_disabled
alias_method :bluetooth_disabled?, :bluetooth_disabled
# Whether all cameras on the device are disabled.
# Corresponds to the JSON property `cameraDisabled`
# @return [Boolean]
attr_accessor :camera_disabled
alias_method :camera_disabled?, :camera_disabled
# Whether configuring cell broadcast is disabled. <i>Requires the beta version
# of Android Cloud Policy.</i>
# Corresponds to the JSON property `cellBroadcastsConfigDisabled`
# @return [Boolean]
attr_accessor :cell_broadcasts_config_disabled
alias_method :cell_broadcasts_config_disabled?, :cell_broadcasts_config_disabled
# Rules declaring which mitigating actions to take when a device is not
# compliant with its policy. When the conditions for multiple rules are
# satisfied, all of the mitigating actions for the rules are taken. There is a
@ -1513,6 +1598,27 @@ module Google
# @return [Array<Google::Apis::AndroidmanagementV1::ComplianceRule>]
attr_accessor :compliance_rules
# Whether creating windows besides app windows is disabled. <i>Requires the beta
# version of Android Cloud Policy.</i>
# Corresponds to the JSON property `createWindowsDisabled`
# @return [Boolean]
attr_accessor :create_windows_disabled
alias_method :create_windows_disabled?, :create_windows_disabled
# Whether configuring user credentials is disabled. <i>Requires the beta version
# of Android Cloud Policy.</i>
# Corresponds to the JSON property `credentialsConfigDisabled`
# @return [Boolean]
attr_accessor :credentials_config_disabled
alias_method :credentials_config_disabled?, :credentials_config_disabled
# Whether roaming data services are disabled. <i>Requires the beta version of
# Android Cloud Policy.</i>
# Corresponds to the JSON property `dataRoamingDisabled`
# @return [Boolean]
attr_accessor :data_roaming_disabled
alias_method :data_roaming_disabled?, :data_roaming_disabled
# Whether the user is allowed to enable debugging features.
# Corresponds to the JSON property `debuggingFeaturesAllowed`
# @return [Boolean]
@ -1524,6 +1630,13 @@ module Google
# @return [String]
attr_accessor :default_permission_policy
# Whether application verification is forced to be enabled. <i>Requires the beta
# version of Android Cloud Policy.</i>
# Corresponds to the JSON property `ensureVerifyAppsEnabled`
# @return [Boolean]
attr_accessor :ensure_verify_apps_enabled
alias_method :ensure_verify_apps_enabled?, :ensure_verify_apps_enabled
# Whether factory resetting from settings is disabled.
# Corresponds to the JSON property `factoryResetDisabled`
# @return [Boolean]
@ -1545,6 +1658,13 @@ module Google
attr_accessor :fun_disabled
alias_method :fun_disabled?, :fun_disabled
# Whether user installation of apps is disabled. <i>Requires the beta version of
# Android Cloud Policy.</i>
# Corresponds to the JSON property `installAppsDisabled`
# @return [Boolean]
attr_accessor :install_apps_disabled
alias_method :install_apps_disabled?, :install_apps_disabled
# Whether the user is allowed to enable the "Unknown Sources" setting, which
# allows installation of apps from unknown sources.
# Corresponds to the JSON property `installUnknownSourcesAllowed`
@ -1558,18 +1678,44 @@ module Google
attr_accessor :keyguard_disabled
alias_method :keyguard_disabled?, :keyguard_disabled
# Disabled keyguard customizations, such as widgets. <i>Requires the beta
# version of Android Cloud Policy.</i>
# Corresponds to the JSON property `keyguardDisabledFeatures`
# @return [Array<String>]
attr_accessor :keyguard_disabled_features
# Provides user facing message with locale info. The maximum message length is
# 4096 characters.
# Corresponds to the JSON property `longSupportMessage`
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
attr_accessor :long_support_message
# Maximum time in milliseconds for user activity until the device will lock. A
# value of 0 means there is no restriction.
# Corresponds to the JSON property `maximumTimeToLock`
# @return [Fixnum]
attr_accessor :maximum_time_to_lock
# Whether configuring mobile networks is disabled. <i>Requires the beta version
# of Android Cloud Policy.</i>
# Corresponds to the JSON property `mobileNetworksConfigDisabled`
# @return [Boolean]
attr_accessor :mobile_networks_config_disabled
alias_method :mobile_networks_config_disabled?, :mobile_networks_config_disabled
# Whether adding or removing accounts is disabled.
# Corresponds to the JSON property `modifyAccountsDisabled`
# @return [Boolean]
attr_accessor :modify_accounts_disabled
alias_method :modify_accounts_disabled?, :modify_accounts_disabled
# Whether the user mounting physical external media is disabled. <i>Requires the
# beta version of Android Cloud Policy.</i>
# Corresponds to the JSON property `mountPhysicalMediaDisabled`
# @return [Boolean]
attr_accessor :mount_physical_media_disabled
alias_method :mount_physical_media_disabled?, :mount_physical_media_disabled
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
# policyId`
# Corresponds to the JSON property `name`
@ -1588,22 +1734,54 @@ module Google
attr_accessor :network_escape_hatch_enabled
alias_method :network_escape_hatch_enabled?, :network_escape_hatch_enabled
# Whether resetting network settings is disabled. <i>Requires the beta version
# of Android Cloud Policy.</i>
# Corresponds to the JSON property `networkResetDisabled`
# @return [Boolean]
attr_accessor :network_reset_disabled
alias_method :network_reset_disabled?, :network_reset_disabled
# Network configuration for the device. See configure networks for more
# information.
# Corresponds to the JSON property `openNetworkConfiguration`
# @return [Hash<String,Object>]
attr_accessor :open_network_configuration
# Whether using NFC to beam out data from apps is disabled. <i>Requires the beta
# version of Android Cloud Policy.</i>
# Corresponds to the JSON property `outgoingBeamDisabled`
# @return [Boolean]
attr_accessor :outgoing_beam_disabled
alias_method :outgoing_beam_disabled?, :outgoing_beam_disabled
# Whether outgoing calls are disabled. <i>Requires the beta version of Android
# Cloud Policy.</i>
# Corresponds to the JSON property `outgoingCallsDisabled`
# @return [Boolean]
attr_accessor :outgoing_calls_disabled
alias_method :outgoing_calls_disabled?, :outgoing_calls_disabled
# Requirements for the password used to unlock a device.
# Corresponds to the JSON property `passwordRequirements`
# @return [Google::Apis::AndroidmanagementV1::PasswordRequirements]
attr_accessor :password_requirements
# A list of package names.
# Corresponds to the JSON property `permittedInputMethods`
# @return [Google::Apis::AndroidmanagementV1::PackageNameList]
attr_accessor :permitted_input_methods
# Default intent handler activities.
# Corresponds to the JSON property `persistentPreferredActivities`
# @return [Array<Google::Apis::AndroidmanagementV1::PersistentPreferredActivity>]
attr_accessor :persistent_preferred_activities
# Configuration info for an HTTP proxy. For a direct proxy, set the host, port,
# and excluded_hosts fields. For a PAC script proxy, set the pac_uri field.
# Corresponds to the JSON property `recommendedGlobalProxy`
# @return [Google::Apis::AndroidmanagementV1::ProxyInfo]
attr_accessor :recommended_global_proxy
# Whether removing other users is disabled.
# Corresponds to the JSON property `removeUserDisabled`
# @return [Boolean]
@ -1622,6 +1800,33 @@ module Google
attr_accessor :screen_capture_disabled
alias_method :screen_capture_disabled?, :screen_capture_disabled
# Whether changing the user icon is disabled. <i>Requires the beta version of
# Android Cloud Policy.</i>
# Corresponds to the JSON property `setUserIconDisabled`
# @return [Boolean]
attr_accessor :set_user_icon_disabled
alias_method :set_user_icon_disabled?, :set_user_icon_disabled
# Whether changing the wallpaper is disabled. <i>Requires the beta version of
# Android Cloud Policy.</i>
# Corresponds to the JSON property `setWallpaperDisabled`
# @return [Boolean]
attr_accessor :set_wallpaper_disabled
alias_method :set_wallpaper_disabled?, :set_wallpaper_disabled
# Provides user facing message with locale info. The maximum message length is
# 4096 characters.
# Corresponds to the JSON property `shortSupportMessage`
# @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
attr_accessor :short_support_message
# Whether sending or receiving SMS messages is disabled. <i>Requires the beta
# version of Android Cloud Policy.</i>
# Corresponds to the JSON property `smsDisabled`
# @return [Boolean]
attr_accessor :sms_disabled
alias_method :sms_disabled?, :sms_disabled
# Whether the status bar is disabled. This disables notifications, quick
# settings and other screen overlays that allow escape from full-screen mode.
# Corresponds to the JSON property `statusBarDisabled`
@ -1646,18 +1851,46 @@ module Google
# @return [Google::Apis::AndroidmanagementV1::SystemUpdate]
attr_accessor :system_update
# Whether configuring tethering and portable hotspots is disabled. <i>Requires
# the beta version of Android Cloud Policy.</i>
# Corresponds to the JSON property `tetheringConfigDisabled`
# @return [Boolean]
attr_accessor :tethering_config_disabled
alias_method :tethering_config_disabled?, :tethering_config_disabled
# Whether user uninstallation of applications is disabled. <i>Requires the beta
# version of Android Cloud Policy.</i>
# Corresponds to the JSON property `uninstallAppsDisabled`
# @return [Boolean]
attr_accessor :uninstall_apps_disabled
alias_method :uninstall_apps_disabled?, :uninstall_apps_disabled
# Whether the microphone is muted and adjusting microphone volume is disabled.
# Corresponds to the JSON property `unmuteMicrophoneDisabled`
# @return [Boolean]
attr_accessor :unmute_microphone_disabled
alias_method :unmute_microphone_disabled?, :unmute_microphone_disabled
# Whether transferring files over USB is disabled. <i>Requires the beta version
# of Android Cloud Policy.</i>
# Corresponds to the JSON property `usbFileTransferDisabled`
# @return [Boolean]
attr_accessor :usb_file_transfer_disabled
alias_method :usb_file_transfer_disabled?, :usb_file_transfer_disabled
# The version of the policy. This is a read-only field. The version is
# incremented each time the policy is updated.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Whether configuring VPN is disabled. <i>Requires the beta version of Android
# Cloud Policy.</i>
# Corresponds to the JSON property `vpnConfigDisabled`
# @return [Boolean]
attr_accessor :vpn_config_disabled
alias_method :vpn_config_disabled?, :vpn_config_disabled
# Whether configuring WiFi access points is disabled.
# Corresponds to the JSON property `wifiConfigDisabled`
# @return [Boolean]
@ -1677,36 +1910,64 @@ module Google
# Update properties of this object
def update!(**args)
@account_types_with_management_disabled = args[:account_types_with_management_disabled] if args.key?(:account_types_with_management_disabled)
@add_user_disabled = args[:add_user_disabled] if args.key?(:add_user_disabled)
@adjust_volume_disabled = args[:adjust_volume_disabled] if args.key?(:adjust_volume_disabled)
@always_on_vpn_package = args[:always_on_vpn_package] if args.key?(:always_on_vpn_package)
@applications = args[:applications] if args.key?(:applications)
@auto_time_required = args[:auto_time_required] if args.key?(:auto_time_required)
@block_applications_enabled = args[:block_applications_enabled] if args.key?(:block_applications_enabled)
@bluetooth_config_disabled = args[:bluetooth_config_disabled] if args.key?(:bluetooth_config_disabled)
@bluetooth_contact_sharing_disabled = args[:bluetooth_contact_sharing_disabled] if args.key?(:bluetooth_contact_sharing_disabled)
@bluetooth_disabled = args[:bluetooth_disabled] if args.key?(:bluetooth_disabled)
@camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled)
@cell_broadcasts_config_disabled = args[:cell_broadcasts_config_disabled] if args.key?(:cell_broadcasts_config_disabled)
@compliance_rules = args[:compliance_rules] if args.key?(:compliance_rules)
@create_windows_disabled = args[:create_windows_disabled] if args.key?(:create_windows_disabled)
@credentials_config_disabled = args[:credentials_config_disabled] if args.key?(:credentials_config_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)
@default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
@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)
@frp_admin_emails = args[:frp_admin_emails] if args.key?(:frp_admin_emails)
@fun_disabled = args[:fun_disabled] if args.key?(:fun_disabled)
@install_apps_disabled = args[:install_apps_disabled] if args.key?(:install_apps_disabled)
@install_unknown_sources_allowed = args[:install_unknown_sources_allowed] if args.key?(:install_unknown_sources_allowed)
@keyguard_disabled = args[:keyguard_disabled] if args.key?(:keyguard_disabled)
@keyguard_disabled_features = args[:keyguard_disabled_features] if args.key?(:keyguard_disabled_features)
@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)
@mobile_networks_config_disabled = args[:mobile_networks_config_disabled] if args.key?(:mobile_networks_config_disabled)
@modify_accounts_disabled = args[:modify_accounts_disabled] if args.key?(:modify_accounts_disabled)
@mount_physical_media_disabled = args[:mount_physical_media_disabled] if args.key?(:mount_physical_media_disabled)
@name = args[:name] if args.key?(:name)
@network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled)
@network_reset_disabled = args[:network_reset_disabled] if args.key?(:network_reset_disabled)
@open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration)
@outgoing_beam_disabled = args[:outgoing_beam_disabled] if args.key?(:outgoing_beam_disabled)
@outgoing_calls_disabled = args[:outgoing_calls_disabled] if args.key?(:outgoing_calls_disabled)
@password_requirements = args[:password_requirements] if args.key?(:password_requirements)
@permitted_input_methods = args[:permitted_input_methods] if args.key?(:permitted_input_methods)
@persistent_preferred_activities = args[:persistent_preferred_activities] if args.key?(:persistent_preferred_activities)
@recommended_global_proxy = args[:recommended_global_proxy] if args.key?(:recommended_global_proxy)
@remove_user_disabled = args[:remove_user_disabled] if args.key?(:remove_user_disabled)
@safe_boot_disabled = args[:safe_boot_disabled] if args.key?(:safe_boot_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_wallpaper_disabled = args[:set_wallpaper_disabled] if args.key?(:set_wallpaper_disabled)
@short_support_message = args[:short_support_message] if args.key?(:short_support_message)
@sms_disabled = args[:sms_disabled] if args.key?(:sms_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)
@stay_on_plugged_modes = args[:stay_on_plugged_modes] if args.key?(:stay_on_plugged_modes)
@system_update = args[:system_update] if args.key?(:system_update)
@tethering_config_disabled = args[:tethering_config_disabled] if args.key?(:tethering_config_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)
@usb_file_transfer_disabled = args[:usb_file_transfer_disabled] if args.key?(:usb_file_transfer_disabled)
@version = args[:version] if args.key?(:version)
@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_configs_lockdown_enabled = args[:wifi_configs_lockdown_enabled] if args.key?(:wifi_configs_lockdown_enabled)
end
@ -1743,6 +2004,45 @@ module Google
end
end
# Configuration info for an HTTP proxy. For a direct proxy, set the host, port,
# and excluded_hosts fields. For a PAC script proxy, set the pac_uri field.
class ProxyInfo
include Google::Apis::Core::Hashable
# For a direct proxy, the hosts for which the proxy is bypassed. The host names
# may contain wildcards such as *.example.com.
# Corresponds to the JSON property `excludedHosts`
# @return [Array<String>]
attr_accessor :excluded_hosts
# The host of the direct proxy.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The URI of the PAC script used to configure the proxy.
# Corresponds to the JSON property `pacUri`
# @return [String]
attr_accessor :pac_uri
# The port of the direct proxy.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@excluded_hosts = args[:excluded_hosts] if args.key?(:excluded_hosts)
@host = args[:host] if args.key?(:host)
@pac_uri = args[:pac_uri] if args.key?(:pac_uri)
@port = args[:port] if args.key?(:port)
end
end
# An enterprise signup URL.
class SignupUrl
include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis
module AndroidmanagementV1
class AlwaysOnVpnPackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApiLevelCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -172,6 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PackageNameList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PasswordRequirements
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ProxyInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SignupUrl
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -244,6 +262,14 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AlwaysOnVpnPackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lockdown_enabled, as: 'lockdownEnabled'
property :package_name, as: 'packageName'
end
end
class ApiLevelCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -545,6 +571,13 @@ module Google
end
end
class PackageNameList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :package_names, as: 'packageNames'
end
end
class PasswordRequirements
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -582,42 +615,75 @@ module Google
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :account_types_with_management_disabled, as: 'accountTypesWithManagementDisabled'
property :add_user_disabled, as: 'addUserDisabled'
property :adjust_volume_disabled, as: 'adjustVolumeDisabled'
property :always_on_vpn_package, as: 'alwaysOnVpnPackage', class: Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage, decorator: Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage::Representation
collection :applications, as: 'applications', class: Google::Apis::AndroidmanagementV1::ApplicationPolicy, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicy::Representation
property :auto_time_required, as: 'autoTimeRequired'
property :block_applications_enabled, as: 'blockApplicationsEnabled'
property :bluetooth_config_disabled, as: 'bluetoothConfigDisabled'
property :bluetooth_contact_sharing_disabled, as: 'bluetoothContactSharingDisabled'
property :bluetooth_disabled, as: 'bluetoothDisabled'
property :camera_disabled, as: 'cameraDisabled'
property :cell_broadcasts_config_disabled, as: 'cellBroadcastsConfigDisabled'
collection :compliance_rules, as: 'complianceRules', class: Google::Apis::AndroidmanagementV1::ComplianceRule, decorator: Google::Apis::AndroidmanagementV1::ComplianceRule::Representation
property :create_windows_disabled, as: 'createWindowsDisabled'
property :credentials_config_disabled, as: 'credentialsConfigDisabled'
property :data_roaming_disabled, as: 'dataRoamingDisabled'
property :debugging_features_allowed, as: 'debuggingFeaturesAllowed'
property :default_permission_policy, as: 'defaultPermissionPolicy'
property :ensure_verify_apps_enabled, as: 'ensureVerifyAppsEnabled'
property :factory_reset_disabled, as: 'factoryResetDisabled'
collection :frp_admin_emails, as: 'frpAdminEmails'
property :fun_disabled, as: 'funDisabled'
property :install_apps_disabled, as: 'installAppsDisabled'
property :install_unknown_sources_allowed, as: 'installUnknownSourcesAllowed'
property :keyguard_disabled, as: 'keyguardDisabled'
collection :keyguard_disabled_features, as: 'keyguardDisabledFeatures'
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 :mobile_networks_config_disabled, as: 'mobileNetworksConfigDisabled'
property :modify_accounts_disabled, as: 'modifyAccountsDisabled'
property :mount_physical_media_disabled, as: 'mountPhysicalMediaDisabled'
property :name, as: 'name'
property :network_escape_hatch_enabled, as: 'networkEscapeHatchEnabled'
property :network_reset_disabled, as: 'networkResetDisabled'
hash :open_network_configuration, as: 'openNetworkConfiguration'
property :outgoing_beam_disabled, as: 'outgoingBeamDisabled'
property :outgoing_calls_disabled, as: 'outgoingCallsDisabled'
property :password_requirements, as: 'passwordRequirements', class: Google::Apis::AndroidmanagementV1::PasswordRequirements, decorator: Google::Apis::AndroidmanagementV1::PasswordRequirements::Representation
property :permitted_input_methods, as: 'permittedInputMethods', class: Google::Apis::AndroidmanagementV1::PackageNameList, decorator: Google::Apis::AndroidmanagementV1::PackageNameList::Representation
collection :persistent_preferred_activities, as: 'persistentPreferredActivities', class: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity, decorator: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity::Representation
property :recommended_global_proxy, as: 'recommendedGlobalProxy', class: Google::Apis::AndroidmanagementV1::ProxyInfo, decorator: Google::Apis::AndroidmanagementV1::ProxyInfo::Representation
property :remove_user_disabled, as: 'removeUserDisabled'
property :safe_boot_disabled, as: 'safeBootDisabled'
property :screen_capture_disabled, as: 'screenCaptureDisabled'
property :set_user_icon_disabled, as: 'setUserIconDisabled'
property :set_wallpaper_disabled, as: 'setWallpaperDisabled'
property :short_support_message, as: 'shortSupportMessage', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
property :sms_disabled, as: 'smsDisabled'
property :status_bar_disabled, as: 'statusBarDisabled'
property :status_reporting_settings, as: 'statusReportingSettings', class: Google::Apis::AndroidmanagementV1::StatusReportingSettings, decorator: Google::Apis::AndroidmanagementV1::StatusReportingSettings::Representation
collection :stay_on_plugged_modes, as: 'stayOnPluggedModes'
property :system_update, as: 'systemUpdate', class: Google::Apis::AndroidmanagementV1::SystemUpdate, decorator: Google::Apis::AndroidmanagementV1::SystemUpdate::Representation
property :tethering_config_disabled, as: 'tetheringConfigDisabled'
property :uninstall_apps_disabled, as: 'uninstallAppsDisabled'
property :unmute_microphone_disabled, as: 'unmuteMicrophoneDisabled'
property :usb_file_transfer_disabled, as: 'usbFileTransferDisabled'
property :version, :numeric_string => true, as: 'version'
property :vpn_config_disabled, as: 'vpnConfigDisabled'
property :wifi_config_disabled, as: 'wifiConfigDisabled'
property :wifi_configs_lockdown_enabled, as: 'wifiConfigsLockdownEnabled'
end
@ -632,6 +698,16 @@ module Google
end
end
class ProxyInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :excluded_hosts, as: 'excludedHosts'
property :host, as: 'host'
property :pac_uri, as: 'pacUri'
property :port, as: 'port'
end
end
class SignupUrl
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20171113'
REVISION = '20171128'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -728,6 +728,8 @@ module Google
# Output only. Unique ID of the user on whose behalf transfer is done.
# Applicable only to data sources that do not support service accounts.
# When set to 0, the data source service account credentials are used.
# May be negative. Note, that this identifier is not stable.
# It may change over time even for the same user.
# Corresponds to the JSON property `userId`
# @return [Fixnum]
attr_accessor :user_id
@ -786,7 +788,7 @@ module Google
end
# Represents a data transfer run.
# Next id: 23
# Next id: 24
class TransferRun
include Google::Apis::Core::Hashable
@ -902,7 +904,8 @@ module Google
# Output only. Unique ID of the user on whose behalf transfer is done.
# Applicable only to data sources that do not support service accounts.
# When set to 0, the data source service account credentials are used.
# May be negative.
# May be negative. Note, that this identifier is not stable.
# It may change over time even for the same user.
# Corresponds to the JSON property `userId`
# @return [Fixnum]
attr_accessor :user_id

View File

@ -347,10 +347,8 @@ module Google
# @param [String] parent
# The BigQuery project id where the transfer configuration should be created.
# Must be in the format /projects/`project_id`/locations/`location_id`
# or
# /projects/`project_id`/locations/-
# In case when '-' is specified as location_id, location is infered from
# the destination dataset region.
# If specified location and location of the destination bigquery dataset
# do not match - the request will fail.
# @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object
# @param [String] authorization_code
# Optional OAuth2 authorization code to use with this transfer configuration.
@ -762,10 +760,8 @@ module Google
# @param [String] parent
# The BigQuery project id where the transfer configuration should be created.
# Must be in the format /projects/`project_id`/locations/`location_id`
# or
# /projects/`project_id`/locations/-
# In case when '-' is specified as location_id, location is infered from
# the destination dataset region.
# If specified location and location of the destination bigquery dataset
# do not match - the request will fail.
# @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object
# @param [String] authorization_code
# Optional OAuth2 authorization code to use with this transfer configuration.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/kms/
module CloudkmsV1
VERSION = 'V1'
REVISION = '20171114'
REVISION = '20171128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -207,7 +207,7 @@ module Google
attr_accessor :create_time
# Labels with user-defined metadata. For more information, see
# [Labeling CryptoKeys](/kms/docs/labeling-keys).
# [Labeling Keys](/kms/docs/labeling-keys).
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20171114'
REVISION = '20171127'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -515,7 +515,8 @@ module Google
# @return [String]
attr_accessor :address
# The type of address to reserve. If unspecified, defaults to EXTERNAL.
# The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified,
# defaults to EXTERNAL.
# Corresponds to the JSON property `addressType`
# @return [String]
attr_accessor :address_type
@ -1152,13 +1153,13 @@ module Google
# projects/debian-cloud/global/images/family/debian-8
# Alternatively, use a specific version of a public operating system image:
# projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
# To create a disk with a private image that you created, specify the image name
# To create a disk with a custom image that you created, specify the image name
# in the following format:
# global/images/my-private-image
# You can also specify a private image by its image family, which returns the
# global/images/my-custom-image
# You can also specify a custom image by its image family, which returns the
# latest version of the image in that family. Replace the image name with family/
# family-name:
# global/images/family/my-private-family
# global/images/family/my-image-family
# If the source image is deleted later, this field will not be set.
# Corresponds to the JSON property `sourceImage`
# @return [String]
@ -3626,6 +3627,11 @@ module Google
# @return [String]
attr_accessor :last_detach_timestamp
# Integer license codes indicating which licenses are attached to this disk.
# Corresponds to the JSON property `licenseCodes`
# @return [Array<Fixnum>]
attr_accessor :license_codes
# Any applicable publicly visible licenses.
# Corresponds to the JSON property `licenses`
# @return [Array<String>]
@ -3669,13 +3675,13 @@ module Google
# projects/debian-cloud/global/images/family/debian-8
# Alternatively, use a specific version of a public operating system image:
# projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
# To create a disk with a private image that you created, specify the image name
# To create a disk with a custom image that you created, specify the image name
# in the following format:
# global/images/my-private-image
# You can also specify a private image by its image family, which returns the
# global/images/my-custom-image
# You can also specify a custom image by its image family, which returns the
# latest version of the image in that family. Replace the image name with family/
# family-name:
# global/images/family/my-private-family
# global/images/family/my-image-family
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -3761,6 +3767,7 @@ module Google
@labels = args[:labels] if args.key?(:labels)
@last_attach_timestamp = args[:last_attach_timestamp] if args.key?(:last_attach_timestamp)
@last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp)
@license_codes = args[:license_codes] if args.key?(:license_codes)
@licenses = args[:licenses] if args.key?(:licenses)
@name = args[:name] if args.key?(:name)
@options = args[:options] if args.key?(:options)
@ -6626,6 +6633,11 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# Integer license codes indicating which licenses are attached to this image.
# Corresponds to the JSON property `licenseCodes`
# @return [Array<Fixnum>]
attr_accessor :license_codes
# Any applicable license URI.
# Corresponds to the JSON property `licenses`
# @return [Array<String>]
@ -6727,6 +6739,7 @@ module Google
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@license_codes = args[:license_codes] if args.key?(:license_codes)
@licenses = args[:licenses] if args.key?(:licenses)
@name = args[:name] if args.key?(:name)
@raw_disk = args[:raw_disk] if args.key?(:raw_disk)
@ -9640,16 +9653,16 @@ module Google
end
end
# Protocol definitions for Mixer API to support Interconnect. Next available tag:
# 25
# Represents an Interconnects resource. The Interconnects resource is a
# dedicated connection between Google's network and your on-premises network.
# For more information, see the Dedicated overview page.
class Interconnect
include Google::Apis::Core::Hashable
# Administrative status of the interconnect. When this is set to ?true?, the
# Interconnect is functional and may carry traffic (assuming there are
# functional InterconnectAttachments and other requirements are satisfied). When
# set to ?false?, no packets will be carried over this Interconnect and no BGP
# routes will be exchanged over it. By default, it is set to ?true?.
# Administrative status of the interconnect. When this is set to true, the
# Interconnect is functional and can carry traffic. When set to false, no
# packets can be carried over the interconnect and no BGP routes are exchanged
# over it. By default, the status is set to true.
# Corresponds to the JSON property `adminEnabled`
# @return [Boolean]
attr_accessor :admin_enabled
@ -9707,7 +9720,8 @@ module Google
# @return [Array<String>]
attr_accessor :interconnect_attachments
#
# Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of "
# DEDICATED"
# Corresponds to the JSON property `interconnectType`
# @return [String]
attr_accessor :interconnect_type
@ -9718,7 +9732,9 @@ module Google
# @return [String]
attr_accessor :kind
#
# Type of link requested. This field indicates speed of each of the links in the
# bundle, not the entire bundle. Only 10G per link is allowed for a dedicated
# interconnect. Options: Ethernet_10G_LR
# Corresponds to the JSON property `linkType`
# @return [String]
attr_accessor :link_type
@ -9806,8 +9822,8 @@ module Google
end
end
# Protocol definitions for Mixer API to support InterconnectAttachment. Next
# available tag: 23
# Represents an InterconnectAttachment (VLAN attachment) resource. For more
# information, see Creating VLAN Attachments.
class InterconnectAttachment
include Google::Apis::Core::Hashable
@ -9828,8 +9844,7 @@ module Google
# @return [String]
attr_accessor :customer_router_ip_address
# An optional description of this resource. Provide this property when you
# create the resource.
# An optional description of this resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
@ -9874,8 +9889,8 @@ module Google
# @return [String]
attr_accessor :operational_status
# Private information for an interconnect attachment when this belongs to an
# interconnect of type IT_PRIVATE.
# Information for an interconnect attachment when this belongs to an
# interconnect of type DEDICATED.
# Corresponds to the JSON property `privateInterconnectInfo`
# @return [Google::Apis::ComputeBeta::InterconnectAttachmentPrivateInfo]
attr_accessor :private_interconnect_info
@ -10159,8 +10174,8 @@ module Google
end
end
# Private information for an interconnect attachment when this belongs to an
# interconnect of type IT_PRIVATE.
# Information for an interconnect attachment when this belongs to an
# interconnect of type DEDICATED.
class InterconnectAttachmentPrivateInfo
include Google::Apis::Core::Hashable
@ -10277,8 +10292,7 @@ module Google
class InterconnectCircuitInfo
include Google::Apis::Core::Hashable
# Customer-side demarc ID for this circuit. This will only be set if it was
# provided by the Customer to Google during circuit turn-up.
# Customer-side demarc ID for this circuit.
# Corresponds to the JSON property `customerDemarcId`
# @return [String]
attr_accessor :customer_demarc_id
@ -10424,7 +10438,9 @@ module Google
end
end
# Protocol definitions for Mixer API to support InterconnectLocation.
# Represents an InterconnectLocations resource. The InterconnectLocations
# resource describes the locations where you can connect to Google's networks.
# For more information, see Colocation Facilities.
class InterconnectLocation
include Google::Apis::Core::Hashable
@ -10434,22 +10450,20 @@ module Google
# @return [String]
attr_accessor :address
# Availability zone for this location. Within a city, maintenance will not be
# simultaneously scheduled in more than one availability zone. Example: "zone1"
# or "zone2".
# [Output Only] Availability zone for this location. Within a metropolitan area (
# metro), maintenance will not be simultaneously scheduled in more than one
# availability zone. Example: "zone1" or "zone2".
# Corresponds to the JSON property `availabilityZone`
# @return [String]
attr_accessor :availability_zone
# City designator used by the Interconnect UI to locate this
# InterconnectLocation within the Continent. For example: "Chicago, IL", "
# Amsterdam, Netherlands".
# [Output Only] Metropolitan area designator that indicates which city an
# interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
# Corresponds to the JSON property `city`
# @return [String]
attr_accessor :city
# Continent for this location. Used by the location picker in the Interconnect
# UI.
# [Output Only] Continent for this location.
# Corresponds to the JSON property `continent`
# @return [String]
attr_accessor :continent
@ -10694,17 +10708,18 @@ module Google
# @return [Array<String>]
attr_accessor :affected_circuits
# Short user-visible description of the purpose of the outage.
# A description about the purpose of the outage.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
#
# Scheduled end time for the outage (milliseconds since Unix epoch).
# Corresponds to the JSON property `endTime`
# @return [Fixnum]
attr_accessor :end_time
#
# Form this outage is expected to take. Note that the "IT_" versions of this
# enum have been deprecated in favor of the unprefixed values.
# Corresponds to the JSON property `issueType`
# @return [String]
attr_accessor :issue_type
@ -10714,17 +10729,19 @@ module Google
# @return [String]
attr_accessor :name
#
# The party that generated this notification. Note that "NSRC_GOOGLE" has been
# deprecated in favor of "GOOGLE"
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
# Scheduled start and end times for the outage (milliseconds since Unix epoch).
# Scheduled start time for the outage (milliseconds since Unix epoch).
# Corresponds to the JSON property `startTime`
# @return [Fixnum]
attr_accessor :start_time
#
# State of this notification. Note that the "NS_" versions of this enum have
# been deprecated in favor of the unprefixed values.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
@ -10757,35 +10774,311 @@ module Google
attr_accessor :charges_use_fee
alias_method :charges_use_fee?, :charges_use_fee
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional textual description of the resource; provided by the client when
# the resource is created.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of resource. Always compute#license for licenses.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] The unique code used to attach this license to images, snapshots,
# and disks.
# Corresponds to the JSON property `licenseCode`
# @return [Fixnum]
attr_accessor :license_code
# [Output Only] Name of the resource. The name is 1-63 characters long and
# complies with RFC1035.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `resourceRequirements`
# @return [Google::Apis::ComputeBeta::LicenseResourceRequirements]
attr_accessor :resource_requirements
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# If false, licenses will not be copied from the source resource when creating
# an image from a disk, disk from snapshot, or snapshot from disk.
# Corresponds to the JSON property `transferable`
# @return [Boolean]
attr_accessor :transferable
alias_method :transferable?, :transferable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@license_code = args[:license_code] if args.key?(:license_code)
@name = args[:name] if args.key?(:name)
@resource_requirements = args[:resource_requirements] if args.key?(:resource_requirements)
@self_link = args[:self_link] if args.key?(:self_link)
@transferable = args[:transferable] if args.key?(:transferable)
end
end
#
class LicenseCode
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# [Output Only] Description of this License Code.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of resource. Always compute#licenseCode for licenses.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] URL and description aliases of Licenses with the same License
# Code.
# Corresponds to the JSON property `licenseAlias`
# @return [Array<Google::Apis::ComputeBeta::LicenseCodeLicenseAlias>]
attr_accessor :license_alias
# [Output Only] Name of the resource. The name is 1-20 characters long and must
# be a valid 64 bit integer.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Current state of this License Code.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# [Output Only] If true, the license will remain attached when creating images
# or snapshots from disks. Otherwise, the license is not transferred.
# Corresponds to the JSON property `transferable`
# @return [Boolean]
attr_accessor :transferable
alias_method :transferable?, :transferable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@license_alias = args[:license_alias] if args.key?(:license_alias)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@state = args[:state] if args.key?(:state)
@transferable = args[:transferable] if args.key?(:transferable)
end
end
#
class LicenseCodeLicenseAlias
include Google::Apis::Core::Hashable
# [Output Only] Description of this License Code.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] URL of license corresponding to this License Code.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@description = args[:description] if args.key?(:description)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
#
class LicenseResourceRequirements
include Google::Apis::Core::Hashable
# Minimum number of guest cpus required to use the Instance. Enforced at
# Instance creation and Instance start.
# Corresponds to the JSON property `minGuestCpuCount`
# @return [Fixnum]
attr_accessor :min_guest_cpu_count
# Minimum memory required to use the Instance. Enforced at Instance creation and
# Instance start.
# Corresponds to the JSON property `minMemoryMb`
# @return [Fixnum]
attr_accessor :min_memory_mb
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@min_guest_cpu_count = args[:min_guest_cpu_count] if args.key?(:min_guest_cpu_count)
@min_memory_mb = args[:min_memory_mb] if args.key?(:min_memory_mb)
end
end
#
class LicensesListResponse
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of License resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::License>]
attr_accessor :items
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeBeta::LicensesListResponse::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeBeta::LicensesListResponse::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
# Specifies what kind of log the caller must write
class LogConfig
include Google::Apis::Core::Hashable
@ -15615,6 +15908,11 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# Integer license codes indicating which licenses are attached to this snapshot.
# Corresponds to the JSON property `licenseCodes`
# @return [Array<Fixnum>]
attr_accessor :license_codes
# [Output Only] A list of public visible licenses that apply to this snapshot.
# This can be because the original image had licenses attached (such as a
# Windows image).
@ -15692,6 +15990,7 @@ module Google
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@license_codes = args[:license_codes] if args.key?(:license_codes)
@licenses = args[:licenses] if args.key?(:licenses)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)

View File

@ -1432,6 +1432,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LicenseCode
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LicenseCodeLicenseAlias
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LicenseResourceRequirements
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LicensesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3705,6 +3741,7 @@ module Google
hash :labels, as: 'labels'
property :last_attach_timestamp, as: 'lastAttachTimestamp'
property :last_detach_timestamp, as: 'lastDetachTimestamp'
collection :license_codes, as: 'licenseCodes'
collection :licenses, as: 'licenses'
property :name, as: 'name'
property :options, as: 'options'
@ -4412,6 +4449,7 @@ module Google
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
collection :license_codes, as: 'licenseCodes'
collection :licenses, as: 'licenses'
property :name, as: 'name'
property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeBeta::Image::RawDisk, decorator: Google::Apis::ComputeBeta::Image::RawDisk::Representation
@ -5465,9 +5503,79 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :charges_use_fee, as: 'chargesUseFee'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :license_code, :numeric_string => true, as: 'licenseCode'
property :name, as: 'name'
property :resource_requirements, as: 'resourceRequirements', class: Google::Apis::ComputeBeta::LicenseResourceRequirements, decorator: Google::Apis::ComputeBeta::LicenseResourceRequirements::Representation
property :self_link, as: 'selfLink'
property :transferable, as: 'transferable'
end
end
class LicenseCode
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
collection :license_alias, as: 'licenseAlias', class: Google::Apis::ComputeBeta::LicenseCodeLicenseAlias, decorator: Google::Apis::ComputeBeta::LicenseCodeLicenseAlias::Representation
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :state, as: 'state'
property :transferable, as: 'transferable'
end
end
class LicenseCodeLicenseAlias
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :self_link, as: 'selfLink'
end
end
class LicenseResourceRequirements
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min_guest_cpu_count, as: 'minGuestCpuCount'
property :min_memory_mb, as: 'minMemoryMb'
end
end
class LicensesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::License, decorator: Google::Apis::ComputeBeta::License::Representation
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::LicensesListResponse::Warning, decorator: Google::Apis::ComputeBeta::LicensesListResponse::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::LicensesListResponse::Warning::Datum, decorator: Google::Apis::ComputeBeta::LicensesListResponse::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
@ -6729,6 +6837,7 @@ module Google
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
collection :license_codes, as: 'licenseCodes'
collection :licenses, as: 'licenses'
property :name, as: 'name'
property :self_link, as: 'selfLink'

View File

@ -5753,12 +5753,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the list of private images available to the specified project.
# Private images are images you create that belong to your project. This method
# does not get any images that belong to other projects, including publicly-
# available images, like Debian 8. If you want to get a list of publicly-
# available images, use this method to make a request to the respective image
# project, such as debian-cloud or windows-cloud.
# Retrieves the list of custom images available to the specified project. Custom
# images are images you create that belong to your project. This method does not
# get any images that belong to other projects, including publicly-available
# images, like Debian 8. If you want to get a list of publicly-available images,
# use this method to make a request to the respective image project, such as
# debian-cloud or windows-cloud.
# @param [String] project
# Project ID for this request.
# @param [String] filter
@ -10240,6 +10240,95 @@ module Google
execute_or_queue_command(command, &block)
end
# Return a specified license code. License codes are mirrored across all
# projects that have permissions to read the License Code.
# @param [String] project
# Project ID for this request.
# @param [String] license_code
# Number corresponding to the License code resource to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::LicenseCode] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::LicenseCode]
#
# @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_license_code(project, license_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/licenseCodes/{licenseCode}', options)
command.response_representation = Google::Apis::ComputeBeta::LicenseCode::Representation
command.response_class = Google::Apis::ComputeBeta::LicenseCode
command.params['project'] = project unless project.nil?
command.params['licenseCode'] = license_code unless license_code.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified license.
# @param [String] project
# Project ID for this request.
# @param [String] license
# Name of the license resource to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/licenses/{license}', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['license'] = license unless license.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified License resource.
# @param [String] project
# Project ID for this request.
@ -10278,6 +10367,136 @@ module Google
execute_or_queue_command(command, &block)
end
# Create a License resource in the specified project.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeBeta::License] license_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/licenses', options)
command.request_representation = Google::Apis::ComputeBeta::License::Representation
command.request_object = license_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of licenses available in the specified project. This method
# does not get any licenses that belong to other projects, including licenses
# attached to publicly-available images, like Debian 8. If you want to get a
# list of publicly-available licenses, use this method to make a request to the
# respective image project, such as debian-cloud or windows-cloud.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::LicensesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::LicensesListResponse]
#
# @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_licenses(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/licenses', options)
command.response_representation = Google::Apis::ComputeBeta::LicensesListResponse::Representation
command.response_class = Google::Apis::ComputeBeta::LicensesListResponse
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of machine types.
# @param [String] project
# Project ID for this request.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20171115'
REVISION = '20171124'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -80,7 +80,7 @@ module Google
end
# Exports the specified agent to a ZIP file.
# Operation<response: ExportAgentResponse,
# Operation <response: ExportAgentResponse,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The project that the agent to export is associated with.
@ -119,7 +119,7 @@ module Google
# Uploads new intents and entity types without deleting the existing ones.
# Intents and entity types with the same name are replaced with the new
# versions from ImportAgentRequest.
# Operation<response: google.protobuf.Empty,
# Operation <response: google.protobuf.Empty,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The project that the agent to import is associated with.
@ -157,7 +157,7 @@ module Google
# Restores the specified agent from a ZIP file.
# Replaces the current agent version with a new one. All the intents and
# entity types in the older version are deleted.
# Operation<response: google.protobuf.Empty,
# Operation <response: google.protobuf.Empty,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The project that the agent to restore is associated with.
@ -237,7 +237,7 @@ module Google
end
# Trains the specified agent.
# Operation<response: google.protobuf.Empty,
# Operation <response: google.protobuf.Empty,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The project that the agent to train is associated with.
@ -273,7 +273,7 @@ module Google
end
# Deletes entity types in the specified agent.
# Operation<response: google.protobuf.Empty,
# Operation <response: google.protobuf.Empty,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The name of the agent to delete all entities types for. Format:
@ -309,7 +309,7 @@ module Google
end
# Updates/Creates multiple entity types in the specified agent.
# Operation<response: BatchUpdateEntityTypesResponse,
# Operation <response: BatchUpdateEntityTypesResponse,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The name of the agent to update or create entity types in.
@ -547,7 +547,7 @@ module Google
# Creates multiple new entities in the specified entity type (extends the
# existing collection of entries).
# Operation<response: google.protobuf.Empty>
# Operation <response: google.protobuf.Empty>
# @param [String] parent
# Required. The name of the entity type to create entities in. Format:
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
@ -582,7 +582,7 @@ module Google
end
# Deletes entities in the specified entity type.
# Operation<response: google.protobuf.Empty,
# Operation <response: google.protobuf.Empty,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The name of the entity type to delete entries for. Format:
@ -619,7 +619,7 @@ module Google
# Updates entities in the specified entity type (replaces the existing
# collection of entries).
# Operation<response: google.protobuf.Empty,
# Operation <response: google.protobuf.Empty,
# metadata: google.protobuf.Struct>
# @param [String] parent
# Required. The name of the entity type to update the entities in. Format:
@ -655,7 +655,7 @@ module Google
end
# Deletes intents in the specified agent.
# Operation<response: google.protobuf.Empty>
# Operation <response: google.protobuf.Empty>
# @param [String] parent
# Required. The name of the agent to delete all entities types for. Format:
# `projects/<Project ID>/agent`.
@ -690,7 +690,7 @@ module Google
end
# Updates/Creates multiple intents in the specified agent.
# Operation<response: BatchUpdateIntentsResponse>
# Operation <response: BatchUpdateIntentsResponse>
# @param [String] parent
# Required. The name of the agent to update or create intents in.
# Format: `projects/<Project ID>/agent`.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/fusiontables
module FusiontablesV2
VERSION = 'V2'
REVISION = '20170413'
REVISION = '20171117'
# Manage your Fusion Tables
AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables'

View File

@ -985,6 +985,43 @@ module Google
execute_or_queue_command(command, &block)
end
# Replaces rows of the table with the rows of the spreadsheet that is first
# imported from. Current rows remain visible until all replacement rows are
# ready.
# @param [String] table_id
# Table whose rows will be replaced from the spreadsheet.
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FusiontablesV2::Task] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FusiontablesV2::Task]
#
# @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 refetch_table_sheet(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'tables/{tableId}/refetch', options)
command.response_representation = Google::Apis::FusiontablesV2::Task::Representation
command.response_class = Google::Apis::FusiontablesV2::Task
command.params['tableId'] = table_id unless table_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Replaces rows of an existing table. Current rows remain visible until all
# replacement rows are ready.
# @param [String] table_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/ml/
module MlV1
VERSION = 'V1'
REVISION = '20171105'
REVISION = '20171127'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -596,6 +596,11 @@ module Google
# @return [String]
attr_accessor :operation_type
# Contains the project number associated with the operation.
# Corresponds to the JSON property `projectNumber`
# @return [Fixnum]
attr_accessor :project_number
# The time operation processing started.
# Corresponds to the JSON property `startTime`
# @return [String]
@ -624,6 +629,7 @@ module Google
@labels = args[:labels] if args.key?(:labels)
@model_name = args[:model_name] if args.key?(:model_name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@project_number = args[:project_number] if args.key?(:project_number)
@start_time = args[:start_time] if args.key?(:start_time)
@version = args[:version] if args.key?(:version)
end
@ -697,183 +703,6 @@ module Google
end
# Request for predictions to be issued against a trained model.
# The body of the request is a single JSON object with a single top-level
# field:
# <dl>
# <dt>instances</dt>
# <dd>A JSON array containing values representing the instances to use for
# prediction.</dd>
# </dl>
# The structure of each element of the instances list is determined by your
# model's input definition. Instances can include named inputs or can contain
# only unlabeled values.
# Not all data includes named inputs. Some instances will be simple
# JSON values (boolean, number, or string). However, instances are often lists
# of simple values, or complex nested lists. Here are some examples of request
# bodies:
# CSV data with each row encoded as a string value:
# <pre>
# `"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]`
# </pre>
# Plain text:
# <pre>
# `"instances": ["the quick brown fox", "la bruja le dio"]`
# </pre>
# Sentences encoded as lists of words (vectors of strings):
# <pre>
# `
# "instances": [
# ["the","quick","brown"],
# ["la","bruja","le"],
# ...
# ]
# `
# </pre>
# Floating point scalar values:
# <pre>
# `"instances": [0.0, 1.1, 2.2]`
# </pre>
# Vectors of integers:
# <pre>
# `
# "instances": [
# [0, 1, 2],
# [3, 4, 5],
# ...
# ]
# `
# </pre>
# Tensors (in this case, two-dimensional tensors):
# <pre>
# `
# "instances": [
# [
# [0, 1, 2],
# [3, 4, 5]
# ],
# ...
# ]
# `
# </pre>
# Images can be represented different ways. In this encoding scheme the first
# two dimensions represent the rows and columns of the image, and the third
# contains lists (vectors) of the R, G, and B values for each pixel.
# <pre>
# `
# "instances": [
# [
# [
# [138, 30, 66],
# [130, 20, 56],
# ...
# ],
# [
# [126, 38, 61],
# [122, 24, 57],
# ...
# ],
# ...
# ],
# ...
# ]
# `
# </pre>
# JSON strings must be encoded as UTF-8. To send binary data, you must
# base64-encode the data and mark it as binary. To mark a JSON string
# as binary, replace it with a JSON object with a single attribute named `b64`:
# <pre>`"b64": "..."` </pre>
# For example:
# Two Serialized tf.Examples (fake data, for illustrative purposes only):
# <pre>
# `"instances": [`"b64": "X5ad6u"`, `"b64": "IA9j4nx"`]`
# </pre>
# Two JPEG image byte strings (fake data, for illustrative purposes only):
# <pre>
# `"instances": [`"b64": "ASa8asdf"`, `"b64": "JLK7ljk3"`]`
# </pre>
# If your data includes named references, format each instance as a JSON object
# with the named references as the keys:
# JSON input data to be preprocessed:
# <pre>
# `
# "instances": [
# `
# "a": 1.0,
# "b": true,
# "c": "x"
# `,
# `
# "a": -2.0,
# "b": false,
# "c": "y"
# `
# ]
# `
# </pre>
# Some models have an underlying TensorFlow graph that accepts multiple input
# tensors. In this case, you should use the names of JSON name/value pairs to
# identify the input tensors, as shown in the following exmaples:
# For a graph with input tensor aliases "tag" (string) and "image"
# (base64-encoded string):
# <pre>
# `
# "instances": [
# `
# "tag": "beach",
# "image": `"b64": "ASa8asdf"`
# `,
# `
# "tag": "car",
# "image": `"b64": "JLK7ljk3"`
# `
# ]
# `
# </pre>
# For a graph with input tensor aliases "tag" (string) and "image"
# (3-dimensional array of 8-bit ints):
# <pre>
# `
# "instances": [
# `
# "tag": "beach",
# "image": [
# [
# [138, 30, 66],
# [130, 20, 56],
# ...
# ],
# [
# [126, 38, 61],
# [122, 24, 57],
# ...
# ],
# ...
# ]
# `,
# `
# "tag": "car",
# "image": [
# [
# [255, 0, 102],
# [255, 0, 97],
# ...
# ],
# [
# [254, 1, 101],
# [254, 2, 93],
# ...
# ],
# ...
# ]
# `,
# ...
# ]
# `
# </pre>
# If the call is successful, the response body will contain one prediction
# entry per instance in the request body. If prediction fails for any
# instance, the response body will contain no predictions and will contian
# a single error entry instead.
class GoogleCloudMlV1PredictRequest
include Google::Apis::Core::Hashable
@ -974,6 +803,18 @@ module Google
# @return [String]
attr_accessor :runtime_version
# Optional. The name of the signature defined in the SavedModel to use for
# this job. Please refer to
# [SavedModel](https://tensorflow.github.io/serving/serving_basic.html)
# for information about how to use signatures.
# Defaults to
# [DEFAULT_SERVING_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/
# tf/saved_model/signature_constants)
# , which is "serving_default".
# Corresponds to the JSON property `signatureName`
# @return [String]
attr_accessor :signature_name
# Use this field if you want to specify a Google Cloud Storage path for
# the model to use.
# Corresponds to the JSON property `uri`
@ -1003,6 +844,7 @@ module Google
@output_path = args[:output_path] if args.key?(:output_path)
@region = args[:region] if args.key?(:region)
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
@signature_name = args[:signature_name] if args.key?(:signature_name)
@uri = args[:uri] if args.key?(:uri)
@version_name = args[:version_name] if args.key?(:version_name)
end
@ -1180,6 +1022,12 @@ module Google
# @return [String]
attr_accessor :python_module
# Optional. The version of Python used in training. If not set, the default
# version is '2.7'.
# Corresponds to the JSON property `pythonVersion`
# @return [String]
attr_accessor :python_version
# Required. The Google Compute Engine region to run the training job in.
# Corresponds to the JSON property `region`
# @return [String]
@ -1229,6 +1077,7 @@ module Google
@parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
@parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
@python_module = args[:python_module] if args.key?(:python_module)
@python_version = args[:python_version] if args.key?(:python_version)
@region = args[:region] if args.key?(:region)
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)

View File

@ -367,6 +367,7 @@ module Google
hash :labels, as: 'labels'
property :model_name, as: 'modelName'
property :operation_type, as: 'operationType'
property :project_number, :numeric_string => true, as: 'projectNumber'
property :start_time, as: 'startTime'
property :version, as: 'version', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
@ -405,6 +406,7 @@ module Google
property :output_path, as: 'outputPath'
property :region, as: 'region'
property :runtime_version, as: 'runtimeVersion'
property :signature_name, as: 'signatureName'
property :uri, as: 'uri'
property :version_name, as: 'versionName'
end
@ -438,6 +440,7 @@ module Google
property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount'
property :parameter_server_type, as: 'parameterServerType'
property :python_module, as: 'pythonModule'
property :python_version, as: 'pythonVersion'
property :region, as: 'region'
property :runtime_version, as: 'runtimeVersion'
property :scale_tier, as: 'scaleTier'

View File

@ -81,7 +81,9 @@ module Google
end
# Performs prediction on the data in the request.
# **** REMOVE FROM GENERATED DOCUMENTATION
# Cloud ML Engine implements a custom `predict` verb on top of an HTTP POST
# method. For details of the format, see the **guide to the
# [predict request format](/ml-engine/docs/v1/predict-request)**.
# @param [String] name
# Required. The resource name of a model or a version.
# Authorization: requires the `predict` permission on the specified resource.

View File

@ -0,0 +1,32 @@
# 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/poly_v1/service.rb'
require 'google/apis/poly_v1/classes.rb'
require 'google/apis/poly_v1/representations.rb'
module Google
module Apis
# Poly API
#
# The Poly API provides read-only access to assets hosted on <a href="https://
# poly.google.com">poly.google.com</a>.
#
# @see https://devsite.googleplex.com/poly/
module PolyV1
VERSION = 'V1'
REVISION = '20171124'
end
end
end

View File

@ -0,0 +1,426 @@
# 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 PolyV1
# Represents and describes an asset in the Poly library. An asset is a 3D model
# or scene created using [Tilt Brush](//www.tiltbrush.com),
# [Blocks](//vr.google.com/blocks/), or any 3D program that produces a file
# that can be upload to Poly.
class Asset
include Google::Apis::Core::Hashable
# The author's publicly visible name. Use this name when giving credit to the
# author. For more information, see [Licensing](/poly/discover/licensing).
# Corresponds to the JSON property `authorName`
# @return [String]
attr_accessor :author_name
# For published assets, the time when the asset was published.
# For unpublished assets, the time when the asset was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The human-readable description, set by the asset's author.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The human-readable name, set by the asset's author.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# A list of Formats where each
# format describes one representation of the asset.
# Corresponds to the JSON property `formats`
# @return [Array<Google::Apis::PolyV1::Format>]
attr_accessor :formats
# Whether this asset has been curated by the Poly team.
# Corresponds to the JSON property `isCurated`
# @return [Boolean]
attr_accessor :is_curated
alias_method :is_curated?, :is_curated
# The license under which the author has made the asset available
# for use, if any.
# Corresponds to the JSON property `license`
# @return [String]
attr_accessor :license
# The unique identifier for the asset in the form:
# `assets/`ASSET_ID``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Hints for displaying the asset, based on information available when the asset
# was uploaded.
# Corresponds to the JSON property `presentationParams`
# @return [Google::Apis::PolyV1::PresentationParams]
attr_accessor :presentation_params
# Represents a file in Poly, which can be a root,
# resource, or thumbnail file.
# Corresponds to the JSON property `thumbnail`
# @return [Google::Apis::PolyV1::File]
attr_accessor :thumbnail
# The time when the asset was last modified. For published assets, whose
# contents are immutable, the update time changes only when metadata
# properties, such as visibility, are updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# The visibility of the asset and who can access it.
# Corresponds to the JSON property `visibility`
# @return [String]
attr_accessor :visibility
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@author_name = args[:author_name] if args.key?(:author_name)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@formats = args[:formats] if args.key?(:formats)
@is_curated = args[:is_curated] if args.key?(:is_curated)
@license = args[:license] if args.key?(:license)
@name = args[:name] if args.key?(:name)
@presentation_params = args[:presentation_params] if args.key?(:presentation_params)
@thumbnail = args[:thumbnail] if args.key?(:thumbnail)
@update_time = args[:update_time] if args.key?(:update_time)
@visibility = args[:visibility] if args.key?(:visibility)
end
end
# Represents a file in Poly, which can be a root,
# resource, or thumbnail file.
class File
include Google::Apis::Core::Hashable
# The MIME content-type, such as `image/png`.
# For more information, see
# [MIME types](//developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/
# MIME_types).
# Corresponds to the JSON property `contentType`
# @return [String]
attr_accessor :content_type
# The path of the resource file relative to the root file.
# For root or thumbnail files, this is just the filename.
# Corresponds to the JSON property `relativePath`
# @return [String]
attr_accessor :relative_path
# The URL where the file data can be retrieved.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content_type = args[:content_type] if args.key?(:content_type)
@relative_path = args[:relative_path] if args.key?(:relative_path)
@url = args[:url] if args.key?(:url)
end
end
# The same asset can be represented in different formats, for example,
# a [WaveFront .obj](//en.wikipedia.org/wiki/Wavefront_.obj_file) file with its
# corresponding .mtl file or a [Khronos glTF](//www.khronos.org/gltf) file
# with its corresponding .glb binary data. A format refers to a specific
# representation of an asset and contains all information needed to
# retrieve and describe this representation.
class Format
include Google::Apis::Core::Hashable
# Information on the complexity of this Format.
# Corresponds to the JSON property `formatComplexity`
# @return [Google::Apis::PolyV1::FormatComplexity]
attr_accessor :format_complexity
# A short string that identifies the format type of this representation.
# Possible values are: `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
# Corresponds to the JSON property `formatType`
# @return [String]
attr_accessor :format_type
# A list of dependencies of the root element. May include, but is not
# limited to, materials, textures, and shader programs.
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::PolyV1::File>]
attr_accessor :resources
# Represents a file in Poly, which can be a root,
# resource, or thumbnail file.
# Corresponds to the JSON property `root`
# @return [Google::Apis::PolyV1::File]
attr_accessor :root
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@format_complexity = args[:format_complexity] if args.key?(:format_complexity)
@format_type = args[:format_type] if args.key?(:format_type)
@resources = args[:resources] if args.key?(:resources)
@root = args[:root] if args.key?(:root)
end
end
# Information on the complexity of this Format.
class FormatComplexity
include Google::Apis::Core::Hashable
# A non-negative integer that represents the level of detail (LOD) of this
# format relative to other formats of the same asset with the same
# format_type.
# This hint allows you to sort formats from the most-detailed (0) to
# least-detailed (integers greater than 0).
# Corresponds to the JSON property `lodHint`
# @return [Fixnum]
attr_accessor :lod_hint
# The estimated number of triangles.
# Corresponds to the JSON property `triangleCount`
# @return [Fixnum]
attr_accessor :triangle_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lod_hint = args[:lod_hint] if args.key?(:lod_hint)
@triangle_count = args[:triangle_count] if args.key?(:triangle_count)
end
end
# A response message from a request to list.
class ListAssetsResponse
include Google::Apis::Core::Hashable
# A list of assets that match the criteria specified in the request.
# Corresponds to the JSON property `assets`
# @return [Array<Google::Apis::PolyV1::Asset>]
attr_accessor :assets
# The continuation token for retrieving the next page. If empty,
# indicates that there are no more pages. To get the next page, submit the
# same request specifying this value as the
# page_token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The total number of assets in the list, without pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@assets = args[:assets] if args.key?(:assets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
end
end
# A response message from a request to list.
class ListLikedAssetsResponse
include Google::Apis::Core::Hashable
# A list of assets that match the criteria specified in the request.
# Corresponds to the JSON property `assets`
# @return [Array<Google::Apis::PolyV1::Asset>]
attr_accessor :assets
# The continuation token for retrieving the next page. If empty,
# indicates that there are no more pages. To get the next page, submit the
# same request specifying this value as the
# page_token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The total number of assets in the list, without pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@assets = args[:assets] if args.key?(:assets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
end
end
# A response message from a request to list.
class ListUserAssetsResponse
include Google::Apis::Core::Hashable
# The continuation token for retrieving the next page. If empty,
# indicates that there are no more pages. To get the next page, submit the
# same request specifying this value as the
# page_token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The total number of assets in the list, without pagination.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
# A list of UserAssets matching the request.
# Corresponds to the JSON property `userAssets`
# @return [Array<Google::Apis::PolyV1::UserAsset>]
attr_accessor :user_assets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
@user_assets = args[:user_assets] if args.key?(:user_assets)
end
end
# Hints for displaying the asset, based on information available when the asset
# was uploaded.
class PresentationParams
include Google::Apis::Core::Hashable
# The materials' diffuse/albedo color. This does not apply to vertex colors
# or texture maps.
# Corresponds to the JSON property `colorSpace`
# @return [String]
attr_accessor :color_space
# A [Quaternion](//en.wikipedia.org/wiki/Quaternion). Please note: if in the
# response you see "w: 1" and nothing else this is the default value of
# [0, 0, 0, 1] where x,y, and z are 0.
# Corresponds to the JSON property `orientingRotation`
# @return [Google::Apis::PolyV1::Quaternion]
attr_accessor :orienting_rotation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@color_space = args[:color_space] if args.key?(:color_space)
@orienting_rotation = args[:orienting_rotation] if args.key?(:orienting_rotation)
end
end
# A [Quaternion](//en.wikipedia.org/wiki/Quaternion). Please note: if in the
# response you see "w: 1" and nothing else this is the default value of
# [0, 0, 0, 1] where x,y, and z are 0.
class Quaternion
include Google::Apis::Core::Hashable
# The scalar component.
# Corresponds to the JSON property `w`
# @return [Float]
attr_accessor :w
# The x component.
# Corresponds to the JSON property `x`
# @return [Float]
attr_accessor :x
# The y component.
# Corresponds to the JSON property `y`
# @return [Float]
attr_accessor :y
# The z component.
# Corresponds to the JSON property `z`
# @return [Float]
attr_accessor :z
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@w = args[:w] if args.key?(:w)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
@z = args[:z] if args.key?(:z)
end
end
# Data about the user's asset.
class UserAsset
include Google::Apis::Core::Hashable
# Represents and describes an asset in the Poly library. An asset is a 3D model
# or scene created using [Tilt Brush](//www.tiltbrush.com),
# [Blocks](//vr.google.com/blocks/), or any 3D program that produces a file
# that can be upload to Poly.
# Corresponds to the JSON property `asset`
# @return [Google::Apis::PolyV1::Asset]
attr_accessor :asset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset = args[:asset] if args.key?(:asset)
end
end
end
end
end

View File

@ -0,0 +1,194 @@
# 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 PolyV1
class Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class File
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Format
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FormatComplexity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLikedAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListUserAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PresentationParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quaternion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :author_name, as: 'authorName'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :display_name, as: 'displayName'
collection :formats, as: 'formats', class: Google::Apis::PolyV1::Format, decorator: Google::Apis::PolyV1::Format::Representation
property :is_curated, as: 'isCurated'
property :license, as: 'license'
property :name, as: 'name'
property :presentation_params, as: 'presentationParams', class: Google::Apis::PolyV1::PresentationParams, decorator: Google::Apis::PolyV1::PresentationParams::Representation
property :thumbnail, as: 'thumbnail', class: Google::Apis::PolyV1::File, decorator: Google::Apis::PolyV1::File::Representation
property :update_time, as: 'updateTime'
property :visibility, as: 'visibility'
end
end
class File
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_type, as: 'contentType'
property :relative_path, as: 'relativePath'
property :url, as: 'url'
end
end
class Format
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :format_complexity, as: 'formatComplexity', class: Google::Apis::PolyV1::FormatComplexity, decorator: Google::Apis::PolyV1::FormatComplexity::Representation
property :format_type, as: 'formatType'
collection :resources, as: 'resources', class: Google::Apis::PolyV1::File, decorator: Google::Apis::PolyV1::File::Representation
property :root, as: 'root', class: Google::Apis::PolyV1::File, decorator: Google::Apis::PolyV1::File::Representation
end
end
class FormatComplexity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lod_hint, as: 'lodHint'
property :triangle_count, :numeric_string => true, as: 'triangleCount'
end
end
class ListAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :assets, as: 'assets', class: Google::Apis::PolyV1::Asset, decorator: Google::Apis::PolyV1::Asset::Representation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end
end
class ListLikedAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :assets, as: 'assets', class: Google::Apis::PolyV1::Asset, decorator: Google::Apis::PolyV1::Asset::Representation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end
end
class ListUserAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :user_assets, as: 'userAssets', class: Google::Apis::PolyV1::UserAsset, decorator: Google::Apis::PolyV1::UserAsset::Representation
end
end
class PresentationParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :color_space, as: 'colorSpace'
property :orienting_rotation, as: 'orientingRotation', class: Google::Apis::PolyV1::Quaternion, decorator: Google::Apis::PolyV1::Quaternion::Representation
end
end
class Quaternion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :w, as: 'w'
property :x, as: 'x'
property :y, as: 'y'
property :z, as: 'z'
end
end
class UserAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::PolyV1::Asset, decorator: Google::Apis::PolyV1::Asset::Representation
end
end
end
end
end

View File

@ -0,0 +1,273 @@
# 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 PolyV1
# Poly API
#
# The Poly API provides read-only access to assets hosted on <a href="https://
# poly.google.com">poly.google.com</a>.
#
# @example
# require 'google/apis/poly_v1'
#
# Poly = Google::Apis::PolyV1 # Alias the module
# service = Poly::PolyServiceService.new
#
# @see https://devsite.googleplex.com/poly/
class PolyServiceService < 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://poly.googleapis.com/', '')
@batch_path = 'batch'
end
# Returns detailed information about an asset given its name.
# PRIVATE assets are returned only if
# the currently authenticated user (via OAuth token) is the author of the asset.
# @param [String] name
# Required. An asset's name in the form `assets/`ASSET_ID``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PolyV1::Asset] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PolyV1::Asset]
#
# @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_asset(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::PolyV1::Asset::Representation
command.response_class = Google::Apis::PolyV1::Asset
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all public, remixable assets. These are assets with an access level of
# PUBLIC and published under the
# CC-By license.
# @param [String] category
# Filter assets based on the specified category. Supported values are:
# `animals`, `architecture`, `art`, `food`, `nature`, `objects`, `people`, `
# scenes`,
# `technology`, and `transport`.
# @param [Boolean] curated
# Return only assets that have been curated by the Poly team.
# @param [String] format
# Return only assets with the matching format. Acceptable values are:
# `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
# @param [String] keywords
# One or more search terms to be matched against all text that Poly has
# indexed for assets, which includes display_name,
# description, and tags. Multiple keywords should be
# separated by spaces.
# @param [String] max_complexity
# Returns assets that are of the specified complexity or less. Defaults to
# COMPLEX. For example, a request for
# MEDIUM assets also includes
# SIMPLE assets.
# @param [String] order_by
# Specifies an ordering for assets. Acceptable values are:
# `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets
# based on a combination of popularity and other features.
# @param [Fixnum] page_size
# The maximum number of assets to be returned. This value must be between `1`
# and `100`. Defaults to `20`.
# @param [String] page_token
# Specifies a continuation token from a previous search whose results were
# split into multiple pages. To get the next page, submit the same request
# specifying the value from next_page_token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PolyV1::ListAssetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PolyV1::ListAssetsResponse]
#
# @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_assets(category: nil, curated: nil, format: nil, keywords: nil, max_complexity: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/assets', options)
command.response_representation = Google::Apis::PolyV1::ListAssetsResponse::Representation
command.response_class = Google::Apis::PolyV1::ListAssetsResponse
command.query['category'] = category unless category.nil?
command.query['curated'] = curated unless curated.nil?
command.query['format'] = format unless format.nil?
command.query['keywords'] = keywords unless keywords.nil?
command.query['maxComplexity'] = max_complexity unless max_complexity.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists assets authored by the given user. Only the value 'me', representing
# the currently-authenticated user, is supported. May include assets with an
# access level of PRIVATE or
# UNLISTED and assets which are
# All Rights Reserved for the
# currently-authenticated user.
# @param [String] name
# A valid user id. Currently, only the special value 'me', representing the
# currently-authenticated user is supported. To use 'me', you must pass
# an OAuth token with the request.
# @param [String] format
# Return only assets with the matching format. Acceptable values are:
# `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
# @param [String] order_by
# Specifies an ordering for assets. Acceptable values are:
# `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets
# based on a combination of popularity and other features.
# @param [Fixnum] page_size
# The maximum number of assets to be returned. This value must be between `1`
# and `100`. Defaults to `20`.
# @param [String] page_token
# Specifies a continuation token from a previous search whose results were
# split into multiple pages. To get the next page, submit the same request
# specifying the value from
# next_page_token.
# @param [String] visibility
# The visibility of the assets to be returned.
# Defaults to VISIBILITY_UNSPECIFIED which returns all assets.
# @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::PolyV1::ListUserAssetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PolyV1::ListUserAssetsResponse]
#
# @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_user_assets(name, format: nil, order_by: nil, page_size: nil, page_token: nil, visibility: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/assets', options)
command.response_representation = Google::Apis::PolyV1::ListUserAssetsResponse::Representation
command.response_class = Google::Apis::PolyV1::ListUserAssetsResponse
command.params['name'] = name unless name.nil?
command.query['format'] = format unless format.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['visibility'] = visibility unless visibility.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists assets that the user has liked. Only the value 'me', representing
# the currently-authenticated user, is supported. May include assets with an
# access level of UNLISTED.
# @param [String] name
# A valid user id. Currently, only the special value 'me', representing the
# currently-authenticated user is supported. To use 'me', you must pass
# an OAuth token with the request.
# @param [String] format
# Return only assets with the matching format. Acceptable values are:
# `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
# @param [String] order_by
# Specifies an ordering for assets. Acceptable values are:
# `BEST`, `NEWEST`, `OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`, which
# ranks assets based on how recently they were liked.
# @param [Fixnum] page_size
# The maximum number of assets to be returned. This value must be between `1`
# and `100`. Defaults to `20`.
# @param [String] page_token
# Specifies a continuation token from a previous search whose results were
# split into multiple pages. To get the next page, submit the same request
# specifying the value from
# next_page_token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PolyV1::ListLikedAssetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PolyV1::ListLikedAssetsResponse]
#
# @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_user_likedassets(name, format: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/likedassets', options)
command.response_representation = Google::Apis::PolyV1::ListLikedAssetsResponse::Representation
command.response_class = Google::Apis::PolyV1::ListLikedAssetsResponse
command.params['name'] = name unless name.nil?
command.query['format'] = format unless format.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,10 +25,13 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1
VERSION = 'V1'
REVISION = '20171018'
REVISION = '20171129'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Convert speech to text using Google speech recognition technology
AUTH_CLOUD_SPEECH = 'https://www.googleapis.com/auth/cloud-speech'
end
end
end

View File

@ -25,10 +25,13 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1beta1
VERSION = 'V1beta1'
REVISION = '20170829'
REVISION = '20171129'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Convert speech to text using Google speech recognition technology
AUTH_CLOUD_SPEECH = 'https://www.googleapis.com/auth/cloud-speech'
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20171012'
REVISION = '20171129'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -904,7 +904,7 @@ module Google
# @return [String]
attr_accessor :name
# A human-friendy string representing the region for this locale.
# A human-friendly string representing the region for this locale.
# Example: "United States"
# Not present for every locale.
# @OutputOnly