Autogenerated update (2018-08-28)

Update:
- adexchangebuyer_v1_4
- androidmanagement_v1
- books_v1
- cloudbuild_v1
- cloudiot_v1
- compute_alpha
- compute_beta
- compute_v1
This commit is contained in:
Google APIs 2018-08-28 00:36:41 +00:00
parent 1b73c2176b
commit ca65876333
25 changed files with 2388 additions and 851 deletions

View File

@ -1097,6 +1097,7 @@
"/adexchangebuyer:v1.4/Creative/corrections/correction/details": details
"/adexchangebuyer:v1.4/Creative/corrections/correction/details/detail": detail
"/adexchangebuyer:v1.4/Creative/corrections/correction/reason": reason
"/adexchangebuyer:v1.4/Creative/creativeStatusIdentityType": creative_status_identity_type
"/adexchangebuyer:v1.4/Creative/dealsStatus": deals_status
"/adexchangebuyer:v1.4/Creative/detectedDomains": detected_domains
"/adexchangebuyer:v1.4/Creative/detectedDomains/detected_domain": detected_domain
@ -6290,6 +6291,7 @@
"/androidmanagement:v1/Device/previousDeviceNames/previous_device_name": previous_device_name
"/androidmanagement:v1/Device/softwareInfo": software_info
"/androidmanagement:v1/Device/state": state
"/androidmanagement:v1/Device/user": user
"/androidmanagement:v1/Device/userName": user_name
"/androidmanagement:v1/DeviceSettings": device_settings
"/androidmanagement:v1/DeviceSettings/adbEnabled": adb_enabled
@ -6316,6 +6318,7 @@
"/androidmanagement:v1/EnrollmentToken/oneTimeOnly": one_time_only
"/androidmanagement:v1/EnrollmentToken/policyName": policy_name
"/androidmanagement:v1/EnrollmentToken/qrCode": qr_code
"/androidmanagement:v1/EnrollmentToken/user": user
"/androidmanagement:v1/EnrollmentToken/value": value
"/androidmanagement:v1/Enterprise": enterprise
"/androidmanagement:v1/Enterprise/appAutoApprovalEnabled": app_auto_approval_enabled
@ -6507,6 +6510,7 @@
"/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/playStoreMode": play_store_mode
"/androidmanagement:v1/Policy/privateKeySelectionEnabled": private_key_selection_enabled
"/androidmanagement:v1/Policy/recommendedGlobalProxy": recommended_global_proxy
"/androidmanagement:v1/Policy/removeUserDisabled": remove_user_disabled
@ -6578,6 +6582,8 @@
"/androidmanagement:v1/TermsAndConditions": terms_and_conditions
"/androidmanagement:v1/TermsAndConditions/content": content
"/androidmanagement:v1/TermsAndConditions/header": header
"/androidmanagement:v1/User": user
"/androidmanagement:v1/User/accountIdentifier": account_identifier
"/androidmanagement:v1/UserFacingMessage": user_facing_message
"/androidmanagement:v1/UserFacingMessage/defaultMessage": default_message
"/androidmanagement:v1/UserFacingMessage/localizedMessages": localized_messages
@ -11808,6 +11814,7 @@
"/books:v1/Volume/volumeInfo/canonicalVolumeLink": canonical_volume_link
"/books:v1/Volume/volumeInfo/categories": categories
"/books:v1/Volume/volumeInfo/categories/category": category
"/books:v1/Volume/volumeInfo/comicsContent": comics_content
"/books:v1/Volume/volumeInfo/contentVersion": content_version
"/books:v1/Volume/volumeInfo/description": description
"/books:v1/Volume/volumeInfo/dimensions": dimensions
@ -17618,6 +17625,7 @@
"/compute:alpha/AttachedDisk/source": source
"/compute:alpha/AttachedDisk/type": type
"/compute:alpha/AttachedDiskInitializeParams": attached_disk_initialize_params
"/compute:alpha/AttachedDiskInitializeParams/description": description
"/compute:alpha/AttachedDiskInitializeParams/diskName": disk_name
"/compute:alpha/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb
"/compute:alpha/AttachedDiskInitializeParams/diskStorageType": disk_storage_type
@ -17882,6 +17890,8 @@
"/compute:alpha/CacheKeyPolicy/queryStringWhitelist": query_string_whitelist
"/compute:alpha/CacheKeyPolicy/queryStringWhitelist/query_string_whitelist": query_string_whitelist
"/compute:alpha/Commitment": commitment
"/compute:alpha/Commitment/allocations": allocations
"/compute:alpha/Commitment/allocations/allocation": allocation
"/compute:alpha/Commitment/creationTimestamp": creation_timestamp
"/compute:alpha/Commitment/description": description
"/compute:alpha/Commitment/endTimestamp": end_timestamp
@ -18173,6 +18183,7 @@
"/compute:alpha/ForwardingRule/IPAddress": ip_address
"/compute:alpha/ForwardingRule/IPProtocol": ip_protocol
"/compute:alpha/ForwardingRule/allPorts": all_ports
"/compute:alpha/ForwardingRule/allowGlobalAccess": allow_global_access
"/compute:alpha/ForwardingRule/backendService": backend_service
"/compute:alpha/ForwardingRule/creationTimestamp": creation_timestamp
"/compute:alpha/ForwardingRule/description": description
@ -18577,6 +18588,7 @@
"/compute:alpha/Instance/guestAccelerators": guest_accelerators
"/compute:alpha/Instance/guestAccelerators/guest_accelerator": guest_accelerator
"/compute:alpha/Instance/host": host
"/compute:alpha/Instance/hostname": hostname
"/compute:alpha/Instance/id": id
"/compute:alpha/Instance/instanceEncryptionKey": instance_encryption_key
"/compute:alpha/Instance/kind": kind
@ -19278,6 +19290,33 @@
"/compute:alpha/LogConfigCounterOptions/metric": metric
"/compute:alpha/LogConfigDataAccessOptions": log_config_data_access_options
"/compute:alpha/LogConfigDataAccessOptions/logMode": log_mode
"/compute:alpha/MachineImage": machine_image
"/compute:alpha/MachineImage/creationTimestamp": creation_timestamp
"/compute:alpha/MachineImage/description": description
"/compute:alpha/MachineImage/id": id
"/compute:alpha/MachineImage/kind": kind
"/compute:alpha/MachineImage/name": name
"/compute:alpha/MachineImage/selfLink": self_link
"/compute:alpha/MachineImage/sourceInstance": source_instance
"/compute:alpha/MachineImage/sourceInstanceProperties": source_instance_properties
"/compute:alpha/MachineImage/status": status
"/compute:alpha/MachineImage/storageLocations": storage_locations
"/compute:alpha/MachineImage/storageLocations/storage_location": storage_location
"/compute:alpha/MachineImageList": machine_image_list
"/compute:alpha/MachineImageList/etag": etag
"/compute:alpha/MachineImageList/id": id
"/compute:alpha/MachineImageList/items": items
"/compute:alpha/MachineImageList/items/item": item
"/compute:alpha/MachineImageList/kind": kind
"/compute:alpha/MachineImageList/nextPageToken": next_page_token
"/compute:alpha/MachineImageList/selfLink": self_link
"/compute:alpha/MachineImageList/warning": warning
"/compute:alpha/MachineImageList/warning/code": code
"/compute:alpha/MachineImageList/warning/data": data
"/compute:alpha/MachineImageList/warning/data/datum": datum
"/compute:alpha/MachineImageList/warning/data/datum/key": key
"/compute:alpha/MachineImageList/warning/data/datum/value": value
"/compute:alpha/MachineImageList/warning/message": message
"/compute:alpha/MachineType": machine_type
"/compute:alpha/MachineType/creationTimestamp": creation_timestamp
"/compute:alpha/MachineType/deprecated": deprecated
@ -20368,6 +20407,26 @@
"/compute:alpha/SSLHealthCheck/proxyHeader": proxy_header
"/compute:alpha/SSLHealthCheck/request": request
"/compute:alpha/SSLHealthCheck/response": response
"/compute:alpha/SavedAttachedDisk": saved_attached_disk
"/compute:alpha/SavedAttachedDisk/autoDelete": auto_delete
"/compute:alpha/SavedAttachedDisk/boot": boot
"/compute:alpha/SavedAttachedDisk/deviceName": device_name
"/compute:alpha/SavedAttachedDisk/diskEncryptionKey": disk_encryption_key
"/compute:alpha/SavedAttachedDisk/diskSizeGb": disk_size_gb
"/compute:alpha/SavedAttachedDisk/guestOsFeatures": guest_os_features
"/compute:alpha/SavedAttachedDisk/guestOsFeatures/guest_os_feature": guest_os_feature
"/compute:alpha/SavedAttachedDisk/index": index
"/compute:alpha/SavedAttachedDisk/initializeParams": initialize_params
"/compute:alpha/SavedAttachedDisk/interface": interface
"/compute:alpha/SavedAttachedDisk/kind": kind
"/compute:alpha/SavedAttachedDisk/licenses": licenses
"/compute:alpha/SavedAttachedDisk/licenses/license": license
"/compute:alpha/SavedAttachedDisk/mode": mode
"/compute:alpha/SavedAttachedDisk/savedState": saved_state
"/compute:alpha/SavedAttachedDisk/source": source
"/compute:alpha/SavedAttachedDisk/storageBytes": storage_bytes
"/compute:alpha/SavedAttachedDisk/storageBytesStatus": storage_bytes_status
"/compute:alpha/SavedAttachedDisk/type": type
"/compute:alpha/Scheduling": scheduling
"/compute:alpha/Scheduling/automaticRestart": automatic_restart
"/compute:alpha/Scheduling/nodeAffinities": node_affinities
@ -20505,6 +20564,25 @@
"/compute:alpha/SourceInstanceParams": source_instance_params
"/compute:alpha/SourceInstanceParams/diskConfigs": disk_configs
"/compute:alpha/SourceInstanceParams/diskConfigs/disk_config": disk_config
"/compute:alpha/SourceInstanceProperties": source_instance_properties
"/compute:alpha/SourceInstanceProperties/canIpForward": can_ip_forward
"/compute:alpha/SourceInstanceProperties/deletionProtection": deletion_protection
"/compute:alpha/SourceInstanceProperties/description": description
"/compute:alpha/SourceInstanceProperties/disks": disks
"/compute:alpha/SourceInstanceProperties/disks/disk": disk
"/compute:alpha/SourceInstanceProperties/guestAccelerators": guest_accelerators
"/compute:alpha/SourceInstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator
"/compute:alpha/SourceInstanceProperties/labels": labels
"/compute:alpha/SourceInstanceProperties/labels/label": label
"/compute:alpha/SourceInstanceProperties/machineType": machine_type
"/compute:alpha/SourceInstanceProperties/metadata": metadata
"/compute:alpha/SourceInstanceProperties/minCpuPlatform": min_cpu_platform
"/compute:alpha/SourceInstanceProperties/networkInterfaces": network_interfaces
"/compute:alpha/SourceInstanceProperties/networkInterfaces/network_interface": network_interface
"/compute:alpha/SourceInstanceProperties/scheduling": scheduling
"/compute:alpha/SourceInstanceProperties/serviceAccounts": service_accounts
"/compute:alpha/SourceInstanceProperties/serviceAccounts/service_account": service_account
"/compute:alpha/SourceInstanceProperties/tags": tags
"/compute:alpha/SslCertificate": ssl_certificate
"/compute:alpha/SslCertificate/certificate": certificate
"/compute:alpha/SslCertificate/creationTimestamp": creation_timestamp
@ -21116,6 +21194,8 @@
"/compute:alpha/UrlMapsScopedList": url_maps_scoped_list
"/compute:alpha/UrlMapsScopedList/UrlMaps": url_maps
"/compute:alpha/UrlMapsScopedList/UrlMaps/url_map": url_map
"/compute:alpha/UrlMapsScopedList/urlMaps": url_maps
"/compute:alpha/UrlMapsScopedList/urlMaps/url_map": url_map
"/compute:alpha/UrlMapsScopedList/warning": warning
"/compute:alpha/UrlMapsScopedList/warning/code": code
"/compute:alpha/UrlMapsScopedList/warning/data": data
@ -22522,6 +22602,32 @@
"/compute:alpha/compute.licenses.testIamPermissions": test_license_iam_permissions
"/compute:alpha/compute.licenses.testIamPermissions/project": project
"/compute:alpha/compute.licenses.testIamPermissions/resource": resource
"/compute:alpha/compute.machineImages.delete": delete_machine_image
"/compute:alpha/compute.machineImages.delete/machineImage": machine_image
"/compute:alpha/compute.machineImages.delete/project": project
"/compute:alpha/compute.machineImages.delete/requestId": request_id
"/compute:alpha/compute.machineImages.get": get_machine_image
"/compute:alpha/compute.machineImages.get/machineImage": machine_image
"/compute:alpha/compute.machineImages.get/project": project
"/compute:alpha/compute.machineImages.getIamPolicy": get_machine_image_iam_policy
"/compute:alpha/compute.machineImages.getIamPolicy/project": project
"/compute:alpha/compute.machineImages.getIamPolicy/resource": resource
"/compute:alpha/compute.machineImages.insert": insert_machine_image
"/compute:alpha/compute.machineImages.insert/project": project
"/compute:alpha/compute.machineImages.insert/requestId": request_id
"/compute:alpha/compute.machineImages.insert/sourceInstance": source_instance
"/compute:alpha/compute.machineImages.list": list_machine_images
"/compute:alpha/compute.machineImages.list/filter": filter
"/compute:alpha/compute.machineImages.list/maxResults": max_results
"/compute:alpha/compute.machineImages.list/orderBy": order_by
"/compute:alpha/compute.machineImages.list/pageToken": page_token
"/compute:alpha/compute.machineImages.list/project": project
"/compute:alpha/compute.machineImages.setIamPolicy": set_machine_image_iam_policy
"/compute:alpha/compute.machineImages.setIamPolicy/project": project
"/compute:alpha/compute.machineImages.setIamPolicy/resource": resource
"/compute:alpha/compute.machineImages.testIamPermissions": test_machine_image_iam_permissions
"/compute:alpha/compute.machineImages.testIamPermissions/project": project
"/compute:alpha/compute.machineImages.testIamPermissions/resource": resource
"/compute:alpha/compute.machineTypes.aggregatedList": aggregated_machine_type_list
"/compute:alpha/compute.machineTypes.aggregatedList/filter": filter
"/compute:alpha/compute.machineTypes.aggregatedList/maxResults": max_results
@ -24161,6 +24267,7 @@
"/compute:beta/AttachedDisk/source": source
"/compute:beta/AttachedDisk/type": type
"/compute:beta/AttachedDiskInitializeParams": attached_disk_initialize_params
"/compute:beta/AttachedDiskInitializeParams/description": description
"/compute:beta/AttachedDiskInitializeParams/diskName": disk_name
"/compute:beta/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb
"/compute:beta/AttachedDiskInitializeParams/diskStorageType": disk_storage_type
@ -26560,11 +26667,17 @@
"/compute:beta/SslCertificate/certificate": certificate
"/compute:beta/SslCertificate/creationTimestamp": creation_timestamp
"/compute:beta/SslCertificate/description": description
"/compute:beta/SslCertificate/expireTime": expire_time
"/compute:beta/SslCertificate/id": id
"/compute:beta/SslCertificate/kind": kind
"/compute:beta/SslCertificate/managed": managed
"/compute:beta/SslCertificate/name": name
"/compute:beta/SslCertificate/privateKey": private_key
"/compute:beta/SslCertificate/selfLink": self_link
"/compute:beta/SslCertificate/selfManaged": self_managed
"/compute:beta/SslCertificate/subjectAlternativeNames": subject_alternative_names
"/compute:beta/SslCertificate/subjectAlternativeNames/subject_alternative_name": subject_alternative_name
"/compute:beta/SslCertificate/type": type
"/compute:beta/SslCertificateList": ssl_certificate_list
"/compute:beta/SslCertificateList/id": id
"/compute:beta/SslCertificateList/items": items
@ -26579,6 +26692,15 @@
"/compute:beta/SslCertificateList/warning/data/datum/key": key
"/compute:beta/SslCertificateList/warning/data/datum/value": value
"/compute:beta/SslCertificateList/warning/message": message
"/compute:beta/SslCertificateManagedSslCertificate": ssl_certificate_managed_ssl_certificate
"/compute:beta/SslCertificateManagedSslCertificate/domainStatus": domain_status
"/compute:beta/SslCertificateManagedSslCertificate/domainStatus/domain_status": domain_status
"/compute:beta/SslCertificateManagedSslCertificate/domains": domains
"/compute:beta/SslCertificateManagedSslCertificate/domains/domain": domain
"/compute:beta/SslCertificateManagedSslCertificate/status": status
"/compute:beta/SslCertificateSelfManagedSslCertificate": ssl_certificate_self_managed_ssl_certificate
"/compute:beta/SslCertificateSelfManagedSslCertificate/certificate": certificate
"/compute:beta/SslCertificateSelfManagedSslCertificate/privateKey": private_key
"/compute:beta/SslPoliciesList": ssl_policies_list
"/compute:beta/SslPoliciesList/id": id
"/compute:beta/SslPoliciesList/items": items
@ -29426,6 +29548,7 @@
"/compute:v1/AttachedDisk/source": source
"/compute:v1/AttachedDisk/type": type
"/compute:v1/AttachedDiskInitializeParams": attached_disk_initialize_params
"/compute:v1/AttachedDiskInitializeParams/description": description
"/compute:v1/AttachedDiskInitializeParams/diskName": disk_name
"/compute:v1/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb
"/compute:v1/AttachedDiskInitializeParams/diskType": disk_type
@ -29563,6 +29686,7 @@
"/compute:v1/BackendService/portName": port_name
"/compute:v1/BackendService/protocol": protocol
"/compute:v1/BackendService/region": region
"/compute:v1/BackendService/securityPolicy": security_policy
"/compute:v1/BackendService/selfLink": self_link
"/compute:v1/BackendService/sessionAffinity": session_affinity
"/compute:v1/BackendService/timeoutSec": timeout_sec
@ -29850,6 +29974,7 @@
"/compute:v1/Firewall/destinationRanges": destination_ranges
"/compute:v1/Firewall/destinationRanges/destination_range": destination_range
"/compute:v1/Firewall/direction": direction
"/compute:v1/Firewall/disabled": disabled
"/compute:v1/Firewall/id": id
"/compute:v1/Firewall/kind": kind
"/compute:v1/Firewall/name": name
@ -31353,6 +31478,44 @@
"/compute:v1/SchedulingNodeAffinity/operator": operator
"/compute:v1/SchedulingNodeAffinity/values": values
"/compute:v1/SchedulingNodeAffinity/values/value": value
"/compute:v1/SecurityPolicy": security_policy
"/compute:v1/SecurityPolicy/creationTimestamp": creation_timestamp
"/compute:v1/SecurityPolicy/description": description
"/compute:v1/SecurityPolicy/fingerprint": fingerprint
"/compute:v1/SecurityPolicy/id": id
"/compute:v1/SecurityPolicy/kind": kind
"/compute:v1/SecurityPolicy/name": name
"/compute:v1/SecurityPolicy/rules": rules
"/compute:v1/SecurityPolicy/rules/rule": rule
"/compute:v1/SecurityPolicy/selfLink": self_link
"/compute:v1/SecurityPolicyList": security_policy_list
"/compute:v1/SecurityPolicyList/id": id
"/compute:v1/SecurityPolicyList/items": items
"/compute:v1/SecurityPolicyList/items/item": item
"/compute:v1/SecurityPolicyList/kind": kind
"/compute:v1/SecurityPolicyList/nextPageToken": next_page_token
"/compute:v1/SecurityPolicyList/warning": warning
"/compute:v1/SecurityPolicyList/warning/code": code
"/compute:v1/SecurityPolicyList/warning/data": data
"/compute:v1/SecurityPolicyList/warning/data/datum": datum
"/compute:v1/SecurityPolicyList/warning/data/datum/key": key
"/compute:v1/SecurityPolicyList/warning/data/datum/value": value
"/compute:v1/SecurityPolicyList/warning/message": message
"/compute:v1/SecurityPolicyReference": security_policy_reference
"/compute:v1/SecurityPolicyReference/securityPolicy": security_policy
"/compute:v1/SecurityPolicyRule": security_policy_rule
"/compute:v1/SecurityPolicyRule/action": action
"/compute:v1/SecurityPolicyRule/description": description
"/compute:v1/SecurityPolicyRule/kind": kind
"/compute:v1/SecurityPolicyRule/match": match
"/compute:v1/SecurityPolicyRule/preview": preview
"/compute:v1/SecurityPolicyRule/priority": priority
"/compute:v1/SecurityPolicyRuleMatcher": security_policy_rule_matcher
"/compute:v1/SecurityPolicyRuleMatcher/config": config
"/compute:v1/SecurityPolicyRuleMatcher/versionedExpr": versioned_expr
"/compute:v1/SecurityPolicyRuleMatcherConfig": security_policy_rule_matcher_config
"/compute:v1/SecurityPolicyRuleMatcherConfig/srcIpRanges": src_ip_ranges
"/compute:v1/SecurityPolicyRuleMatcherConfig/srcIpRanges/src_ip_range": src_ip_range
"/compute:v1/SerialPortOutput": serial_port_output
"/compute:v1/SerialPortOutput/contents": contents
"/compute:v1/SerialPortOutput/kind": kind
@ -32163,6 +32326,10 @@
"/compute:v1/compute.backendServices.patch/backendService": backend_service
"/compute:v1/compute.backendServices.patch/project": project
"/compute:v1/compute.backendServices.patch/requestId": request_id
"/compute:v1/compute.backendServices.setSecurityPolicy": set_backend_service_security_policy
"/compute:v1/compute.backendServices.setSecurityPolicy/backendService": backend_service
"/compute:v1/compute.backendServices.setSecurityPolicy/project": project
"/compute:v1/compute.backendServices.setSecurityPolicy/requestId": request_id
"/compute:v1/compute.backendServices.update": update_backend_service
"/compute:v1/compute.backendServices.update/backendService": backend_service
"/compute:v1/compute.backendServices.update/project": project
@ -33293,6 +33460,41 @@
"/compute:v1/compute.routes.list/orderBy": order_by
"/compute:v1/compute.routes.list/pageToken": page_token
"/compute:v1/compute.routes.list/project": project
"/compute:v1/compute.securityPolicies.addRule": add_security_policy_rule
"/compute:v1/compute.securityPolicies.addRule/project": project
"/compute:v1/compute.securityPolicies.addRule/securityPolicy": security_policy
"/compute:v1/compute.securityPolicies.delete": delete_security_policy
"/compute:v1/compute.securityPolicies.delete/project": project
"/compute:v1/compute.securityPolicies.delete/requestId": request_id
"/compute:v1/compute.securityPolicies.delete/securityPolicy": security_policy
"/compute:v1/compute.securityPolicies.get": get_security_policy
"/compute:v1/compute.securityPolicies.get/project": project
"/compute:v1/compute.securityPolicies.get/securityPolicy": security_policy
"/compute:v1/compute.securityPolicies.getRule": get_security_policy_rule
"/compute:v1/compute.securityPolicies.getRule/priority": priority
"/compute:v1/compute.securityPolicies.getRule/project": project
"/compute:v1/compute.securityPolicies.getRule/securityPolicy": security_policy
"/compute:v1/compute.securityPolicies.insert": insert_security_policy
"/compute:v1/compute.securityPolicies.insert/project": project
"/compute:v1/compute.securityPolicies.insert/requestId": request_id
"/compute:v1/compute.securityPolicies.list": list_security_policies
"/compute:v1/compute.securityPolicies.list/filter": filter
"/compute:v1/compute.securityPolicies.list/maxResults": max_results
"/compute:v1/compute.securityPolicies.list/orderBy": order_by
"/compute:v1/compute.securityPolicies.list/pageToken": page_token
"/compute:v1/compute.securityPolicies.list/project": project
"/compute:v1/compute.securityPolicies.patch": patch_security_policy
"/compute:v1/compute.securityPolicies.patch/project": project
"/compute:v1/compute.securityPolicies.patch/requestId": request_id
"/compute:v1/compute.securityPolicies.patch/securityPolicy": security_policy
"/compute:v1/compute.securityPolicies.patchRule": patch_security_policy_rule
"/compute:v1/compute.securityPolicies.patchRule/priority": priority
"/compute:v1/compute.securityPolicies.patchRule/project": project
"/compute:v1/compute.securityPolicies.patchRule/securityPolicy": security_policy
"/compute:v1/compute.securityPolicies.removeRule": remove_security_policy_rule
"/compute:v1/compute.securityPolicies.removeRule/priority": priority
"/compute:v1/compute.securityPolicies.removeRule/project": project
"/compute:v1/compute.securityPolicies.removeRule/securityPolicy": security_policy
"/compute:v1/compute.snapshots.delete": delete_snapshot
"/compute:v1/compute.snapshots.delete/project": project
"/compute:v1/compute.snapshots.delete/requestId": request_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_4
VERSION = 'V1_4'
REVISION = '20180222'
REVISION = '20180823'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -542,6 +542,18 @@ module Google
# @return [Array<Google::Apis::AdexchangebuyerV1_4::Creative::Correction>]
attr_accessor :corrections
# Creative status identity type that the creative item applies to. Ad Exchange
# real-time bidding is migrating to the sizeless creative verification.
# Originally, Ad Exchange assigned creative verification status to a unique
# combination of a buyer creative ID and creative dimensions. Post-migration, a
# single verification status will be assigned at the buyer creative ID level.
# This field allows to distinguish whether a given creative status applies to a
# unique combination of a buyer creative ID and creative dimensions, or to a
# buyer creative ID as a whole.
# Corresponds to the JSON property `creativeStatusIdentityType`
# @return [String]
attr_accessor :creative_status_identity_type
# Top-level deals status. Read-only. This field should not be set in requests.
# If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in
# servingRestrictions will also exist. Note that this may be nuanced with other
@ -677,6 +689,7 @@ module Google
@buyer_creative_id = args[:buyer_creative_id] if args.key?(:buyer_creative_id)
@click_through_url = args[:click_through_url] if args.key?(:click_through_url)
@corrections = args[:corrections] if args.key?(:corrections)
@creative_status_identity_type = args[:creative_status_identity_type] if args.key?(:creative_status_identity_type)
@deals_status = args[:deals_status] if args.key?(:deals_status)
@detected_domains = args[:detected_domains] if args.key?(:detected_domains)
@filtering_reasons = args[:filtering_reasons] if args.key?(:filtering_reasons)
@ -3172,11 +3185,6 @@ module Google
class PublisherProfileApiProto
include Google::Apis::Core::Hashable
# Deprecated: use the seller.account_id. The account id of the seller.
# Corresponds to the JSON property `accountId`
# @return [String]
attr_accessor :account_id
# Publisher provided info on its audience.
# Corresponds to the JSON property `audience`
# @return [String]
@ -3299,7 +3307,6 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id)
@audience = args[:audience] if args.key?(:audience)
@buyer_pitch_statement = args[:buyer_pitch_statement] if args.key?(:buyer_pitch_statement)
@direct_contact = args[:direct_contact] if args.key?(:direct_contact)

