Autogenerated update (2018-03-08)

Update:
- adexchangebuyer2_v2beta1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2beta1
- compute_alpha
- compute_beta
- compute_v1
- dataproc_v1
- dataproc_v1beta2
- dialogflow_v2beta1
- proximitybeacon_v1beta1
- serviceconsumermanagement_v1
- servicecontrol_v1
- serviceusage_v1beta1
- spanner_v1
- testing_v1
This commit is contained in:
Google APIs 2018-03-08 00:36:04 +00:00
parent d698a2564a
commit 7206351ec1
45 changed files with 4149 additions and 384 deletions

View File

@ -16037,7 +16037,10 @@
"/compute:alpha/Address/labels": labels "/compute:alpha/Address/labels": labels
"/compute:alpha/Address/labels/label": label "/compute:alpha/Address/labels/label": label
"/compute:alpha/Address/name": name "/compute:alpha/Address/name": name
"/compute:alpha/Address/network": network
"/compute:alpha/Address/networkTier": network_tier "/compute:alpha/Address/networkTier": network_tier
"/compute:alpha/Address/prefixLength": prefix_length
"/compute:alpha/Address/purpose": purpose
"/compute:alpha/Address/region": region "/compute:alpha/Address/region": region
"/compute:alpha/Address/selfLink": self_link "/compute:alpha/Address/selfLink": self_link
"/compute:alpha/Address/status": status "/compute:alpha/Address/status": status
@ -18433,8 +18436,15 @@
"/compute:alpha/SSLHealthCheck/response": response "/compute:alpha/SSLHealthCheck/response": response
"/compute:alpha/Scheduling": scheduling "/compute:alpha/Scheduling": scheduling
"/compute:alpha/Scheduling/automaticRestart": automatic_restart "/compute:alpha/Scheduling/automaticRestart": automatic_restart
"/compute:alpha/Scheduling/nodeAffinities": node_affinities
"/compute:alpha/Scheduling/nodeAffinities/node_affinity": node_affinity
"/compute:alpha/Scheduling/onHostMaintenance": on_host_maintenance "/compute:alpha/Scheduling/onHostMaintenance": on_host_maintenance
"/compute:alpha/Scheduling/preemptible": preemptible "/compute:alpha/Scheduling/preemptible": preemptible
"/compute:alpha/SchedulingNodeAffinity": scheduling_node_affinity
"/compute:alpha/SchedulingNodeAffinity/key": key
"/compute:alpha/SchedulingNodeAffinity/operator": operator
"/compute:alpha/SchedulingNodeAffinity/values": values
"/compute:alpha/SchedulingNodeAffinity/values/value": value
"/compute:alpha/SecurityPoliciesList": security_policies_list "/compute:alpha/SecurityPoliciesList": security_policies_list
"/compute:alpha/SecurityPoliciesList/id": id "/compute:alpha/SecurityPoliciesList/id": id
"/compute:alpha/SecurityPoliciesList/items": items "/compute:alpha/SecurityPoliciesList/items": items
@ -18502,6 +18512,7 @@
"/compute:alpha/ServiceAccount/scopes": scopes "/compute:alpha/ServiceAccount/scopes": scopes
"/compute:alpha/ServiceAccount/scopes/scope": scope "/compute:alpha/ServiceAccount/scopes/scope": scope
"/compute:alpha/ShieldedVmConfig": shielded_vm_config "/compute:alpha/ShieldedVmConfig": shielded_vm_config
"/compute:alpha/ShieldedVmConfig/enableIntegrityMonitoring": enable_integrity_monitoring
"/compute:alpha/ShieldedVmConfig/enableSecureBoot": enable_secure_boot "/compute:alpha/ShieldedVmConfig/enableSecureBoot": enable_secure_boot
"/compute:alpha/ShieldedVmConfig/enableVtpm": enable_vtpm "/compute:alpha/ShieldedVmConfig/enableVtpm": enable_vtpm
"/compute:alpha/SignedUrlKey": signed_url_key "/compute:alpha/SignedUrlKey": signed_url_key
@ -18511,6 +18522,8 @@
"/compute:alpha/Snapshot/creationTimestamp": creation_timestamp "/compute:alpha/Snapshot/creationTimestamp": creation_timestamp
"/compute:alpha/Snapshot/description": description "/compute:alpha/Snapshot/description": description
"/compute:alpha/Snapshot/diskSizeGb": disk_size_gb "/compute:alpha/Snapshot/diskSizeGb": disk_size_gb
"/compute:alpha/Snapshot/guestOsFeatures": guest_os_features
"/compute:alpha/Snapshot/guestOsFeatures/guest_os_feature": guest_os_feature
"/compute:alpha/Snapshot/id": id "/compute:alpha/Snapshot/id": id
"/compute:alpha/Snapshot/kind": kind "/compute:alpha/Snapshot/kind": kind
"/compute:alpha/Snapshot/labelFingerprint": label_fingerprint "/compute:alpha/Snapshot/labelFingerprint": label_fingerprint
@ -18647,6 +18660,7 @@
"/compute:alpha/Subnetwork/gatewayAddress": gateway_address "/compute:alpha/Subnetwork/gatewayAddress": gateway_address
"/compute:alpha/Subnetwork/id": id "/compute:alpha/Subnetwork/id": id
"/compute:alpha/Subnetwork/ipCidrRange": ip_cidr_range "/compute:alpha/Subnetwork/ipCidrRange": ip_cidr_range
"/compute:alpha/Subnetwork/ipv6CidrRange": ipv6_cidr_range
"/compute:alpha/Subnetwork/kind": kind "/compute:alpha/Subnetwork/kind": kind
"/compute:alpha/Subnetwork/name": name "/compute:alpha/Subnetwork/name": name
"/compute:alpha/Subnetwork/network": network "/compute:alpha/Subnetwork/network": network
@ -21831,6 +21845,9 @@
"/compute:beta/Disk/licenses/license": license "/compute:beta/Disk/licenses/license": license
"/compute:beta/Disk/name": name "/compute:beta/Disk/name": name
"/compute:beta/Disk/options": options "/compute:beta/Disk/options": options
"/compute:beta/Disk/region": region
"/compute:beta/Disk/replicaZones": replica_zones
"/compute:beta/Disk/replicaZones/replica_zone": replica_zone
"/compute:beta/Disk/selfLink": self_link "/compute:beta/Disk/selfLink": self_link
"/compute:beta/Disk/sizeGb": size_gb "/compute:beta/Disk/sizeGb": size_gb
"/compute:beta/Disk/sourceImage": source_image "/compute:beta/Disk/sourceImage": source_image
@ -22615,6 +22632,9 @@
"/compute:beta/Interconnect/requestedLinkCount": requested_link_count "/compute:beta/Interconnect/requestedLinkCount": requested_link_count
"/compute:beta/Interconnect/selfLink": self_link "/compute:beta/Interconnect/selfLink": self_link
"/compute:beta/InterconnectAttachment": interconnect_attachment "/compute:beta/InterconnectAttachment": interconnect_attachment
"/compute:beta/InterconnectAttachment/adminEnabled": admin_enabled
"/compute:beta/InterconnectAttachment/candidateSubnets": candidate_subnets
"/compute:beta/InterconnectAttachment/candidateSubnets/candidate_subnet": candidate_subnet
"/compute:beta/InterconnectAttachment/cloudRouterIpAddress": cloud_router_ip_address "/compute:beta/InterconnectAttachment/cloudRouterIpAddress": cloud_router_ip_address
"/compute:beta/InterconnectAttachment/creationTimestamp": creation_timestamp "/compute:beta/InterconnectAttachment/creationTimestamp": creation_timestamp
"/compute:beta/InterconnectAttachment/customerRouterIpAddress": customer_router_ip_address "/compute:beta/InterconnectAttachment/customerRouterIpAddress": customer_router_ip_address
@ -22632,6 +22652,8 @@
"/compute:beta/InterconnectAttachment/region": region "/compute:beta/InterconnectAttachment/region": region
"/compute:beta/InterconnectAttachment/router": router "/compute:beta/InterconnectAttachment/router": router
"/compute:beta/InterconnectAttachment/selfLink": self_link "/compute:beta/InterconnectAttachment/selfLink": self_link
"/compute:beta/InterconnectAttachment/type": type
"/compute:beta/InterconnectAttachment/vlanTag8021q": vlan_tag8021q
"/compute:beta/InterconnectAttachmentAggregatedList": interconnect_attachment_aggregated_list "/compute:beta/InterconnectAttachmentAggregatedList": interconnect_attachment_aggregated_list
"/compute:beta/InterconnectAttachmentAggregatedList/id": id "/compute:beta/InterconnectAttachmentAggregatedList/id": id
"/compute:beta/InterconnectAttachmentAggregatedList/items": items "/compute:beta/InterconnectAttachmentAggregatedList/items": items
@ -23080,6 +23102,22 @@
"/compute:beta/RegionAutoscalerList/warning/data/datum/key": key "/compute:beta/RegionAutoscalerList/warning/data/datum/key": key
"/compute:beta/RegionAutoscalerList/warning/data/datum/value": value "/compute:beta/RegionAutoscalerList/warning/data/datum/value": value
"/compute:beta/RegionAutoscalerList/warning/message": message "/compute:beta/RegionAutoscalerList/warning/message": message
"/compute:beta/RegionDiskTypeList": region_disk_type_list
"/compute:beta/RegionDiskTypeList/id": id
"/compute:beta/RegionDiskTypeList/items": items
"/compute:beta/RegionDiskTypeList/items/item": item
"/compute:beta/RegionDiskTypeList/kind": kind
"/compute:beta/RegionDiskTypeList/nextPageToken": next_page_token
"/compute:beta/RegionDiskTypeList/selfLink": self_link
"/compute:beta/RegionDiskTypeList/warning": warning
"/compute:beta/RegionDiskTypeList/warning/code": code
"/compute:beta/RegionDiskTypeList/warning/data": data
"/compute:beta/RegionDiskTypeList/warning/data/datum": datum
"/compute:beta/RegionDiskTypeList/warning/data/datum/key": key
"/compute:beta/RegionDiskTypeList/warning/data/datum/value": value
"/compute:beta/RegionDiskTypeList/warning/message": message
"/compute:beta/RegionDisksResizeRequest": region_disks_resize_request
"/compute:beta/RegionDisksResizeRequest/sizeGb": size_gb
"/compute:beta/RegionInstanceGroupList": region_instance_group_list "/compute:beta/RegionInstanceGroupList": region_instance_group_list
"/compute:beta/RegionInstanceGroupList/id": id "/compute:beta/RegionInstanceGroupList/id": id
"/compute:beta/RegionInstanceGroupList/items": items "/compute:beta/RegionInstanceGroupList/items": items
@ -23924,6 +23962,24 @@
"/compute:beta/UrlMapsValidateRequest/resource": resource "/compute:beta/UrlMapsValidateRequest/resource": resource
"/compute:beta/UrlMapsValidateResponse": validate_url_maps_response "/compute:beta/UrlMapsValidateResponse": validate_url_maps_response
"/compute:beta/UrlMapsValidateResponse/result": result "/compute:beta/UrlMapsValidateResponse/result": result
"/compute:beta/UsableSubnetwork": usable_subnetwork
"/compute:beta/UsableSubnetwork/ipCidrRange": ip_cidr_range
"/compute:beta/UsableSubnetwork/network": network
"/compute:beta/UsableSubnetwork/subnetwork": subnetwork
"/compute:beta/UsableSubnetworksAggregatedList": usable_subnetworks_aggregated_list
"/compute:beta/UsableSubnetworksAggregatedList/id": id
"/compute:beta/UsableSubnetworksAggregatedList/items": items
"/compute:beta/UsableSubnetworksAggregatedList/items/item": item
"/compute:beta/UsableSubnetworksAggregatedList/kind": kind
"/compute:beta/UsableSubnetworksAggregatedList/nextPageToken": next_page_token
"/compute:beta/UsableSubnetworksAggregatedList/selfLink": self_link
"/compute:beta/UsableSubnetworksAggregatedList/warning": warning
"/compute:beta/UsableSubnetworksAggregatedList/warning/code": code
"/compute:beta/UsableSubnetworksAggregatedList/warning/data": data
"/compute:beta/UsableSubnetworksAggregatedList/warning/data/datum": datum
"/compute:beta/UsableSubnetworksAggregatedList/warning/data/datum/key": key
"/compute:beta/UsableSubnetworksAggregatedList/warning/data/datum/value": value
"/compute:beta/UsableSubnetworksAggregatedList/warning/message": message
"/compute:beta/UsageExportLocation": usage_export_location "/compute:beta/UsageExportLocation": usage_export_location
"/compute:beta/UsageExportLocation/bucketName": bucket_name "/compute:beta/UsageExportLocation/bucketName": bucket_name
"/compute:beta/UsageExportLocation/reportNamePrefix": report_name_prefix "/compute:beta/UsageExportLocation/reportNamePrefix": report_name_prefix
@ -24691,6 +24747,7 @@
"/compute:beta/compute.instances.aggregatedList/pageToken": page_token "/compute:beta/compute.instances.aggregatedList/pageToken": page_token
"/compute:beta/compute.instances.aggregatedList/project": project "/compute:beta/compute.instances.aggregatedList/project": project
"/compute:beta/compute.instances.attachDisk": attach_disk "/compute:beta/compute.instances.attachDisk": attach_disk
"/compute:beta/compute.instances.attachDisk/forceAttach": force_attach
"/compute:beta/compute.instances.attachDisk/instance": instance "/compute:beta/compute.instances.attachDisk/instance": instance
"/compute:beta/compute.instances.attachDisk/project": project "/compute:beta/compute.instances.attachDisk/project": project
"/compute:beta/compute.instances.attachDisk/requestId": request_id "/compute:beta/compute.instances.attachDisk/requestId": request_id
@ -24858,6 +24915,11 @@
"/compute:beta/compute.interconnectAttachments.list/pageToken": page_token "/compute:beta/compute.interconnectAttachments.list/pageToken": page_token
"/compute:beta/compute.interconnectAttachments.list/project": project "/compute:beta/compute.interconnectAttachments.list/project": project
"/compute:beta/compute.interconnectAttachments.list/region": region "/compute:beta/compute.interconnectAttachments.list/region": region
"/compute:beta/compute.interconnectAttachments.patch": patch_interconnect_attachment
"/compute:beta/compute.interconnectAttachments.patch/interconnectAttachment": interconnect_attachment
"/compute:beta/compute.interconnectAttachments.patch/project": project
"/compute:beta/compute.interconnectAttachments.patch/region": region
"/compute:beta/compute.interconnectAttachments.patch/requestId": request_id
"/compute:beta/compute.interconnectAttachments.setLabels": set_interconnect_attachment_labels "/compute:beta/compute.interconnectAttachments.setLabels": set_interconnect_attachment_labels
"/compute:beta/compute.interconnectAttachments.setLabels/project": project "/compute:beta/compute.interconnectAttachments.setLabels/project": project
"/compute:beta/compute.interconnectAttachments.setLabels/region": region "/compute:beta/compute.interconnectAttachments.setLabels/region": region
@ -25109,6 +25171,57 @@
"/compute:beta/compute.regionCommitments.list/pageToken": page_token "/compute:beta/compute.regionCommitments.list/pageToken": page_token
"/compute:beta/compute.regionCommitments.list/project": project "/compute:beta/compute.regionCommitments.list/project": project
"/compute:beta/compute.regionCommitments.list/region": region "/compute:beta/compute.regionCommitments.list/region": region
"/compute:beta/compute.regionDiskTypes.get": get_region_disk_type
"/compute:beta/compute.regionDiskTypes.get/diskType": disk_type
"/compute:beta/compute.regionDiskTypes.get/project": project
"/compute:beta/compute.regionDiskTypes.get/region": region
"/compute:beta/compute.regionDiskTypes.list": list_region_disk_types
"/compute:beta/compute.regionDiskTypes.list/filter": filter
"/compute:beta/compute.regionDiskTypes.list/maxResults": max_results
"/compute:beta/compute.regionDiskTypes.list/orderBy": order_by
"/compute:beta/compute.regionDiskTypes.list/pageToken": page_token
"/compute:beta/compute.regionDiskTypes.list/project": project
"/compute:beta/compute.regionDiskTypes.list/region": region
"/compute:beta/compute.regionDisks.createSnapshot": create_region_disk_snapshot
"/compute:beta/compute.regionDisks.createSnapshot/disk": disk
"/compute:beta/compute.regionDisks.createSnapshot/project": project
"/compute:beta/compute.regionDisks.createSnapshot/region": region
"/compute:beta/compute.regionDisks.createSnapshot/requestId": request_id
"/compute:beta/compute.regionDisks.delete": delete_region_disk
"/compute:beta/compute.regionDisks.delete/disk": disk
"/compute:beta/compute.regionDisks.delete/project": project
"/compute:beta/compute.regionDisks.delete/region": region
"/compute:beta/compute.regionDisks.delete/requestId": request_id
"/compute:beta/compute.regionDisks.get": get_region_disk
"/compute:beta/compute.regionDisks.get/disk": disk
"/compute:beta/compute.regionDisks.get/project": project
"/compute:beta/compute.regionDisks.get/region": region
"/compute:beta/compute.regionDisks.insert": insert_region_disk
"/compute:beta/compute.regionDisks.insert/project": project
"/compute:beta/compute.regionDisks.insert/region": region
"/compute:beta/compute.regionDisks.insert/requestId": request_id
"/compute:beta/compute.regionDisks.insert/sourceImage": source_image
"/compute:beta/compute.regionDisks.list": list_region_disks
"/compute:beta/compute.regionDisks.list/filter": filter
"/compute:beta/compute.regionDisks.list/maxResults": max_results
"/compute:beta/compute.regionDisks.list/orderBy": order_by
"/compute:beta/compute.regionDisks.list/pageToken": page_token
"/compute:beta/compute.regionDisks.list/project": project
"/compute:beta/compute.regionDisks.list/region": region
"/compute:beta/compute.regionDisks.resize": resize_region_disk
"/compute:beta/compute.regionDisks.resize/disk": disk
"/compute:beta/compute.regionDisks.resize/project": project
"/compute:beta/compute.regionDisks.resize/region": region
"/compute:beta/compute.regionDisks.resize/requestId": request_id
"/compute:beta/compute.regionDisks.setLabels": set_region_disk_labels
"/compute:beta/compute.regionDisks.setLabels/project": project
"/compute:beta/compute.regionDisks.setLabels/region": region
"/compute:beta/compute.regionDisks.setLabels/requestId": request_id
"/compute:beta/compute.regionDisks.setLabels/resource": resource
"/compute:beta/compute.regionDisks.testIamPermissions": test_region_disk_iam_permissions
"/compute:beta/compute.regionDisks.testIamPermissions/project": project
"/compute:beta/compute.regionDisks.testIamPermissions/region": region
"/compute:beta/compute.regionDisks.testIamPermissions/resource": resource
"/compute:beta/compute.regionInstanceGroupManagers.abandonInstances": abandon_region_instance_group_manager_instances "/compute:beta/compute.regionInstanceGroupManagers.abandonInstances": abandon_region_instance_group_manager_instances
"/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/instanceGroupManager": instance_group_manager "/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/instanceGroupManager": instance_group_manager
"/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/project": project "/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/project": project
@ -25446,6 +25559,12 @@
"/compute:beta/compute.subnetworks.list/pageToken": page_token "/compute:beta/compute.subnetworks.list/pageToken": page_token
"/compute:beta/compute.subnetworks.list/project": project "/compute:beta/compute.subnetworks.list/project": project
"/compute:beta/compute.subnetworks.list/region": region "/compute:beta/compute.subnetworks.list/region": region
"/compute:beta/compute.subnetworks.listUsable": list_subnetwork_usable
"/compute:beta/compute.subnetworks.listUsable/filter": filter
"/compute:beta/compute.subnetworks.listUsable/maxResults": max_results
"/compute:beta/compute.subnetworks.listUsable/orderBy": order_by
"/compute:beta/compute.subnetworks.listUsable/pageToken": page_token
"/compute:beta/compute.subnetworks.listUsable/project": project
"/compute:beta/compute.subnetworks.patch": patch_subnetwork "/compute:beta/compute.subnetworks.patch": patch_subnetwork
"/compute:beta/compute.subnetworks.patch/project": project "/compute:beta/compute.subnetworks.patch/project": project
"/compute:beta/compute.subnetworks.patch/region": region "/compute:beta/compute.subnetworks.patch/region": region
@ -25922,6 +26041,8 @@
"/compute:v1/AttachedDisk/boot": boot "/compute:v1/AttachedDisk/boot": boot
"/compute:v1/AttachedDisk/deviceName": device_name "/compute:v1/AttachedDisk/deviceName": device_name
"/compute:v1/AttachedDisk/diskEncryptionKey": disk_encryption_key "/compute:v1/AttachedDisk/diskEncryptionKey": disk_encryption_key
"/compute:v1/AttachedDisk/guestOsFeatures": guest_os_features
"/compute:v1/AttachedDisk/guestOsFeatures/guest_os_feature": guest_os_feature
"/compute:v1/AttachedDisk/index": index "/compute:v1/AttachedDisk/index": index
"/compute:v1/AttachedDisk/initializeParams": initialize_params "/compute:v1/AttachedDisk/initializeParams": initialize_params
"/compute:v1/AttachedDisk/interface": interface "/compute:v1/AttachedDisk/interface": interface
@ -26198,6 +26319,8 @@
"/compute:v1/Disk/creationTimestamp": creation_timestamp "/compute:v1/Disk/creationTimestamp": creation_timestamp
"/compute:v1/Disk/description": description "/compute:v1/Disk/description": description
"/compute:v1/Disk/diskEncryptionKey": disk_encryption_key "/compute:v1/Disk/diskEncryptionKey": disk_encryption_key
"/compute:v1/Disk/guestOsFeatures": guest_os_features
"/compute:v1/Disk/guestOsFeatures/guest_os_feature": guest_os_feature
"/compute:v1/Disk/id": id "/compute:v1/Disk/id": id
"/compute:v1/Disk/kind": kind "/compute:v1/Disk/kind": kind
"/compute:v1/Disk/labelFingerprint": label_fingerprint "/compute:v1/Disk/labelFingerprint": label_fingerprint
@ -26562,6 +26685,9 @@
"/compute:v1/Image/sourceImage": source_image "/compute:v1/Image/sourceImage": source_image
"/compute:v1/Image/sourceImageEncryptionKey": source_image_encryption_key "/compute:v1/Image/sourceImageEncryptionKey": source_image_encryption_key
"/compute:v1/Image/sourceImageId": source_image_id "/compute:v1/Image/sourceImageId": source_image_id
"/compute:v1/Image/sourceSnapshot": source_snapshot
"/compute:v1/Image/sourceSnapshotEncryptionKey": source_snapshot_encryption_key
"/compute:v1/Image/sourceSnapshotId": source_snapshot_id
"/compute:v1/Image/sourceType": source_type "/compute:v1/Image/sourceType": source_type
"/compute:v1/Image/status": status "/compute:v1/Image/status": status
"/compute:v1/ImageList": image_list "/compute:v1/ImageList": image_list
@ -27137,6 +27263,7 @@
"/compute:v1/NetworkInterface/accessConfigs/access_config": access_config "/compute:v1/NetworkInterface/accessConfigs/access_config": access_config
"/compute:v1/NetworkInterface/aliasIpRanges": alias_ip_ranges "/compute:v1/NetworkInterface/aliasIpRanges": alias_ip_ranges
"/compute:v1/NetworkInterface/aliasIpRanges/alias_ip_range": alias_ip_range "/compute:v1/NetworkInterface/aliasIpRanges/alias_ip_range": alias_ip_range
"/compute:v1/NetworkInterface/fingerprint": fingerprint
"/compute:v1/NetworkInterface/kind": kind "/compute:v1/NetworkInterface/kind": kind
"/compute:v1/NetworkInterface/name": name "/compute:v1/NetworkInterface/name": name
"/compute:v1/NetworkInterface/network": network "/compute:v1/NetworkInterface/network": network
@ -27456,6 +27583,9 @@
"/compute:v1/Router/network": network "/compute:v1/Router/network": network
"/compute:v1/Router/region": region "/compute:v1/Router/region": region
"/compute:v1/Router/selfLink": self_link "/compute:v1/Router/selfLink": self_link
"/compute:v1/RouterAdvertisedIpRange": router_advertised_ip_range
"/compute:v1/RouterAdvertisedIpRange/description": description
"/compute:v1/RouterAdvertisedIpRange/range": range
"/compute:v1/RouterAggregatedList": router_aggregated_list "/compute:v1/RouterAggregatedList": router_aggregated_list
"/compute:v1/RouterAggregatedList/id": id "/compute:v1/RouterAggregatedList/id": id
"/compute:v1/RouterAggregatedList/items": items "/compute:v1/RouterAggregatedList/items": items
@ -27471,8 +27601,18 @@
"/compute:v1/RouterAggregatedList/warning/data/datum/value": value "/compute:v1/RouterAggregatedList/warning/data/datum/value": value
"/compute:v1/RouterAggregatedList/warning/message": message "/compute:v1/RouterAggregatedList/warning/message": message
"/compute:v1/RouterBgp": router_bgp "/compute:v1/RouterBgp": router_bgp
"/compute:v1/RouterBgp/advertiseMode": advertise_mode
"/compute:v1/RouterBgp/advertisedGroups": advertised_groups
"/compute:v1/RouterBgp/advertisedGroups/advertised_group": advertised_group
"/compute:v1/RouterBgp/advertisedIpRanges": advertised_ip_ranges
"/compute:v1/RouterBgp/advertisedIpRanges/advertised_ip_range": advertised_ip_range
"/compute:v1/RouterBgp/asn": asn "/compute:v1/RouterBgp/asn": asn
"/compute:v1/RouterBgpPeer": router_bgp_peer "/compute:v1/RouterBgpPeer": router_bgp_peer
"/compute:v1/RouterBgpPeer/advertiseMode": advertise_mode
"/compute:v1/RouterBgpPeer/advertisedGroups": advertised_groups
"/compute:v1/RouterBgpPeer/advertisedGroups/advertised_group": advertised_group
"/compute:v1/RouterBgpPeer/advertisedIpRanges": advertised_ip_ranges
"/compute:v1/RouterBgpPeer/advertisedIpRanges/advertised_ip_range": advertised_ip_range
"/compute:v1/RouterBgpPeer/advertisedRoutePriority": advertised_route_priority "/compute:v1/RouterBgpPeer/advertisedRoutePriority": advertised_route_priority
"/compute:v1/RouterBgpPeer/interfaceName": interface_name "/compute:v1/RouterBgpPeer/interfaceName": interface_name
"/compute:v1/RouterBgpPeer/ipAddress": ip_address "/compute:v1/RouterBgpPeer/ipAddress": ip_address
@ -27613,6 +27753,7 @@
"/compute:v1/Subnetwork": subnetwork "/compute:v1/Subnetwork": subnetwork
"/compute:v1/Subnetwork/creationTimestamp": creation_timestamp "/compute:v1/Subnetwork/creationTimestamp": creation_timestamp
"/compute:v1/Subnetwork/description": description "/compute:v1/Subnetwork/description": description
"/compute:v1/Subnetwork/fingerprint": fingerprint
"/compute:v1/Subnetwork/gatewayAddress": gateway_address "/compute:v1/Subnetwork/gatewayAddress": gateway_address
"/compute:v1/Subnetwork/id": id "/compute:v1/Subnetwork/id": id
"/compute:v1/Subnetwork/ipCidrRange": ip_cidr_range "/compute:v1/Subnetwork/ipCidrRange": ip_cidr_range
@ -28795,6 +28936,12 @@
"/compute:v1/compute.instances.updateAccessConfig/project": project "/compute:v1/compute.instances.updateAccessConfig/project": project
"/compute:v1/compute.instances.updateAccessConfig/requestId": request_id "/compute:v1/compute.instances.updateAccessConfig/requestId": request_id
"/compute:v1/compute.instances.updateAccessConfig/zone": zone "/compute:v1/compute.instances.updateAccessConfig/zone": zone
"/compute:v1/compute.instances.updateNetworkInterface": update_instance_network_interface
"/compute:v1/compute.instances.updateNetworkInterface/instance": instance
"/compute:v1/compute.instances.updateNetworkInterface/networkInterface": network_interface
"/compute:v1/compute.instances.updateNetworkInterface/project": project
"/compute:v1/compute.instances.updateNetworkInterface/requestId": request_id
"/compute:v1/compute.instances.updateNetworkInterface/zone": zone
"/compute:v1/compute.interconnectAttachments.aggregatedList": aggregated_interconnect_attachment_list "/compute:v1/compute.interconnectAttachments.aggregatedList": aggregated_interconnect_attachment_list
"/compute:v1/compute.interconnectAttachments.aggregatedList/filter": filter "/compute:v1/compute.interconnectAttachments.aggregatedList/filter": filter
"/compute:v1/compute.interconnectAttachments.aggregatedList/maxResults": max_results "/compute:v1/compute.interconnectAttachments.aggregatedList/maxResults": max_results
@ -29257,6 +29404,11 @@
"/compute:v1/compute.subnetworks.list/pageToken": page_token "/compute:v1/compute.subnetworks.list/pageToken": page_token
"/compute:v1/compute.subnetworks.list/project": project "/compute:v1/compute.subnetworks.list/project": project
"/compute:v1/compute.subnetworks.list/region": region "/compute:v1/compute.subnetworks.list/region": region
"/compute:v1/compute.subnetworks.patch": patch_subnetwork
"/compute:v1/compute.subnetworks.patch/project": project
"/compute:v1/compute.subnetworks.patch/region": region
"/compute:v1/compute.subnetworks.patch/requestId": request_id
"/compute:v1/compute.subnetworks.patch/subnetwork": subnetwork
"/compute:v1/compute.subnetworks.setPrivateIpGoogleAccess": set_subnetwork_private_ip_google_access "/compute:v1/compute.subnetworks.setPrivateIpGoogleAccess": set_subnetwork_private_ip_google_access
"/compute:v1/compute.subnetworks.setPrivateIpGoogleAccess/project": project "/compute:v1/compute.subnetworks.setPrivateIpGoogleAccess/project": project
"/compute:v1/compute.subnetworks.setPrivateIpGoogleAccess/region": region "/compute:v1/compute.subnetworks.setPrivateIpGoogleAccess/region": region
@ -68522,6 +68674,7 @@
"/testing:v1/AndroidRoboTest/maxSteps": max_steps "/testing:v1/AndroidRoboTest/maxSteps": max_steps
"/testing:v1/AndroidRoboTest/roboDirectives": robo_directives "/testing:v1/AndroidRoboTest/roboDirectives": robo_directives
"/testing:v1/AndroidRoboTest/roboDirectives/robo_directive": robo_directive "/testing:v1/AndroidRoboTest/roboDirectives/robo_directive": robo_directive
"/testing:v1/AndroidRoboTest/roboScript": robo_script
"/testing:v1/AndroidRoboTest/startingIntents": starting_intents "/testing:v1/AndroidRoboTest/startingIntents": starting_intents
"/testing:v1/AndroidRoboTest/startingIntents/starting_intent": starting_intent "/testing:v1/AndroidRoboTest/startingIntents/starting_intent": starting_intent
"/testing:v1/AndroidRuntimeConfiguration": android_runtime_configuration "/testing:v1/AndroidRuntimeConfiguration": android_runtime_configuration
@ -68545,6 +68698,9 @@
"/testing:v1/AndroidVersion/tags": tags "/testing:v1/AndroidVersion/tags": tags
"/testing:v1/AndroidVersion/tags/tag": tag "/testing:v1/AndroidVersion/tags/tag": tag
"/testing:v1/AndroidVersion/versionString": version_string "/testing:v1/AndroidVersion/versionString": version_string
"/testing:v1/Apk": apk
"/testing:v1/Apk/location": location
"/testing:v1/Apk/packageName": package_name
"/testing:v1/ApkDetail": apk_detail "/testing:v1/ApkDetail": apk_detail
"/testing:v1/ApkDetail/apkManifest": apk_manifest "/testing:v1/ApkDetail/apkManifest": apk_manifest
"/testing:v1/ApkManifest": apk_manifest "/testing:v1/ApkManifest": apk_manifest
@ -68569,6 +68725,7 @@
"/testing:v1/Date/year": year "/testing:v1/Date/year": year
"/testing:v1/DeviceFile": device_file "/testing:v1/DeviceFile": device_file
"/testing:v1/DeviceFile/obbFile": obb_file "/testing:v1/DeviceFile/obbFile": obb_file
"/testing:v1/DeviceFile/regularFile": regular_file
"/testing:v1/Distribution": distribution "/testing:v1/Distribution": distribution
"/testing:v1/Distribution/marketShare": market_share "/testing:v1/Distribution/marketShare": market_share
"/testing:v1/Distribution/measurementTime": measurement_time "/testing:v1/Distribution/measurementTime": measurement_time
@ -68615,6 +68772,9 @@
"/testing:v1/Orientation/name": name "/testing:v1/Orientation/name": name
"/testing:v1/Orientation/tags": tags "/testing:v1/Orientation/tags": tags
"/testing:v1/Orientation/tags/tag": tag "/testing:v1/Orientation/tags/tag": tag
"/testing:v1/RegularFile": regular_file
"/testing:v1/RegularFile/content": content
"/testing:v1/RegularFile/devicePath": device_path
"/testing:v1/ResultStorage": result_storage "/testing:v1/ResultStorage": result_storage
"/testing:v1/ResultStorage/googleCloudStorage": google_cloud_storage "/testing:v1/ResultStorage/googleCloudStorage": google_cloud_storage
"/testing:v1/ResultStorage/toolResultsExecution": tool_results_execution "/testing:v1/ResultStorage/toolResultsExecution": tool_results_execution
@ -68662,6 +68822,8 @@
"/testing:v1/TestMatrix/timestamp": timestamp "/testing:v1/TestMatrix/timestamp": timestamp
"/testing:v1/TestSetup": test_setup "/testing:v1/TestSetup": test_setup
"/testing:v1/TestSetup/account": account "/testing:v1/TestSetup/account": account
"/testing:v1/TestSetup/additionalApks": additional_apks
"/testing:v1/TestSetup/additionalApks/additional_apk": additional_apk
"/testing:v1/TestSetup/directoriesToPull": directories_to_pull "/testing:v1/TestSetup/directoriesToPull": directories_to_pull
"/testing:v1/TestSetup/directoriesToPull/directories_to_pull": directories_to_pull "/testing:v1/TestSetup/directoriesToPull/directories_to_pull": directories_to_pull
"/testing:v1/TestSetup/environmentVariables": environment_variables "/testing:v1/TestSetup/environmentVariables": environment_variables