View File

@ -645,6 +645,7 @@ module Google
collection :click_through_url, as: 'clickThroughUrl'
collection :corrections, as: 'corrections', class: Google::Apis::AdexchangebuyerV1_4::Creative::Correction, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Representation
property :creative_status_identity_type, as: 'creativeStatusIdentityType'
property :deals_status, as: 'dealsStatus'
collection :detected_domains, as: 'detectedDomains'
property :filtering_reasons, as: 'filteringReasons', class: Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons::Representation
@ -1320,7 +1321,6 @@ module Google
class PublisherProfileApiProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :audience, as: 'audience'
property :buyer_pitch_statement, as: 'buyerPitchStatement'
property :direct_contact, as: 'directContact'

View File

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

View File

@ -655,6 +655,11 @@ module Google
# @return [String]
attr_accessor :state
# A user belonging to an enterprise.
# Corresponds to the JSON property `user`
# @return [Google::Apis::AndroidmanagementV1::User]
attr_accessor :user
# The resource name of the user that owns this device in the form enterprises/`
# enterpriseId`/users/`userId`.
# Corresponds to the JSON property `userName`
@ -695,6 +700,7 @@ module Google
@previous_device_names = args[:previous_device_names] if args.key?(:previous_device_names)
@software_info = args[:software_info] if args.key?(:software_info)
@state = args[:state] if args.key?(:state)
@user = args[:user] if args.key?(:user)
@user_name = args[:user_name] if args.key?(:user_name)
end
end
@ -894,6 +900,11 @@ module Google
# @return [String]
attr_accessor :qr_code
# A user belonging to an enterprise.
# Corresponds to the JSON property `user`
# @return [Google::Apis::AndroidmanagementV1::User]
attr_accessor :user
# The token value that's passed to the device and authorizes the device to
# enroll. This is a read-only field generated by the server.
# Corresponds to the JSON property `value`
@ -913,6 +924,7 @@ module Google
@one_time_only = args[:one_time_only] if args.key?(:one_time_only)
@policy_name = args[:policy_name] if args.key?(:policy_name)
@qr_code = args[:qr_code] if args.key?(:qr_code)
@user = args[:user] if args.key?(:user)
@value = args[:value] if args.key?(:value)
end
end
@ -2102,6 +2114,12 @@ module Google
# @return [Array<Google::Apis::AndroidmanagementV1::PersistentPreferredActivity>]
attr_accessor :persistent_preferred_activities
# This mode controls which apps are available to the user in the Play Store and
# the behavior on the device when apps are removed from the policy.
# Corresponds to the JSON property `playStoreMode`
# @return [String]
attr_accessor :play_store_mode
# Allows showing UI on a device for a user to choose a private key alias if
# there are no matching rules in ChoosePrivateKeyRules. For devices below
# Android P, setting this may leave enterprise keys vulnerable.
@ -2305,6 +2323,7 @@ module Google
@permission_grants = args[:permission_grants] if args.key?(:permission_grants)
@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)
@play_store_mode = args[:play_store_mode] if args.key?(:play_store_mode)
@private_key_selection_enabled = args[:private_key_selection_enabled] if args.key?(:private_key_selection_enabled)
@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)
@ -2707,6 +2726,29 @@ module Google
end
end
# A user belonging to an enterprise.
class User
include Google::Apis::Core::Hashable
# A unique identifier you create for this user, such as user342 or asset#44418.
# This field must be set when the user is created and can't be updated. This
# field must not contain personally identifiable information (PII). This
# identifier must be 1024 characters or less; otherwise, the update policy
# request will fail.
# Corresponds to the JSON property `accountIdentifier`
# @return [String]
attr_accessor :account_identifier
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account_identifier = args[:account_identifier] if args.key?(:account_identifier)
end
end
# Provides a user-facing message with locale info. The maximum message length is
# 4096 characters.
class UserFacingMessage

View File

@ -280,6 +280,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserFacingMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -446,6 +452,8 @@ module Google
property :software_info, as: 'softwareInfo', class: Google::Apis::AndroidmanagementV1::SoftwareInfo, decorator: Google::Apis::AndroidmanagementV1::SoftwareInfo::Representation
property :state, as: 'state'
property :user, as: 'user', class: Google::Apis::AndroidmanagementV1::User, decorator: Google::Apis::AndroidmanagementV1::User::Representation
property :user_name, as: 'userName'
end
end
@ -492,6 +500,8 @@ module Google
property :one_time_only, as: 'oneTimeOnly'
property :policy_name, as: 'policyName'
property :qr_code, as: 'qrCode'
property :user, as: 'user', class: Google::Apis::AndroidmanagementV1::User, decorator: Google::Apis::AndroidmanagementV1::User::Representation
property :value, as: 'value'
end
end
@ -765,6 +775,7 @@ module Google
collection :persistent_preferred_activities, as: 'persistentPreferredActivities', class: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity, decorator: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity::Representation
property :play_store_mode, as: 'playStoreMode'
property :private_key_selection_enabled, as: 'privateKeySelectionEnabled'
property :recommended_global_proxy, as: 'recommendedGlobalProxy', class: Google::Apis::AndroidmanagementV1::ProxyInfo, decorator: Google::Apis::AndroidmanagementV1::ProxyInfo::Representation
@ -881,6 +892,13 @@ module Google
end
end
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_identifier, as: 'accountIdentifier'
end
end
class UserFacingMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/books/docs/v1/getting_started
module BooksV1
VERSION = 'V1'
REVISION = '20180810'
REVISION = '20180824'
# Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -3662,6 +3662,12 @@ module Google
# @return [Array<String>]
attr_accessor :categories
# Whether the volume has comics content.
# Corresponds to the JSON property `comicsContent`
# @return [Boolean]
attr_accessor :comics_content
alias_method :comics_content?, :comics_content
# An identifier for the version of the volume content (text & images). (In LITE
# projection)
# Corresponds to the JSON property `contentVersion`
@ -3790,6 +3796,7 @@ module Google
@average_rating = args[:average_rating] if args.key?(:average_rating)
@canonical_volume_link = args[:canonical_volume_link] if args.key?(:canonical_volume_link)
@categories = args[:categories] if args.key?(:categories)
@comics_content = args[:comics_content] if args.key?(:comics_content)
@content_version = args[:content_version] if args.key?(:content_version)
@description = args[:description] if args.key?(:description)
@dimensions = args[:dimensions] if args.key?(:dimensions)