View File

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

View File

@ -459,8 +459,6 @@ module Google
# creatives.list # creatives.list
# method. # method.
# @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
# @param [String] account_id1
# The account the creative belongs to.
# @param [String] duplicate_id_mode # @param [String] duplicate_id_mode
# Indicates if multiple creatives can share an ID or not. Default is # Indicates if multiple creatives can share an ID or not. Default is
# NO_DUPLICATES (one ID per creative). # NO_DUPLICATES (one ID per creative).
@ -481,14 +479,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_account_creative(account_id, creative_object = nil, account_id1: nil, duplicate_id_mode: nil, fields: nil, quota_user: nil, options: nil, &block) def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options) command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
command.request_object = creative_object command.request_object = creative_object
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.query['accountId1'] = account_id1 unless account_id1.nil?
command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil? command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -639,8 +636,6 @@ module Google
# creatives.list # creatives.list
# method. # method.
# @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
# @param [String] account_id1
# The account the creative belongs to.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -658,7 +653,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_account_creative(account_id, creative_id, creative_object = nil, account_id1: nil, fields: nil, quota_user: nil, options: nil, &block) def update_account_creative(account_id, creative_id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options) command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
command.request_object = creative_object command.request_object = creative_object
@ -666,7 +661,6 @@ module Google
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['creativeId'] = creative_id unless creative_id.nil? command.params['creativeId'] = creative_id unless creative_id.nil?
command.query['accountId1'] = account_id1 unless account_id1.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)

View File

@ -0,0 +1,31 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/chat_v1/service.rb'
require 'google/apis/chat_v1/classes.rb'
require 'google/apis/chat_v1/representations.rb'
module Google
module Apis
# Hangouts Chat API
#
#
#
# @see https://developers.google.com/hangouts/chat
module ChatV1
VERSION = 'V1'
REVISION = '20180301'
end
end
end

View File

@ -0,0 +1,890 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ChatV1
# List of string parameters to supply when the action method is invoked.
# For example, consider three snooze buttons: snooze now, snooze 1 day,
# snooze next week. You might use action method = snooze(), passing the
# snooze type and snooze time in the list of string parameters.
class ActionParameter
include Google::Apis::Core::Hashable
# The name of the parameter for the action script.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# The value of the parameter.
# 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
# Parameters that a bot can use to configure how it's response is posted.
class ActionResponse
include Google::Apis::Core::Hashable
# The type of bot response.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@url = args[:url] if args.key?(:url)
end
end
# Annotations associated with the plain-text body of the message.
# Example plain-text message body:
# ```
# Hello @FooBot how are you!"
# ```
# The corresponding annotations metadata:
# ```
# "annotations":[`
# "type":"USER_MENTION",
# "startIndex":6,
# "length":7,
# "userMention": `
# "user": `
# "name":"users/107946847022116401880",
# "displayName":"FooBot",
# "avatarUrl":"https://goo.gl/aeDtrS",
# "type":"BOT"
# `,
# "type":"MENTION"
# `
# `]
# ```
class Annotation
include Google::Apis::Core::Hashable
# Length of the substring in the plain-text message body this annotation
# corresponds to.
# Corresponds to the JSON property `length`
# @return [Fixnum]
attr_accessor :length
# Start index (0-based, inclusive) in the plain-text message body this
# annotation corresponds to.
# Corresponds to the JSON property `startIndex`
# @return [Fixnum]
attr_accessor :start_index
# The type of this annotation.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Annotation metadata for user mentions (@).
# Corresponds to the JSON property `userMention`
# @return [Google::Apis::ChatV1::UserMentionMetadata]
attr_accessor :user_mention
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@length = args[:length] if args.key?(:length)
@start_index = args[:start_index] if args.key?(:start_index)
@type = args[:type] if args.key?(:type)
@user_mention = args[:user_mention] if args.key?(:user_mention)
end
end
# A button. Can be a text button or an image button.
class Button
include Google::Apis::Core::Hashable
# An image button with an onclick action.
# Corresponds to the JSON property `imageButton`
# @return [Google::Apis::ChatV1::ImageButton]
attr_accessor :image_button
# A button with text and onclick action.
# Corresponds to the JSON property `textButton`
# @return [Google::Apis::ChatV1::TextButton]
attr_accessor :text_button
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_button = args[:image_button] if args.key?(:image_button)
@text_button = args[:text_button] if args.key?(:text_button)
end
end
# A card is a UI element that can contain UI widgets such as texts, images.
class Card
include Google::Apis::Core::Hashable
# The actions of this card.
# Corresponds to the JSON property `cardActions`
# @return [Array<Google::Apis::ChatV1::CardAction>]
attr_accessor :card_actions
# The header of the card. A header usually contains a title and an image.
# Corresponds to the JSON property `header`
# @return [Google::Apis::ChatV1::CardHeader]
attr_accessor :header
# Name of the card.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Sections are separated by a line divider.
# Corresponds to the JSON property `sections`
# @return [Array<Google::Apis::ChatV1::Section>]
attr_accessor :sections
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@card_actions = args[:card_actions] if args.key?(:card_actions)
@header = args[:header] if args.key?(:header)
@name = args[:name] if args.key?(:name)
@sections = args[:sections] if args.key?(:sections)
end
end
# A card action is
# the action associated with the card. For an invoice card, a
# typical action would be: delete invoice, email invoice or open the
# invoice in browser.
class CardAction
include Google::Apis::Core::Hashable
# The label used to be displayed in the action menu item.
# Corresponds to the JSON property `actionLabel`
# @return [String]
attr_accessor :action_label
# An onclick action (e.g. open a link).
# Corresponds to the JSON property `onClick`
# @return [Google::Apis::ChatV1::OnClick]
attr_accessor :on_click
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action_label = args[:action_label] if args.key?(:action_label)
@on_click = args[:on_click] if args.key?(:on_click)
end
end
#
class CardHeader
include Google::Apis::Core::Hashable
# The image's type (e.g. square border or circular border).
# Corresponds to the JSON property `imageStyle`
# @return [String]
attr_accessor :image_style
# The URL of the image in the card header.
# Corresponds to the JSON property `imageUrl`
# @return [String]
attr_accessor :image_url
# The subtitle of the card header.
# Corresponds to the JSON property `subtitle`
# @return [String]
attr_accessor :subtitle
# The title must be specified. The header has a fixed height: if both a
# title and subtitle is specified, each will take up 1 line. If only the
# title is specified, it will take up both lines.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_style = args[:image_style] if args.key?(:image_style)
@image_url = args[:image_url] if args.key?(:image_url)
@subtitle = args[:subtitle] if args.key?(:subtitle)
@title = args[:title] if args.key?(:title)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A form action describes the behavior when the form is submitted.
# For example, an Apps Script can be invoked to handle the form.
class FormAction
include Google::Apis::Core::Hashable
# Apps Script function to invoke when the containing element is
# clicked/activated.
# Corresponds to the JSON property `actionMethodName`
# @return [String]
attr_accessor :action_method_name
# List of action parameters.
# Corresponds to the JSON property `parameters`
# @return [Array<Google::Apis::ChatV1::ActionParameter>]
attr_accessor :parameters
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action_method_name = args[:action_method_name] if args.key?(:action_method_name)
@parameters = args[:parameters] if args.key?(:parameters)
end
end
# An image that is specified by a URL and can have an onclick action.
class Image
include Google::Apis::Core::Hashable
# The aspect ratio of this image (width/height).
# Corresponds to the JSON property `aspectRatio`
# @return [Float]
attr_accessor :aspect_ratio
# The URL of the image.
# Corresponds to the JSON property `imageUrl`
# @return [String]
attr_accessor :image_url
# An onclick action (e.g. open a link).
# Corresponds to the JSON property `onClick`
# @return [Google::Apis::ChatV1::OnClick]
attr_accessor :on_click
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
@image_url = args[:image_url] if args.key?(:image_url)
@on_click = args[:on_click] if args.key?(:on_click)
end
end
# An image button with an onclick action.
class ImageButton
include Google::Apis::Core::Hashable
# The icon specified by an enum that indices to an icon provided by Chat
# API.
# Corresponds to the JSON property `icon`
# @return [String]
attr_accessor :icon
# The icon specified by a URL.
# Corresponds to the JSON property `iconUrl`
# @return [String]
attr_accessor :icon_url
# The name of this image_button which will be used for accessibility.
# Default value will be provided if developers don't specify.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# An onclick action (e.g. open a link).
# Corresponds to the JSON property `onClick`
# @return [Google::Apis::ChatV1::OnClick]
attr_accessor :on_click
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@icon = args[:icon] if args.key?(:icon)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@name = args[:name] if args.key?(:name)
@on_click = args[:on_click] if args.key?(:on_click)
end
end
# A UI element contains a key (label) and a value (content). And this
# element may also contain some actions such as onclick button.
class KeyValue
include Google::Apis::Core::Hashable
# The text of the bottom label. Formatted text supported.
# Corresponds to the JSON property `bottomLabel`
# @return [String]
attr_accessor :bottom_label
# A button. Can be a text button or an image button.
# Corresponds to the JSON property `button`
# @return [Google::Apis::ChatV1::Button]
attr_accessor :button
# The text of the content. Formatted text supported and always required.
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
# If the content should be multiline.
# Corresponds to the JSON property `contentMultiline`
# @return [Boolean]
attr_accessor :content_multiline
alias_method :content_multiline?, :content_multiline
# An enum value that will be replaced by the Chat API with the
# corresponding icon image.
# Corresponds to the JSON property `icon`
# @return [String]
attr_accessor :icon
# The icon specified by a URL.
# Corresponds to the JSON property `iconUrl`
# @return [String]
attr_accessor :icon_url
# An onclick action (e.g. open a link).
# Corresponds to the JSON property `onClick`
# @return [Google::Apis::ChatV1::OnClick]
attr_accessor :on_click
# The text of the top label. Formatted text supported.
# Corresponds to the JSON property `topLabel`
# @return [String]
attr_accessor :top_label
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bottom_label = args[:bottom_label] if args.key?(:bottom_label)
@button = args[:button] if args.key?(:button)
@content = args[:content] if args.key?(:content)
@content_multiline = args[:content_multiline] if args.key?(:content_multiline)
@icon = args[:icon] if args.key?(:icon)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@on_click = args[:on_click] if args.key?(:on_click)
@top_label = args[:top_label] if args.key?(:top_label)
end
end
#
class ListMembershipsResponse
include Google::Apis::Core::Hashable
# List of memberships in the requested (or first) page.
# Corresponds to the JSON property `memberships`
# @return [Array<Google::Apis::ChatV1::Membership>]
attr_accessor :memberships
# Continuation token to retrieve the next page of results. It will be empty
# for the last page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@memberships = args[:memberships] if args.key?(:memberships)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
#
class ListSpacesResponse
include Google::Apis::Core::Hashable
# Continuation token to retrieve the next page of results. It will be empty
# for the last page of results. Tokens expire in an hour. An error is thrown
# if an expired token is passed.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of spaces in the requested (or first) page.
# Corresponds to the JSON property `spaces`
# @return [Array<Google::Apis::ChatV1::Space>]
attr_accessor :spaces
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@spaces = args[:spaces] if args.key?(:spaces)
end
end
# Represents a membership relation in Hangouts Chat.
class Membership
include Google::Apis::Core::Hashable
# The creation time of the membership a.k.a the time at which the member
# joined the space, if applicable.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# A user in Hangouts Chat.
# Corresponds to the JSON property `member`
# @return [Google::Apis::ChatV1::User]
attr_accessor :member
# Resource name of the membership, in the form "spaces/*/members/*".
# Example: spaces/AAAAMpdlehY/members/105115627578887013105
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# State of the membership.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@member = args[:member] if args.key?(:member)
@name = args[:name] if args.key?(:name)
@state = args[:state] if args.key?(:state)
end
end
# A message in Hangouts Chat.
class Message
include Google::Apis::Core::Hashable
# Parameters that a bot can use to configure how it's response is posted.
# Corresponds to the JSON property `actionResponse`
# @return [Google::Apis::ChatV1::ActionResponse]
attr_accessor :action_response
# Output only. Annotations associated with the text in this message.
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::ChatV1::Annotation>]
attr_accessor :annotations
# Rich, formatted and interactive cards that can be used to display UI
# elements such as: formatted texts, buttons, clickable images. Cards are
# normally displayed below the plain-text body of the message.
# Corresponds to the JSON property `cards`
# @return [Array<Google::Apis::ChatV1::Card>]
attr_accessor :cards
# Output only. The time at which the message was created in Hangouts Chat
# server.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# A plain-text description of the message's cards, used when the actual cards
# cannot be displayed (e.g. mobile notifications).
# Corresponds to the JSON property `fallbackText`
# @return [String]
attr_accessor :fallback_text
# Resource name, in the form "spaces/*/messages/*".
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Text for generating preview chips. This text will not be displayed to the
# user, but any links to images, web pages, videos, etc. included here will
# generate preview chips.
# Corresponds to the JSON property `previewText`
# @return [String]
attr_accessor :preview_text
# A user in Hangouts Chat.
# Corresponds to the JSON property `sender`
# @return [Google::Apis::ChatV1::User]
attr_accessor :sender
# A room or DM in Hangouts Chat.
# Corresponds to the JSON property `space`
# @return [Google::Apis::ChatV1::Space]
attr_accessor :space
# Plain-text body of the message.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
# A thread in Hangouts Chat.
# Corresponds to the JSON property `thread`
# @return [Google::Apis::ChatV1::Thread]
attr_accessor :thread
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action_response = args[:action_response] if args.key?(:action_response)
@annotations = args[:annotations] if args.key?(:annotations)
@cards = args[:cards] if args.key?(:cards)
@create_time = args[:create_time] if args.key?(:create_time)
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
@name = args[:name] if args.key?(:name)
@preview_text = args[:preview_text] if args.key?(:preview_text)
@sender = args[:sender] if args.key?(:sender)
@space = args[:space] if args.key?(:space)
@text = args[:text] if args.key?(:text)
@thread = args[:thread] if args.key?(:thread)
end
end
# An onclick action (e.g. open a link).
class OnClick
include Google::Apis::Core::Hashable
# A form action describes the behavior when the form is submitted.
# For example, an Apps Script can be invoked to handle the form.
# Corresponds to the JSON property `action`
# @return [Google::Apis::ChatV1::FormAction]
attr_accessor :action
# A link that opens a new window.
# Corresponds to the JSON property `openLink`
# @return [Google::Apis::ChatV1::OpenLink]
attr_accessor :open_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@open_link = args[:open_link] if args.key?(:open_link)
end
end
# A link that opens a new window.
class OpenLink
include Google::Apis::Core::Hashable
# The URL to open.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@url = args[:url] if args.key?(:url)
end
end
# A section contains a collection of widgets that are rendered
# (vertically) in the order that they are specified. Across all platforms,
# cards have a narrow fixed width, so
# there is currently no need for layout properties (e.g. float).
class Section
include Google::Apis::Core::Hashable
# The header of the section, text formatted supported.
# Corresponds to the JSON property `header`
# @return [String]
attr_accessor :header
# A section must contain at least 1 widget.
# Corresponds to the JSON property `widgets`
# @return [Array<Google::Apis::ChatV1::WidgetMarkup>]
attr_accessor :widgets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header = args[:header] if args.key?(:header)
@widgets = args[:widgets] if args.key?(:widgets)
end
end
# A room or DM in Hangouts Chat.
class Space
include Google::Apis::Core::Hashable
# Output only. The display name (only if the space is a room).
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Resource name of the space, in the form "spaces/*".
# Example: spaces/AAAAMpdlehYs
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The type of a space.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
# A button with text and onclick action.
class TextButton
include Google::Apis::Core::Hashable
# An onclick action (e.g. open a link).
# Corresponds to the JSON property `onClick`
# @return [Google::Apis::ChatV1::OnClick]
attr_accessor :on_click
# The text of the button.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@on_click = args[:on_click] if args.key?(:on_click)
@text = args[:text] if args.key?(:text)
end
end
# A paragraph of text. Formatted text supported.
class TextParagraph
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@text = args[:text] if args.key?(:text)
end
end
# A thread in Hangouts Chat.
class Thread
include Google::Apis::Core::Hashable
# Resource name, in the form "spaces/*/threads/*".
# Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
end
end
# A user in Hangouts Chat.
class User
include Google::Apis::Core::Hashable
# The user's display name.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Resource name, in the format "users/*".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# User type.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
# Annotation metadata for user mentions (@).
class UserMentionMetadata
include Google::Apis::Core::Hashable
# The type of user mention.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# A user in Hangouts Chat.
# Corresponds to the JSON property `user`
# @return [Google::Apis::ChatV1::User]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@user = args[:user] if args.key?(:user)
end
end
# A widget is a UI element that presents texts, images, etc.
class WidgetMarkup
include Google::Apis::Core::Hashable
# A list of buttons. Buttons is also oneof data and only one of these
# fields should be set.
# Corresponds to the JSON property `buttons`
# @return [Array<Google::Apis::ChatV1::Button>]
attr_accessor :buttons
# An image that is specified by a URL and can have an onclick action.
# Corresponds to the JSON property `image`
# @return [Google::Apis::ChatV1::Image]
attr_accessor :image
# A UI element contains a key (label) and a value (content). And this
# element may also contain some actions such as onclick button.
# Corresponds to the JSON property `keyValue`
# @return [Google::Apis::ChatV1::KeyValue]
attr_accessor :key_value
# A paragraph of text. Formatted text supported.
# Corresponds to the JSON property `textParagraph`
# @return [Google::Apis::ChatV1::TextParagraph]
attr_accessor :text_paragraph
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@buttons = args[:buttons] if args.key?(:buttons)
@image = args[:image] if args.key?(:image)
@key_value = args[:key_value] if args.key?(:key_value)
@text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
end
end
end
end
end

View File

@ -0,0 +1,445 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ChatV1
class ActionParameter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ActionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Annotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Button
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Card
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CardAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CardHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FormAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImageButton
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KeyValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMembershipsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSpacesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Membership
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Message
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OnClick
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OpenLink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Section
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Space
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextButton
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextParagraph
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Thread
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserMentionMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WidgetMarkup
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ActionParameter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
class ActionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :url, as: 'url'
end
end
class Annotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :length, as: 'length'
property :start_index, as: 'startIndex'
property :type, as: 'type'
property :user_mention, as: 'userMention', class: Google::Apis::ChatV1::UserMentionMetadata, decorator: Google::Apis::ChatV1::UserMentionMetadata::Representation
end
end
class Button
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_button, as: 'imageButton', class: Google::Apis::ChatV1::ImageButton, decorator: Google::Apis::ChatV1::ImageButton::Representation
property :text_button, as: 'textButton', class: Google::Apis::ChatV1::TextButton, decorator: Google::Apis::ChatV1::TextButton::Representation
end
end
class Card
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :card_actions, as: 'cardActions', class: Google::Apis::ChatV1::CardAction, decorator: Google::Apis::ChatV1::CardAction::Representation
property :header, as: 'header', class: Google::Apis::ChatV1::CardHeader, decorator: Google::Apis::ChatV1::CardHeader::Representation
property :name, as: 'name'
collection :sections, as: 'sections', class: Google::Apis::ChatV1::Section, decorator: Google::Apis::ChatV1::Section::Representation
end
end
class CardAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_label, as: 'actionLabel'
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
end
end
class CardHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_style, as: 'imageStyle'
property :image_url, as: 'imageUrl'
property :subtitle, as: 'subtitle'
property :title, as: 'title'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class FormAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_method_name, as: 'actionMethodName'
collection :parameters, as: 'parameters', class: Google::Apis::ChatV1::ActionParameter, decorator: Google::Apis::ChatV1::ActionParameter::Representation
end
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aspect_ratio, as: 'aspectRatio'
property :image_url, as: 'imageUrl'
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
end
end
class ImageButton
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :icon, as: 'icon'
property :icon_url, as: 'iconUrl'
property :name, as: 'name'
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
end
end
class KeyValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bottom_label, as: 'bottomLabel'
property :button, as: 'button', class: Google::Apis::ChatV1::Button, decorator: Google::Apis::ChatV1::Button::Representation
property :content, as: 'content'
property :content_multiline, as: 'contentMultiline'
property :icon, as: 'icon'
property :icon_url, as: 'iconUrl'
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
property :top_label, as: 'topLabel'
end
end
class ListMembershipsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :memberships, as: 'memberships', class: Google::Apis::ChatV1::Membership, decorator: Google::Apis::ChatV1::Membership::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListSpacesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :spaces, as: 'spaces', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
end
end
class Membership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :member, as: 'member', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
property :name, as: 'name'
property :state, as: 'state'
end
end
class Message
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_response, as: 'actionResponse', class: Google::Apis::ChatV1::ActionResponse, decorator: Google::Apis::ChatV1::ActionResponse::Representation
collection :annotations, as: 'annotations', class: Google::Apis::ChatV1::Annotation, decorator: Google::Apis::ChatV1::Annotation::Representation
collection :cards, as: 'cards', class: Google::Apis::ChatV1::Card, decorator: Google::Apis::ChatV1::Card::Representation
property :create_time, as: 'createTime'
property :fallback_text, as: 'fallbackText'
property :name, as: 'name'
property :preview_text, as: 'previewText'
property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
property :text, as: 'text'
property :thread, as: 'thread', class: Google::Apis::ChatV1::Thread, decorator: Google::Apis::ChatV1::Thread::Representation
end
end
class OnClick
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action', class: Google::Apis::ChatV1::FormAction, decorator: Google::Apis::ChatV1::FormAction::Representation
property :open_link, as: 'openLink', class: Google::Apis::ChatV1::OpenLink, decorator: Google::Apis::ChatV1::OpenLink::Representation
end
end
class OpenLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
end
end
class Section
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header'
collection :widgets, as: 'widgets', class: Google::Apis::ChatV1::WidgetMarkup, decorator: Google::Apis::ChatV1::WidgetMarkup::Representation
end
end
class Space
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :name, as: 'name'
property :type, as: 'type'
end
end
class TextButton
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::OnClick, decorator: Google::Apis::ChatV1::OnClick::Representation
property :text, as: 'text'
end
end
class TextParagraph
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :text, as: 'text'
end
end
class Thread
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
end
end
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :name, as: 'name'
property :type, as: 'type'
end
end
class UserMentionMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :user, as: 'user', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
end
end
class WidgetMarkup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :buttons, as: 'buttons', class: Google::Apis::ChatV1::Button, decorator: Google::Apis::ChatV1::Button::Representation
property :image, as: 'image', class: Google::Apis::ChatV1::Image, decorator: Google::Apis::ChatV1::Image::Representation
property :key_value, as: 'keyValue', class: Google::Apis::ChatV1::KeyValue, decorator: Google::Apis::ChatV1::KeyValue::Representation
property :text_paragraph, as: 'textParagraph', class: Google::Apis::ChatV1::TextParagraph, decorator: Google::Apis::ChatV1::TextParagraph::Representation
end
end
end
end
end