View File

@ -1706,6 +1706,7 @@ module Google
property :average_rating, as: 'averageRating'
property :canonical_volume_link, as: 'canonicalVolumeLink'
collection :categories, as: 'categories'
property :comics_content, as: 'comicsContent'
property :content_version, as: 'contentVersion'
property :description, as: 'description'
property :dimensions, as: 'dimensions', class: Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions::Representation

View File

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

View File

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

View File

@ -187,12 +187,12 @@ module Google
# @param [Fixnum] page_size
# The maximum number of registries to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# objects than requested. A non-empty `next_page_token` in the response
# indicates that more data is available.
# @param [String] page_token
# The value returned by the last `ListDeviceRegistriesResponse`; indicates
# that this is a continuation of a prior `ListDeviceRegistries` call, and
# that the system should return the next page of data.
# that this is a continuation of a prior `ListDeviceRegistries` call and
# the system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -442,25 +442,24 @@ module Google
# The device registry path. Required. For example,
# `projects/my-project/locations/us-central1/registries/my-registry`.
# @param [Array<String>, String] device_ids
# A list of device string identifiers. If empty, it will ignore this field.
# For example, `['device0', 'device12']`. This field cannot hold more than
# 10,000 entries.
# A list of device string IDs. For example, `['device0', 'device12']`.
# If empty, this field is ignored. Maximum IDs: 10,000
# @param [Array<Fixnum>, Fixnum] device_num_ids
# A list of device numerical ids. If empty, it will ignore this field. This
# field cannot hold more than 10,000 entries.
# A list of device numeric IDs. If empty, this field is ignored. Maximum
# IDs: 10,000.
# @param [String] field_mask
# The fields of the `Device` resource to be returned in the response. The
# fields `id`, and `num_id` are always returned by default, along with any
# fields `id` and `num_id` are always returned, along with any
# other fields specified.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# objects than requested. A non-empty `next_page_token` in the response
# indicates that more data is available.
# @param [String] page_token
# The value returned by the last `ListDevicesResponse`; indicates
# that this is a continuation of a prior `ListDevices` call, and
# that the system should return the next page of data.
# that this is a continuation of a prior `ListDevices` call and
# the system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -797,25 +796,24 @@ module Google
# The device registry path. Required. For example,
# `projects/my-project/locations/us-central1/registries/my-registry`.
# @param [Array<String>, String] device_ids
# A list of device string identifiers. If empty, it will ignore this field.
# For example, `['device0', 'device12']`. This field cannot hold more than
# 10,000 entries.
# A list of device string IDs. For example, `['device0', 'device12']`.
# If empty, this field is ignored. Maximum IDs: 10,000
# @param [Array<Fixnum>, Fixnum] device_num_ids
# A list of device numerical ids. If empty, it will ignore this field. This
# field cannot hold more than 10,000 entries.
# A list of device numeric IDs. If empty, this field is ignored. Maximum
# IDs: 10,000.
# @param [String] field_mask
# The fields of the `Device` resource to be returned in the response. The
# fields `id`, and `num_id` are always returned by default, along with any
# fields `id` and `num_id` are always returned, along with any
# other fields specified.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# objects than requested. A non-empty `next_page_token` in the response
# indicates that more data is available.
# @param [String] page_token
# The value returned by the last `ListDevicesResponse`; indicates
# that this is a continuation of a prior `ListDevices` call, and
# that the system should return the next page of data.
# that this is a continuation of a prior `ListDevices` call and
# the system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -1030,66 +1030,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class HostType
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HostTypeAggregatedList
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 HostTypeList
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 HostTypesScopedList
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 HttpHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1924,6 +1864,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MachineImage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MachineImageList
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 MachineType
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3166,6 +3130,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SavedAttachedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Scheduling
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3298,6 +3268,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SourceInstanceProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SslCertificate
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -4762,9 +4738,9 @@ module Google
class AttachedDiskInitializeParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :disk_name, as: 'diskName'
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :disk_storage_type, as: 'diskStorageType'
property :disk_type, as: 'diskType'
hash :labels, as: 'labels'
property :source_image, as: 'sourceImage'
@ -5293,6 +5269,8 @@ module Google
class Commitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_timestamp, as: 'endTimestamp'
@ -5849,6 +5827,7 @@ module Google
property :ip_address, as: 'IPAddress'
property :ip_protocol, as: 'IPProtocol'
property :all_ports, as: 'allPorts'
property :allow_global_access, as: 'allowGlobalAccess'
property :backend_service, as: 'backendService'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
@ -6208,117 +6187,6 @@ module Google
end
end
class HostType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu_platform, as: 'cpuPlatform'
property :creation_timestamp, as: 'creationTimestamp'
property :deprecated, as: 'deprecated', class: Google::Apis::ComputeAlpha::DeprecationStatus, decorator: Google::Apis::ComputeAlpha::DeprecationStatus::Representation
property :description, as: 'description'
property :guest_cpus, as: 'guestCpus'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :local_ssd_gb, as: 'localSsdGb'
property :memory_mb, as: 'memoryMb'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :zone, as: 'zone'
end
end
class HostTypeAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeAlpha::HostTypesScopedList, decorator: Google::Apis::ComputeAlpha::HostTypesScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostTypeAggregatedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class HostTypeList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::HostType, decorator: Google::Apis::ComputeAlpha::HostType::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostTypeList::Warning, decorator: Google::Apis::ComputeAlpha::HostTypeList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostTypeList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostTypeList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class HostTypesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :host_types, as: 'hostTypes', class: Google::Apis::ComputeAlpha::HostType, decorator: Google::Apis::ComputeAlpha::HostType::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning, decorator: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HostTypesScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class HttpHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6517,6 +6385,7 @@ module Google
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation
property :hostname, as: 'hostname'
property :id, :numeric_string => true, as: 'id'
property :instance_encryption_key, as: 'instanceEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
@ -7898,6 +7767,56 @@ module Google
end
end
class MachineImage
# @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'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :source_instance, as: 'sourceInstance'
property :source_instance_properties, as: 'sourceInstanceProperties', class: Google::Apis::ComputeAlpha::SourceInstanceProperties, decorator: Google::Apis::ComputeAlpha::SourceInstanceProperties::Representation
property :status, as: 'status'
collection :storage_locations, as: 'storageLocations'
end
end
class MachineImageList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::MachineImage, decorator: Google::Apis::ComputeAlpha::MachineImage::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::MachineImageList::Warning, decorator: Google::Apis::ComputeAlpha::MachineImageList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::MachineImageList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::MachineImageList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class MachineType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -9702,8 +9621,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :daily_maintenance_window, as: 'dailyMaintenanceWindow', class: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle::Representation
property :weekly_maintenance_window, as: 'weeklyMaintenanceWindow', class: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle::Representation
end
end
@ -10075,6 +9992,32 @@ module Google
end
end
class SavedAttachedDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_delete, as: 'autoDelete'
property :boot, as: 'boot'
property :device_name, as: 'deviceName'
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
property :index, as: 'index'
property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams::Representation
property :interface, as: 'interface'
property :kind, as: 'kind'
collection :licenses, as: 'licenses'
property :mode, as: 'mode'
property :saved_state, as: 'savedState'
property :source, as: 'source'
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
property :storage_bytes_status, as: 'storageBytesStatus'
property :type, as: 'type'
end
end
class Scheduling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -10311,6 +10254,32 @@ module Google
end
end
class SourceInstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :can_ip_forward, as: 'canIpForward'
property :deletion_protection, as: 'deletionProtection'
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::SavedAttachedDisk, decorator: Google::Apis::ComputeAlpha::SavedAttachedDisk::Representation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation
hash :labels, as: 'labels'
property :machine_type, as: 'machineType'
property :metadata, as: 'metadata', class: Google::Apis::ComputeAlpha::Metadata, decorator: Google::Apis::ComputeAlpha::Metadata::Representation
property :min_cpu_platform, as: 'minCpuPlatform'
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation
property :tags, as: 'tags', class: Google::Apis::ComputeAlpha::Tags, decorator: Google::Apis::ComputeAlpha::Tags::Representation
end
end
class SslCertificate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -11596,7 +11565,7 @@ module Google
class UrlMapsScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :url_maps, as: 'UrlMaps', class: Google::Apis::ComputeAlpha::UrlMap, decorator: Google::Apis::ComputeAlpha::UrlMap::Representation
collection :url_maps, as: 'urlMaps', class: Google::Apis::ComputeAlpha::UrlMap, decorator: Google::Apis::ComputeAlpha::UrlMap::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::UrlMapsScopedList::Warning::Representation