View File

@ -0,0 +1,524 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ChatV1
# Hangouts Chat API
#
#
#
# @example
# require 'google/apis/chat_v1'
#
# Chat = Google::Apis::ChatV1 # Alias the module
# service = Chat::HangoutsChatService.new
#
# @see https://developers.google.com/hangouts/chat
class HangoutsChatService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://chat.googleapis.com/', '')
@batch_path = 'batch'
end
# Creates a message.
# @param [String] parent
# Required. Space resource name, in the form "spaces/*".
# Example: spaces/AAAAMpdlehY
# @param [Google::Apis::ChatV1::Message] message_object
# @param [String] thread_key
# Opaque thread identifier string that can be specified to group messages
# into a single thread. If this is the first message with a given thread
# identifier, a new thread is created. Subsequent messages with the same
# thread identifier will be posted into the same thread. This relieves bots
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
# created earlier by them) to post
# further updates to it.
# Has no effect if thread field,
# corresponding to an existing thread, is set in message.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Message]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_dm_conversation_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
command.request_representation = Google::Apis::ChatV1::Message::Representation
command.request_object = message_object
command.response_representation = Google::Apis::ChatV1::Message::Representation
command.response_class = Google::Apis::ChatV1::Message
command.params['parent'] = parent unless parent.nil?
command.query['threadKey'] = thread_key unless thread_key.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a message.
# @param [String] parent
# Required. Space resource name, in the form "spaces/*".
# Example: spaces/AAAAMpdlehY
# @param [Google::Apis::ChatV1::Message] message_object
# @param [String] thread_key
# Opaque thread identifier string that can be specified to group messages
# into a single thread. If this is the first message with a given thread
# identifier, a new thread is created. Subsequent messages with the same
# thread identifier will be posted into the same thread. This relieves bots
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
# created earlier by them) to post
# further updates to it.
# Has no effect if thread field,
# corresponding to an existing thread, is set in message.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Message]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_dm_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
command.request_representation = Google::Apis::ChatV1::Message::Representation
command.request_object = message_object
command.response_representation = Google::Apis::ChatV1::Message::Representation
command.response_class = Google::Apis::ChatV1::Message
command.params['parent'] = parent unless parent.nil?
command.query['threadKey'] = thread_key unless thread_key.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a message.
# @param [String] parent
# Required. Space resource name, in the form "spaces/*".
# Example: spaces/AAAAMpdlehY
# @param [Google::Apis::ChatV1::Message] message_object
# @param [String] thread_key
# Opaque thread identifier string that can be specified to group messages
# into a single thread. If this is the first message with a given thread
# identifier, a new thread is created. Subsequent messages with the same
# thread identifier will be posted into the same thread. This relieves bots
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
# created earlier by them) to post
# further updates to it.
# Has no effect if thread field,
# corresponding to an existing thread, is set in message.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Message]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_room_conversation_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
command.request_representation = Google::Apis::ChatV1::Message::Representation
command.request_object = message_object
command.response_representation = Google::Apis::ChatV1::Message::Representation
command.response_class = Google::Apis::ChatV1::Message
command.params['parent'] = parent unless parent.nil?
command.query['threadKey'] = thread_key unless thread_key.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a message.
# @param [String] parent
# Required. Space resource name, in the form "spaces/*".
# Example: spaces/AAAAMpdlehY
# @param [Google::Apis::ChatV1::Message] message_object
# @param [String] thread_key
# Opaque thread identifier string that can be specified to group messages
# into a single thread. If this is the first message with a given thread
# identifier, a new thread is created. Subsequent messages with the same
# thread identifier will be posted into the same thread. This relieves bots
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
# created earlier by them) to post
# further updates to it.
# Has no effect if thread field,
# corresponding to an existing thread, is set in message.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Message]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_room_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
command.request_representation = Google::Apis::ChatV1::Message::Representation
command.request_object = message_object
command.response_representation = Google::Apis::ChatV1::Message::Representation
command.response_class = Google::Apis::ChatV1::Message
command.params['parent'] = parent unless parent.nil?
command.query['threadKey'] = thread_key unless thread_key.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a space.
# @param [String] name
# Required. Resource name of the space, in the form "spaces/*".
# Example: spaces/AAAAMpdlehY
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Space] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Space]
#
# @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_space(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ChatV1::Space::Representation
command.response_class = Google::Apis::ChatV1::Space
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists spaces the caller is a member of.
# @param [Fixnum] page_size
# Requested page size. The value is capped at 1000.
# Server may return fewer results than requested.
# If unspecified, server will default to 100.
# @param [String] page_token
# A token identifying a page of results the server should return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::ListSpacesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::ListSpacesResponse]
#
# @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_spaces(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/spaces', options)
command.response_representation = Google::Apis::ChatV1::ListSpacesResponse::Representation
command.response_class = Google::Apis::ChatV1::ListSpacesResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a membership.
# @param [String] name
# Required. Resource name of the membership to be retrieved, in the form
# "spaces/*/members/*".
# Example: spaces/AAAAMpdlehY/members/105115627578887013105
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Membership] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Membership]
#
# @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_space_member(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ChatV1::Membership::Representation
command.response_class = Google::Apis::ChatV1::Membership
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists human memberships in a space.
# @param [String] parent
# Required. The resource name of the space for which membership list is to be
# fetched, in the form "spaces/*".
# Example: spaces/AAAAMpdlehY
# @param [Fixnum] page_size
# Requested page size. The value is capped at 1000.
# Server may return fewer results than requested.
# If unspecified, server will default to 100.
# @param [String] page_token
# A token identifying a page of results the server should return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::ListMembershipsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::ListMembershipsResponse]
#
# @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_space_members(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/members', options)
command.response_representation = Google::Apis::ChatV1::ListMembershipsResponse::Representation
command.response_class = Google::Apis::ChatV1::ListMembershipsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a message.
# @param [String] parent
# Required. Space resource name, in the form "spaces/*".
# Example: spaces/AAAAMpdlehY
# @param [Google::Apis::ChatV1::Message] message_object
# @param [String] thread_key
# Opaque thread identifier string that can be specified to group messages
# into a single thread. If this is the first message with a given thread
# identifier, a new thread is created. Subsequent messages with the same
# thread identifier will be posted into the same thread. This relieves bots
# and webhooks from having to store the Hangouts Chat thread ID of a thread (
# created earlier by them) to post
# further updates to it.
# Has no effect if thread field,
# corresponding to an existing thread, is set in message.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Message]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_space_message(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
command.request_representation = Google::Apis::ChatV1::Message::Representation
command.request_object = message_object
command.response_representation = Google::Apis::ChatV1::Message::Representation
command.response_class = Google::Apis::ChatV1::Message
command.params['parent'] = parent unless parent.nil?
command.query['threadKey'] = thread_key unless thread_key.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a message.
# @param [String] name
# Required. Resource name of the message to be deleted, in the form
# "spaces/*/messages/*"
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_space_message(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::ChatV1::Empty::Representation
command.response_class = Google::Apis::ChatV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a message.
# @param [String] name
# Required. Resource name of the message to be retrieved, in the form
# "spaces/*/messages/*".
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Message]
#
# @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_space_message(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ChatV1::Message::Representation
command.response_class = Google::Apis::ChatV1::Message
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a message.
# @param [String] name
# Resource name, in the form "spaces/*/messages/*".
# Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
# @param [Google::Apis::ChatV1::Message] message_object
# @param [String] update_mask
# Required. The field paths to be updated.
# Currently supported field paths: "text", "cards".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Message]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_space_message(name, message_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/{+name}', options)
command.request_representation = Google::Apis::ChatV1::Message::Representation
command.request_object = message_object
command.response_representation = Google::Apis::ChatV1::Message::Representation
command.response_class = Google::Apis::ChatV1::Message
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20180219' REVISION = '20180305'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -464,7 +464,7 @@ module Google
class OrganizationOwner class OrganizationOwner
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The Google for Work customer id used in the Directory API. # The G Suite customer id used in the Directory API.
# Corresponds to the JSON property `directoryCustomerId` # Corresponds to the JSON property `directoryCustomerId`
# @return [String] # @return [String]
attr_accessor :directory_customer_id attr_accessor :directory_customer_id

View File

@ -44,7 +44,7 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://cloudresourcemanager.googleapis.com/', '') super('https://content-cloudresourcemanager.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
end end
@ -125,7 +125,7 @@ module Google
# An optional query string used to filter the Organizations to return in # An optional query string used to filter the Organizations to return in
# the response. Filter rules are case-insensitive. # the response. Filter rules are case-insensitive.
# Organizations may be filtered by `owner.directoryCustomerId` or by # Organizations may be filtered by `owner.directoryCustomerId` or by
# `domain`, where the domain is a Google for Work domain, for example: # `domain`, where the domain is a G Suite domain, for example:
# |Filter|Description| # |Filter|Description|
# |------|-----------| # |------|-----------|
# |owner.directorycustomerid:123456789|Organizations with `owner. # |owner.directorycustomerid:123456789|Organizations with `owner.
@ -280,7 +280,9 @@ module Google
# The creator can later grant permission to others to read or update the # The creator can later grant permission to others to read or update the
# Project. # Project.
# Several APIs are activated automatically for the Project, including # Several APIs are activated automatically for the Project, including
# Google Cloud Storage. # Google Cloud Storage. The parent is identified by a specified
# ResourceId, which must include both an ID and a type, such as
# project, folder, or organization.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
# @param [Boolean] use_legacy_stack # @param [Boolean] use_legacy_stack
# A safety hatch to opt out of the new reliable project creation process. # A safety hatch to opt out of the new reliable project creation process.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2beta1 module CloudresourcemanagerV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20180219' REVISION = '20180305'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -44,7 +44,7 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://cloudresourcemanager.googleapis.com/', '') super('https://content-cloudresourcemanager.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
end end

View File

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

View File

@ -600,14 +600,20 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The URL of the network in which to reserve the address. This field can only be
# used with INTERNAL type with VPC_PEERING purpose.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# This signifies the networking tier used for configuring this Address and can # This signifies the networking tier used for configuring this Address and can
# only take the following values: PREMIUM , STANDARD. # only take the following values: PREMIUM , STANDARD.
# If this field is not specified, it is assumed to be PREMIUM. # If this field is not specified, it is assumed to be PREMIUM.
@ -615,6 +621,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :network_tier attr_accessor :network_tier
# The prefix length if the resource reprensents an IP range.
# Corresponds to the JSON property `prefixLength`
# @return [Fixnum]
attr_accessor :prefix_length
# The purpose of resource, only used with INTERNAL type.
# Corresponds to the JSON property `purpose`
# @return [String]
attr_accessor :purpose
# [Output Only] URL of the region where the regional address resides. This field # [Output Only] URL of the region where the regional address resides. This field
# is not applicable to global addresses. You must specify this field as part of # is not applicable to global addresses. You must specify this field as part of
# the HTTP request URL. You cannot set this field in the request body. # the HTTP request URL. You cannot set this field in the request body.
@ -664,7 +680,10 @@ module Google
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@network_tier = args[:network_tier] if args.key?(:network_tier) @network_tier = args[:network_tier] if args.key?(:network_tier)
@prefix_length = args[:prefix_length] if args.key?(:prefix_length)
@purpose = args[:purpose] if args.key?(:purpose)
@region = args[:region] if args.key?(:region) @region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@ -1392,8 +1411,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -2262,8 +2281,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -2554,8 +2573,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -3381,8 +3400,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -4085,8 +4104,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -4403,7 +4422,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :device_name attr_accessor :device_name
# Specifies whether to include the disk and what image to use. # Specifies whether to include the disk and what image to use. Possible values
# are:
# - source-image: to use the same image that was used to create the source
# instance's corresponding disk. Applicable to the boot disk and additional read-
# write disks.
# - source-image-family: to use the same image family that was used to create
# the source instance's corresponding disk. Applicable to the boot disk and
# additional read-write disks.
# - custom-image: to use a user-provided image url for disk creation. Applicable
# to the boot disk and additional read-write disks.
# - attach-read-only: to attach a read-only disk. Applicable to read-only disks.
# - do-not-include: to exclude a disk from the template. Applicable to
# additional read-write disks, local SSDs, and read-only disks.
# Corresponds to the JSON property `instantiateFrom` # Corresponds to the JSON property `instantiateFrom`
# @return [String] # @return [String]
attr_accessor :instantiate_from attr_accessor :instantiate_from
@ -5240,8 +5271,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -5701,8 +5732,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -5771,10 +5802,10 @@ module Google
# An optional prefix to the service name for this Forwarding Rule. If specified, # An optional prefix to the service name for this Forwarding Rule. If specified,
# will be the first label of the fully qualified service name. # will be the first label of the fully qualified service name.
# The label must be 1-63 characters long, and comply with RFC1035. Specifically, # The label must be 1-63 characters long, and comply with RFC1035. Specifically,
# the label must be 1-63 characters long and match the regular expression [a-z]([ # the label 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, # [-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase
# and all following characters must be a dash, lowercase letter, or digit, # letter, and all following characters must be a dash, lowercase letter, or
# except the last character, which cannot be a dash. # digit, except the last character, which cannot be a dash.
# This field is only used for internal load balancing. # This field is only used for internal load balancing.
# Corresponds to the JSON property `serviceLabel` # Corresponds to the JSON property `serviceLabel`
# @return [String] # @return [String]
@ -6199,11 +6230,11 @@ module Google
# A list of labels to apply for this resource. Each label key & value must # A list of labels to apply for this resource. Each label key & value must
# comply with RFC1035. Specifically, 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 # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
# character must be a lowercase letter, and all following characters must be a # first character must be a lowercase letter, and all following characters must
# dash, lowercase letter, or digit, except the last character, which cannot be a # be a dash, lowercase letter, or digit, except the last character, which cannot
# dash. For example, "webserver-frontend": "images". A label value can also be # be a dash. For example, "webserver-frontend": "images". A label value can also
# empty (e.g. "my-label": ""). # be empty (e.g. "my-label": "").
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -6564,8 +6595,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -6920,9 +6951,10 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The resource name must be 1-63 characters long, and comply with # resource. The resource name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -7829,8 +7861,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -8051,8 +8083,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -8318,8 +8350,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -8731,9 +8763,10 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The resource name must be 1-63 characters long, and comply with # resource. The resource name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -11250,8 +11283,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -11866,8 +11899,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -12062,8 +12095,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -14303,9 +14336,10 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The resource name must be 1-63 characters long, and comply with # resource. The resource name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -14486,7 +14520,7 @@ module Google
end end
end end
# # Next available tag: 12
class ManagedInstance class ManagedInstance
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -14549,12 +14583,6 @@ module Google
# @return [Google::Apis::ComputeAlpha::ManagedInstanceOverride] # @return [Google::Apis::ComputeAlpha::ManagedInstanceOverride]
attr_accessor :override attr_accessor :override
# [Output Only] Standby mode of the instance. This field is non-empty iff the
# instance is a standby.
# Corresponds to the JSON property `standbyMode`
# @return [String]
attr_accessor :standby_mode
# [Output Only] Tag describing the version. # [Output Only] Tag describing the version.
# Corresponds to the JSON property `tag` # Corresponds to the JSON property `tag`
# @return [String] # @return [String]
@ -14578,7 +14606,6 @@ module Google
@instance_template = args[:instance_template] if args.key?(:instance_template) @instance_template = args[:instance_template] if args.key?(:instance_template)
@last_attempt = args[:last_attempt] if args.key?(:last_attempt) @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
@override = args[:override] if args.key?(:override) @override = args[:override] if args.key?(:override)
@standby_mode = args[:standby_mode] if args.key?(:standby_mode)
@tag = args[:tag] if args.key?(:tag) @tag = args[:tag] if args.key?(:tag)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
end end
@ -14937,8 +14964,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -15065,8 +15092,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -15907,7 +15934,7 @@ module Google
# Name of this peering. Provided by the client when the peering is created. The # Name of this peering. Provided by the client when the peering is created. The
# name must comply with RFC1035. Specifically, the name must be 1-63 characters # name must comply with RFC1035. Specifically, the name must be 1-63 characters
# long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
# first character must be a lowercase letter, and all the following characters # first character must be a lowercase letter, and all the following characters
# must be a dash, lowercase letter, or digit, except the last character, which # must be a dash, lowercase letter, or digit, except the last character, which
# cannot be a dash. # cannot be a dash.
@ -18448,8 +18475,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -18774,8 +18801,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -19851,6 +19878,11 @@ module Google
attr_accessor :automatic_restart attr_accessor :automatic_restart
alias_method :automatic_restart?, :automatic_restart alias_method :automatic_restart?, :automatic_restart
# A set of node affinity and anti-affinity.
# Corresponds to the JSON property `nodeAffinities`
# @return [Array<Google::Apis::ComputeAlpha::SchedulingNodeAffinity>]
attr_accessor :node_affinities
# Defines the maintenance behavior for this instance. For standard instances, # Defines the maintenance behavior for this instance. For standard instances,
# the default behavior is MIGRATE. For preemptible instances, the default and # the default behavior is MIGRATE. For preemptible instances, the default and
# only possible behavior is TERMINATE. For more information, see Setting # only possible behavior is TERMINATE. For more information, see Setting
@ -19874,11 +19906,44 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart)
@node_affinities = args[:node_affinities] if args.key?(:node_affinities)
@on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
@preemptible = args[:preemptible] if args.key?(:preemptible) @preemptible = args[:preemptible] if args.key?(:preemptible)
end end
end end
# Node Affinity: the configuration of desired nodes onto which this Instance
# could be scheduled.
class SchedulingNodeAffinity
include Google::Apis::Core::Hashable
# Corresponds to the label key of Node resource.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Defines the operation of node selection.
# Corresponds to the JSON property `operator`
# @return [String]
attr_accessor :operator
# Corresponds to the label values of Node resource.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@operator = args[:operator] if args.key?(:operator)
@values = args[:values] if args.key?(:values)
end
end
# A security policy is comprised of one or more rules. It can also be associated # A security policy is comprised of one or more rules. It can also be associated
# with one or more 'targets'. # with one or more 'targets'.
class SecurityPolicy class SecurityPolicy
@ -19920,8 +19985,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -20165,7 +20230,7 @@ module Google
# @return [Google::Apis::ComputeAlpha::Expr] # @return [Google::Apis::ComputeAlpha::Expr]
attr_accessor :expr attr_accessor :expr
# CIDR IP address range. Only IPv4 is supported. # CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges` # Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :src_ip_ranges attr_accessor :src_ip_ranges
@ -20195,7 +20260,7 @@ module Google
class SecurityPolicyRuleMatcherConfig class SecurityPolicyRuleMatcherConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# CIDR IP address range. Only IPv4 is supported. # CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges` # Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :src_ip_ranges attr_accessor :src_ip_ranges
@ -20287,6 +20352,12 @@ module Google
class ShieldedVmConfig class ShieldedVmConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines whether the instance should have integrity monitoring enabled.
# Corresponds to the JSON property `enableIntegrityMonitoring`
# @return [Boolean]
attr_accessor :enable_integrity_monitoring
alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
# Defines whether the instance should have secure boot enabled. # Defines whether the instance should have secure boot enabled.
# Corresponds to the JSON property `enableSecureBoot` # Corresponds to the JSON property `enableSecureBoot`
# @return [Boolean] # @return [Boolean]
@ -20305,6 +20376,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring)
@enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot) @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
@enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm) @enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm)
end end
@ -20316,9 +20388,10 @@ module Google
# Name of the key. The name must be 1-63 characters long, and comply with # Name of the key. The name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `keyName` # Corresponds to the JSON property `keyName`
# @return [String] # @return [String]
attr_accessor :key_name attr_accessor :key_name
@ -20361,6 +20434,13 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :disk_size_gb attr_accessor :disk_size_gb
# [Output Only] A list of features to enable on the guest operating system.
# Applicable only for bootable images. Read Enabling guest operating system
# features to see a list of available options.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
attr_accessor :guest_os_features
# [Output Only] The unique identifier for the resource. This identifier is # [Output Only] The unique identifier for the resource. This identifier is
# defined by the server. # defined by the server.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
@ -20404,8 +20484,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -20473,6 +20553,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@ -20681,8 +20762,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -21114,9 +21195,10 @@ module Google
# Name of the resource. The name must be 1-63 characters long, and comply with # Name of the resource. The name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -21378,6 +21460,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :ip_cidr_range attr_accessor :ip_cidr_range
# [Output Only] The range of internal IPv6 addresses that are owned by this
# subnetwork.
# Corresponds to the JSON property `ipv6CidrRange`
# @return [String]
attr_accessor :ipv6_cidr_range
# [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork
# resources. # resources.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
@ -21387,8 +21475,8 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The name must be 1-63 characters long, and comply with RFC1035. # resource. 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 # 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 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must
# a lowercase letter, and all following characters must be a dash, lowercase # 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. # letter, or digit, except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
@ -21444,6 +21532,7 @@ module Google
@gateway_address = args[:gateway_address] if args.key?(:gateway_address) @gateway_address = args[:gateway_address] if args.key?(:gateway_address)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
@ipv6_cidr_range = args[:ipv6_cidr_range] if args.key?(:ipv6_cidr_range)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network) @network = args[:network] if args.key?(:network)
@ -21986,8 +22075,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -22215,8 +22304,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -22444,8 +22533,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -22888,8 +22977,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -23490,8 +23579,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -23733,8 +23822,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -23947,8 +24036,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -24499,8 +24588,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -25068,8 +25157,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`

View File

@ -2722,6 +2722,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SchedulingNodeAffinity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPolicy class SecurityPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3742,7 +3748,10 @@ module Google
property :label_fingerprint, :base64 => true, as: 'labelFingerprint' property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :name, as: 'name' property :name, as: 'name'
property :network, as: 'network'
property :network_tier, as: 'networkTier' property :network_tier, as: 'networkTier'
property :prefix_length, as: 'prefixLength'
property :purpose, as: 'purpose'
property :region, as: 'region' property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :status, as: 'status' property :status, as: 'status'
@ -7170,7 +7179,6 @@ module Google
property :override, as: 'override', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Representation property :override, as: 'override', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Representation
property :standby_mode, as: 'standbyMode'
property :tag, as: 'tag' property :tag, as: 'tag'
property :version, as: 'version', class: Google::Apis::ComputeAlpha::ManagedInstanceVersion, decorator: Google::Apis::ComputeAlpha::ManagedInstanceVersion::Representation property :version, as: 'version', class: Google::Apis::ComputeAlpha::ManagedInstanceVersion, decorator: Google::Apis::ComputeAlpha::ManagedInstanceVersion::Representation
@ -8571,11 +8579,22 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :automatic_restart, as: 'automaticRestart' property :automatic_restart, as: 'automaticRestart'
collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeAlpha::SchedulingNodeAffinity, decorator: Google::Apis::ComputeAlpha::SchedulingNodeAffinity::Representation
property :on_host_maintenance, as: 'onHostMaintenance' property :on_host_maintenance, as: 'onHostMaintenance'
property :preemptible, as: 'preemptible' property :preemptible, as: 'preemptible'
end end
end end
class SchedulingNodeAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :operator, as: 'operator'
collection :values, as: 'values'
end
end
class SecurityPolicy class SecurityPolicy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -8683,6 +8702,7 @@ module Google
class ShieldedVmConfig class ShieldedVmConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring'
property :enable_secure_boot, as: 'enableSecureBoot' property :enable_secure_boot, as: 'enableSecureBoot'
property :enable_vtpm, as: 'enableVtpm' property :enable_vtpm, as: 'enableVtpm'
end end
@ -8702,6 +8722,8 @@ module Google
property :creation_timestamp, as: 'creationTimestamp' property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description' property :description, as: 'description'
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' 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 :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint' property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@ -8951,6 +8973,7 @@ module Google
property :gateway_address, as: 'gatewayAddress' property :gateway_address, as: 'gatewayAddress'
property :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :ip_cidr_range, as: 'ipCidrRange' property :ip_cidr_range, as: 'ipCidrRange'
property :ipv6_cidr_range, as: 'ipv6CidrRange'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
property :network, as: 'network' property :network, as: 'network'

View File

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

View File

@ -586,8 +586,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -1362,8 +1362,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -2115,8 +2115,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -2387,8 +2387,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -3083,8 +3083,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -3748,8 +3748,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -3761,6 +3761,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :options attr_accessor :options
# [Output Only] URL of the region where the disk resides. Only applicable for
# regional resources. You must specify this field as part of the HTTP request
# URL. It is not settable as a field in the request body.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# URLs of the zones where the disk should be replicated to. Only applicable for
# regional resources.
# Corresponds to the JSON property `replicaZones`
# @return [Array<String>]
attr_accessor :replica_zones
# [Output Only] Server-defined fully-qualified URL for this resource. # [Output Only] Server-defined fully-qualified URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
@ -3884,6 +3897,8 @@ module Google
@licenses = args[:licenses] if args.key?(:licenses) @licenses = args[:licenses] if args.key?(:licenses)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@options = args[:options] if args.key?(:options) @options = args[:options] if args.key?(:options)
@region = args[:region] if args.key?(:region)
@replica_zones = args[:replica_zones] if args.key?(:replica_zones)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@size_gb = args[:size_gb] if args.key?(:size_gb) @size_gb = args[:size_gb] if args.key?(:size_gb)
@source_image = args[:source_image] if args.key?(:source_image) @source_image = args[:source_image] if args.key?(:source_image)
@ -4041,7 +4056,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :device_name attr_accessor :device_name
# Specifies whether to include the disk and what image to use. # Specifies whether to include the disk and what image to use. Possible values
# are:
# - source-image: to use the same image that was used to create the source
# instance's corresponding disk. Applicable to the boot disk and additional read-
# write disks.
# - source-image-family: to use the same image family that was used to create
# the source instance's corresponding disk. Applicable to the boot disk and
# additional read-write disks.
# - custom-image: to use a user-provided image url for disk creation. Applicable
# to the boot disk and additional read-write disks.
# - attach-read-only: to attach a read-only disk. Applicable to read-only disks.
# - do-not-include: to exclude a disk from the template. Applicable to
# additional read-write disks, local SSDs, and read-only disks.
# Corresponds to the JSON property `instantiateFrom` # Corresponds to the JSON property `instantiateFrom`
# @return [String] # @return [String]
attr_accessor :instantiate_from attr_accessor :instantiate_from
@ -4860,8 +4887,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -5307,8 +5334,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -5377,10 +5404,10 @@ module Google
# An optional prefix to the service name for this Forwarding Rule. If specified, # An optional prefix to the service name for this Forwarding Rule. If specified,
# will be the first label of the fully qualified service name. # will be the first label of the fully qualified service name.
# The label must be 1-63 characters long, and comply with RFC1035. Specifically, # The label must be 1-63 characters long, and comply with RFC1035. Specifically,
# the label must be 1-63 characters long and match the regular expression [a-z]([ # the label 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, # [-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase
# and all following characters must be a dash, lowercase letter, or digit, # letter, and all following characters must be a dash, lowercase letter, or
# except the last character, which cannot be a dash. # digit, except the last character, which cannot be a dash.
# This field is only used for internal load balancing. # This field is only used for internal load balancing.
# Corresponds to the JSON property `serviceLabel` # Corresponds to the JSON property `serviceLabel`
# @return [String] # @return [String]
@ -5785,11 +5812,11 @@ module Google
# A list of labels to apply for this resource. Each label key & value must # A list of labels to apply for this resource. Each label key & value must
# comply with RFC1035. Specifically, 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 # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
# character must be a lowercase letter, and all following characters must be a # first character must be a lowercase letter, and all following characters must
# dash, lowercase letter, or digit, except the last character, which cannot be a # be a dash, lowercase letter, or digit, except the last character, which cannot
# dash. For example, "webserver-frontend": "images". A label value can also be # be a dash. For example, "webserver-frontend": "images". A label value can also
# empty (e.g. "my-label": ""). # be empty (e.g. "my-label": "").
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -5988,8 +6015,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -6323,8 +6350,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -6545,8 +6572,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -6812,8 +6839,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -7205,9 +7232,10 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The resource name must be 1-63 characters long, and comply with # resource. The resource name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -9444,8 +9472,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -9986,8 +10014,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -10069,6 +10097,24 @@ module Google
class InterconnectAttachment class InterconnectAttachment
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Determines whether this Attachment will carry packets. Not present for
# PARTNER_PROVIDER.
# Corresponds to the JSON property `adminEnabled`
# @return [Boolean]
attr_accessor :admin_enabled
alias_method :admin_enabled?, :admin_enabled
# Up to 16 candidate prefixes that can be used to restrict the allocation of
# cloudRouterIpAddress and customerRouterIpAddress for this attachment. All
# prefixes must be within link-local address space (169.254.0.0/16) and must be /
# 29 or shorter (/28, /27, etc). Google will attempt to select an unused /29
# from the supplied candidate prefix(es). The request will fail if all possible /
# 29s are in use on Google?s edge. If not supplied, Google will randomly select
# an unused /29 from all of link-local space.
# Corresponds to the JSON property `candidateSubnets`
# @return [Array<String>]
attr_accessor :candidate_subnets
# [Output Only] IPv4 address + prefix length to be configured on Cloud Router # [Output Only] IPv4 address + prefix length to be configured on Cloud Router
# Interface for this interconnect attachment. # Interface for this interconnect attachment.
# Corresponds to the JSON property `cloudRouterIpAddress` # Corresponds to the JSON property `cloudRouterIpAddress`
@ -10136,8 +10182,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -10176,12 +10222,26 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Available only for DEDICATED and PARTNER_PROVIDER. Desired VLAN tag for this
# attachment, in the range 2-4094. This field refers to 802.1q VLAN tag, also
# known as IEEE 802.1Q Only specified at creation time.
# Corresponds to the JSON property `vlanTag8021q`
# @return [Fixnum]
attr_accessor :vlan_tag8021q
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@admin_enabled = args[:admin_enabled] if args.key?(:admin_enabled)
@candidate_subnets = args[:candidate_subnets] if args.key?(:candidate_subnets)
@cloud_router_ip_address = args[:cloud_router_ip_address] if args.key?(:cloud_router_ip_address) @cloud_router_ip_address = args[:cloud_router_ip_address] if args.key?(:cloud_router_ip_address)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@customer_router_ip_address = args[:customer_router_ip_address] if args.key?(:customer_router_ip_address) @customer_router_ip_address = args[:customer_router_ip_address] if args.key?(:customer_router_ip_address)
@ -10198,6 +10258,8 @@ module Google
@region = args[:region] if args.key?(:region) @region = args[:region] if args.key?(:region)
@router = args[:router] if args.key?(:router) @router = args[:router] if args.key?(:router)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@type = args[:type] if args.key?(:type)
@vlan_tag8021q = args[:vlan_tag8021q] if args.key?(:vlan_tag8021q)
end end
end end
@ -11897,7 +11959,7 @@ module Google
end end
end end
# # Next available tag: 12
class ManagedInstance class ManagedInstance
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -12214,8 +12276,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -12491,7 +12553,7 @@ module Google
# Name of this peering. Provided by the client when the peering is created. The # Name of this peering. Provided by the client when the peering is created. The
# name must comply with RFC1035. Specifically, the name must be 1-63 characters # name must comply with RFC1035. Specifically, the name must be 1-63 characters
# long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
# first character must be a lowercase letter, and all the following characters # first character must be a lowercase letter, and all the following characters
# must be a dash, lowercase letter, or digit, except the last character, which # must be a dash, lowercase letter, or digit, except the last character, which
# cannot be a dash. # cannot be a dash.
@ -13865,6 +13927,143 @@ module Google
end end
end end
#
class RegionDiskTypeList
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 DiskType resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::DiskType>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#regionDiskTypeList for region
# disk types.
# 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] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeBeta::RegionDiskTypeList::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)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeBeta::RegionDiskTypeList::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 RegionDisksResizeRequest
include Google::Apis::Core::Hashable
# The new size of the regional persistent disk, which is specified in GB.
# Corresponds to the JSON property `sizeGb`
# @return [Fixnum]
attr_accessor :size_gb
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@size_gb = args[:size_gb] if args.key?(:size_gb)
end
end
# Contains a list of InstanceGroup resources. # Contains a list of InstanceGroup resources.
class RegionInstanceGroupList class RegionInstanceGroupList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -14678,8 +14877,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -15004,8 +15203,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -15920,8 +16119,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -16158,7 +16357,7 @@ module Google
# @return [Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig] # @return [Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig]
attr_accessor :config attr_accessor :config
# CIDR IP address range. Only IPv4 is supported. # CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges` # Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :src_ip_ranges attr_accessor :src_ip_ranges
@ -16187,7 +16386,7 @@ module Google
class SecurityPolicyRuleMatcherConfig class SecurityPolicyRuleMatcherConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# CIDR IP address range. Only IPv4 is supported. # CIDR IP address range.
# Corresponds to the JSON property `srcIpRanges` # Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :src_ip_ranges attr_accessor :src_ip_ranges
@ -16281,9 +16480,10 @@ module Google
# Name of the key. The name must be 1-63 characters long, and comply with # Name of the key. The name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `keyName` # Corresponds to the JSON property `keyName`
# @return [String] # @return [String]
attr_accessor :key_name attr_accessor :key_name
@ -16369,8 +16569,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -16630,8 +16830,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -16979,9 +17179,10 @@ module Google
# Name of the resource. The name must be 1-63 characters long, and comply with # Name of the resource. The name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -17180,8 +17381,8 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The name must be 1-63 characters long, and comply with RFC1035. # resource. 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 # 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 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must
# a lowercase letter, and all following characters must be a dash, lowercase # 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. # letter, or digit, except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
@ -17756,8 +17957,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -17979,8 +18180,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -18207,8 +18408,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -18651,8 +18852,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -19247,8 +19448,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -19489,8 +19690,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -19703,8 +19904,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -20255,8 +20456,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -20554,6 +20755,156 @@ module Google
end end
end end
# Subnetwork which the current user has compute.subnetworks.use permission on.
class UsableSubnetwork
include Google::Apis::Core::Hashable
# The range of internal addresses that are owned by this subnetwork.
# Corresponds to the JSON property `ipCidrRange`
# @return [String]
attr_accessor :ip_cidr_range
# Network URL.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# Subnetwork URL.
# Corresponds to the JSON property `subnetwork`
# @return [String]
attr_accessor :subnetwork
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
@network = args[:network] if args.key?(:network)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end
end
#
class UsableSubnetworksAggregatedList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# [Output] A list of usable subnetwork URLs.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::UsableSubnetwork>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList
# for aggregated lists of usable subnetworks.
# 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] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::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)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::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
# The location in Cloud Storage and naming method of the daily usage report. # The location in Cloud Storage and naming method of the daily usage report.
# Contains bucket_name and report_name prefix. # Contains bucket_name and report_name prefix.
class UsageExportLocation class UsageExportLocation
@ -20653,8 +21004,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`

View File

@ -1840,6 +1840,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RegionDiskTypeList
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 RegionDisksResizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupList class RegionInstanceGroupList
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2836,6 +2860,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UsableSubnetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UsableSubnetworksAggregatedList
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 UsageExportLocation class UsageExportLocation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3860,6 +3908,8 @@ module Google
collection :licenses, as: 'licenses' collection :licenses, as: 'licenses'
property :name, as: 'name' property :name, as: 'name'
property :options, as: 'options' property :options, as: 'options'
property :region, as: 'region'
collection :replica_zones, as: 'replicaZones'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :size_gb, :numeric_string => true, as: 'sizeGb' property :size_gb, :numeric_string => true, as: 'sizeGb'
property :source_image, as: 'sourceImage' property :source_image, as: 'sourceImage'
@ -5400,6 +5450,8 @@ module Google
class InterconnectAttachment class InterconnectAttachment
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :admin_enabled, as: 'adminEnabled'
collection :candidate_subnets, as: 'candidateSubnets'
property :cloud_router_ip_address, as: 'cloudRouterIpAddress' property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
property :creation_timestamp, as: 'creationTimestamp' property :creation_timestamp, as: 'creationTimestamp'
property :customer_router_ip_address, as: 'customerRouterIpAddress' property :customer_router_ip_address, as: 'customerRouterIpAddress'
@ -5417,6 +5469,8 @@ module Google
property :region, as: 'region' property :region, as: 'region'
property :router, as: 'router' property :router, as: 'router'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :type, as: 'type'
property :vlan_tag8021q, as: 'vlanTag8021q'
end end
end end
@ -6362,6 +6416,45 @@ module Google
end end
end end
class RegionDiskTypeList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::DiskType, decorator: Google::Apis::ComputeBeta::DiskType::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::RegionDiskTypeList::Warning, decorator: Google::Apis::ComputeBeta::RegionDiskTypeList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::RegionDiskTypeList::Warning::Datum, decorator: Google::Apis::ComputeBeta::RegionDiskTypeList::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 RegionDisksResizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :size_gb, :numeric_string => true, as: 'sizeGb'
end
end
class RegionInstanceGroupList class RegionInstanceGroupList
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -8097,6 +8190,47 @@ module Google
end end
end end
class UsableSubnetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
property :network, as: 'network'
property :subnetwork, as: 'subnetwork'
end
end
class UsableSubnetworksAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::UsableSubnetwork, decorator: Google::Apis::ComputeBeta::UsableSubnetwork::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::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 UsageExportLocation class UsageExportLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -8190,6 +8190,9 @@ module Google
# @param [String] instance # @param [String] instance
# The instance name for this request. # The instance name for this request.
# @param [Google::Apis::ComputeBeta::AttachedDisk] attached_disk_object # @param [Google::Apis::ComputeBeta::AttachedDisk] attached_disk_object
# @param [Boolean] force_attach
# Whether to force attach the disk even if it's currently attached to another
# instance. This is only available for regional disks.
# @param [String] request_id # @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so # 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 # that if you must retry your request, the server will know to ignore the
@ -8222,7 +8225,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def attach_disk(project, zone, instance, attached_disk_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def attach_disk(project, zone, instance, attached_disk_object = nil, force_attach: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/attachDisk', options) command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/attachDisk', options)
command.request_representation = Google::Apis::ComputeBeta::AttachedDisk::Representation command.request_representation = Google::Apis::ComputeBeta::AttachedDisk::Representation
command.request_object = attached_disk_object command.request_object = attached_disk_object
@ -8231,6 +8234,7 @@ module Google
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil? command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil? command.params['instance'] = instance unless instance.nil?
command.query['forceAttach'] = force_attach unless force_attach.nil?
command.query['requestId'] = request_id unless request_id.nil? command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -9984,6 +9988,64 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the specified interconnect attachment with the data included in the
# request. This method supports PATCH semantics and uses the JSON merge patch
# format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] interconnect_attachment
# Name of the interconnect attachment to patch.
# @param [Google::Apis::ComputeBeta::InterconnectAttachment] interconnect_attachment_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
command.request_object = interconnect_attachment_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.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
# Sets the labels on an InterconnectAttachment. To learn more about labels, read # Sets the labels on an InterconnectAttachment. To learn more about labels, read
# the Labeling Resources documentation. # the Labeling Resources documentation.
# @param [String] project # @param [String] project
@ -13161,6 +13223,572 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns the specified regional disk type. Get a list of available disk types
# by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] disk_type
# Name of the disk type to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::DiskType] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::DiskType]
#
# @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_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/diskTypes/{diskType}', options)
command.response_representation = Google::Apis::ComputeBeta::DiskType::Representation
command.response_class = Google::Apis::ComputeBeta::DiskType
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['diskType'] = disk_type unless disk_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 regional disk types available to the specified project.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::RegionDiskTypeList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::RegionDiskTypeList]
#
# @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_region_disk_types(project, region, 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}/regions/{region}/diskTypes', options)
command.response_representation = Google::Apis::ComputeBeta::RegionDiskTypeList::Representation
command.response_class = Google::Apis::ComputeBeta::RegionDiskTypeList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.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
# Creates a snapshot of this regional disk.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] disk
# Name of the regional persistent disk to snapshot.
# @param [Google::Apis::ComputeBeta::Snapshot] snapshot_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_region_disk_snapshot(project, region, disk, snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/createSnapshot', options)
command.request_representation = Google::Apis::ComputeBeta::Snapshot::Representation
command.request_object = snapshot_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['disk'] = disk unless disk.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
# Deletes the specified regional persistent disk. Deleting a regional disk
# removes all the replicas of its data permanently and is irreversible. However,
# deleting a disk does not delete any snapshots previously made from the disk.
# You must separately delete snapshots.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] disk
# Name of the regional persistent disk to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_region_disk(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/disks/{disk}', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['disk'] = disk unless disk.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 a specified regional persistent disk.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] disk
# Name of the regional persistent disk to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Disk] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Disk]
#
# @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_region_disk(project, region, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/disks/{disk}', options)
command.response_representation = Google::Apis::ComputeBeta::Disk::Representation
command.response_class = Google::Apis::ComputeBeta::Disk
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['disk'] = disk unless disk.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 persistent regional disk in the specified project using the data
# included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [Google::Apis::ComputeBeta::Disk] disk_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_image
# 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
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_region_disk(project, region, disk_object = nil, request_id: nil, source_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/disks', options)
command.request_representation = Google::Apis::ComputeBeta::Disk::Representation
command.request_object = disk_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['sourceImage'] = source_image unless source_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
# Retrieves the list of persistent disks contained within the specified region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::DiskList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::DiskList]
#
# @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_region_disks(project, region, 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}/regions/{region}/disks', options)
command.response_representation = Google::Apis::ComputeBeta::DiskList::Representation
command.response_class = Google::Apis::ComputeBeta::DiskList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.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
# Resizes the specified regional persistent disk.
# @param [String] project
# The project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] disk
# Name of the regional persistent disk.
# @param [Google::Apis::ComputeBeta::RegionDisksResizeRequest] region_disks_resize_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def resize_region_disk(project, region, disk, region_disks_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/resize', options)
command.request_representation = Google::Apis::ComputeBeta::RegionDisksResizeRequest::Representation
command.request_object = region_disks_resize_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['disk'] = disk unless disk.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
# Sets the labels on the target regional disk.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_region_disk_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/setLabels', options)
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
command.request_object = region_set_labels_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_region_disk_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.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
# Schedules a group action to remove the specified instances from the managed # Schedules a group action to remove the specified instances from the managed
# instance group. Abandoning an instance does not delete the instance, but it # instance group. Abandoning an instance does not delete the instance, but it
# does remove the instance from any target pools that are applied by the managed # does remove the instance from any target pools that are applied by the managed
@ -17211,6 +17839,82 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Retrieves an aggregated list of usable subnetworks.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList]
#
# @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_subnetwork_usable(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/subnetworks/listUsable', options)
command.response_representation = Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::Representation
command.response_class = Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList
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 subnetwork with the data included in the request. Only # Patches the specified subnetwork with the data included in the request. Only
# the following fields within the subnetwork resource can be specified in the # the following fields within the subnetwork resource can be specified in the
# request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also # request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also

View File

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

View File

@ -556,8 +556,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -1011,6 +1011,13 @@ module Google
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey] # @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :disk_encryption_key attr_accessor :disk_encryption_key
# A list of features to enable on the guest operating system. Applicable only
# for bootable images. Read Enabling guest operating system features to see a
# list of available options.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeV1::GuestOsFeature>]
attr_accessor :guest_os_features
# [Output Only] A zero-based index to this disk, where 0 is reserved for the # [Output Only] A zero-based index to this disk, where 0 is reserved for the
# boot disk. If you have many disks attached to an instance, each disk would # boot disk. If you have many disks attached to an instance, each disk would
# have a unique index number. # have a unique index number.
@ -1080,6 +1087,7 @@ module Google
@boot = args[:boot] if args.key?(:boot) @boot = args[:boot] if args.key?(:boot)
@device_name = args[:device_name] if args.key?(:device_name) @device_name = args[:device_name] if args.key?(:device_name)
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@index = args[:index] if args.key?(:index) @index = args[:index] if args.key?(:index)
@initialize_params = args[:initialize_params] if args.key?(:initialize_params) @initialize_params = args[:initialize_params] if args.key?(:initialize_params)
@interface = args[:interface] if args.key?(:interface) @interface = args[:interface] if args.key?(:interface)
@ -1210,8 +1218,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -1911,8 +1919,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -2151,8 +2159,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -2775,8 +2783,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -3320,6 +3328,13 @@ module Google
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey] # @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :disk_encryption_key attr_accessor :disk_encryption_key
# A list of features to enable on the guest operating system. Applicable only
# for bootable images. Read Enabling guest operating system features to see a
# list of available options.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeV1::GuestOsFeature>]
attr_accessor :guest_os_features
# [Output Only] The unique identifier for the resource. This identifier is # [Output Only] The unique identifier for the resource. This identifier is
# defined by the server. # defined by the server.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
@ -3365,8 +3380,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -3485,6 +3500,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@ -4344,8 +4360,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -4733,8 +4749,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -5177,11 +5193,11 @@ module Google
# A list of labels to apply for this resource. Each label key & value must # A list of labels to apply for this resource. Each label key & value must
# comply with RFC1035. Specifically, 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 # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
# character must be a lowercase letter, and all following characters must be a # first character must be a lowercase letter, and all following characters must
# dash, lowercase letter, or digit, except the last character, which cannot be a # be a dash, lowercase letter, or digit, except the last character, which cannot
# dash. For example, "webserver-frontend": "images". A label value can also be # be a dash. For example, "webserver-frontend": "images". A label value can also
# empty (e.g. "my-label": ""). # be empty (e.g. "my-label": "").
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -5364,8 +5380,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -5693,8 +5709,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -5915,8 +5931,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -6177,8 +6193,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -6239,6 +6255,28 @@ module Google
# @return [String] # @return [String]
attr_accessor :source_image_id attr_accessor :source_image_id
# URL of the source snapshot used to create this image. This can be a full or
# valid partial URL. You must provide exactly one of:
# - this property, or
# - the sourceImage property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# Corresponds to the JSON property `sourceSnapshot`
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
# [Output Only] The ID value of the snapshot used to create this image. This
# value may be used to determine whether the snapshot was taken from the current
# or a previous instance of a given snapshot name.
# Corresponds to the JSON property `sourceSnapshotId`
# @return [String]
attr_accessor :source_snapshot_id
# The type of the image used to create this disk. The default and only value is # The type of the image used to create this disk. The default and only value is
# RAW # RAW
# Corresponds to the JSON property `sourceType` # Corresponds to the JSON property `sourceType`
@ -6281,6 +6319,9 @@ module Google
@source_image = args[:source_image] if args.key?(:source_image) @source_image = args[:source_image] if args.key?(:source_image)
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
@source_image_id = args[:source_image_id] if args.key?(:source_image_id) @source_image_id = args[:source_image_id] if args.key?(:source_image_id)
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
@source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key)
@source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id)
@source_type = args[:source_type] if args.key?(:source_type) @source_type = args[:source_type] if args.key?(:source_type)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
end end
@ -6544,9 +6585,10 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The resource name must be 1-63 characters long, and comply with # resource. The resource name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the # 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 # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# must be a lowercase letter, and all following characters must be a dash, # character must be a lowercase letter, and all following characters must be a
# lowercase letter, or digit, except the last character, which cannot be a dash. # dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -8496,8 +8538,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -9001,8 +9043,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -9130,8 +9172,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -10516,7 +10558,7 @@ module Google
end end
end end
# # Next available tag: 12
class ManagedInstance class ManagedInstance
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -10801,8 +10843,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -10870,6 +10912,14 @@ module Google
# @return [Array<Google::Apis::ComputeV1::AliasIpRange>] # @return [Array<Google::Apis::ComputeV1::AliasIpRange>]
attr_accessor :alias_ip_ranges attr_accessor :alias_ip_ranges
# Fingerprint hash of contents stored in this network interface. This field will
# be ignored when inserting an Instance or adding a NetworkInterface. An up-to-
# date fingerprint must be provided in order to update the NetworkInterface.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :fingerprint
# [Output Only] Type of the resource. Always compute#networkInterface for # [Output Only] Type of the resource. Always compute#networkInterface for
# network interfaces. # network interfaces.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
@ -10926,6 +10976,7 @@ module Google
def update!(**args) def update!(**args)
@access_configs = args[:access_configs] if args.key?(:access_configs) @access_configs = args[:access_configs] if args.key?(:access_configs)
@alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges) @alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network) @network = args[:network] if args.key?(:network)
@ -11069,7 +11120,7 @@ module Google
# Name of this peering. Provided by the client when the peering is created. The # Name of this peering. Provided by the client when the peering is created. The
# name must comply with RFC1035. Specifically, the name must be 1-63 characters # name must comply with RFC1035. Specifically, the name must be 1-63 characters
# long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
# first character must be a lowercase letter, and all the following characters # first character must be a lowercase letter, and all the following characters
# must be a dash, lowercase letter, or digit, except the last character, which # must be a dash, lowercase letter, or digit, except the last character, which
# cannot be a dash. # cannot be a dash.
@ -13092,8 +13143,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -13418,8 +13469,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -13463,6 +13514,31 @@ module Google
end end
end end
# Description-tagged IP ranges for the router to advertise.
class RouterAdvertisedIpRange
include Google::Apis::Core::Hashable
# User-specified description for the IP range.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The IP range to advertise. The value must be a CIDR-formatted string.
# Corresponds to the JSON property `range`
# @return [String]
attr_accessor :range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@range = args[:range] if args.key?(:range)
end
end
# Contains a list of routers. # Contains a list of routers.
class RouterAggregatedList class RouterAggregatedList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -13584,6 +13660,27 @@ module Google
class RouterBgp class RouterBgp
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# User-specified flag to indicate which mode to use for advertisement.
# Corresponds to the JSON property `advertiseMode`
# @return [String]
attr_accessor :advertise_mode
# User-specified list of prefix groups to advertise in custom mode. This field
# can only be populated if advertise_mode is CUSTOM and is advertised to all
# peers of the router. These groups will be advertised in addition to any
# specified prefixes. Leave this field blank to advertise no custom groups.
# Corresponds to the JSON property `advertisedGroups`
# @return [Array<String>]
attr_accessor :advertised_groups
# User-specified list of individual IP ranges to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and is advertised to
# all peers of the router. These IP ranges will be advertised in addition to any
# specified groups. Leave this field blank to advertise no custom IP ranges.
# Corresponds to the JSON property `advertisedIpRanges`
# @return [Array<Google::Apis::ComputeV1::RouterAdvertisedIpRange>]
attr_accessor :advertised_ip_ranges
# Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN,
# either 16-bit or 32-bit. The value will be fixed for this router resource. All # either 16-bit or 32-bit. The value will be fixed for this router resource. All
# VPN tunnels that link to this router will have the same local ASN. # VPN tunnels that link to this router will have the same local ASN.
@ -13597,6 +13694,9 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode)
@advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups)
@advertised_ip_ranges = args[:advertised_ip_ranges] if args.key?(:advertised_ip_ranges)
@asn = args[:asn] if args.key?(:asn) @asn = args[:asn] if args.key?(:asn)
end end
end end
@ -13605,6 +13705,29 @@ module Google
class RouterBgpPeer class RouterBgpPeer
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# User-specified flag to indicate which mode to use for advertisement.
# Corresponds to the JSON property `advertiseMode`
# @return [String]
attr_accessor :advertise_mode
# User-specified list of prefix groups to advertise in custom mode. This field
# can only be populated if advertise_mode is CUSTOM and overrides the list
# defined for the router (in Bgp message). These groups will be advertised in
# addition to any specified prefixes. Leave this field blank to advertise no
# custom groups.
# Corresponds to the JSON property `advertisedGroups`
# @return [Array<String>]
attr_accessor :advertised_groups
# User-specified list of individual IP ranges to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and overrides the list
# defined for the router (in Bgp message). These IP ranges will be advertised in
# addition to any specified groups. Leave this field blank to advertise no
# custom IP ranges.
# Corresponds to the JSON property `advertisedIpRanges`
# @return [Array<Google::Apis::ComputeV1::RouterAdvertisedIpRange>]
attr_accessor :advertised_ip_ranges
# The priority of routes advertised to this BGP peer. In the case where there is # The priority of routes advertised to this BGP peer. In the case where there is
# more than one matching route of maximum length, the routes with lowest # more than one matching route of maximum length, the routes with lowest
# priority value win. # priority value win.
@ -13646,6 +13769,9 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode)
@advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups)
@advertised_ip_ranges = args[:advertised_ip_ranges] if args.key?(:advertised_ip_ranges)
@advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority) @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority)
@interface_name = args[:interface_name] if args.key?(:interface_name) @interface_name = args[:interface_name] if args.key?(:interface_name)
@ip_address = args[:ip_address] if args.key?(:ip_address) @ip_address = args[:ip_address] if args.key?(:ip_address)
@ -14289,8 +14415,8 @@ module Google
# Name of the resource; provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -14526,8 +14652,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -14695,6 +14821,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a Subnetwork. An up-to-date fingerprint must be provided in order to
# update the Subnetwork.
# 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 gateway address for default routes to reach destination # [Output Only] The gateway address for default routes to reach destination
# addresses outside this subnetwork. # addresses outside this subnetwork.
# Corresponds to the JSON property `gatewayAddress` # Corresponds to the JSON property `gatewayAddress`
@ -14724,8 +14859,8 @@ module Google
# The name of the resource, provided by the client when initially creating the # The name of the resource, provided by the client when initially creating the
# resource. The name must be 1-63 characters long, and comply with RFC1035. # resource. 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 # 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 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must
# a lowercase letter, and all following characters must be a dash, lowercase # 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. # letter, or digit, except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
@ -14774,6 +14909,7 @@ module Google
def update!(**args) def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@gateway_address = args[:gateway_address] if args.key?(:gateway_address) @gateway_address = args[:gateway_address] if args.key?(:gateway_address)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
@ -15298,8 +15434,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -15502,8 +15638,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -15710,8 +15846,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -16154,8 +16290,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -16750,8 +16886,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -16984,8 +17120,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -17179,8 +17315,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -17649,8 +17785,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -18029,8 +18165,8 @@ module Google
# Name of the resource. Provided by the client when the resource is created. The # 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 comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a- # 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, # 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, # and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. # except the last character, which cannot be a dash.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`