View File

@ -5705,191 +5705,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of host types.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either =, !=, >, or <.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named example-instance by specifying name != example-instance.
# You can also filter nested fields. For example, you could specify scheduling.
# automaticRestart = false to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
# Intel Skylake"). By default, each expression is an AND expression. However,
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
# automaticRestart = true).
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::HostTypeAggregatedList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::HostTypeAggregatedList]
#
# @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 aggregated_host_type_list(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}/aggregated/hostTypes', options)
command.response_representation = Google::Apis::ComputeAlpha::HostTypeAggregatedList::Representation
command.response_class = Google::Apis::ComputeAlpha::HostTypeAggregatedList
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
# Returns the specified host type. Gets a list of available host types by making
# a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] host_type
# Name of the host type to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::HostType] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::HostType]
#
# @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_host_type(project, zone, host_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/hostTypes/{hostType}', options)
command.response_representation = Google::Apis::ComputeAlpha::HostType::Representation
command.response_class = Google::Apis::ComputeAlpha::HostType
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['hostType'] = host_type unless host_type.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 a list of host types available to the specified project.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either =, !=, >, or <.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named example-instance by specifying name != example-instance.
# You can also filter nested fields. For example, you could specify scheduling.
# automaticRestart = false to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
# Intel Skylake"). By default, each expression is an AND expression. However,
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
# automaticRestart = true).
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::HostTypeList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::HostTypeList]
#
# @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_host_types(project, zone, 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}/zones/{zone}/hostTypes', options)
command.response_representation = Google::Apis::ComputeAlpha::HostTypeList::Representation
command.response_class = Google::Apis::ComputeAlpha::HostTypeList
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.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
# Deletes the specified HttpHealthCheck resource.
# @param [String] project
# Project ID for this request.
@ -9317,7 +9132,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves aggregated list of instances.
# Retrieves aggregated list of all of the instances in your project across all
# regions and zones.
# @param [String] project
# Project ID for this request.
# @param [String] filter
@ -9734,7 +9550,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the specified instance's serial port output.
# Returns the last 1 MB of serial port output from the specified instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -12890,6 +12706,336 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified machine image. If you delete an instance template that
# is being referenced from another instance group, the instance group will not
# be able to create or recreate virtual machine instances. Deleting an machine
# image is permanent and cannot be undone.
# @param [String] project
# Project ID for this request.
# @param [String] machine_image
# The name of the machine image to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::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_machine_image(project, machine_image, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/machineImages/{machineImage}', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['machineImage'] = machine_image unless machine_image.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 machine image. Gets a list of available machine images
# by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] machine_image
# The name of the machine image.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::MachineImage] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::MachineImage]
#
# @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_machine_image(project, machine_image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/machineImages/{machineImage}', options)
command.response_representation = Google::Apis::ComputeAlpha::MachineImage::Representation
command.response_class = Google::Apis::ComputeAlpha::MachineImage
command.params['project'] = project unless project.nil?
command.params['machineImage'] = machine_image unless machine_image.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
# Gets the access control policy for a resource. May be empty if no such policy
# or resource exists.
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Policy]
#
# @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_machine_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/machineImages/{resource}/getIamPolicy', options)
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.response_class = Google::Apis::ComputeAlpha::Policy
command.params['project'] = project unless project.nil?
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates an machine image in the specified project using the data that is
# included in the request. If you are creating a new template to update an
# existing instance group, your new machine image must use the same network or,
# if applicable, the same subnetwork as the original template.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeAlpha::MachineImage] machine_image_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] source_instance
# Optional. Source image to restore onto a disk.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::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_machine_image(project, machine_image_object = nil, request_id: nil, source_instance: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/machineImages', options)
command.request_representation = Google::Apis::ComputeAlpha::MachineImage::Representation
command.request_object = machine_image_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['sourceInstance'] = source_instance unless source_instance.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 a list of machine images that are contained within the specified
# project.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either =, !=, >, or <.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named example-instance by specifying name != example-instance.
# You can also filter nested fields. For example, you could specify scheduling.
# automaticRestart = false to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
# Intel Skylake"). By default, each expression is an AND expression. However,
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
# automaticRestart = true).
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::MachineImageList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::MachineImageList]
#
# @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_machine_images(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/machineImages', options)
command.response_representation = Google::Apis::ComputeAlpha::MachineImageList::Representation
command.response_class = Google::Apis::ComputeAlpha::MachineImageList
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
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Policy]
#
# @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 set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/machineImages/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
command.request_object = global_set_policy_request_object
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.response_class = Google::Apis::ComputeAlpha::Policy
command.params['project'] = project unless project.nil?
command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
#
# @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 test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/machineImages/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['resource'] = resource unless resource.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

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

View File

@ -1166,6 +1166,11 @@ module Google
class AttachedDiskInitializeParams
include Google::Apis::Core::Hashable
# An optional description. Provide this property when creating the disk.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Specifies the disk name. If not specified, the default is to use the name of
# the instance. If the disk with the instance name exists already in the given
# zone/region, a new name will be automatically generated.
@ -1178,11 +1183,6 @@ module Google
# @return [Fixnum]
attr_accessor :disk_size_gb
# [Deprecated] Storage type of the disk.
# Corresponds to the JSON property `diskStorageType`
# @return [String]
attr_accessor :disk_storage_type
# Specifies the disk type to use to create the instance. If not specified, the
# default is pd-standard, specified using the full URL. For example:
# https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-
@ -1236,9 +1236,9 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@disk_name = args[:disk_name] if args.key?(:disk_name)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@disk_storage_type = args[:disk_storage_type] if args.key?(:disk_storage_type)
@disk_type = args[:disk_type] if args.key?(:disk_type)
@labels = args[:labels] if args.key?(:labels)
@source_image = args[:source_image] if args.key?(:source_image)
@ -11284,9 +11284,9 @@ module Google
# @return [String]
attr_accessor :address
# [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".
# [Output Only] Availability zone for this InterconnectLocation. 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
@ -19645,7 +19645,8 @@ module Google
end
# A security policy is comprised of one or more rules. It can also be associated
# with one or more 'targets'. (== resource_for beta.securityPolicies ==)
# with one or more 'targets'. (== resource_for v1.securityPolicies ==) (==
# resource_for beta.securityPolicies ==)
class SecurityPolicy
include Google::Apis::Core::Hashable
@ -20482,6 +20483,11 @@ module Google
# @return [String]
attr_accessor :description
# [Output Only] Expire time of the certificate. RFC3339
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expire_time
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@ -20494,6 +20500,11 @@ module Google
# @return [String]
attr_accessor :kind
# Configuration and status of a managed SSL certificate.
# Corresponds to the JSON property `managed`
# @return [Google::Apis::ComputeBeta::SslCertificateManagedSslCertificate]
attr_accessor :managed
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
@ -20515,6 +20526,24 @@ module Google
# @return [String]
attr_accessor :self_link
# Configuration and status of a self-managed SSL certificate.
# Corresponds to the JSON property `selfManaged`
# @return [Google::Apis::ComputeBeta::SslCertificateSelfManagedSslCertificate]
attr_accessor :self_managed
# [Output Only] Domains associated with the certificate via Subject Alternative
# Name.
# Corresponds to the JSON property `subjectAlternativeNames`
# @return [Array<String>]
attr_accessor :subject_alternative_names
# (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "
# MANAGED". If not specified, the certificate is self-managed and the fields
# certificate and private_key are used.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
@ -20524,11 +20553,16 @@ module Google
@certificate = args[:certificate] if args.key?(:certificate)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@expire_time = args[:expire_time] if args.key?(:expire_time)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@managed = args[:managed] if args.key?(:managed)
@name = args[:name] if args.key?(:name)
@private_key = args[:private_key] if args.key?(:private_key)
@self_link = args[:self_link] if args.key?(:self_link)
@self_managed = args[:self_managed] if args.key?(:self_managed)
@subject_alternative_names = args[:subject_alternative_names] if args.key?(:subject_alternative_names)
@type = args[:type] if args.key?(:type)
end
end
@ -20649,6 +20683,67 @@ module Google
end
end
# Configuration and status of a managed SSL certificate.
class SslCertificateManagedSslCertificate
include Google::Apis::Core::Hashable
# [Output only] Detailed statuses of the domains specified for managed
# certificate resource.
# Corresponds to the JSON property `domainStatus`
# @return [Hash<String,String>]
attr_accessor :domain_status
# The domains for which a managed SSL certificate will be generated. Currently
# only single-domain certs are supported.
# Corresponds to the JSON property `domains`
# @return [Array<String>]
attr_accessor :domains
# [Output only] Status of the managed certificate resource.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@domain_status = args[:domain_status] if args.key?(:domain_status)
@domains = args[:domains] if args.key?(:domains)
@status = args[:status] if args.key?(:status)
end
end
# Configuration and status of a self-managed SSL certificate.
class SslCertificateSelfManagedSslCertificate
include Google::Apis::Core::Hashable
# A local certificate file. The certificate must be in PEM format. The
# certificate chain must be no greater than 5 certs long. The chain must include
# at least one intermediate cert.
# Corresponds to the JSON property `certificate`
# @return [String]
attr_accessor :certificate
# A write-only private key in PEM format. Only insert requests will include this
# field.
# Corresponds to the JSON property `privateKey`
# @return [String]
attr_accessor :private_key
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@certificate = args[:certificate] if args.key?(:certificate)
@private_key = args[:private_key] if args.key?(:private_key)
end
end
#
class SslPoliciesList
include Google::Apis::Core::Hashable