View File

@ -1840,6 +1840,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RouterAdvertisedIpRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterAggregatedList class RouterAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2881,6 +2887,8 @@ module Google
property :device_name, as: 'deviceName' property :device_name, as: 'deviceName'
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
property :index, as: 'index' property :index, as: 'index'
property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeV1::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeV1::AttachedDiskInitializeParams::Representation property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeV1::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeV1::AttachedDiskInitializeParams::Representation
@ -3448,6 +3456,8 @@ module Google
property :description, as: 'description' property :description, as: 'description'
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
property :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint' property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@ -4131,6 +4141,10 @@ module Google
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
property :source_image_id, as: 'sourceImageId' property :source_image_id, as: 'sourceImageId'
property :source_snapshot, as: 'sourceSnapshot'
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
property :source_snapshot_id, as: 'sourceSnapshotId'
property :source_type, as: 'sourceType' property :source_type, as: 'sourceType'
property :status, as: 'status' property :status, as: 'status'
end end
@ -5318,6 +5332,7 @@ module Google
collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeV1::AliasIpRange, decorator: Google::Apis::ComputeV1::AliasIpRange::Representation collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeV1::AliasIpRange, decorator: Google::Apis::ComputeV1::AliasIpRange::Representation
property :fingerprint, :base64 => true, as: 'fingerprint'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
property :network, as: 'network' property :network, as: 'network'
@ -5990,6 +6005,14 @@ module Google
end end
end end
class RouterAdvertisedIpRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :range, as: 'range'
end
end
class RouterAggregatedList class RouterAggregatedList
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -6025,6 +6048,10 @@ module Google
class RouterBgp class RouterBgp
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :advertise_mode, as: 'advertiseMode'
collection :advertised_groups, as: 'advertisedGroups'
collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeV1::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeV1::RouterAdvertisedIpRange::Representation
property :asn, as: 'asn' property :asn, as: 'asn'
end end
end end
@ -6032,6 +6059,10 @@ module Google
class RouterBgpPeer class RouterBgpPeer
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :advertise_mode, as: 'advertiseMode'
collection :advertised_groups, as: 'advertisedGroups'
collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeV1::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeV1::RouterAdvertisedIpRange::Representation
property :advertised_route_priority, as: 'advertisedRoutePriority' property :advertised_route_priority, as: 'advertisedRoutePriority'
property :interface_name, as: 'interfaceName' property :interface_name, as: 'interfaceName'
property :ip_address, as: 'ipAddress' property :ip_address, as: 'ipAddress'
@ -6305,6 +6336,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp' property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description' property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :gateway_address, as: 'gatewayAddress' property :gateway_address, as: 'gatewayAddress'
property :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :ip_cidr_range, as: 'ipCidrRange' property :ip_cidr_range, as: 'ipCidrRange'

View File

@ -8223,6 +8223,65 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates an instance's network interface. This method follows PATCH semantics.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# The instance name for this request.
# @param [String] network_interface
# The name of the network interface to update.
# @param [Google::Apis::ComputeV1::NetworkInterface] network_interface_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::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 update_instance_network_interface(project, zone, instance, network_interface, network_interface_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateNetworkInterface', options)
command.request_representation = Google::Apis::ComputeV1::NetworkInterface::Representation
command.request_object = network_interface_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['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['networkInterface'] = network_interface unless network_interface.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of interconnect attachments. # Retrieves an aggregated list of interconnect attachments.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
@ -13829,6 +13888,66 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Patches the specified subnetwork with the data included in the request. Only
# the following fields within the subnetwork resource can be specified in the
# request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also
# mandatory to specify the current fingeprint of the subnetwork resource being
# patched.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] subnetwork
# Name of the Subnetwork resource to patch.
# @param [Google::Apis::ComputeV1::Subnetwork] subnetwork_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::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_subnetwork(project, region, subnetwork, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
command.request_representation = Google::Apis::ComputeV1::Subnetwork::Representation
command.request_object = subnetwork_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['region'] = region unless region.nil?
command.params['subnetwork'] = subnetwork unless subnetwork.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
# Set whether VMs in this subnet can access Google services without assigning # Set whether VMs in this subnet can access Google services without assigning
# external IP addresses through Private Google Access. # external IP addresses through Private Google Access.
# @param [String] project # @param [String] project

View File

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

View File

@ -33,7 +33,7 @@ module Google
attr_accessor :accelerator_count attr_accessor :accelerator_count
# Full URL, partial URI, or short name of the accelerator type resource to # Full URL, partial URI, or short name of the accelerator type resource to
# expose to this instance. See Google Compute Engine AcceleratorTypes.Examples: # expose to this instance. See Compute Engine AcceleratorTypes.Examples:
# https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/ # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/
# acceleratorTypes/nvidia-tesla-k80 # acceleratorTypes/nvidia-tesla-k80
# projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
@ -67,7 +67,7 @@ module Google
end end
# Describes the identifying information, config, and status of a cluster of # Describes the identifying information, config, and status of a cluster of
# Google Compute Engine instances. # Compute Engine instances.
class Cluster class Cluster
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -140,8 +140,8 @@ module Google
class ClusterConfig class ClusterConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. A Google Cloud Storage staging bucket used for sharing generated SSH # Optional. A Cloud Storage staging bucket used for sharing generated SSH keys
# keys and config. If you do not specify a staging bucket, Cloud Dataproc will # and config. If you do not specify a staging bucket, Cloud Dataproc will
# determine an appropriate Cloud Storage location (US, ASIA, or EU) for your # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
# cluster's staging bucket according to the Google Compute Engine zone where # cluster's staging bucket according to the Google Compute Engine zone where
# your cluster is deployed, and then it will create and manage this project- # your cluster is deployed, and then it will create and manage this project-
@ -150,8 +150,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :config_bucket attr_accessor :config_bucket
# Common config settings for resources of Google Compute Engine cluster # Common config settings for resources of Compute Engine cluster instances,
# instances, applicable to all instances in the cluster. # applicable to all instances in the cluster.
# Corresponds to the JSON property `gceClusterConfig` # Corresponds to the JSON property `gceClusterConfig`
# @return [Google::Apis::DataprocV1::GceClusterConfig] # @return [Google::Apis::DataprocV1::GceClusterConfig]
attr_accessor :gce_cluster_config attr_accessor :gce_cluster_config
@ -171,14 +171,14 @@ module Google
# @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>] # @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
attr_accessor :initialization_actions attr_accessor :initialization_actions
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
# Corresponds to the JSON property `masterConfig` # Corresponds to the JSON property `masterConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupConfig] # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
attr_accessor :master_config attr_accessor :master_config
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
# Corresponds to the JSON property `secondaryWorkerConfig` # Corresponds to the JSON property `secondaryWorkerConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupConfig] # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
attr_accessor :secondary_worker_config attr_accessor :secondary_worker_config
@ -188,8 +188,8 @@ module Google
# @return [Google::Apis::DataprocV1::SoftwareConfig] # @return [Google::Apis::DataprocV1::SoftwareConfig]
attr_accessor :software_config attr_accessor :software_config
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
# Corresponds to the JSON property `workerConfig` # Corresponds to the JSON property `workerConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupConfig] # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
attr_accessor :worker_config attr_accessor :worker_config
@ -454,8 +454,8 @@ module Google
end end
end end
# Common config settings for resources of Google Compute Engine cluster # Common config settings for resources of Compute Engine cluster instances,
# instances, applicable to all instances in the cluster. # applicable to all instances in the cluster.
class GceClusterConfig class GceClusterConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -470,19 +470,18 @@ module Google
attr_accessor :internal_ip_only attr_accessor :internal_ip_only
alias_method :internal_ip_only?, :internal_ip_only alias_method :internal_ip_only?, :internal_ip_only
# The Google Compute Engine metadata entries to add to all instances (see # The Compute Engine metadata entries to add to all instances (see Project and
# Project and instance metadata (https://cloud.google.com/compute/docs/storing- # instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-
# retrieving-metadata#project_and_instance_metadata)). # metadata#project_and_instance_metadata)).
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :metadata attr_accessor :metadata
# Optional. The Google Compute Engine network to be used for machine # Optional. The Compute Engine network to be used for machine communications.
# communications. Cannot be specified with subnetwork_uri. If neither # Cannot be specified with subnetwork_uri. If neither network_uri nor
# network_uri nor subnetwork_uri is specified, the "default" network of the # subnetwork_uri is specified, the "default" network of the project is used, if
# project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using # it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more
# Subnetworks for more information).A full URL, partial URI, or short name are # information).A full URL, partial URI, or short name are valid. Examples:
# valid. Examples:
# https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
# default # default
# projects/[project_id]/regions/global/default # projects/[project_id]/regions/global/default
@ -491,7 +490,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :network_uri attr_accessor :network_uri
# Optional. The service account of the instances. Defaults to the default Google # Optional. The service account of the instances. Defaults to the default
# Compute Engine service account. Custom service accounts need permissions # Compute Engine service account. Custom service accounts need permissions
# equivalent to the folloing IAM roles: # equivalent to the folloing IAM roles:
# roles/logging.logWriter # roles/logging.logWriter
@ -516,9 +515,9 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :service_account_scopes attr_accessor :service_account_scopes
# Optional. The Google Compute Engine subnetwork to be used for machine # Optional. The Compute Engine subnetwork to be used for machine communications.
# communications. Cannot be specified with network_uri.A full URL, partial URI, # Cannot be specified with network_uri.A full URL, partial URI, or short name
# or short name are valid. Examples: # are valid. Examples:
# https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/
# sub0 # sub0
# projects/[project_id]/regions/us-east1/sub0 # projects/[project_id]/regions/us-east1/sub0
@ -527,13 +526,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :subnetwork_uri attr_accessor :subnetwork_uri
# The Google Compute Engine tags to add to all instances (see Tagging instances). # The Compute Engine tags to add to all instances (see Tagging instances).
# Corresponds to the JSON property `tags` # Corresponds to the JSON property `tags`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :tags attr_accessor :tags
# Optional. The zone where the Google Compute Engine cluster will be located. On # Optional. The zone where the Compute Engine cluster will be located. On a
# a create request, it is required in the "global" region. If omitted in a non- # create request, it is required in the "global" region. If omitted in a non-
# global Cloud Dataproc region, the service will pick a zone in the # global Cloud Dataproc region, the service will pick a zone in the
# corresponding Compute Engine region. On a get request, zone will always be # corresponding Compute Engine region. On a get request, zone will always be
# present.A full URL, partial URI, or short name are valid. Examples: # present.A full URL, partial URI, or short name are valid. Examples:
@ -697,14 +696,14 @@ module Google
end end
end end
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
class InstanceGroupConfig class InstanceGroupConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The Google Compute Engine accelerator configuration for these # Optional. The Compute Engine accelerator configuration for these instances.
# instances.Beta Feature: This feature is still under development. It may be # Beta Feature: This feature is still under development. It may be changed
# changed before final release. # before final release.
# Corresponds to the JSON property `accelerators` # Corresponds to the JSON property `accelerators`
# @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>] # @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
attr_accessor :accelerators attr_accessor :accelerators
@ -714,8 +713,8 @@ module Google
# @return [Google::Apis::DataprocV1::DiskConfig] # @return [Google::Apis::DataprocV1::DiskConfig]
attr_accessor :disk_config attr_accessor :disk_config
# Output only. The Google Compute Engine image resource used for cluster # Output only. The Compute Engine image resource used for cluster instances.
# instances. Inferred from SoftwareConfig.image_version. # Inferred from SoftwareConfig.image_version.
# Corresponds to the JSON property `imageUri` # Corresponds to the JSON property `imageUri`
# @return [String] # @return [String]
attr_accessor :image_uri attr_accessor :image_uri
@ -733,8 +732,8 @@ module Google
attr_accessor :is_preemptible attr_accessor :is_preemptible
alias_method :is_preemptible?, :is_preemptible alias_method :is_preemptible?, :is_preemptible
# Optional. The Google Compute Engine machine type used for cluster instances.A # Optional. The Compute Engine machine type used for cluster instances.A full
# full URL, partial URI, or short name are valid. Examples: # URL, partial URI, or short name are valid. Examples:
# https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/ # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
# machineTypes/n1-standard-2 # machineTypes/n1-standard-2
# projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
@ -1138,7 +1137,7 @@ module Google
class NodeInitializationAction class NodeInitializationAction
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. Google Cloud Storage URI of executable file. # Required. Cloud Storage URI of executable file.
# Corresponds to the JSON property `executableFile` # Corresponds to the JSON property `executableFile`
# @return [String] # @return [String]
attr_accessor :executable_file attr_accessor :executable_file

View File

@ -43,7 +43,7 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://dataproc.googleapis.com/', '') super('https://content-dataproc.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1beta2 module DataprocV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20180227' REVISION = '20180306'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -33,11 +33,11 @@ module Google
attr_accessor :accelerator_count attr_accessor :accelerator_count
# Full URL, partial URI, or short name of the accelerator type resource to # Full URL, partial URI, or short name of the accelerator type resource to
# expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/ # expose to this instance. See Compute Engine AcceleratorTypes( /compute/docs/
# docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/ # reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/
# compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia- # beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 *
# tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia- # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 *
# tesla-k80 * nvidia-tesla-k80 # nvidia-tesla-k80
# Corresponds to the JSON property `acceleratorTypeUri` # Corresponds to the JSON property `acceleratorTypeUri`
# @return [String] # @return [String]
attr_accessor :accelerator_type_uri attr_accessor :accelerator_type_uri
@ -106,7 +106,7 @@ module Google
end end
# Describes the identifying information, config, and status of a cluster of # Describes the identifying information, config, and status of a cluster of
# Google Compute Engine instances. # Compute Engine instances.
class Cluster class Cluster
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -179,8 +179,8 @@ module Google
class ClusterConfig class ClusterConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. A Google Cloud Storage staging bucket used for sharing generated SSH # Optional. A Cloud Storage staging bucket used for sharing generated SSH keys
# keys and config. If you do not specify a staging bucket, Cloud Dataproc will # and config. If you do not specify a staging bucket, Cloud Dataproc will
# determine an appropriate Cloud Storage location (US, ASIA, or EU) for your # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
# cluster's staging bucket according to the Google Compute Engine zone where # cluster's staging bucket according to the Google Compute Engine zone where
# your cluster is deployed, and then it will create and manage this project- # your cluster is deployed, and then it will create and manage this project-
@ -189,8 +189,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :config_bucket attr_accessor :config_bucket
# Common config settings for resources of Google Compute Engine cluster # Common config settings for resources of Compute Engine cluster instances,
# instances, applicable to all instances in the cluster. # applicable to all instances in the cluster.
# Corresponds to the JSON property `gceClusterConfig` # Corresponds to the JSON property `gceClusterConfig`
# @return [Google::Apis::DataprocV1beta2::GceClusterConfig] # @return [Google::Apis::DataprocV1beta2::GceClusterConfig]
attr_accessor :gce_cluster_config attr_accessor :gce_cluster_config
@ -215,14 +215,14 @@ module Google
# @return [Google::Apis::DataprocV1beta2::LifecycleConfig] # @return [Google::Apis::DataprocV1beta2::LifecycleConfig]
attr_accessor :lifecycle_config attr_accessor :lifecycle_config
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
# Corresponds to the JSON property `masterConfig` # Corresponds to the JSON property `masterConfig`
# @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig] # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
attr_accessor :master_config attr_accessor :master_config
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
# Corresponds to the JSON property `secondaryWorkerConfig` # Corresponds to the JSON property `secondaryWorkerConfig`
# @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig] # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
attr_accessor :secondary_worker_config attr_accessor :secondary_worker_config
@ -232,8 +232,8 @@ module Google
# @return [Google::Apis::DataprocV1beta2::SoftwareConfig] # @return [Google::Apis::DataprocV1beta2::SoftwareConfig]
attr_accessor :software_config attr_accessor :software_config
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
# Corresponds to the JSON property `workerConfig` # Corresponds to the JSON property `workerConfig`
# @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig] # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
attr_accessor :worker_config attr_accessor :worker_config
@ -494,8 +494,8 @@ module Google
class DiagnoseClusterResults class DiagnoseClusterResults
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The Google Cloud Storage URI of the diagnostic output. The output # Output only. The Cloud Storage URI of the diagnostic output. The output report
# report is a plain text file with a summary of collected diagnostics. # is a plain text file with a summary of collected diagnostics.
# Corresponds to the JSON property `outputUri` # Corresponds to the JSON property `outputUri`
# @return [String] # @return [String]
attr_accessor :output_uri attr_accessor :output_uri
@ -566,8 +566,8 @@ module Google
end end
end end
# Common config settings for resources of Google Compute Engine cluster # Common config settings for resources of Compute Engine cluster instances,
# instances, applicable to all instances in the cluster. # applicable to all instances in the cluster.
class GceClusterConfig class GceClusterConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -582,19 +582,18 @@ module Google
attr_accessor :internal_ip_only attr_accessor :internal_ip_only
alias_method :internal_ip_only?, :internal_ip_only alias_method :internal_ip_only?, :internal_ip_only
# The Google Compute Engine metadata entries to add to all instances (see # The Compute Engine metadata entries to add to all instances (see Project and
# Project and instance metadata (https://cloud.google.com/compute/docs/storing- # instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-
# retrieving-metadata#project_and_instance_metadata)). # metadata#project_and_instance_metadata)).
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :metadata attr_accessor :metadata
# Optional. The Google Compute Engine network to be used for machine # Optional. The Compute Engine network to be used for machine communications.
# communications. Cannot be specified with subnetwork_uri. If neither # Cannot be specified with subnetwork_uri. If neither network_uri nor
# network_uri nor subnetwork_uri is specified, the "default" network of the # subnetwork_uri is specified, the "default" network of the project is used, if
# project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using # it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more
# Subnetworks for more information).A full URL, partial URI, or short name are # information).A full URL, partial URI, or short name are valid. Examples:
# valid. Examples:
# https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
# default # default
# projects/[project_id]/regions/global/default # projects/[project_id]/regions/global/default
@ -603,7 +602,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :network_uri attr_accessor :network_uri
# Optional. The service account of the instances. Defaults to the default Google # Optional. The service account of the instances. Defaults to the default
# Compute Engine service account. Custom service accounts need permissions # Compute Engine service account. Custom service accounts need permissions
# equivalent to the folloing IAM roles: # equivalent to the folloing IAM roles:
# roles/logging.logWriter # roles/logging.logWriter
@ -628,9 +627,9 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :service_account_scopes attr_accessor :service_account_scopes
# Optional. The Google Compute Engine subnetwork to be used for machine # Optional. The Compute Engine subnetwork to be used for machine communications.
# communications. Cannot be specified with network_uri.A full URL, partial URI, # Cannot be specified with network_uri.A full URL, partial URI, or short name
# or short name are valid. Examples: # are valid. Examples:
# https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/
# sub0 # sub0
# projects/[project_id]/regions/us-east1/sub0 # projects/[project_id]/regions/us-east1/sub0
@ -639,13 +638,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :subnetwork_uri attr_accessor :subnetwork_uri
# The Google Compute Engine tags to add to all instances (see Tagging instances). # The Compute Engine tags to add to all instances (see Tagging instances).
# Corresponds to the JSON property `tags` # Corresponds to the JSON property `tags`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :tags attr_accessor :tags
# Optional. The zone where the Google Compute Engine cluster will be located. On # Optional. The zone where the Compute Engine cluster will be located. On a
# a create request, it is required in the "global" region. If omitted in a non- # create request, it is required in the "global" region. If omitted in a non-
# global Cloud Dataproc region, the service will pick a zone in the # global Cloud Dataproc region, the service will pick a zone in the
# corresponding Compute Engine region. On a get request, zone will always be # corresponding Compute Engine region. On a get request, zone will always be
# present.A full URL, partial URI, or short name are valid. Examples: # present.A full URL, partial URI, or short name are valid. Examples:
@ -809,14 +808,14 @@ module Google
end end
end end
# Optional. The config settings for Google Compute Engine resources in an # Optional. The config settings for Compute Engine resources in an instance
# instance group, such as a master or worker group. # group, such as a master or worker group.
class InstanceGroupConfig class InstanceGroupConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The Google Compute Engine accelerator configuration for these # Optional. The Compute Engine accelerator configuration for these instances.
# instances.Beta Feature: This feature is still under development. It may be # Beta Feature: This feature is still under development. It may be changed
# changed before final release. # before final release.
# Corresponds to the JSON property `accelerators` # Corresponds to the JSON property `accelerators`
# @return [Array<Google::Apis::DataprocV1beta2::AcceleratorConfig>] # @return [Array<Google::Apis::DataprocV1beta2::AcceleratorConfig>]
attr_accessor :accelerators attr_accessor :accelerators
@ -826,8 +825,8 @@ module Google
# @return [Google::Apis::DataprocV1beta2::DiskConfig] # @return [Google::Apis::DataprocV1beta2::DiskConfig]
attr_accessor :disk_config attr_accessor :disk_config
# Output only. The Google Compute Engine image resource used for cluster # Output only. The Compute Engine image resource used for cluster instances.
# instances. Inferred from SoftwareConfig.image_version. # Inferred from SoftwareConfig.image_version.
# Corresponds to the JSON property `imageUri` # Corresponds to the JSON property `imageUri`
# @return [String] # @return [String]
attr_accessor :image_uri attr_accessor :image_uri
@ -845,8 +844,8 @@ module Google
attr_accessor :is_preemptible attr_accessor :is_preemptible
alias_method :is_preemptible?, :is_preemptible alias_method :is_preemptible?, :is_preemptible
# Optional. The Google Compute Engine machine type used for cluster instances.A # Optional. The Compute Engine machine type used for cluster instances.A full
# full URL, partial URI, or short name are valid. Examples: # URL, partial URI, or short name are valid. Examples:
# https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/ # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
# machineTypes/n1-standard-2 # machineTypes/n1-standard-2
# projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
@ -1386,7 +1385,7 @@ module Google
class NodeInitializationAction class NodeInitializationAction
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. Google Cloud Storage URI of executable file. # Required. Cloud Storage URI of executable file.
# Corresponds to the JSON property `executableFile` # Corresponds to the JSON property `executableFile`
# @return [String] # @return [String]
attr_accessor :executable_file attr_accessor :executable_file

View File

@ -43,7 +43,7 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://dataproc.googleapis.com/', '') super('https://content-dataproc.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
end end

View File

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

View File

@ -2467,7 +2467,7 @@ module Google
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelect] # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelect]
attr_accessor :list_select attr_accessor :list_select
# The response containing a custom payload. # Returns a response containing a custom payload.
# Corresponds to the JSON property `payload` # Corresponds to the JSON property `payload`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :payload attr_accessor :payload