View File

@ -2842,6 +2842,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SslCertificateManagedSslCertificate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SslCertificateSelfManagedSslCertificate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SslPoliciesList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3859,9 +3871,9 @@ module Google
class AttachedDiskInitializeParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :disk_name, as: 'diskName'
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :disk_storage_type, as: 'diskStorageType'
property :disk_type, as: 'diskType'
hash :labels, as: 'labels'
property :source_image, as: 'sourceImage'
@ -8714,11 +8726,18 @@ module Google
property :certificate, as: 'certificate'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :expire_time, as: 'expireTime'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :managed, as: 'managed', class: Google::Apis::ComputeBeta::SslCertificateManagedSslCertificate, decorator: Google::Apis::ComputeBeta::SslCertificateManagedSslCertificate::Representation
property :name, as: 'name'
property :private_key, as: 'privateKey'
property :self_link, as: 'selfLink'
property :self_managed, as: 'selfManaged', class: Google::Apis::ComputeBeta::SslCertificateSelfManagedSslCertificate, decorator: Google::Apis::ComputeBeta::SslCertificateSelfManagedSslCertificate::Representation
collection :subject_alternative_names, as: 'subjectAlternativeNames'
property :type, as: 'type'
end
end
@ -8754,6 +8773,23 @@ module Google
end
end
class SslCertificateManagedSslCertificate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :domain_status, as: 'domainStatus'
collection :domains, as: 'domains'
property :status, as: 'status'
end
end
class SslCertificateSelfManagedSslCertificate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :certificate, as: 'certificate'
property :private_key, as: 'privateKey'
end
end
class SslPoliciesList
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -8099,7 +8099,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves aggregated list of instances.
# Retrieves aggregated list of all of the instances in your project across all
# regions and zones.
# @param [String] project
# Project ID for this request.
# @param [String] filter
@ -8474,7 +8475,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the specified instance's serial port output.
# Returns the last 1 MB of serial port output from the specified instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone

View File

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

View File

@ -1127,6 +1127,11 @@ module Google
class AttachedDiskInitializeParams
include Google::Apis::Core::Hashable
# An optional description. Provide this property when creating the disk.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Specifies the disk name. If not specified, the default is to use the name of
# the instance. If the disk with the instance name exists already in the given
# zone/region, a new name will be automatically generated.
@ -1192,6 +1197,7 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@disk_name = args[:disk_name] if args.key?(:disk_name)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@disk_type = args[:disk_type] if args.key?(:disk_type)
@ -2258,6 +2264,12 @@ module Google
# @return [String]
attr_accessor :region
# [Output Only] The resource URL for the security policy associated with this
# backend service.
# Corresponds to the JSON property `securityPolicy`
# @return [String]
attr_accessor :security_policy
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -2303,6 +2315,7 @@ module Google
@port_name = args[:port_name] if args.key?(:port_name)
@protocol = args[:protocol] if args.key?(:protocol)
@region = args[:region] if args.key?(:region)
@security_policy = args[:security_policy] if args.key?(:security_policy)
@self_link = args[:self_link] if args.key?(:self_link)
@session_affinity = args[:session_affinity] if args.key?(:session_affinity)
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
@ -4547,6 +4560,15 @@ module Google
# @return [String]
attr_accessor :direction
# Denotes whether the firewall rule is disabled, i.e not applied to the network
# it is associated with. When set to true, the firewall rule is not enforced and
# the network behaves as if it did not exist. If this is unspecified, the
# firewall rule will be enabled.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@ -4664,6 +4686,7 @@ module Google
@description = args[:description] if args.key?(:description)
@destination_ranges = args[:destination_ranges] if args.key?(:destination_ranges)
@direction = args[:direction] if args.key?(:direction)
@disabled = args[:disabled] if args.key?(:disabled)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@ -10130,9 +10153,9 @@ module Google
# @return [String]
attr_accessor :address
# [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".
# [Output Only] Availability zone for this InterconnectLocation. 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
@ -16691,6 +16714,325 @@ module Google
end
end
# A security policy is comprised of one or more rules. It can also be associated
# with one or more 'targets'. (== resource_for v1.securityPolicies ==) (==
# resource_for beta.securityPolicies ==)
class SecurityPolicy
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Specifies a fingerprint for this resource, which is essentially a hash of the
# metadata's contents and used for optimistic locking. The fingerprint is
# initially generated by Compute Engine and changes after every request to
# modify or update metadata. You must always provide an up-to-date fingerprint
# hash in order to update or change metadata.
# To see the latest fingerprint, make get() request to the security policy.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :fingerprint
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output only] Type of the resource. Always compute#securityPolicyfor security
# policies
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
# z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A list of rules that belong to this policy. There must always be a default
# rule (rule with priority 2147483647 and match "*"). If no rules are provided
# when creating a security policy, a default rule with action "allow" will be
# added.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ComputeV1::SecurityPolicyRule>]
attr_accessor :rules
# [Output Only] Server-defined URL for the resource.
# 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)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@rules = args[:rules] if args.key?(:rules)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
#
class SecurityPolicyList
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 SecurityPolicy resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::SecurityPolicy>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#securityPolicyList for listsof
# securityPolicies
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeV1::SecurityPolicyList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@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::ComputeV1::SecurityPolicyList::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
#
class SecurityPolicyReference
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `securityPolicy`
# @return [String]
attr_accessor :security_policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@security_policy = args[:security_policy] if args.key?(:security_policy)
end
end
# Represents a rule that describes one or more match conditions along with the
# action to be taken when traffic matches this condition (allow or deny).
class SecurityPolicyRule
include Google::Apis::Core::Hashable
# The Action to preform when the client connection triggers the rule. Can
# currently be either "allow" or "deny()" where valid values for status are 403,
# 404, and 502.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output only] Type of the resource. Always compute#securityPolicyRule for
# security policy rules
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Represents a match condition that incoming traffic is evaluated against.
# Exactly one field must be specified.
# Corresponds to the JSON property `match`
# @return [Google::Apis::ComputeV1::SecurityPolicyRuleMatcher]
attr_accessor :match
# If set to true, the specified action is not enforced.
# Corresponds to the JSON property `preview`
# @return [Boolean]
attr_accessor :preview
alias_method :preview?, :preview
# An integer indicating the priority of a rule in the list. The priority must be
# a positive value between 0 and 2147483647. Rules are evaluated in the
# increasing order of priority.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@description = args[:description] if args.key?(:description)
@kind = args[:kind] if args.key?(:kind)
@match = args[:match] if args.key?(:match)
@preview = args[:preview] if args.key?(:preview)
@priority = args[:priority] if args.key?(:priority)
end
end
# Represents a match condition that incoming traffic is evaluated against.
# Exactly one field must be specified.
class SecurityPolicyRuleMatcher
include Google::Apis::Core::Hashable
# The configuration options available when specifying versioned_expr. This field
# must be specified if versioned_expr is specified and cannot be specified if
# versioned_expr is not specified.
# Corresponds to the JSON property `config`
# @return [Google::Apis::ComputeV1::SecurityPolicyRuleMatcherConfig]
attr_accessor :config
# Preconfigured versioned expression. If this field is specified, config must
# also be specified. Available preconfigured expressions along with their
# requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range
# field in config.
# Corresponds to the JSON property `versionedExpr`
# @return [String]
attr_accessor :versioned_expr
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@config = args[:config] if args.key?(:config)
@versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr)
end
end
#
class SecurityPolicyRuleMatcherConfig
include Google::Apis::Core::Hashable
# CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>]
attr_accessor :src_ip_ranges
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
end
end
# An instance's serial console output.
class SerialPortOutput
include Google::Apis::Core::Hashable

View File

@ -2290,6 +2290,54 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicyList
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 SecurityPolicyReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicyRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicyRuleMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicyRuleMatcherConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SerialPortOutput
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3350,6 +3398,7 @@ module Google
class AttachedDiskInitializeParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :disk_name, as: 'diskName'
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :disk_type, as: 'diskType'
@ -3614,6 +3663,7 @@ module Google
property :port_name, as: 'portName'
property :protocol, as: 'protocol'
property :region, as: 'region'
property :security_policy, as: 'securityPolicy'
property :self_link, as: 'selfLink'
property :session_affinity, as: 'sessionAffinity'
property :timeout_sec, as: 'timeoutSec'
@ -4198,6 +4248,7 @@ module Google
property :description, as: 'description'
collection :destination_ranges, as: 'destinationRanges'
property :direction, as: 'direction'
property :disabled, as: 'disabled'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
@ -7264,6 +7315,88 @@ module Google
end
end
class SecurityPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :rules, as: 'rules', class: Google::Apis::ComputeV1::SecurityPolicyRule, decorator: Google::Apis::ComputeV1::SecurityPolicyRule::Representation
property :self_link, as: 'selfLink'
end
end
class SecurityPolicyList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::SecurityPolicy, decorator: Google::Apis::ComputeV1::SecurityPolicy::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::SecurityPolicyList::Warning, decorator: Google::Apis::ComputeV1::SecurityPolicyList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::SecurityPolicyList::Warning::Datum, decorator: Google::Apis::ComputeV1::SecurityPolicyList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class SecurityPolicyReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :security_policy, as: 'securityPolicy'
end
end
class SecurityPolicyRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :description, as: 'description'
property :kind, as: 'kind'
property :match, as: 'match', class: Google::Apis::ComputeV1::SecurityPolicyRuleMatcher, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleMatcher::Representation
property :preview, as: 'preview'
property :priority, as: 'priority'
end
end
class SecurityPolicyRuleMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :config, as: 'config', class: Google::Apis::ComputeV1::SecurityPolicyRuleMatcherConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleMatcherConfig::Representation
property :versioned_expr, as: 'versionedExpr'
end
end
class SecurityPolicyRuleMatcherConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :src_ip_ranges, as: 'srcIpRanges'
end
end
class SerialPortOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1814,6 +1814,58 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the security policy for the specified backend service.
# @param [String] project
# Project ID for this request.
# @param [String] backend_service
# Name of the BackendService resource to which the security policy should be set.
# The name should conform to RFC1035.
# @param [Google::Apis::ComputeV1::SecurityPolicyReference] security_policy_reference_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_backend_service_security_policy(project, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/setSecurityPolicy', options)
command.request_representation = Google::Apis::ComputeV1::SecurityPolicyReference::Representation
command.request_object = security_policy_reference_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['backendService'] = backend_service unless backend_service.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
# Updates the specified BackendService resource with the data included in the
# request. There are several restrictions and guidelines to keep in mind when
# updating a backend service. Read Restrictions and Guidelines for more
@ -6672,7 +6724,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves aggregated list of instances.
# Retrieves aggregated list of all of the instances in your project across all
# regions and zones.
# @param [String] project
# Project ID for this request.
# @param [String] filter
@ -7007,7 +7060,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the specified instance's serial port output.
# Returns the last 1 MB of serial port output from the specified instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -14803,6 +14856,420 @@ module Google
execute_or_queue_command(command, &block)
end
# Inserts a rule into a security policy.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def add_security_policy_rule(project, security_policy, security_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/addRule', options)
command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.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 policy.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_security_policy(project, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/securityPolicies/{securityPolicy}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.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
# List all of the ordered rules present in a single specified policy.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::SecurityPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::SecurityPolicy]
#
# @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_security_policy(project, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/securityPolicies/{securityPolicy}', options)
command.response_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
command.response_class = Google::Apis::ComputeV1::SecurityPolicy
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.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
# Gets a rule at the specified priority.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to which the queried rule belongs.
# @param [Fixnum] priority
# The priority of the rule to get from the security policy.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyRule] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::SecurityPolicyRule]
#
# @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_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/securityPolicies/{securityPolicy}/getRule', options)
command.response_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
command.response_class = Google::Apis::ComputeV1::SecurityPolicyRule
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a new policy in the specified project using the data included in the
# request.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_security_policy(project, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies', options)
command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
command.request_object = security_policy_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# List all the policies that have been configured for the specified project.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# A filter expression that filters resources listed in the response. The
# expression must specify the field name, a comparison operator, and the value
# that you want to use for filtering. The value must be a string, a number, or a
# boolean. The comparison operator must be either =, !=, >, or <.
# For example, if you are filtering Compute Engine instances, you can exclude
# instances named example-instance by specifying name != example-instance.
# You can also filter nested fields. For example, you could specify scheduling.
# automaticRestart = false to include instances only if they are not scheduled
# for automatic restarts. You can use filtering on nested fields to filter based
# on resource labels.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
# Intel Skylake"). By default, each expression is an AND expression. However,
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
# automaticRestart = true).
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::SecurityPolicyList]
#
# @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_security_policies(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/securityPolicies', options)
command.response_representation = Google::Apis::ComputeV1::SecurityPolicyList::Representation
command.response_class = Google::Apis::ComputeV1::SecurityPolicyList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Patches the specified policy with the data included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_security_policy(project, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/securityPolicies/{securityPolicy}', options)
command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
command.request_object = security_policy_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.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
# Patches a rule at the specified priority.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
# @param [Fixnum] priority
# The priority of the rule to patch.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/patchRule', options)
command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.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 a rule at the specified priority.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Fixnum] priority
# The priority of the rule to remove from the security policy.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def remove_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/removeRule', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.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 Snapshot resource. Keep in mind that deleting a single
# snapshot might not necessarily delete all the data on that snapshot. If any
# data on the snapshot that is marked for deletion is needed for subsequent