View File

@ -18,14 +18,14 @@ require 'google/apis/proximitybeacon_v1beta1/representations.rb'
module Google module Google
module Apis module Apis
# Google Proximity Beacon API # Proximity Beacon API
# #
# Registers, manages, indexes, and searches beacons. # Registers, manages, indexes, and searches beacons.
# #
# @see https://developers.google.com/beacons/proximity/ # @see https://developers.google.com/beacons/proximity/
module ProximitybeaconV1beta1 module ProximitybeaconV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20171112' REVISION = '20180305'
# View and modify your beacons # View and modify your beacons
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry' AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module ProximitybeaconV1beta1 module ProximitybeaconV1beta1
# Google Proximity Beacon API # Proximity Beacon API
# #
# Registers, manages, indexes, and searches beacons. # Registers, manages, indexes, and searches beacons.
# #

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview # @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1 module ServiceconsumermanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180227' REVISION = '20180306'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3624,7 +3624,7 @@ module Google
attr_accessor :service attr_accessor :service
# Resources constituting the tenancy unit. # Resources constituting the tenancy unit.
# There can be at most 512 tenant resources in a tenancy units. # There can be at most 512 tenant resources in a tenancy unit.
# Corresponds to the JSON property `tenantResources` # Corresponds to the JSON property `tenantResources`
# @return [Array<Google::Apis::ServiceconsumermanagementV1::TenantResource>] # @return [Array<Google::Apis::ServiceconsumermanagementV1::TenantResource>]
attr_accessor :tenant_resources attr_accessor :tenant_resources

View File

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

View File

@ -1043,7 +1043,8 @@ module Google
# - `servicecontrol.googleapis.com/service_agent` describing the service # - `servicecontrol.googleapis.com/service_agent` describing the service
# used to handle the API request (e.g. ESP), # used to handle the API request (e.g. ESP),
# - `servicecontrol.googleapis.com/platform` describing the platform # - `servicecontrol.googleapis.com/platform` describing the platform
# where the API is served (e.g. GAE, GCE, GKE). # where the API is served, such as App Engine, Compute Engine, or
# Kubernetes Engine.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels

View File

@ -91,16 +91,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Checks an operation with Google Service Control to decide whether # Checks whether an operation on a service should be allowed to proceed
# the given operation should proceed. It should be called before the # based on the configuration of the service and related policies. It must be
# operation is executed. # called before the operation is executed.
# If feasible, the client should cache the check results and reuse them for # If feasible, the client should cache the check results and reuse them for
# 60 seconds. In case of server errors, the client can rely on the cached # 60 seconds. In case of any server errors, the client should rely on the
# results for longer time. # cached results for much longer time to avoid outage.
# WARNING: There is general 60s delay for the configuration and policy
# propagation, therefore callers MUST NOT depend on the `Check` method having
# the latest policy information.
# NOTE: the CheckRequest has the size limit of 64KB. # NOTE: the CheckRequest has the size limit of 64KB.
# This method requires the `servicemanagement.services.check` permission # This method requires the `servicemanagement.services.check` permission
# on the specified service. For more information, see # on the specified service. For more information, see
# [Google Cloud IAM](https://cloud.google.com/iam). # [Cloud IAM](https://cloud.google.com/iam).
# @param [String] service_name # @param [String] service_name
# The service name as specified in its service configuration. For example, # The service name as specified in its service configuration. For example,
# `"pubsub.googleapis.com"`. # `"pubsub.googleapis.com"`.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/ # @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1 module ServiceusageV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20180303' REVISION = '20180306'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -296,6 +296,7 @@ module Google
# The allowed filter strings are `state:ENABLED` and `state:DISABLED`. # The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Requested size of the next page of data. # Requested size of the next page of data.
# Requested page size cannot exceed 200.
# @param [String] page_token # @param [String] page_token
# Token identifying which result to start with, which is returned by a # Token identifying which result to start with, which is returned by a
# previous list call. # previous list call.

View File

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

View File

@ -1549,6 +1549,8 @@ module Google
class PartitionOptions class PartitionOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# **Note:** This hint is currently ignored by PartitionQuery and
# PartitionRead requests.
# The desired maximum number of partitions to return. For example, this may # The desired maximum number of partitions to return. For example, this may
# be set to the number of workers available. The default for this option # be set to the number of workers available. The default for this option
# is currently 10,000. The maximum value is currently 200,000. This is only # is currently 10,000. The maximum value is currently 200,000. This is only
@ -1558,6 +1560,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_partitions attr_accessor :max_partitions
# **Note:** This hint is currently ignored by PartitionQuery and
# PartitionRead requests.
# The desired data size for each partition generated. The default for this # The desired data size for each partition generated. The default for this
# option is currently 1 GiB. This is only a hint. The actual size of each # option is currently 1 GiB. This is only a hint. The actual size of each
# partition may be smaller or larger than this size request. # partition may be smaller or larger than this size request.

View File

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

View File

@ -429,6 +429,11 @@ module Google
# @return [Array<Google::Apis::TestingV1::RoboDirective>] # @return [Array<Google::Apis::TestingV1::RoboDirective>]
attr_accessor :robo_directives attr_accessor :robo_directives
# A reference to a file, used for user inputs.
# Corresponds to the JSON property `roboScript`
# @return [Google::Apis::TestingV1::FileReference]
attr_accessor :robo_script
# The intents used to launch the app for the crawl. # The intents used to launch the app for the crawl.
# If none are provided, then the main launcher activity is launched. # If none are provided, then the main launcher activity is launched.
# If some are provided, then only those provided are launched (the main # If some are provided, then only those provided are launched (the main
@ -449,6 +454,7 @@ module Google
@max_depth = args[:max_depth] if args.key?(:max_depth) @max_depth = args[:max_depth] if args.key?(:max_depth)
@max_steps = args[:max_steps] if args.key?(:max_steps) @max_steps = args[:max_steps] if args.key?(:max_steps)
@robo_directives = args[:robo_directives] if args.key?(:robo_directives) @robo_directives = args[:robo_directives] if args.key?(:robo_directives)
@robo_script = args[:robo_script] if args.key?(:robo_script)
@starting_intents = args[:starting_intents] if args.key?(:starting_intents) @starting_intents = args[:starting_intents] if args.key?(:starting_intents)
end end
end end
@ -599,6 +605,32 @@ module Google
end end
end end
# An Android package file to install.
class Apk
include Google::Apis::Core::Hashable
# A reference to a file, used for user inputs.
# Corresponds to the JSON property `location`
# @return [Google::Apis::TestingV1::FileReference]
attr_accessor :location
# The java package for the APK to be installed.
# Optional, value is determined by examining the application's manifest.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@location = args[:location] if args.key?(:location)
@package_name = args[:package_name] if args.key?(:package_name)
end
end
# Android application details based on application manifest and apk archive # Android application details based on application manifest and apk archive
# contents # contents
class ApkDetail class ApkDetail
@ -788,6 +820,11 @@ module Google
# @return [Google::Apis::TestingV1::ObbFile] # @return [Google::Apis::TestingV1::ObbFile]
attr_accessor :obb_file attr_accessor :obb_file
# A file or directory to install on the device before the test starts
# Corresponds to the JSON property `regularFile`
# @return [Google::Apis::TestingV1::RegularFile]
attr_accessor :regular_file
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -795,6 +832,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@obb_file = args[:obb_file] if args.key?(:obb_file) @obb_file = args[:obb_file] if args.key?(:obb_file)
@regular_file = args[:regular_file] if args.key?(:regular_file)
end end
end end
@ -1189,6 +1227,46 @@ module Google
end end
end end
# A file or directory to install on the device before the test starts
class RegularFile
include Google::Apis::Core::Hashable
# A reference to a file, used for user inputs.
# Corresponds to the JSON property `content`
# @return [Google::Apis::TestingV1::FileReference]
attr_accessor :content
# Where to put the content on the device. Must be an absolute, whitelisted
# path. If the file exists, it will be replaced.
# The following device-side directories and any of their subdirectories are
# whitelisted:
# <p>$`EXTERNAL_STORAGE`, or /sdcard</p>
# <p>$`ANDROID_DATA`/local/tmp, or /data/local/tmp</p>
# <p>Specifying a path outside of these directory trees is invalid.
# <p> The paths /sdcard and /data will be made available and treated as
# implicit path substitutions. E.g. if /sdcard on a particular device does
# not map to external storage, the system will replace it with the external
# storage path prefix for that device and copy the file there.
# <p> It is strongly advised to use the <a href=
# "http://developer.android.com/reference/android/os/Environment.html">
# Environment API</a> in app and test code to access files on the device in a
# portable way.
# Required
# Corresponds to the JSON property `devicePath`
# @return [String]
attr_accessor :device_path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content = args[:content] if args.key?(:content)
@device_path = args[:device_path] if args.key?(:device_path)
end
end
# Locations where the results of running the test are stored. # Locations where the results of running the test are stored.
class ResultStorage class ResultStorage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1541,6 +1619,13 @@ module Google
# @return [Google::Apis::TestingV1::Account] # @return [Google::Apis::TestingV1::Account]
attr_accessor :account attr_accessor :account
# APKs to install in addition to those being directly tested.
# Currently capped at 100.
# Optional
# Corresponds to the JSON property `additionalApks`
# @return [Array<Google::Apis::TestingV1::Apk>]
attr_accessor :additional_apks
# List of directories on the device to upload to GCS at the end of the test; # List of directories on the device to upload to GCS at the end of the test;
# they must be absolute paths under /sdcard or /data/local/tmp. # they must be absolute paths under /sdcard or /data/local/tmp.
# Path names are restricted to characters a-z A-Z 0-9 _ - . + and / # Path names are restricted to characters a-z A-Z 0-9 _ - . + and /
@ -1578,6 +1663,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@account = args[:account] if args.key?(:account) @account = args[:account] if args.key?(:account)
@additional_apks = args[:additional_apks] if args.key?(:additional_apks)
@directories_to_pull = args[:directories_to_pull] if args.key?(:directories_to_pull) @directories_to_pull = args[:directories_to_pull] if args.key?(:directories_to_pull)
@environment_variables = args[:environment_variables] if args.key?(:environment_variables) @environment_variables = args[:environment_variables] if args.key?(:environment_variables)
@files_to_push = args[:files_to_push] if args.key?(:files_to_push) @files_to_push = args[:files_to_push] if args.key?(:files_to_push)

View File

@ -88,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Apk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApkDetail class ApkDetail
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -220,6 +226,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RegularFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResultStorage class ResultStorage
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -396,6 +408,8 @@ module Google
property :max_steps, as: 'maxSteps' property :max_steps, as: 'maxSteps'
collection :robo_directives, as: 'roboDirectives', class: Google::Apis::TestingV1::RoboDirective, decorator: Google::Apis::TestingV1::RoboDirective::Representation collection :robo_directives, as: 'roboDirectives', class: Google::Apis::TestingV1::RoboDirective, decorator: Google::Apis::TestingV1::RoboDirective::Representation
property :robo_script, as: 'roboScript', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
collection :starting_intents, as: 'startingIntents', class: Google::Apis::TestingV1::RoboStartingIntent, decorator: Google::Apis::TestingV1::RoboStartingIntent::Representation collection :starting_intents, as: 'startingIntents', class: Google::Apis::TestingV1::RoboStartingIntent, decorator: Google::Apis::TestingV1::RoboStartingIntent::Representation
end end
@ -437,6 +451,15 @@ module Google
end end
end end
class Apk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location, as: 'location', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
property :package_name, as: 'packageName'
end
end
class ApkDetail class ApkDetail
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -495,6 +518,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :obb_file, as: 'obbFile', class: Google::Apis::TestingV1::ObbFile, decorator: Google::Apis::TestingV1::ObbFile::Representation property :obb_file, as: 'obbFile', class: Google::Apis::TestingV1::ObbFile, decorator: Google::Apis::TestingV1::ObbFile::Representation
property :regular_file, as: 'regularFile', class: Google::Apis::TestingV1::RegularFile, decorator: Google::Apis::TestingV1::RegularFile::Representation
end end
end end
@ -622,6 +647,15 @@ module Google
end end
end end
class RegularFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, as: 'content', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
property :device_path, as: 'devicePath'
end
end
class ResultStorage class ResultStorage
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -725,6 +759,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :account, as: 'account', class: Google::Apis::TestingV1::Account, decorator: Google::Apis::TestingV1::Account::Representation property :account, as: 'account', class: Google::Apis::TestingV1::Account, decorator: Google::Apis::TestingV1::Account::Representation
collection :additional_apks, as: 'additionalApks', class: Google::Apis::TestingV1::Apk, decorator: Google::Apis::TestingV1::Apk::Representation
collection :directories_to_pull, as: 'directoriesToPull' collection :directories_to_pull, as: 'directoriesToPull'
collection :environment_variables, as: 'environmentVariables', class: Google::Apis::TestingV1::EnvironmentVariable, decorator: Google::Apis::TestingV1::EnvironmentVariable::Representation collection :environment_variables, as: 'environmentVariables', class: Google::Apis::TestingV1::EnvironmentVariable, decorator: Google::Apis::TestingV1::EnvironmentVariable::Representation