diff --git a/api_names.yaml b/api_names.yaml index 34613e685..8e25931fb 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -379,6 +379,19 @@ "/compute:v1/compute.targetVpnGateways.insert": insert_target_vpn_gateway "/compute:v1/compute.targetVpnGateways.list": list_target_vpn_gateways "/compute:v1/compute.vpnTunnels.aggregatedList": list_aggregated_vpn_tunnel +"/compute:v1/compute.instanceGroupManagers.abandonInstances": abandon_instance_group_manager_instances +"/compute:v1/compute.instanceGroupManagers.aggregatedList": list_aggregated_instance_group_managers +"/compute:v1/compute.instanceGroupManagers.deleteInstances": delete_instance_group_manager_instances +"/compute:v1/compute.instanceGroupManagers.listManagedInstances": list_instance_group_manager_managed_instances +"/compute:v1/compute.instanceGroupManagers.recreateInstances": recreate_instance_group_manager_instances +"/compute:v1/compute.instanceGroupManagers.resize": resize_instance_group_manager +"/compute:v1/compute.instanceGroupManagers.setInstanceTemplate": set_instance_group_manager_instance_template +"/compute:v1/compute.instanceGroupManagers.setTargetPools": set_instance_group_manager_target_pools +"/compute:v1/compute.instanceGroups.addInstances": add_instance_group_instances +"/compute:v1/compute.instanceGroups.aggregatedList": list_aggregated_instance_groups +"/compute:v1/compute.instanceGroups.listInstances": list_instance_group_instances +"/compute:v1/compute.instanceGroups.removeInstances": remove_instance_group_instances +"/compute:v1/compute.instanceGroups.setNamedPorts": set_instance_group_named_ports "/container:v1beta1/container.projects.clusters.list": list_clusters "/container:v1beta1/container.projects.operations.list": list_operations "/container:v1beta1/container.projects.zones.clusters.create": create_cluster @@ -388,6 +401,15 @@ "/container:v1beta1/container.projects.zones.operations.get": get_zone_operation "/container:v1beta1/container.projects.zones.operations.list": list_zone_operations "/container:v1beta1/container.projects.zones.tokens.get": get_zone_token +"/container:v1/container.projects.clusters.list": list_clusters +"/container:v1/container.projects.operations.list": list_operations +"/container:v1/container.projects.zones.clusters.create": create_cluster +"/container:v1/container.projects.zones.clusters.delete": delete_zone_cluster +"/container:v1/container.projects.zones.clusters.get": get_zone_cluster +"/container:v1/container.projects.zones.clusters.list": list_zone_clusters +"/container:v1/container.projects.zones.operations.get": get_zone_operation +"/container:v1/container.projects.zones.operations.list": list_zone_operations +"/container:v1/container.projects.zones.tokens.get": get_zone_token "/content:v2/AccountsAuthInfoResponse": accounts_auth_info_response "/content:v2/AccountsCustomBatchRequest": accounts_custom_batch_request "/content:v2/AccountsCustomBatchRequest": batch_accounts_request @@ -644,6 +666,26 @@ "/genomics:v1beta2/genomics.references.bases.list/start": start_position "/genomics:v1beta2/genomics.referencesets.get": get_reference_set "/genomics:v1beta2/genomics.streamingReadstore.streamreads": stream_reads +"/genomics:v1/genomics.callsets.create": create_call_set +"/genomics:v1/genomics.callsets.delete": delete_call_set +"/genomics:v1/genomics.callsets.get": get_call_set +"/genomics:v1/genomics.callsets.patch": patch_call_set +"/genomics:v1/genomics.callsets.search": search_call_sets +"/genomics:v1/genomics.callsets.update": update_call_set +"/genomics:v1/genomics.readgroupsets.align": align_read_group_sets +"/genomics:v1/genomics.readgroupsets.call": call_read_group_sets +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list": list_coverage_buckets +"/genomics:v1/genomics.readgroupsets.delete": delete_read_group_set +"/genomics:v1/genomics.readgroupsets.export": export_read_group_sets +"/genomics:v1/genomics.readgroupsets.get": get_read_group_set +"/genomics:v1/genomics.readgroupsets.import": import_read_group_sets +"/genomics:v1/genomics.readgroupsets.patch": patch_read_group_set +"/genomics:v1/genomics.readgroupsets.search": search_read_group_sets +"/genomics:v1/genomics.readgroupsets.update": update_read_group_set +"/genomics:v1/genomics.references.bases.list/end": end_position +"/genomics:v1/genomics.references.bases.list/start": start_position +"/genomics:v1/genomics.referencesets.get": get_reference_set +"/genomics:v1/genomics.streamingReadstore.streamreads": stream_reads "/gmail:v1/gmail.users.getProfile": get_user_profile "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request diff --git a/api_names_out.yaml b/api_names_out.yaml index 7aa20ec8b..3872069da 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -379,6 +379,19 @@ "/compute:v1/compute.targetVpnGateways.insert": insert_target_vpn_gateway "/compute:v1/compute.targetVpnGateways.list": list_target_vpn_gateways "/compute:v1/compute.vpnTunnels.aggregatedList": list_aggregated_vpn_tunnel +"/compute:v1/compute.instanceGroupManagers.abandonInstances": abandon_instance_group_manager_instances +"/compute:v1/compute.instanceGroupManagers.aggregatedList": list_aggregated_instance_group_managers +"/compute:v1/compute.instanceGroupManagers.deleteInstances": delete_instance_group_manager_instances +"/compute:v1/compute.instanceGroupManagers.listManagedInstances": list_instance_group_manager_managed_instances +"/compute:v1/compute.instanceGroupManagers.recreateInstances": recreate_instance_group_manager_instances +"/compute:v1/compute.instanceGroupManagers.resize": resize_instance_group_manager +"/compute:v1/compute.instanceGroupManagers.setInstanceTemplate": set_instance_group_manager_instance_template +"/compute:v1/compute.instanceGroupManagers.setTargetPools": set_instance_group_manager_target_pools +"/compute:v1/compute.instanceGroups.addInstances": add_instance_group_instances +"/compute:v1/compute.instanceGroups.aggregatedList": list_aggregated_instance_groups +"/compute:v1/compute.instanceGroups.listInstances": list_instance_group_instances +"/compute:v1/compute.instanceGroups.removeInstances": remove_instance_group_instances +"/compute:v1/compute.instanceGroups.setNamedPorts": set_instance_group_named_ports "/container:v1beta1/container.projects.clusters.list": list_clusters "/container:v1beta1/container.projects.operations.list": list_operations "/container:v1beta1/container.projects.zones.clusters.create": create_cluster @@ -388,6 +401,15 @@ "/container:v1beta1/container.projects.zones.operations.get": get_zone_operation "/container:v1beta1/container.projects.zones.operations.list": list_zone_operations "/container:v1beta1/container.projects.zones.tokens.get": get_zone_token +"/container:v1/container.projects.clusters.list": list_clusters +"/container:v1/container.projects.operations.list": list_operations +"/container:v1/container.projects.zones.clusters.create": create_cluster +"/container:v1/container.projects.zones.clusters.delete": delete_zone_cluster +"/container:v1/container.projects.zones.clusters.get": get_zone_cluster +"/container:v1/container.projects.zones.clusters.list": list_zone_clusters +"/container:v1/container.projects.zones.operations.get": get_zone_operation +"/container:v1/container.projects.zones.operations.list": list_zone_operations +"/container:v1/container.projects.zones.tokens.get": get_zone_token "/content:v2/AccountsAuthInfoResponse": accounts_auth_info_response "/content:v2/AccountsCustomBatchRequest": batch_accounts_request "/content:v2/AccountsCustomBatchRequestEntry": accounts_batch_request_entry @@ -626,6 +648,26 @@ "/genomics:v1beta2/genomics.references.bases.list/start": start_position "/genomics:v1beta2/genomics.referencesets.get": get_reference_set "/genomics:v1beta2/genomics.streamingReadstore.streamreads": stream_reads +"/genomics:v1/genomics.callsets.create": create_call_set +"/genomics:v1/genomics.callsets.delete": delete_call_set +"/genomics:v1/genomics.callsets.get": get_call_set +"/genomics:v1/genomics.callsets.patch": patch_call_set +"/genomics:v1/genomics.callsets.search": search_call_sets +"/genomics:v1/genomics.callsets.update": update_call_set +"/genomics:v1/genomics.readgroupsets.align": align_read_group_sets +"/genomics:v1/genomics.readgroupsets.call": call_read_group_sets +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list": list_coverage_buckets +"/genomics:v1/genomics.readgroupsets.delete": delete_read_group_set +"/genomics:v1/genomics.readgroupsets.export": export_read_group_sets +"/genomics:v1/genomics.readgroupsets.get": get_read_group_set +"/genomics:v1/genomics.readgroupsets.import": import_read_group_sets +"/genomics:v1/genomics.readgroupsets.patch": patch_read_group_set +"/genomics:v1/genomics.readgroupsets.search": search_read_group_sets +"/genomics:v1/genomics.readgroupsets.update": update_read_group_set +"/genomics:v1/genomics.references.bases.list/end": end_position +"/genomics:v1/genomics.references.bases.list/start": start_position +"/genomics:v1/genomics.referencesets.get": get_reference_set +"/genomics:v1/genomics.streamingReadstore.streamreads": stream_reads "/gmail:v1/gmail.users.getProfile": get_user_profile "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request @@ -4430,6 +4472,8 @@ "/bigquery:v2/JobConfigurationQuery/tableDefinitions": table_definitions "/bigquery:v2/JobConfigurationQuery/tableDefinitions/table_definition": table_definition "/bigquery:v2/JobConfigurationQuery/useQueryCache": use_query_cache +"/bigquery:v2/JobConfigurationQuery/userDefinedFunctionResources": user_defined_function_resources +"/bigquery:v2/JobConfigurationQuery/userDefinedFunctionResources/user_defined_function_resource": user_defined_function_resource "/bigquery:v2/JobConfigurationQuery/writeDisposition": write_disposition "/bigquery:v2/JobConfigurationTableCopy": job_configuration_table_copy "/bigquery:v2/JobConfigurationTableCopy/createDisposition": create_disposition @@ -4585,6 +4629,9 @@ "/bigquery:v2/TableSchema": table_schema "/bigquery:v2/TableSchema/fields": fields "/bigquery:v2/TableSchema/fields/field": field +"/bigquery:v2/UserDefinedFunctionResource": user_defined_function_resource +"/bigquery:v2/UserDefinedFunctionResource/inlineCode": inline_code +"/bigquery:v2/UserDefinedFunctionResource/resourceUri": resource_uri "/bigquery:v2/ViewDefinition": view_definition "/bigquery:v2/ViewDefinition/query": query "/blogger:v3/fields": fields @@ -5883,6 +5930,7 @@ "/calendar:v3/Event/updated": updated "/calendar:v3/Event/visibility": visibility "/calendar:v3/EventAttachment": event_attachment +"/calendar:v3/EventAttachment/fileId": file_id "/calendar:v3/EventAttachment/fileUrl": file_url "/calendar:v3/EventAttachment/iconLink": icon_link "/calendar:v3/EventAttachment/mimeType": mime_type @@ -6026,7 +6074,15 @@ "/civicinfo:v2/Contest/numberVotingFor": number_voting_for "/civicinfo:v2/Contest/office": office "/civicinfo:v2/Contest/primaryParty": primary_party +"/civicinfo:v2/Contest/referendumBallotResponses": referendum_ballot_responses +"/civicinfo:v2/Contest/referendumBallotResponses/referendum_ballot_response": referendum_ballot_response +"/civicinfo:v2/Contest/referendumBrief": referendum_brief +"/civicinfo:v2/Contest/referendumConStatement": referendum_con_statement +"/civicinfo:v2/Contest/referendumEffectOfAbstain": referendum_effect_of_abstain +"/civicinfo:v2/Contest/referendumPassageThreshold": referendum_passage_threshold +"/civicinfo:v2/Contest/referendumProStatement": referendum_pro_statement "/civicinfo:v2/Contest/referendumSubtitle": referendum_subtitle +"/civicinfo:v2/Contest/referendumText": referendum_text "/civicinfo:v2/Contest/referendumTitle": referendum_title "/civicinfo:v2/Contest/referendumUrl": referendum_url "/civicinfo:v2/Contest/roles": roles @@ -6138,6 +6194,7 @@ "/civicinfo:v2/VoterInfoResponse/earlyVoteSites/early_vote_site": early_vote_site "/civicinfo:v2/VoterInfoResponse/election": election "/civicinfo:v2/VoterInfoResponse/kind": kind +"/civicinfo:v2/VoterInfoResponse/mailOnly": mail_only "/civicinfo:v2/VoterInfoResponse/normalizedInput": normalized_input "/civicinfo:v2/VoterInfoResponse/otherElections": other_elections "/civicinfo:v2/VoterInfoResponse/otherElections/other_election": other_election @@ -6294,6 +6351,36 @@ "/compute:v1/compute.addresses.list/pageToken": page_token "/compute:v1/compute.addresses.list/project": project "/compute:v1/compute.addresses.list/region": region +"/compute:v1/compute.autoscalers.aggregatedList": aggregated_list_autoscaler +"/compute:v1/compute.autoscalers.aggregatedList/filter": filter +"/compute:v1/compute.autoscalers.aggregatedList/maxResults": max_results +"/compute:v1/compute.autoscalers.aggregatedList/pageToken": page_token +"/compute:v1/compute.autoscalers.aggregatedList/project": project +"/compute:v1/compute.autoscalers.delete": delete_autoscaler +"/compute:v1/compute.autoscalers.delete/autoscaler": autoscaler +"/compute:v1/compute.autoscalers.delete/project": project +"/compute:v1/compute.autoscalers.delete/zone": zone +"/compute:v1/compute.autoscalers.get": get_autoscaler +"/compute:v1/compute.autoscalers.get/autoscaler": autoscaler +"/compute:v1/compute.autoscalers.get/project": project +"/compute:v1/compute.autoscalers.get/zone": zone +"/compute:v1/compute.autoscalers.insert": insert_autoscaler +"/compute:v1/compute.autoscalers.insert/project": project +"/compute:v1/compute.autoscalers.insert/zone": zone +"/compute:v1/compute.autoscalers.list": list_autoscalers +"/compute:v1/compute.autoscalers.list/filter": filter +"/compute:v1/compute.autoscalers.list/maxResults": max_results +"/compute:v1/compute.autoscalers.list/pageToken": page_token +"/compute:v1/compute.autoscalers.list/project": project +"/compute:v1/compute.autoscalers.list/zone": zone +"/compute:v1/compute.autoscalers.patch": patch_autoscaler +"/compute:v1/compute.autoscalers.patch/autoscaler": autoscaler +"/compute:v1/compute.autoscalers.patch/project": project +"/compute:v1/compute.autoscalers.patch/zone": zone +"/compute:v1/compute.autoscalers.update": update_autoscaler +"/compute:v1/compute.autoscalers.update/autoscaler": autoscaler +"/compute:v1/compute.autoscalers.update/project": project +"/compute:v1/compute.autoscalers.update/zone": zone "/compute:v1/compute.backendServices.delete": delete_backend_service "/compute:v1/compute.backendServices.delete/backendService": backend_service "/compute:v1/compute.backendServices.delete/project": project @@ -6475,6 +6562,85 @@ "/compute:v1/compute.images.list/maxResults": max_results "/compute:v1/compute.images.list/pageToken": page_token "/compute:v1/compute.images.list/project": project +"/compute:v1/compute.instanceGroupManagers.abandonInstances/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.abandonInstances/project": project +"/compute:v1/compute.instanceGroupManagers.abandonInstances/zone": zone +"/compute:v1/compute.instanceGroupManagers.aggregatedList/filter": filter +"/compute:v1/compute.instanceGroupManagers.aggregatedList/maxResults": max_results +"/compute:v1/compute.instanceGroupManagers.aggregatedList/pageToken": page_token +"/compute:v1/compute.instanceGroupManagers.aggregatedList/project": project +"/compute:v1/compute.instanceGroupManagers.delete": delete_instance_group_manager +"/compute:v1/compute.instanceGroupManagers.delete/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.delete/project": project +"/compute:v1/compute.instanceGroupManagers.delete/zone": zone +"/compute:v1/compute.instanceGroupManagers.deleteInstances/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.deleteInstances/project": project +"/compute:v1/compute.instanceGroupManagers.deleteInstances/zone": zone +"/compute:v1/compute.instanceGroupManagers.get": get_instance_group_manager +"/compute:v1/compute.instanceGroupManagers.get/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.get/project": project +"/compute:v1/compute.instanceGroupManagers.get/zone": zone +"/compute:v1/compute.instanceGroupManagers.insert": insert_instance_group_manager +"/compute:v1/compute.instanceGroupManagers.insert/project": project +"/compute:v1/compute.instanceGroupManagers.insert/zone": zone +"/compute:v1/compute.instanceGroupManagers.list": list_instance_group_managers +"/compute:v1/compute.instanceGroupManagers.list/filter": filter +"/compute:v1/compute.instanceGroupManagers.list/maxResults": max_results +"/compute:v1/compute.instanceGroupManagers.list/pageToken": page_token +"/compute:v1/compute.instanceGroupManagers.list/project": project +"/compute:v1/compute.instanceGroupManagers.list/zone": zone +"/compute:v1/compute.instanceGroupManagers.listManagedInstances/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.listManagedInstances/project": project +"/compute:v1/compute.instanceGroupManagers.listManagedInstances/zone": zone +"/compute:v1/compute.instanceGroupManagers.recreateInstances/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.recreateInstances/project": project +"/compute:v1/compute.instanceGroupManagers.recreateInstances/zone": zone +"/compute:v1/compute.instanceGroupManagers.resize/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.resize/project": project +"/compute:v1/compute.instanceGroupManagers.resize/size": size +"/compute:v1/compute.instanceGroupManagers.resize/zone": zone +"/compute:v1/compute.instanceGroupManagers.setInstanceTemplate/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.setInstanceTemplate/project": project +"/compute:v1/compute.instanceGroupManagers.setInstanceTemplate/zone": zone +"/compute:v1/compute.instanceGroupManagers.setTargetPools/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.setTargetPools/project": project +"/compute:v1/compute.instanceGroupManagers.setTargetPools/zone": zone +"/compute:v1/compute.instanceGroups.addInstances/instanceGroup": instance_group +"/compute:v1/compute.instanceGroups.addInstances/project": project +"/compute:v1/compute.instanceGroups.addInstances/zone": zone +"/compute:v1/compute.instanceGroups.aggregatedList/filter": filter +"/compute:v1/compute.instanceGroups.aggregatedList/maxResults": max_results +"/compute:v1/compute.instanceGroups.aggregatedList/pageToken": page_token +"/compute:v1/compute.instanceGroups.aggregatedList/project": project +"/compute:v1/compute.instanceGroups.delete": delete_instance_group +"/compute:v1/compute.instanceGroups.delete/instanceGroup": instance_group +"/compute:v1/compute.instanceGroups.delete/project": project +"/compute:v1/compute.instanceGroups.delete/zone": zone +"/compute:v1/compute.instanceGroups.get": get_instance_group +"/compute:v1/compute.instanceGroups.get/instanceGroup": instance_group +"/compute:v1/compute.instanceGroups.get/project": project +"/compute:v1/compute.instanceGroups.get/zone": zone +"/compute:v1/compute.instanceGroups.insert": insert_instance_group +"/compute:v1/compute.instanceGroups.insert/project": project +"/compute:v1/compute.instanceGroups.insert/zone": zone +"/compute:v1/compute.instanceGroups.list": list_instance_groups +"/compute:v1/compute.instanceGroups.list/filter": filter +"/compute:v1/compute.instanceGroups.list/maxResults": max_results +"/compute:v1/compute.instanceGroups.list/pageToken": page_token +"/compute:v1/compute.instanceGroups.list/project": project +"/compute:v1/compute.instanceGroups.list/zone": zone +"/compute:v1/compute.instanceGroups.listInstances/filter": filter +"/compute:v1/compute.instanceGroups.listInstances/instanceGroup": instance_group +"/compute:v1/compute.instanceGroups.listInstances/maxResults": max_results +"/compute:v1/compute.instanceGroups.listInstances/pageToken": page_token +"/compute:v1/compute.instanceGroups.listInstances/project": project +"/compute:v1/compute.instanceGroups.listInstances/zone": zone +"/compute:v1/compute.instanceGroups.removeInstances/instanceGroup": instance_group +"/compute:v1/compute.instanceGroups.removeInstances/project": project +"/compute:v1/compute.instanceGroups.removeInstances/zone": zone +"/compute:v1/compute.instanceGroups.setNamedPorts/instanceGroup": instance_group +"/compute:v1/compute.instanceGroups.setNamedPorts/project": project +"/compute:v1/compute.instanceGroups.setNamedPorts/zone": zone "/compute:v1/compute.instanceTemplates.delete": delete_instance_template "/compute:v1/compute.instanceTemplates.delete/instanceTemplate": instance_template "/compute:v1/compute.instanceTemplates.delete/project": project @@ -6854,6 +7020,56 @@ "/compute:v1/AttachedDiskInitializeParams/diskSizeGb": disk_size_gb "/compute:v1/AttachedDiskInitializeParams/diskType": disk_type "/compute:v1/AttachedDiskInitializeParams/sourceImage": source_image +"/compute:v1/Autoscaler": autoscaler +"/compute:v1/Autoscaler/autoscalingPolicy": autoscaling_policy +"/compute:v1/Autoscaler/creationTimestamp": creation_timestamp +"/compute:v1/Autoscaler/description": description +"/compute:v1/Autoscaler/id": id +"/compute:v1/Autoscaler/kind": kind +"/compute:v1/Autoscaler/name": name +"/compute:v1/Autoscaler/selfLink": self_link +"/compute:v1/Autoscaler/target": target +"/compute:v1/Autoscaler/zone": zone +"/compute:v1/AutoscalerAggregatedList": autoscaler_aggregated_list +"/compute:v1/AutoscalerAggregatedList/id": id +"/compute:v1/AutoscalerAggregatedList/items": items +"/compute:v1/AutoscalerAggregatedList/items/item": item +"/compute:v1/AutoscalerAggregatedList/kind": kind +"/compute:v1/AutoscalerAggregatedList/nextPageToken": next_page_token +"/compute:v1/AutoscalerAggregatedList/selfLink": self_link +"/compute:v1/AutoscalerList": autoscaler_list +"/compute:v1/AutoscalerList/id": id +"/compute:v1/AutoscalerList/items": items +"/compute:v1/AutoscalerList/items/item": item +"/compute:v1/AutoscalerList/kind": kind +"/compute:v1/AutoscalerList/nextPageToken": next_page_token +"/compute:v1/AutoscalerList/selfLink": self_link +"/compute:v1/AutoscalersScopedList": autoscalers_scoped_list +"/compute:v1/AutoscalersScopedList/autoscalers": autoscalers +"/compute:v1/AutoscalersScopedList/autoscalers/autoscaler": autoscaler +"/compute:v1/AutoscalersScopedList/warning": warning +"/compute:v1/AutoscalersScopedList/warning/code": code +"/compute:v1/AutoscalersScopedList/warning/data": data +"/compute:v1/AutoscalersScopedList/warning/data/datum": datum +"/compute:v1/AutoscalersScopedList/warning/data/datum/key": key +"/compute:v1/AutoscalersScopedList/warning/data/datum/value": value +"/compute:v1/AutoscalersScopedList/warning/message": message +"/compute:v1/AutoscalingPolicy": autoscaling_policy +"/compute:v1/AutoscalingPolicy/coolDownPeriodSec": cool_down_period_sec +"/compute:v1/AutoscalingPolicy/cpuUtilization": cpu_utilization +"/compute:v1/AutoscalingPolicy/customMetricUtilizations": custom_metric_utilizations +"/compute:v1/AutoscalingPolicy/customMetricUtilizations/custom_metric_utilization": custom_metric_utilization +"/compute:v1/AutoscalingPolicy/loadBalancingUtilization": load_balancing_utilization +"/compute:v1/AutoscalingPolicy/maxNumReplicas": max_num_replicas +"/compute:v1/AutoscalingPolicy/minNumReplicas": min_num_replicas +"/compute:v1/AutoscalingPolicyCpuUtilization": autoscaling_policy_cpu_utilization +"/compute:v1/AutoscalingPolicyCpuUtilization/utilizationTarget": utilization_target +"/compute:v1/AutoscalingPolicyCustomMetricUtilization": autoscaling_policy_custom_metric_utilization +"/compute:v1/AutoscalingPolicyCustomMetricUtilization/metric": metric +"/compute:v1/AutoscalingPolicyCustomMetricUtilization/utilizationTarget": utilization_target +"/compute:v1/AutoscalingPolicyCustomMetricUtilization/utilizationTargetType": utilization_target_type +"/compute:v1/AutoscalingPolicyLoadBalancingUtilization": autoscaling_policy_load_balancing_utilization +"/compute:v1/AutoscalingPolicyLoadBalancingUtilization/utilizationTarget": utilization_target "/compute:v1/Backend": backend "/compute:v1/Backend/balancingMode": balancing_mode "/compute:v1/Backend/capacityScaler": capacity_scaler @@ -7129,6 +7345,134 @@ "/compute:v1/InstanceAggregatedList/kind": kind "/compute:v1/InstanceAggregatedList/nextPageToken": next_page_token "/compute:v1/InstanceAggregatedList/selfLink": self_link +"/compute:v1/InstanceGroup": instance_group +"/compute:v1/InstanceGroup/creationTimestamp": creation_timestamp +"/compute:v1/InstanceGroup/description": description +"/compute:v1/InstanceGroup/fingerprint": fingerprint +"/compute:v1/InstanceGroup/id": id +"/compute:v1/InstanceGroup/kind": kind +"/compute:v1/InstanceGroup/name": name +"/compute:v1/InstanceGroup/namedPorts": named_ports +"/compute:v1/InstanceGroup/namedPorts/named_port": named_port +"/compute:v1/InstanceGroup/network": network +"/compute:v1/InstanceGroup/selfLink": self_link +"/compute:v1/InstanceGroup/size": size +"/compute:v1/InstanceGroup/zone": zone +"/compute:v1/InstanceGroupAggregatedList": instance_group_aggregated_list +"/compute:v1/InstanceGroupAggregatedList/id": id +"/compute:v1/InstanceGroupAggregatedList/items": items +"/compute:v1/InstanceGroupAggregatedList/items/item": item +"/compute:v1/InstanceGroupAggregatedList/kind": kind +"/compute:v1/InstanceGroupAggregatedList/nextPageToken": next_page_token +"/compute:v1/InstanceGroupAggregatedList/selfLink": self_link +"/compute:v1/InstanceGroupList": instance_group_list +"/compute:v1/InstanceGroupList/id": id +"/compute:v1/InstanceGroupList/items": items +"/compute:v1/InstanceGroupList/items/item": item +"/compute:v1/InstanceGroupList/kind": kind +"/compute:v1/InstanceGroupList/nextPageToken": next_page_token +"/compute:v1/InstanceGroupList/selfLink": self_link +"/compute:v1/InstanceGroupManager": instance_group_manager +"/compute:v1/InstanceGroupManager/autoHealingPolicies": auto_healing_policies +"/compute:v1/InstanceGroupManager/autoHealingPolicies/auto_healing_policy": auto_healing_policy +"/compute:v1/InstanceGroupManager/baseInstanceName": base_instance_name +"/compute:v1/InstanceGroupManager/creationTimestamp": creation_timestamp +"/compute:v1/InstanceGroupManager/currentActions": current_actions +"/compute:v1/InstanceGroupManager/description": description +"/compute:v1/InstanceGroupManager/fingerprint": fingerprint +"/compute:v1/InstanceGroupManager/id": id +"/compute:v1/InstanceGroupManager/instanceGroup": instance_group +"/compute:v1/InstanceGroupManager/instanceTemplate": instance_template +"/compute:v1/InstanceGroupManager/kind": kind +"/compute:v1/InstanceGroupManager/name": name +"/compute:v1/InstanceGroupManager/selfLink": self_link +"/compute:v1/InstanceGroupManager/targetPools": target_pools +"/compute:v1/InstanceGroupManager/targetPools/target_pool": target_pool +"/compute:v1/InstanceGroupManager/targetSize": target_size +"/compute:v1/InstanceGroupManager/zone": zone +"/compute:v1/InstanceGroupManagerActionsSummary": instance_group_manager_actions_summary +"/compute:v1/InstanceGroupManagerActionsSummary/abandoning": abandoning +"/compute:v1/InstanceGroupManagerActionsSummary/creating": creating +"/compute:v1/InstanceGroupManagerActionsSummary/deleting": deleting +"/compute:v1/InstanceGroupManagerActionsSummary/none": none +"/compute:v1/InstanceGroupManagerActionsSummary/recreating": recreating +"/compute:v1/InstanceGroupManagerActionsSummary/refreshing": refreshing +"/compute:v1/InstanceGroupManagerActionsSummary/restarting": restarting +"/compute:v1/InstanceGroupManagerAggregatedList": instance_group_manager_aggregated_list +"/compute:v1/InstanceGroupManagerAggregatedList/id": id +"/compute:v1/InstanceGroupManagerAggregatedList/items": items +"/compute:v1/InstanceGroupManagerAggregatedList/items/item": item +"/compute:v1/InstanceGroupManagerAggregatedList/kind": kind +"/compute:v1/InstanceGroupManagerAggregatedList/nextPageToken": next_page_token +"/compute:v1/InstanceGroupManagerAggregatedList/selfLink": self_link +"/compute:v1/InstanceGroupManagerAutoHealingPolicy": instance_group_manager_auto_healing_policy +"/compute:v1/InstanceGroupManagerAutoHealingPolicy/actionType": action_type +"/compute:v1/InstanceGroupManagerAutoHealingPolicy/healthCheck": health_check +"/compute:v1/InstanceGroupManagerList": instance_group_manager_list +"/compute:v1/InstanceGroupManagerList/id": id +"/compute:v1/InstanceGroupManagerList/items": items +"/compute:v1/InstanceGroupManagerList/items/item": item +"/compute:v1/InstanceGroupManagerList/kind": kind +"/compute:v1/InstanceGroupManagerList/nextPageToken": next_page_token +"/compute:v1/InstanceGroupManagerList/selfLink": self_link +"/compute:v1/InstanceGroupManagersAbandonInstancesRequest": instance_group_managers_abandon_instances_request +"/compute:v1/InstanceGroupManagersAbandonInstancesRequest/instances": instances +"/compute:v1/InstanceGroupManagersAbandonInstancesRequest/instances/instance": instance +"/compute:v1/InstanceGroupManagersDeleteInstancesRequest": instance_group_managers_delete_instances_request +"/compute:v1/InstanceGroupManagersDeleteInstancesRequest/instances": instances +"/compute:v1/InstanceGroupManagersDeleteInstancesRequest/instances/instance": instance +"/compute:v1/InstanceGroupManagersListManagedInstancesResponse": instance_group_managers_list_managed_instances_response +"/compute:v1/InstanceGroupManagersListManagedInstancesResponse/managedInstances": managed_instances +"/compute:v1/InstanceGroupManagersListManagedInstancesResponse/managedInstances/managed_instance": managed_instance +"/compute:v1/InstanceGroupManagersRecreateInstancesRequest": instance_group_managers_recreate_instances_request +"/compute:v1/InstanceGroupManagersRecreateInstancesRequest/instances": instances +"/compute:v1/InstanceGroupManagersRecreateInstancesRequest/instances/instance": instance +"/compute:v1/InstanceGroupManagersScopedList": instance_group_managers_scoped_list +"/compute:v1/InstanceGroupManagersScopedList/instanceGroupManagers": instance_group_managers +"/compute:v1/InstanceGroupManagersScopedList/instanceGroupManagers/instance_group_manager": instance_group_manager +"/compute:v1/InstanceGroupManagersScopedList/warning": warning +"/compute:v1/InstanceGroupManagersScopedList/warning/code": code +"/compute:v1/InstanceGroupManagersScopedList/warning/data": data +"/compute:v1/InstanceGroupManagersScopedList/warning/data/datum": datum +"/compute:v1/InstanceGroupManagersScopedList/warning/data/datum/key": key +"/compute:v1/InstanceGroupManagersScopedList/warning/data/datum/value": value +"/compute:v1/InstanceGroupManagersScopedList/warning/message": message +"/compute:v1/InstanceGroupManagersSetInstanceTemplateRequest": instance_group_managers_set_instance_template_request +"/compute:v1/InstanceGroupManagersSetInstanceTemplateRequest/instanceTemplate": instance_template +"/compute:v1/InstanceGroupManagersSetTargetPoolsRequest": instance_group_managers_set_target_pools_request +"/compute:v1/InstanceGroupManagersSetTargetPoolsRequest/fingerprint": fingerprint +"/compute:v1/InstanceGroupManagersSetTargetPoolsRequest/targetPools": target_pools +"/compute:v1/InstanceGroupManagersSetTargetPoolsRequest/targetPools/target_pool": target_pool +"/compute:v1/InstanceGroupsAddInstancesRequest": instance_groups_add_instances_request +"/compute:v1/InstanceGroupsAddInstancesRequest/instances": instances +"/compute:v1/InstanceGroupsAddInstancesRequest/instances/instance": instance +"/compute:v1/InstanceGroupsListInstances": instance_groups_list_instances +"/compute:v1/InstanceGroupsListInstances/id": id +"/compute:v1/InstanceGroupsListInstances/items": items +"/compute:v1/InstanceGroupsListInstances/items/item": item +"/compute:v1/InstanceGroupsListInstances/kind": kind +"/compute:v1/InstanceGroupsListInstances/nextPageToken": next_page_token +"/compute:v1/InstanceGroupsListInstances/selfLink": self_link +"/compute:v1/InstanceGroupsListInstancesRequest": instance_groups_list_instances_request +"/compute:v1/InstanceGroupsListInstancesRequest/instanceState": instance_state +"/compute:v1/InstanceGroupsListInstancesRequest/portName": port_name +"/compute:v1/InstanceGroupsRemoveInstancesRequest": instance_groups_remove_instances_request +"/compute:v1/InstanceGroupsRemoveInstancesRequest/instances": instances +"/compute:v1/InstanceGroupsRemoveInstancesRequest/instances/instance": instance +"/compute:v1/InstanceGroupsScopedList": instance_groups_scoped_list +"/compute:v1/InstanceGroupsScopedList/instanceGroups": instance_groups +"/compute:v1/InstanceGroupsScopedList/instanceGroups/instance_group": instance_group +"/compute:v1/InstanceGroupsScopedList/warning": warning +"/compute:v1/InstanceGroupsScopedList/warning/code": code +"/compute:v1/InstanceGroupsScopedList/warning/data": data +"/compute:v1/InstanceGroupsScopedList/warning/data/datum": datum +"/compute:v1/InstanceGroupsScopedList/warning/data/datum/key": key +"/compute:v1/InstanceGroupsScopedList/warning/data/datum/value": value +"/compute:v1/InstanceGroupsScopedList/warning/message": message +"/compute:v1/InstanceGroupsSetNamedPortsRequest": instance_groups_set_named_ports_request +"/compute:v1/InstanceGroupsSetNamedPortsRequest/fingerprint": fingerprint +"/compute:v1/InstanceGroupsSetNamedPortsRequest/namedPorts": named_ports +"/compute:v1/InstanceGroupsSetNamedPortsRequest/namedPorts/named_port": named_port "/compute:v1/InstanceList": instance_list "/compute:v1/InstanceList/id": id "/compute:v1/InstanceList/items": items @@ -7168,6 +7512,11 @@ "/compute:v1/InstanceTemplateList/kind": kind "/compute:v1/InstanceTemplateList/nextPageToken": next_page_token "/compute:v1/InstanceTemplateList/selfLink": self_link +"/compute:v1/InstanceWithNamedPorts": instance_with_named_ports +"/compute:v1/InstanceWithNamedPorts/instance": instance +"/compute:v1/InstanceWithNamedPorts/namedPorts": named_ports +"/compute:v1/InstanceWithNamedPorts/namedPorts/named_port": named_port +"/compute:v1/InstanceWithNamedPorts/status": status "/compute:v1/InstancesScopedList": instances_scoped_list "/compute:v1/InstancesScopedList/instances": instances "/compute:v1/InstancesScopedList/instances/instance": instance @@ -7224,6 +7573,19 @@ "/compute:v1/MachineTypesScopedList/warning/data/datum/key": key "/compute:v1/MachineTypesScopedList/warning/data/datum/value": value "/compute:v1/MachineTypesScopedList/warning/message": message +"/compute:v1/ManagedInstance": managed_instance +"/compute:v1/ManagedInstance/currentAction": current_action +"/compute:v1/ManagedInstance/id": id +"/compute:v1/ManagedInstance/instance": instance +"/compute:v1/ManagedInstance/instanceStatus": instance_status +"/compute:v1/ManagedInstance/lastAttempt": last_attempt +"/compute:v1/ManagedInstanceLastAttempt": managed_instance_last_attempt +"/compute:v1/ManagedInstanceLastAttempt/errors": errors +"/compute:v1/ManagedInstanceLastAttempt/errors/errors": errors +"/compute:v1/ManagedInstanceLastAttempt/errors/errors/error": error +"/compute:v1/ManagedInstanceLastAttempt/errors/errors/error/code": code +"/compute:v1/ManagedInstanceLastAttempt/errors/errors/error/location": location +"/compute:v1/ManagedInstanceLastAttempt/errors/errors/error/message": message "/compute:v1/Metadata": metadata "/compute:v1/Metadata/fingerprint": fingerprint "/compute:v1/Metadata/items": items @@ -7231,6 +7593,9 @@ "/compute:v1/Metadata/items/item/key": key "/compute:v1/Metadata/items/item/value": value "/compute:v1/Metadata/kind": kind +"/compute:v1/NamedPort": named_port +"/compute:v1/NamedPort/name": name +"/compute:v1/NamedPort/port": port "/compute:v1/Network": network "/compute:v1/Network/IPv4Range": i_pv4_range "/compute:v1/Network/creationTimestamp": creation_timestamp @@ -7679,98 +8044,20 @@ "/compute:v1/ZoneList/kind": kind "/compute:v1/ZoneList/nextPageToken": next_page_token "/compute:v1/ZoneList/selfLink": self_link -"/container:v1beta1/fields": fields -"/container:v1beta1/key": key -"/container:v1beta1/quotaUser": quota_user -"/container:v1beta1/userIp": user_ip -"/container:v1beta1/container.projects.clusters.list/projectId": project_id -"/container:v1beta1/container.projects.operations.list/projectId": project_id -"/container:v1beta1/container.projects.zones.clusters.create/projectId": project_id -"/container:v1beta1/container.projects.zones.clusters.create/zoneId": zone_id -"/container:v1beta1/container.projects.zones.clusters.delete/clusterId": cluster_id -"/container:v1beta1/container.projects.zones.clusters.delete/projectId": project_id -"/container:v1beta1/container.projects.zones.clusters.delete/zoneId": zone_id -"/container:v1beta1/container.projects.zones.clusters.get/clusterId": cluster_id -"/container:v1beta1/container.projects.zones.clusters.get/projectId": project_id -"/container:v1beta1/container.projects.zones.clusters.get/zoneId": zone_id -"/container:v1beta1/container.projects.zones.clusters.list/projectId": project_id -"/container:v1beta1/container.projects.zones.clusters.list/zoneId": zone_id -"/container:v1beta1/container.projects.zones.operations.get/operationId": operation_id -"/container:v1beta1/container.projects.zones.operations.get/projectId": project_id -"/container:v1beta1/container.projects.zones.operations.get/zoneId": zone_id -"/container:v1beta1/container.projects.zones.operations.list/projectId": project_id -"/container:v1beta1/container.projects.zones.operations.list/zoneId": zone_id -"/container:v1beta1/Cluster": cluster -"/container:v1beta1/Cluster/clusterApiVersion": cluster_api_version -"/container:v1beta1/Cluster/containerIpv4Cidr": container_ipv4_cidr -"/container:v1beta1/Cluster/creationTimestamp": creation_timestamp -"/container:v1beta1/Cluster/description": description -"/container:v1beta1/Cluster/enableCloudLogging": enable_cloud_logging -"/container:v1beta1/Cluster/enableCloudMonitoring": enable_cloud_monitoring -"/container:v1beta1/Cluster/endpoint": endpoint -"/container:v1beta1/Cluster/instanceGroupUrls": instance_group_urls -"/container:v1beta1/Cluster/instanceGroupUrls/instance_group_url": instance_group_url -"/container:v1beta1/Cluster/masterAuth": master_auth -"/container:v1beta1/Cluster/name": name -"/container:v1beta1/Cluster/network": network -"/container:v1beta1/Cluster/nodeConfig": node_config -"/container:v1beta1/Cluster/nodeRoutingPrefixSize": node_routing_prefix_size -"/container:v1beta1/Cluster/numNodes": num_nodes -"/container:v1beta1/Cluster/selfLink": self_link -"/container:v1beta1/Cluster/servicesIpv4Cidr": services_ipv4_cidr -"/container:v1beta1/Cluster/status": status -"/container:v1beta1/Cluster/statusMessage": status_message -"/container:v1beta1/Cluster/zone": zone -"/container:v1beta1/CreateClusterRequest": create_cluster_request -"/container:v1beta1/CreateClusterRequest/cluster": cluster -"/container:v1beta1/ListAggregatedClustersResponse": list_aggregated_clusters_response -"/container:v1beta1/ListAggregatedClustersResponse/clusters": clusters -"/container:v1beta1/ListAggregatedClustersResponse/clusters/cluster": cluster -"/container:v1beta1/ListAggregatedOperationsResponse": list_aggregated_operations_response -"/container:v1beta1/ListAggregatedOperationsResponse/operations": operations -"/container:v1beta1/ListAggregatedOperationsResponse/operations/operation": operation -"/container:v1beta1/ListClustersResponse": list_clusters_response -"/container:v1beta1/ListClustersResponse/clusters": clusters -"/container:v1beta1/ListClustersResponse/clusters/cluster": cluster -"/container:v1beta1/ListOperationsResponse": list_operations_response -"/container:v1beta1/ListOperationsResponse/operations": operations -"/container:v1beta1/ListOperationsResponse/operations/operation": operation -"/container:v1beta1/MasterAuth": master_auth -"/container:v1beta1/MasterAuth/bearerToken": bearer_token -"/container:v1beta1/MasterAuth/clientCertificate": client_certificate -"/container:v1beta1/MasterAuth/clientKey": client_key -"/container:v1beta1/MasterAuth/clusterCaCertificate": cluster_ca_certificate -"/container:v1beta1/MasterAuth/password": password -"/container:v1beta1/MasterAuth/user": user -"/container:v1beta1/NodeConfig": node_config -"/container:v1beta1/NodeConfig/machineType": machine_type -"/container:v1beta1/NodeConfig/serviceAccounts": service_accounts -"/container:v1beta1/NodeConfig/serviceAccounts/service_account": service_account -"/container:v1beta1/NodeConfig/sourceImage": source_image -"/container:v1beta1/Operation": operation -"/container:v1beta1/Operation/errorMessage": error_message -"/container:v1beta1/Operation/name": name -"/container:v1beta1/Operation/operationType": operation_type -"/container:v1beta1/Operation/selfLink": self_link -"/container:v1beta1/Operation/status": status -"/container:v1beta1/Operation/target": target -"/container:v1beta1/Operation/targetLink": target_link -"/container:v1beta1/Operation/zone": zone -"/container:v1beta1/ServiceAccount": service_account -"/container:v1beta1/ServiceAccount/email": email -"/container:v1beta1/ServiceAccount/scopes": scopes -"/container:v1beta1/ServiceAccount/scopes/scope": scope "/content:v2/fields": fields "/content:v2/key": key "/content:v2/quotaUser": quota_user "/content:v2/userIp": user_ip +"/content:v2/content.accounts.custombatch/dryRun": dry_run "/content:v2/content.accounts.delete": delete_account "/content:v2/content.accounts.delete/accountId": account_id +"/content:v2/content.accounts.delete/dryRun": dry_run "/content:v2/content.accounts.delete/merchantId": merchant_id "/content:v2/content.accounts.get": get_account "/content:v2/content.accounts.get/accountId": account_id "/content:v2/content.accounts.get/merchantId": merchant_id "/content:v2/content.accounts.insert": insert_account +"/content:v2/content.accounts.insert/dryRun": dry_run "/content:v2/content.accounts.insert/merchantId": merchant_id "/content:v2/content.accounts.list": list_accounts "/content:v2/content.accounts.list/maxResults": max_results @@ -7778,9 +8065,11 @@ "/content:v2/content.accounts.list/pageToken": page_token "/content:v2/content.accounts.patch": patch_account "/content:v2/content.accounts.patch/accountId": account_id +"/content:v2/content.accounts.patch/dryRun": dry_run "/content:v2/content.accounts.patch/merchantId": merchant_id "/content:v2/content.accounts.update": update_account "/content:v2/content.accounts.update/accountId": account_id +"/content:v2/content.accounts.update/dryRun": dry_run "/content:v2/content.accounts.update/merchantId": merchant_id "/content:v2/content.accountshipping.custombatch/dryRun": dry_run "/content:v2/content.accountshipping.get/accountId": account_id @@ -7811,13 +8100,16 @@ "/content:v2/content.accounttax.update/accountId": account_id "/content:v2/content.accounttax.update/dryRun": dry_run "/content:v2/content.accounttax.update/merchantId": merchant_id +"/content:v2/content.datafeeds.custombatch/dryRun": dry_run "/content:v2/content.datafeeds.delete": delete_datafeed "/content:v2/content.datafeeds.delete/datafeedId": datafeed_id +"/content:v2/content.datafeeds.delete/dryRun": dry_run "/content:v2/content.datafeeds.delete/merchantId": merchant_id "/content:v2/content.datafeeds.get": get_datafeed "/content:v2/content.datafeeds.get/datafeedId": datafeed_id "/content:v2/content.datafeeds.get/merchantId": merchant_id "/content:v2/content.datafeeds.insert": insert_datafeed +"/content:v2/content.datafeeds.insert/dryRun": dry_run "/content:v2/content.datafeeds.insert/merchantId": merchant_id "/content:v2/content.datafeeds.list": list_datafeeds "/content:v2/content.datafeeds.list/maxResults": max_results @@ -7825,15 +8117,19 @@ "/content:v2/content.datafeeds.list/pageToken": page_token "/content:v2/content.datafeeds.patch": patch_datafeed "/content:v2/content.datafeeds.patch/datafeedId": datafeed_id +"/content:v2/content.datafeeds.patch/dryRun": dry_run "/content:v2/content.datafeeds.patch/merchantId": merchant_id "/content:v2/content.datafeeds.update": update_datafeed "/content:v2/content.datafeeds.update/datafeedId": datafeed_id +"/content:v2/content.datafeeds.update/dryRun": dry_run "/content:v2/content.datafeeds.update/merchantId": merchant_id "/content:v2/content.datafeedstatuses.get/datafeedId": datafeed_id "/content:v2/content.datafeedstatuses.get/merchantId": merchant_id "/content:v2/content.datafeedstatuses.list/maxResults": max_results "/content:v2/content.datafeedstatuses.list/merchantId": merchant_id "/content:v2/content.datafeedstatuses.list/pageToken": page_token +"/content:v2/content.inventory.custombatch/dryRun": dry_run +"/content:v2/content.inventory.set/dryRun": dry_run "/content:v2/content.inventory.set/merchantId": merchant_id "/content:v2/content.inventory.set/productId": product_id "/content:v2/content.inventory.set/storeCode": store_code @@ -11395,6 +11691,7 @@ "/discovery:v1/RestDescription/discoveryVersion": discovery_version "/discovery:v1/RestDescription/documentationLink": documentation_link "/discovery:v1/RestDescription/etag": etag +"/discovery:v1/RestDescription/exponentialBackoffDefault": exponential_backoff_default "/discovery:v1/RestDescription/features": features "/discovery:v1/RestDescription/features/feature": feature "/discovery:v1/RestDescription/icons": icons @@ -11484,6 +11781,7 @@ "/dns:v1/dns.managedZones.get/managedZone": managed_zone "/dns:v1/dns.managedZones.get/project": project "/dns:v1/dns.managedZones.list": list_managed_zones +"/dns:v1/dns.managedZones.list/dnsName": dns_name "/dns:v1/dns.managedZones.list/maxResults": max_results "/dns:v1/dns.managedZones.list/pageToken": page_token "/dns:v1/dns.managedZones.list/project": project @@ -12548,6 +12846,8 @@ "/fitness:v1/ListSessionsResponse/nextPageToken": next_page_token "/fitness:v1/ListSessionsResponse/session": session "/fitness:v1/ListSessionsResponse/session/session": session +"/fitness:v1/MapValue": map_value +"/fitness:v1/MapValue/fpVal": fp_val "/fitness:v1/Session": session "/fitness:v1/Session/activeTimeMillis": active_time_millis "/fitness:v1/Session/activityType": activity_type @@ -12561,6 +12861,12 @@ "/fitness:v1/Value": value "/fitness:v1/Value/fpVal": fp_val "/fitness:v1/Value/intVal": int_val +"/fitness:v1/Value/mapVal": map_val +"/fitness:v1/Value/mapVal/map_val": map_val +"/fitness:v1/Value/stringVal": string_val +"/fitness:v1/ValueMapValEntry": value_map_val_entry +"/fitness:v1/ValueMapValEntry/key": key +"/fitness:v1/ValueMapValEntry/value": value "/fusiontables:v2/fields": fields "/fusiontables:v2/key": key "/fusiontables:v2/quotaUser": quota_user @@ -13998,575 +14304,6 @@ "/gan:v1beta1/Report/totals_rows/totals_row": totals_row "/gan:v1beta1/Report/totals_rows/totals_row/totals_row": totals_row "/gan:v1beta1/Report/type": type -"/genomics:v1beta2/fields": fields -"/genomics:v1beta2/key": key -"/genomics:v1beta2/quotaUser": quota_user -"/genomics:v1beta2/userIp": user_ip -"/genomics:v1beta2/genomics.annotationSets.create": create_annotation_set -"/genomics:v1beta2/genomics.annotationSets.delete": delete_annotation_set -"/genomics:v1beta2/genomics.annotationSets.delete/annotationSetId": annotation_set_id -"/genomics:v1beta2/genomics.annotationSets.get": get_annotation_set -"/genomics:v1beta2/genomics.annotationSets.get/annotationSetId": annotation_set_id -"/genomics:v1beta2/genomics.annotationSets.patch": patch_annotation_set -"/genomics:v1beta2/genomics.annotationSets.patch/annotationSetId": annotation_set_id -"/genomics:v1beta2/genomics.annotationSets.search": search_annotation_sets -"/genomics:v1beta2/genomics.annotationSets.update": update_annotation_set -"/genomics:v1beta2/genomics.annotationSets.update/annotationSetId": annotation_set_id -"/genomics:v1beta2/genomics.annotations.batchCreate": batch_create_annotations -"/genomics:v1beta2/genomics.annotations.create": create_annotation -"/genomics:v1beta2/genomics.annotations.delete": delete_annotation -"/genomics:v1beta2/genomics.annotations.delete/annotationId": annotation_id -"/genomics:v1beta2/genomics.annotations.get": get_annotation -"/genomics:v1beta2/genomics.annotations.get/annotationId": annotation_id -"/genomics:v1beta2/genomics.annotations.patch": patch_annotation -"/genomics:v1beta2/genomics.annotations.patch/annotationId": annotation_id -"/genomics:v1beta2/genomics.annotations.search": search_annotations -"/genomics:v1beta2/genomics.annotations.update": update_annotation -"/genomics:v1beta2/genomics.annotations.update/annotationId": annotation_id -"/genomics:v1beta2/genomics.callsets.delete/callSetId": call_set_id -"/genomics:v1beta2/genomics.callsets.get/callSetId": call_set_id -"/genomics:v1beta2/genomics.callsets.patch/callSetId": call_set_id -"/genomics:v1beta2/genomics.callsets.update/callSetId": call_set_id -"/genomics:v1beta2/genomics.datasets.create": create_dataset -"/genomics:v1beta2/genomics.datasets.delete": delete_dataset -"/genomics:v1beta2/genomics.datasets.delete/datasetId": dataset_id -"/genomics:v1beta2/genomics.datasets.get": get_dataset -"/genomics:v1beta2/genomics.datasets.get/datasetId": dataset_id -"/genomics:v1beta2/genomics.datasets.list": list_datasets -"/genomics:v1beta2/genomics.datasets.list/pageSize": page_size -"/genomics:v1beta2/genomics.datasets.list/pageToken": page_token -"/genomics:v1beta2/genomics.datasets.list/projectNumber": project_number -"/genomics:v1beta2/genomics.datasets.patch": patch_dataset -"/genomics:v1beta2/genomics.datasets.patch/datasetId": dataset_id -"/genomics:v1beta2/genomics.datasets.undelete": undelete_dataset -"/genomics:v1beta2/genomics.datasets.undelete/datasetId": dataset_id -"/genomics:v1beta2/genomics.datasets.update": update_dataset -"/genomics:v1beta2/genomics.datasets.update/datasetId": dataset_id -"/genomics:v1beta2/genomics.experimental.jobs.create": create_experimental_job -"/genomics:v1beta2/genomics.jobs.cancel": cancel_job -"/genomics:v1beta2/genomics.jobs.cancel/jobId": job_id -"/genomics:v1beta2/genomics.jobs.get": get_job -"/genomics:v1beta2/genomics.jobs.get/jobId": job_id -"/genomics:v1beta2/genomics.jobs.search": search_jobs -"/genomics:v1beta2/genomics.readgroupsets.delete/readGroupSetId": read_group_set_id -"/genomics:v1beta2/genomics.readgroupsets.get/readGroupSetId": read_group_set_id -"/genomics:v1beta2/genomics.readgroupsets.patch/readGroupSetId": read_group_set_id -"/genomics:v1beta2/genomics.readgroupsets.update/readGroupSetId": read_group_set_id -"/genomics:v1beta2/genomics.readgroupsets.coveragebuckets.list/pageSize": page_size -"/genomics:v1beta2/genomics.readgroupsets.coveragebuckets.list/pageToken": page_token -"/genomics:v1beta2/genomics.readgroupsets.coveragebuckets.list/range.end": range_end -"/genomics:v1beta2/genomics.readgroupsets.coveragebuckets.list/range.referenceName": range_reference_name -"/genomics:v1beta2/genomics.readgroupsets.coveragebuckets.list/range.start": range_start -"/genomics:v1beta2/genomics.readgroupsets.coveragebuckets.list/readGroupSetId": read_group_set_id -"/genomics:v1beta2/genomics.readgroupsets.coveragebuckets.list/targetBucketWidth": target_bucket_width -"/genomics:v1beta2/genomics.reads.search": search_reads -"/genomics:v1beta2/genomics.references.get": get_reference -"/genomics:v1beta2/genomics.references.get/referenceId": reference_id -"/genomics:v1beta2/genomics.references.search": search_references -"/genomics:v1beta2/genomics.references.bases.list": list_reference_bases -"/genomics:v1beta2/genomics.references.bases.list/pageSize": page_size -"/genomics:v1beta2/genomics.references.bases.list/pageToken": page_token -"/genomics:v1beta2/genomics.references.bases.list/referenceId": reference_id -"/genomics:v1beta2/genomics.referencesets.get/referenceSetId": reference_set_id -"/genomics:v1beta2/genomics.referencesets.search": search_reference_sets -"/genomics:v1beta2/genomics.variants.create": create_variant -"/genomics:v1beta2/genomics.variants.delete": delete_variant -"/genomics:v1beta2/genomics.variants.delete/variantId": variant_id -"/genomics:v1beta2/genomics.variants.get": get_variant -"/genomics:v1beta2/genomics.variants.get/variantId": variant_id -"/genomics:v1beta2/genomics.variants.search": search_variants -"/genomics:v1beta2/genomics.variants.update": update_variant -"/genomics:v1beta2/genomics.variants.update/variantId": variant_id -"/genomics:v1beta2/genomics.variantsets.delete": delete_variantset -"/genomics:v1beta2/genomics.variantsets.delete/variantSetId": variant_set_id -"/genomics:v1beta2/genomics.variantsets.export": export_variant_set -"/genomics:v1beta2/genomics.variantsets.export/variantSetId": variant_set_id -"/genomics:v1beta2/genomics.variantsets.get": get_variantset -"/genomics:v1beta2/genomics.variantsets.get/variantSetId": variant_set_id -"/genomics:v1beta2/genomics.variantsets.importVariants": import_variants -"/genomics:v1beta2/genomics.variantsets.importVariants/variantSetId": variant_set_id -"/genomics:v1beta2/genomics.variantsets.mergeVariants": merge_variants -"/genomics:v1beta2/genomics.variantsets.mergeVariants/variantSetId": variant_set_id -"/genomics:v1beta2/genomics.variantsets.patch": patch_variantset -"/genomics:v1beta2/genomics.variantsets.patch/variantSetId": variant_set_id -"/genomics:v1beta2/genomics.variantsets.search": search_variant_sets -"/genomics:v1beta2/genomics.variantsets.update": update_variantset -"/genomics:v1beta2/genomics.variantsets.update/variantSetId": variant_set_id -"/genomics:v1beta2/AlignReadGroupSetsRequest": align_read_group_sets_request -"/genomics:v1beta2/AlignReadGroupSetsRequest/bamSourceUris": bam_source_uris -"/genomics:v1beta2/AlignReadGroupSetsRequest/bamSourceUris/bam_source_uri": bam_source_uri -"/genomics:v1beta2/AlignReadGroupSetsRequest/datasetId": dataset_id -"/genomics:v1beta2/AlignReadGroupSetsRequest/interleavedFastqSource": interleaved_fastq_source -"/genomics:v1beta2/AlignReadGroupSetsRequest/pairedFastqSource": paired_fastq_source -"/genomics:v1beta2/AlignReadGroupSetsRequest/readGroupSetId": read_group_set_id -"/genomics:v1beta2/AlignReadGroupSetsResponse": align_read_group_sets_response -"/genomics:v1beta2/AlignReadGroupSetsResponse/jobId": job_id -"/genomics:v1beta2/Annotation": annotation -"/genomics:v1beta2/Annotation/annotationSetId": annotation_set_id -"/genomics:v1beta2/Annotation/id": id -"/genomics:v1beta2/Annotation/info": info -"/genomics:v1beta2/Annotation/info/info": info -"/genomics:v1beta2/Annotation/info/info/info": info -"/genomics:v1beta2/Annotation/name": name -"/genomics:v1beta2/Annotation/position": position -"/genomics:v1beta2/Annotation/transcript": transcript -"/genomics:v1beta2/Annotation/type": type -"/genomics:v1beta2/Annotation/variant": variant -"/genomics:v1beta2/AnnotationSet": annotation_set -"/genomics:v1beta2/AnnotationSet/datasetId": dataset_id -"/genomics:v1beta2/AnnotationSet/id": id -"/genomics:v1beta2/AnnotationSet/info": info -"/genomics:v1beta2/AnnotationSet/info/info": info -"/genomics:v1beta2/AnnotationSet/info/info/info": info -"/genomics:v1beta2/AnnotationSet/name": name -"/genomics:v1beta2/AnnotationSet/referenceSetId": reference_set_id -"/genomics:v1beta2/AnnotationSet/sourceUri": source_uri -"/genomics:v1beta2/AnnotationSet/type": type -"/genomics:v1beta2/BatchAnnotationsResponse": batch_annotations_response -"/genomics:v1beta2/BatchAnnotationsResponse/entries": entries -"/genomics:v1beta2/BatchAnnotationsResponse/entries/entry": entry -"/genomics:v1beta2/BatchAnnotationsResponseEntry": batch_annotations_response_entry -"/genomics:v1beta2/BatchAnnotationsResponseEntry/annotation": annotation -"/genomics:v1beta2/BatchAnnotationsResponseEntry/status": status -"/genomics:v1beta2/BatchAnnotationsResponseEntryStatus": batch_annotations_response_entry_status -"/genomics:v1beta2/BatchAnnotationsResponseEntryStatus/code": code -"/genomics:v1beta2/BatchAnnotationsResponseEntryStatus/message": message -"/genomics:v1beta2/BatchCreateAnnotationsRequest": batch_create_annotations_request -"/genomics:v1beta2/BatchCreateAnnotationsRequest/annotations": annotations -"/genomics:v1beta2/BatchCreateAnnotationsRequest/annotations/annotation": annotation -"/genomics:v1beta2/Call": call -"/genomics:v1beta2/Call/callSetId": call_set_id -"/genomics:v1beta2/Call/callSetName": call_set_name -"/genomics:v1beta2/Call/genotype": genotype -"/genomics:v1beta2/Call/genotype/genotype": genotype -"/genomics:v1beta2/Call/genotypeLikelihood": genotype_likelihood -"/genomics:v1beta2/Call/genotypeLikelihood/genotype_likelihood": genotype_likelihood -"/genomics:v1beta2/Call/info": info -"/genomics:v1beta2/Call/info/info": info -"/genomics:v1beta2/Call/info/info/info": info -"/genomics:v1beta2/Call/phaseset": phaseset -"/genomics:v1beta2/CallReadGroupSetsRequest": call_read_group_sets_request -"/genomics:v1beta2/CallReadGroupSetsRequest/datasetId": dataset_id -"/genomics:v1beta2/CallReadGroupSetsRequest/readGroupSetId": read_group_set_id -"/genomics:v1beta2/CallReadGroupSetsRequest/sourceUris": source_uris -"/genomics:v1beta2/CallReadGroupSetsRequest/sourceUris/source_uri": source_uri -"/genomics:v1beta2/CallReadGroupSetsResponse": call_read_group_sets_response -"/genomics:v1beta2/CallReadGroupSetsResponse/jobId": job_id -"/genomics:v1beta2/CallSet": call_set -"/genomics:v1beta2/CallSet/created": created -"/genomics:v1beta2/CallSet/id": id -"/genomics:v1beta2/CallSet/info": info -"/genomics:v1beta2/CallSet/info/info": info -"/genomics:v1beta2/CallSet/info/info/info": info -"/genomics:v1beta2/CallSet/name": name -"/genomics:v1beta2/CallSet/sampleId": sample_id -"/genomics:v1beta2/CallSet/variantSetIds": variant_set_ids -"/genomics:v1beta2/CallSet/variantSetIds/variant_set_id": variant_set_id -"/genomics:v1beta2/CigarUnit": cigar_unit -"/genomics:v1beta2/CigarUnit/operation": operation -"/genomics:v1beta2/CigarUnit/operationLength": operation_length -"/genomics:v1beta2/CigarUnit/referenceSequence": reference_sequence -"/genomics:v1beta2/CoverageBucket": coverage_bucket -"/genomics:v1beta2/CoverageBucket/meanCoverage": mean_coverage -"/genomics:v1beta2/CoverageBucket/range": range -"/genomics:v1beta2/Dataset": dataset -"/genomics:v1beta2/Dataset/createTime": create_time -"/genomics:v1beta2/Dataset/id": id -"/genomics:v1beta2/Dataset/isPublic": is_public -"/genomics:v1beta2/Dataset/name": name -"/genomics:v1beta2/Dataset/projectNumber": project_number -"/genomics:v1beta2/ExperimentalCreateJobRequest": experimental_create_job_request -"/genomics:v1beta2/ExperimentalCreateJobRequest/align": align -"/genomics:v1beta2/ExperimentalCreateJobRequest/callVariants": call_variants -"/genomics:v1beta2/ExperimentalCreateJobRequest/gcsOutputPath": gcs_output_path -"/genomics:v1beta2/ExperimentalCreateJobRequest/pairedSourceUris": paired_source_uris -"/genomics:v1beta2/ExperimentalCreateJobRequest/pairedSourceUris/paired_source_uri": paired_source_uri -"/genomics:v1beta2/ExperimentalCreateJobRequest/projectNumber": project_number -"/genomics:v1beta2/ExperimentalCreateJobRequest/sourceUris": source_uris -"/genomics:v1beta2/ExperimentalCreateJobRequest/sourceUris/source_uri": source_uri -"/genomics:v1beta2/ExperimentalCreateJobResponse": experimental_create_job_response -"/genomics:v1beta2/ExperimentalCreateJobResponse/jobId": job_id -"/genomics:v1beta2/ExportReadGroupSetsRequest": export_read_group_sets_request -"/genomics:v1beta2/ExportReadGroupSetsRequest/exportUri": export_uri -"/genomics:v1beta2/ExportReadGroupSetsRequest/projectNumber": project_number -"/genomics:v1beta2/ExportReadGroupSetsRequest/readGroupSetIds": read_group_set_ids -"/genomics:v1beta2/ExportReadGroupSetsRequest/readGroupSetIds/read_group_set_id": read_group_set_id -"/genomics:v1beta2/ExportReadGroupSetsRequest/referenceNames": reference_names -"/genomics:v1beta2/ExportReadGroupSetsRequest/referenceNames/reference_name": reference_name -"/genomics:v1beta2/ExportReadGroupSetsResponse": export_read_group_sets_response -"/genomics:v1beta2/ExportReadGroupSetsResponse/jobId": job_id -"/genomics:v1beta2/ExportVariantSetRequest": export_variant_set_request -"/genomics:v1beta2/ExportVariantSetRequest/bigqueryDataset": bigquery_dataset -"/genomics:v1beta2/ExportVariantSetRequest/bigqueryTable": bigquery_table -"/genomics:v1beta2/ExportVariantSetRequest/callSetIds": call_set_ids -"/genomics:v1beta2/ExportVariantSetRequest/callSetIds/call_set_id": call_set_id -"/genomics:v1beta2/ExportVariantSetRequest/format": format -"/genomics:v1beta2/ExportVariantSetRequest/projectNumber": project_number -"/genomics:v1beta2/ExportVariantSetResponse": export_variant_set_response -"/genomics:v1beta2/ExportVariantSetResponse/jobId": job_id -"/genomics:v1beta2/ExternalId": external_id -"/genomics:v1beta2/ExternalId/id": id -"/genomics:v1beta2/ExternalId/sourceName": source_name -"/genomics:v1beta2/FastqMetadata": fastq_metadata -"/genomics:v1beta2/FastqMetadata/libraryName": library_name -"/genomics:v1beta2/FastqMetadata/platformName": platform_name -"/genomics:v1beta2/FastqMetadata/platformUnit": platform_unit -"/genomics:v1beta2/FastqMetadata/readGroupName": read_group_name -"/genomics:v1beta2/FastqMetadata/sampleName": sample_name -"/genomics:v1beta2/ImportReadGroupSetsRequest": import_read_group_sets_request -"/genomics:v1beta2/ImportReadGroupSetsRequest/datasetId": dataset_id -"/genomics:v1beta2/ImportReadGroupSetsRequest/partitionStrategy": partition_strategy -"/genomics:v1beta2/ImportReadGroupSetsRequest/referenceSetId": reference_set_id -"/genomics:v1beta2/ImportReadGroupSetsRequest/sourceUris": source_uris -"/genomics:v1beta2/ImportReadGroupSetsRequest/sourceUris/source_uri": source_uri -"/genomics:v1beta2/ImportReadGroupSetsResponse": import_read_group_sets_response -"/genomics:v1beta2/ImportReadGroupSetsResponse/jobId": job_id -"/genomics:v1beta2/ImportVariantsRequest": import_variants_request -"/genomics:v1beta2/ImportVariantsRequest/format": format -"/genomics:v1beta2/ImportVariantsRequest/normalizeReferenceNames": normalize_reference_names -"/genomics:v1beta2/ImportVariantsRequest/sourceUris": source_uris -"/genomics:v1beta2/ImportVariantsRequest/sourceUris/source_uri": source_uri -"/genomics:v1beta2/ImportVariantsResponse": import_variants_response -"/genomics:v1beta2/ImportVariantsResponse/jobId": job_id -"/genomics:v1beta2/Int32Value": int32_value -"/genomics:v1beta2/Int32Value/value": value -"/genomics:v1beta2/InterleavedFastqSource": interleaved_fastq_source -"/genomics:v1beta2/InterleavedFastqSource/metadata": metadata -"/genomics:v1beta2/InterleavedFastqSource/sourceUris": source_uris -"/genomics:v1beta2/InterleavedFastqSource/sourceUris/source_uri": source_uri -"/genomics:v1beta2/Job": job -"/genomics:v1beta2/Job/created": created -"/genomics:v1beta2/Job/detailedStatus": detailed_status -"/genomics:v1beta2/Job/errors": errors -"/genomics:v1beta2/Job/errors/error": error -"/genomics:v1beta2/Job/id": id -"/genomics:v1beta2/Job/importedIds": imported_ids -"/genomics:v1beta2/Job/importedIds/imported_id": imported_id -"/genomics:v1beta2/Job/projectNumber": project_number -"/genomics:v1beta2/Job/request": request -"/genomics:v1beta2/Job/status": status -"/genomics:v1beta2/Job/warnings": warnings -"/genomics:v1beta2/Job/warnings/warning": warning -"/genomics:v1beta2/JobRequest": job_request -"/genomics:v1beta2/JobRequest/destination": destination -"/genomics:v1beta2/JobRequest/destination/destination": destination -"/genomics:v1beta2/JobRequest/source": source -"/genomics:v1beta2/JobRequest/source/source": source -"/genomics:v1beta2/JobRequest/type": type -"/genomics:v1beta2/KeyValue": key_value -"/genomics:v1beta2/KeyValue/key": key -"/genomics:v1beta2/KeyValue/value": value -"/genomics:v1beta2/KeyValue/value/value": value -"/genomics:v1beta2/LinearAlignment": linear_alignment -"/genomics:v1beta2/LinearAlignment/cigar": cigar -"/genomics:v1beta2/LinearAlignment/cigar/cigar": cigar -"/genomics:v1beta2/LinearAlignment/mappingQuality": mapping_quality -"/genomics:v1beta2/LinearAlignment/position": position -"/genomics:v1beta2/ListBasesResponse": list_bases_response -"/genomics:v1beta2/ListBasesResponse/nextPageToken": next_page_token -"/genomics:v1beta2/ListBasesResponse/offset": offset -"/genomics:v1beta2/ListBasesResponse/sequence": sequence -"/genomics:v1beta2/ListCoverageBucketsResponse": list_coverage_buckets_response -"/genomics:v1beta2/ListCoverageBucketsResponse/bucketWidth": bucket_width -"/genomics:v1beta2/ListCoverageBucketsResponse/coverageBuckets": coverage_buckets -"/genomics:v1beta2/ListCoverageBucketsResponse/coverageBuckets/coverage_bucket": coverage_bucket -"/genomics:v1beta2/ListCoverageBucketsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/ListDatasetsResponse": list_datasets_response -"/genomics:v1beta2/ListDatasetsResponse/datasets": datasets -"/genomics:v1beta2/ListDatasetsResponse/datasets/dataset": dataset -"/genomics:v1beta2/ListDatasetsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/MergeVariantsRequest": merge_variants_request -"/genomics:v1beta2/MergeVariantsRequest/variants": variants -"/genomics:v1beta2/MergeVariantsRequest/variants/variant": variant -"/genomics:v1beta2/Metadata": metadata -"/genomics:v1beta2/Metadata/description": description -"/genomics:v1beta2/Metadata/id": id -"/genomics:v1beta2/Metadata/info": info -"/genomics:v1beta2/Metadata/info/info": info -"/genomics:v1beta2/Metadata/info/info/info": info -"/genomics:v1beta2/Metadata/key": key -"/genomics:v1beta2/Metadata/number": number -"/genomics:v1beta2/Metadata/type": type -"/genomics:v1beta2/Metadata/value": value -"/genomics:v1beta2/PairedFastqSource": paired_fastq_source -"/genomics:v1beta2/PairedFastqSource/firstSourceUris": first_source_uris -"/genomics:v1beta2/PairedFastqSource/firstSourceUris/first_source_uri": first_source_uri -"/genomics:v1beta2/PairedFastqSource/metadata": metadata -"/genomics:v1beta2/PairedFastqSource/secondSourceUris": second_source_uris -"/genomics:v1beta2/PairedFastqSource/secondSourceUris/second_source_uri": second_source_uri -"/genomics:v1beta2/Position": position -"/genomics:v1beta2/Position/position": position -"/genomics:v1beta2/Position/referenceName": reference_name -"/genomics:v1beta2/Position/reverseStrand": reverse_strand -"/genomics:v1beta2/QueryRange": query_range -"/genomics:v1beta2/QueryRange/end": end -"/genomics:v1beta2/QueryRange/referenceId": reference_id -"/genomics:v1beta2/QueryRange/referenceName": reference_name -"/genomics:v1beta2/QueryRange/start": start -"/genomics:v1beta2/Range": range -"/genomics:v1beta2/Range/end": end -"/genomics:v1beta2/Range/referenceName": reference_name -"/genomics:v1beta2/Range/start": start -"/genomics:v1beta2/RangePosition": range_position -"/genomics:v1beta2/RangePosition/end": end -"/genomics:v1beta2/RangePosition/referenceId": reference_id -"/genomics:v1beta2/RangePosition/referenceName": reference_name -"/genomics:v1beta2/RangePosition/reverseStrand": reverse_strand -"/genomics:v1beta2/RangePosition/start": start -"/genomics:v1beta2/Read": read -"/genomics:v1beta2/Read/alignedQuality": aligned_quality -"/genomics:v1beta2/Read/alignedQuality/aligned_quality": aligned_quality -"/genomics:v1beta2/Read/alignedSequence": aligned_sequence -"/genomics:v1beta2/Read/alignment": alignment -"/genomics:v1beta2/Read/duplicateFragment": duplicate_fragment -"/genomics:v1beta2/Read/failedVendorQualityChecks": failed_vendor_quality_checks -"/genomics:v1beta2/Read/fragmentLength": fragment_length -"/genomics:v1beta2/Read/fragmentName": fragment_name -"/genomics:v1beta2/Read/id": id -"/genomics:v1beta2/Read/info": info -"/genomics:v1beta2/Read/info/info": info -"/genomics:v1beta2/Read/info/info/info": info -"/genomics:v1beta2/Read/nextMatePosition": next_mate_position -"/genomics:v1beta2/Read/numberReads": number_reads -"/genomics:v1beta2/Read/properPlacement": proper_placement -"/genomics:v1beta2/Read/readGroupId": read_group_id -"/genomics:v1beta2/Read/readGroupSetId": read_group_set_id -"/genomics:v1beta2/Read/readNumber": read_number -"/genomics:v1beta2/Read/secondaryAlignment": secondary_alignment -"/genomics:v1beta2/Read/supplementaryAlignment": supplementary_alignment -"/genomics:v1beta2/ReadGroup": read_group -"/genomics:v1beta2/ReadGroup/datasetId": dataset_id -"/genomics:v1beta2/ReadGroup/description": description -"/genomics:v1beta2/ReadGroup/experiment": experiment -"/genomics:v1beta2/ReadGroup/id": id -"/genomics:v1beta2/ReadGroup/info": info -"/genomics:v1beta2/ReadGroup/info/info": info -"/genomics:v1beta2/ReadGroup/info/info/info": info -"/genomics:v1beta2/ReadGroup/name": name -"/genomics:v1beta2/ReadGroup/predictedInsertSize": predicted_insert_size -"/genomics:v1beta2/ReadGroup/programs": programs -"/genomics:v1beta2/ReadGroup/programs/program": program -"/genomics:v1beta2/ReadGroup/referenceSetId": reference_set_id -"/genomics:v1beta2/ReadGroup/sampleId": sample_id -"/genomics:v1beta2/ReadGroupExperiment": read_group_experiment -"/genomics:v1beta2/ReadGroupExperiment/instrumentModel": instrument_model -"/genomics:v1beta2/ReadGroupExperiment/libraryId": library_id -"/genomics:v1beta2/ReadGroupExperiment/platformUnit": platform_unit -"/genomics:v1beta2/ReadGroupExperiment/sequencingCenter": sequencing_center -"/genomics:v1beta2/ReadGroupProgram": read_group_program -"/genomics:v1beta2/ReadGroupProgram/commandLine": command_line -"/genomics:v1beta2/ReadGroupProgram/id": id -"/genomics:v1beta2/ReadGroupProgram/name": name -"/genomics:v1beta2/ReadGroupProgram/prevProgramId": prev_program_id -"/genomics:v1beta2/ReadGroupProgram/version": version -"/genomics:v1beta2/ReadGroupSet": read_group_set -"/genomics:v1beta2/ReadGroupSet/datasetId": dataset_id -"/genomics:v1beta2/ReadGroupSet/filename": filename -"/genomics:v1beta2/ReadGroupSet/id": id -"/genomics:v1beta2/ReadGroupSet/info": info -"/genomics:v1beta2/ReadGroupSet/info/info": info -"/genomics:v1beta2/ReadGroupSet/info/info/info": info -"/genomics:v1beta2/ReadGroupSet/name": name -"/genomics:v1beta2/ReadGroupSet/readGroups": read_groups -"/genomics:v1beta2/ReadGroupSet/readGroups/read_group": read_group -"/genomics:v1beta2/ReadGroupSet/referenceSetId": reference_set_id -"/genomics:v1beta2/Reference": reference -"/genomics:v1beta2/Reference/id": id -"/genomics:v1beta2/Reference/length": length -"/genomics:v1beta2/Reference/md5checksum": md5checksum -"/genomics:v1beta2/Reference/name": name -"/genomics:v1beta2/Reference/ncbiTaxonId": ncbi_taxon_id -"/genomics:v1beta2/Reference/sourceAccessions": source_accessions -"/genomics:v1beta2/Reference/sourceAccessions/source_accession": source_accession -"/genomics:v1beta2/Reference/sourceURI": source_uri -"/genomics:v1beta2/ReferenceBound": reference_bound -"/genomics:v1beta2/ReferenceBound/referenceName": reference_name -"/genomics:v1beta2/ReferenceBound/upperBound": upper_bound -"/genomics:v1beta2/ReferenceSet": reference_set -"/genomics:v1beta2/ReferenceSet/assemblyId": assembly_id -"/genomics:v1beta2/ReferenceSet/description": description -"/genomics:v1beta2/ReferenceSet/id": id -"/genomics:v1beta2/ReferenceSet/md5checksum": md5checksum -"/genomics:v1beta2/ReferenceSet/ncbiTaxonId": ncbi_taxon_id -"/genomics:v1beta2/ReferenceSet/referenceIds": reference_ids -"/genomics:v1beta2/ReferenceSet/referenceIds/reference_id": reference_id -"/genomics:v1beta2/ReferenceSet/sourceAccessions": source_accessions -"/genomics:v1beta2/ReferenceSet/sourceAccessions/source_accession": source_accession -"/genomics:v1beta2/ReferenceSet/sourceURI": source_uri -"/genomics:v1beta2/SearchAnnotationSetsRequest": search_annotation_sets_request -"/genomics:v1beta2/SearchAnnotationSetsRequest/datasetIds": dataset_ids -"/genomics:v1beta2/SearchAnnotationSetsRequest/datasetIds/dataset_id": dataset_id -"/genomics:v1beta2/SearchAnnotationSetsRequest/name": name -"/genomics:v1beta2/SearchAnnotationSetsRequest/pageSize": page_size -"/genomics:v1beta2/SearchAnnotationSetsRequest/pageToken": page_token -"/genomics:v1beta2/SearchAnnotationSetsRequest/referenceSetId": reference_set_id -"/genomics:v1beta2/SearchAnnotationSetsRequest/types": types -"/genomics:v1beta2/SearchAnnotationSetsRequest/types/type": type -"/genomics:v1beta2/SearchAnnotationSetsResponse": search_annotation_sets_response -"/genomics:v1beta2/SearchAnnotationSetsResponse/annotationSets": annotation_sets -"/genomics:v1beta2/SearchAnnotationSetsResponse/annotationSets/annotation_set": annotation_set -"/genomics:v1beta2/SearchAnnotationSetsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchAnnotationsRequest": search_annotations_request -"/genomics:v1beta2/SearchAnnotationsRequest/annotationSetIds": annotation_set_ids -"/genomics:v1beta2/SearchAnnotationsRequest/annotationSetIds/annotation_set_id": annotation_set_id -"/genomics:v1beta2/SearchAnnotationsRequest/pageSize": page_size -"/genomics:v1beta2/SearchAnnotationsRequest/pageToken": page_token -"/genomics:v1beta2/SearchAnnotationsRequest/range": range -"/genomics:v1beta2/SearchAnnotationsResponse": search_annotations_response -"/genomics:v1beta2/SearchAnnotationsResponse/annotations": annotations -"/genomics:v1beta2/SearchAnnotationsResponse/annotations/annotation": annotation -"/genomics:v1beta2/SearchAnnotationsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchCallSetsRequest": search_call_sets_request -"/genomics:v1beta2/SearchCallSetsRequest/name": name -"/genomics:v1beta2/SearchCallSetsRequest/pageSize": page_size -"/genomics:v1beta2/SearchCallSetsRequest/pageToken": page_token -"/genomics:v1beta2/SearchCallSetsRequest/variantSetIds": variant_set_ids -"/genomics:v1beta2/SearchCallSetsRequest/variantSetIds/variant_set_id": variant_set_id -"/genomics:v1beta2/SearchCallSetsResponse": search_call_sets_response -"/genomics:v1beta2/SearchCallSetsResponse/callSets": call_sets -"/genomics:v1beta2/SearchCallSetsResponse/callSets/call_set": call_set -"/genomics:v1beta2/SearchCallSetsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchJobsRequest": search_jobs_request -"/genomics:v1beta2/SearchJobsRequest/createdAfter": created_after -"/genomics:v1beta2/SearchJobsRequest/createdBefore": created_before -"/genomics:v1beta2/SearchJobsRequest/pageSize": page_size -"/genomics:v1beta2/SearchJobsRequest/pageToken": page_token -"/genomics:v1beta2/SearchJobsRequest/projectNumber": project_number -"/genomics:v1beta2/SearchJobsRequest/status": status -"/genomics:v1beta2/SearchJobsRequest/status/status": status -"/genomics:v1beta2/SearchJobsResponse": search_jobs_response -"/genomics:v1beta2/SearchJobsResponse/jobs": jobs -"/genomics:v1beta2/SearchJobsResponse/jobs/job": job -"/genomics:v1beta2/SearchJobsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchReadGroupSetsRequest": search_read_group_sets_request -"/genomics:v1beta2/SearchReadGroupSetsRequest/datasetIds": dataset_ids -"/genomics:v1beta2/SearchReadGroupSetsRequest/datasetIds/dataset_id": dataset_id -"/genomics:v1beta2/SearchReadGroupSetsRequest/name": name -"/genomics:v1beta2/SearchReadGroupSetsRequest/pageSize": page_size -"/genomics:v1beta2/SearchReadGroupSetsRequest/pageToken": page_token -"/genomics:v1beta2/SearchReadGroupSetsResponse": search_read_group_sets_response -"/genomics:v1beta2/SearchReadGroupSetsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchReadGroupSetsResponse/readGroupSets": read_group_sets -"/genomics:v1beta2/SearchReadGroupSetsResponse/readGroupSets/read_group_set": read_group_set -"/genomics:v1beta2/SearchReadsRequest": search_reads_request -"/genomics:v1beta2/SearchReadsRequest/end": end -"/genomics:v1beta2/SearchReadsRequest/pageSize": page_size -"/genomics:v1beta2/SearchReadsRequest/pageToken": page_token -"/genomics:v1beta2/SearchReadsRequest/readGroupIds": read_group_ids -"/genomics:v1beta2/SearchReadsRequest/readGroupIds/read_group_id": read_group_id -"/genomics:v1beta2/SearchReadsRequest/readGroupSetIds": read_group_set_ids -"/genomics:v1beta2/SearchReadsRequest/readGroupSetIds/read_group_set_id": read_group_set_id -"/genomics:v1beta2/SearchReadsRequest/referenceName": reference_name -"/genomics:v1beta2/SearchReadsRequest/start": start -"/genomics:v1beta2/SearchReadsResponse": search_reads_response -"/genomics:v1beta2/SearchReadsResponse/alignments": alignments -"/genomics:v1beta2/SearchReadsResponse/alignments/alignment": alignment -"/genomics:v1beta2/SearchReadsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchReferenceSetsRequest": search_reference_sets_request -"/genomics:v1beta2/SearchReferenceSetsRequest/accessions": accessions -"/genomics:v1beta2/SearchReferenceSetsRequest/accessions/accession": accession -"/genomics:v1beta2/SearchReferenceSetsRequest/assemblyId": assembly_id -"/genomics:v1beta2/SearchReferenceSetsRequest/md5checksums": md5checksums -"/genomics:v1beta2/SearchReferenceSetsRequest/md5checksums/md5checksum": md5checksum -"/genomics:v1beta2/SearchReferenceSetsRequest/pageSize": page_size -"/genomics:v1beta2/SearchReferenceSetsRequest/pageToken": page_token -"/genomics:v1beta2/SearchReferenceSetsResponse": search_reference_sets_response -"/genomics:v1beta2/SearchReferenceSetsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchReferenceSetsResponse/referenceSets": reference_sets -"/genomics:v1beta2/SearchReferenceSetsResponse/referenceSets/reference_set": reference_set -"/genomics:v1beta2/SearchReferencesRequest": search_references_request -"/genomics:v1beta2/SearchReferencesRequest/accessions": accessions -"/genomics:v1beta2/SearchReferencesRequest/accessions/accession": accession -"/genomics:v1beta2/SearchReferencesRequest/md5checksums": md5checksums -"/genomics:v1beta2/SearchReferencesRequest/md5checksums/md5checksum": md5checksum -"/genomics:v1beta2/SearchReferencesRequest/pageSize": page_size -"/genomics:v1beta2/SearchReferencesRequest/pageToken": page_token -"/genomics:v1beta2/SearchReferencesRequest/referenceSetId": reference_set_id -"/genomics:v1beta2/SearchReferencesResponse": search_references_response -"/genomics:v1beta2/SearchReferencesResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchReferencesResponse/references": references -"/genomics:v1beta2/SearchReferencesResponse/references/reference": reference -"/genomics:v1beta2/SearchVariantSetsRequest": search_variant_sets_request -"/genomics:v1beta2/SearchVariantSetsRequest/datasetIds": dataset_ids -"/genomics:v1beta2/SearchVariantSetsRequest/datasetIds/dataset_id": dataset_id -"/genomics:v1beta2/SearchVariantSetsRequest/pageSize": page_size -"/genomics:v1beta2/SearchVariantSetsRequest/pageToken": page_token -"/genomics:v1beta2/SearchVariantSetsResponse": search_variant_sets_response -"/genomics:v1beta2/SearchVariantSetsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchVariantSetsResponse/variantSets": variant_sets -"/genomics:v1beta2/SearchVariantSetsResponse/variantSets/variant_set": variant_set -"/genomics:v1beta2/SearchVariantsRequest": search_variants_request -"/genomics:v1beta2/SearchVariantsRequest/callSetIds": call_set_ids -"/genomics:v1beta2/SearchVariantsRequest/callSetIds/call_set_id": call_set_id -"/genomics:v1beta2/SearchVariantsRequest/end": end -"/genomics:v1beta2/SearchVariantsRequest/maxCalls": max_calls -"/genomics:v1beta2/SearchVariantsRequest/pageSize": page_size -"/genomics:v1beta2/SearchVariantsRequest/pageToken": page_token -"/genomics:v1beta2/SearchVariantsRequest/referenceName": reference_name -"/genomics:v1beta2/SearchVariantsRequest/start": start -"/genomics:v1beta2/SearchVariantsRequest/variantName": variant_name -"/genomics:v1beta2/SearchVariantsRequest/variantSetIds": variant_set_ids -"/genomics:v1beta2/SearchVariantsRequest/variantSetIds/variant_set_id": variant_set_id -"/genomics:v1beta2/SearchVariantsResponse": search_variants_response -"/genomics:v1beta2/SearchVariantsResponse/nextPageToken": next_page_token -"/genomics:v1beta2/SearchVariantsResponse/variants": variants -"/genomics:v1beta2/SearchVariantsResponse/variants/variant": variant -"/genomics:v1beta2/Transcript": transcript -"/genomics:v1beta2/Transcript/codingSequence": coding_sequence -"/genomics:v1beta2/Transcript/exons": exons -"/genomics:v1beta2/Transcript/exons/exon": exon -"/genomics:v1beta2/Transcript/geneId": gene_id -"/genomics:v1beta2/TranscriptCodingSequence": transcript_coding_sequence -"/genomics:v1beta2/TranscriptCodingSequence/end": end -"/genomics:v1beta2/TranscriptCodingSequence/start": start -"/genomics:v1beta2/TranscriptExon": transcript_exon -"/genomics:v1beta2/TranscriptExon/end": end -"/genomics:v1beta2/TranscriptExon/frame": frame -"/genomics:v1beta2/TranscriptExon/start": start -"/genomics:v1beta2/Variant": variant -"/genomics:v1beta2/Variant/alternateBases": alternate_bases -"/genomics:v1beta2/Variant/alternateBases/alternate_basis": alternate_basis -"/genomics:v1beta2/Variant/calls": calls -"/genomics:v1beta2/Variant/calls/call": call -"/genomics:v1beta2/Variant/created": created -"/genomics:v1beta2/Variant/end": end -"/genomics:v1beta2/Variant/filter": filter -"/genomics:v1beta2/Variant/filter/filter": filter -"/genomics:v1beta2/Variant/id": id -"/genomics:v1beta2/Variant/info": info -"/genomics:v1beta2/Variant/info/info": info -"/genomics:v1beta2/Variant/info/info/info": info -"/genomics:v1beta2/Variant/names": names -"/genomics:v1beta2/Variant/names/name": name -"/genomics:v1beta2/Variant/quality": quality -"/genomics:v1beta2/Variant/referenceBases": reference_bases -"/genomics:v1beta2/Variant/referenceName": reference_name -"/genomics:v1beta2/Variant/start": start -"/genomics:v1beta2/Variant/variantSetId": variant_set_id -"/genomics:v1beta2/VariantAnnotation": variant_annotation -"/genomics:v1beta2/VariantAnnotation/alternateBases": alternate_bases -"/genomics:v1beta2/VariantAnnotation/clinicalSignificance": clinical_significance -"/genomics:v1beta2/VariantAnnotation/conditions": conditions -"/genomics:v1beta2/VariantAnnotation/conditions/condition": condition -"/genomics:v1beta2/VariantAnnotation/effect": effect -"/genomics:v1beta2/VariantAnnotation/geneId": gene_id -"/genomics:v1beta2/VariantAnnotation/transcriptIds": transcript_ids -"/genomics:v1beta2/VariantAnnotation/transcriptIds/transcript_id": transcript_id -"/genomics:v1beta2/VariantAnnotation/type": type -"/genomics:v1beta2/VariantAnnotationCondition": variant_annotation_condition -"/genomics:v1beta2/VariantAnnotationCondition/conceptId": concept_id -"/genomics:v1beta2/VariantAnnotationCondition/externalIds": external_ids -"/genomics:v1beta2/VariantAnnotationCondition/externalIds/external_id": external_id -"/genomics:v1beta2/VariantAnnotationCondition/names": names -"/genomics:v1beta2/VariantAnnotationCondition/names/name": name -"/genomics:v1beta2/VariantAnnotationCondition/omimId": omim_id -"/genomics:v1beta2/VariantSet": variant_set -"/genomics:v1beta2/VariantSet/datasetId": dataset_id -"/genomics:v1beta2/VariantSet/id": id -"/genomics:v1beta2/VariantSet/metadata": metadata -"/genomics:v1beta2/VariantSet/metadata/metadatum": metadatum -"/genomics:v1beta2/VariantSet/referenceBounds": reference_bounds -"/genomics:v1beta2/VariantSet/referenceBounds/reference_bound": reference_bound "/gmail:v1/fields": fields "/gmail:v1/key": key "/gmail:v1/quotaUser": quota_user @@ -14844,6 +14581,113 @@ "/groupssettings:v1/Groups/whoCanPostMessage": who_can_post_message "/groupssettings:v1/Groups/whoCanViewGroup": who_can_view_group "/groupssettings:v1/Groups/whoCanViewMembership": who_can_view_membership +"/classroom:v1beta1/fields": fields +"/classroom:v1beta1/key": key +"/classroom:v1beta1/quotaUser": quota_user +"/classroom:v1beta1/classroom.courses.create": create_course +"/classroom:v1beta1/classroom.courses.get": get_course +"/classroom:v1beta1/classroom.courses.get/id": id +"/classroom:v1beta1/classroom.courses.update": update_course +"/classroom:v1beta1/classroom.courses.update/id": id +"/classroom:v1beta1/classroom.courses.patch": patch_course +"/classroom:v1beta1/classroom.courses.patch/id": id +"/classroom:v1beta1/classroom.courses.patch/updateMask": update_mask +"/classroom:v1beta1/classroom.courses.delete": delete_course +"/classroom:v1beta1/classroom.courses.delete/id": id +"/classroom:v1beta1/classroom.courses.list": list_courses +"/classroom:v1beta1/classroom.courses.list/studentId": student_id +"/classroom:v1beta1/classroom.courses.list/teacherId": teacher_id +"/classroom:v1beta1/classroom.courses.list/pageSize": page_size +"/classroom:v1beta1/classroom.courses.list/pageToken": page_token +"/classroom:v1beta1/classroom.courses.aliases.create": create_course_alias +"/classroom:v1beta1/classroom.courses.aliases.create/courseId": course_id +"/classroom:v1beta1/classroom.courses.aliases.delete": delete_course_alias +"/classroom:v1beta1/classroom.courses.aliases.delete/courseId": course_id +"/classroom:v1beta1/classroom.courses.aliases.delete/alias": alias_ +"/classroom:v1beta1/classroom.courses.aliases.list": list_course_aliases +"/classroom:v1beta1/classroom.courses.aliases.list/courseId": course_id +"/classroom:v1beta1/classroom.courses.aliases.list/pageSize": page_size +"/classroom:v1beta1/classroom.courses.aliases.list/pageToken": page_token +"/classroom:v1beta1/classroom.courses.teachers.create": create_course_teacher +"/classroom:v1beta1/classroom.courses.teachers.create/courseId": course_id +"/classroom:v1beta1/classroom.courses.teachers.get": get_course_teacher +"/classroom:v1beta1/classroom.courses.teachers.get/courseId": course_id +"/classroom:v1beta1/classroom.courses.teachers.get/userId": user_id +"/classroom:v1beta1/classroom.courses.teachers.delete": delete_course_teacher +"/classroom:v1beta1/classroom.courses.teachers.delete/courseId": course_id +"/classroom:v1beta1/classroom.courses.teachers.delete/userId": user_id +"/classroom:v1beta1/classroom.courses.teachers.list": list_course_teachers +"/classroom:v1beta1/classroom.courses.teachers.list/courseId": course_id +"/classroom:v1beta1/classroom.courses.teachers.list/pageSize": page_size +"/classroom:v1beta1/classroom.courses.teachers.list/pageToken": page_token +"/classroom:v1beta1/classroom.courses.students.create": create_course_student +"/classroom:v1beta1/classroom.courses.students.create/courseId": course_id +"/classroom:v1beta1/classroom.courses.students.create/enrollmentCode": enrollment_code +"/classroom:v1beta1/classroom.courses.students.get": get_course_student +"/classroom:v1beta1/classroom.courses.students.get/courseId": course_id +"/classroom:v1beta1/classroom.courses.students.get/userId": user_id +"/classroom:v1beta1/classroom.courses.students.delete": delete_course_student +"/classroom:v1beta1/classroom.courses.students.delete/courseId": course_id +"/classroom:v1beta1/classroom.courses.students.delete/userId": user_id +"/classroom:v1beta1/classroom.courses.students.list": list_course_students +"/classroom:v1beta1/classroom.courses.students.list/courseId": course_id +"/classroom:v1beta1/classroom.courses.students.list/pageSize": page_size +"/classroom:v1beta1/classroom.courses.students.list/pageToken": page_token +"/classroom:v1beta1/classroom.userProfiles.get": get_user_profile +"/classroom:v1beta1/classroom.userProfiles.get/userId": user_id +"/classroom:v1beta1/Course": course +"/classroom:v1beta1/Course/id": id +"/classroom:v1beta1/Course/name": name +"/classroom:v1beta1/Course/section": section +"/classroom:v1beta1/Course/descriptionHeading": description_heading +"/classroom:v1beta1/Course/description": description +"/classroom:v1beta1/Course/room": room +"/classroom:v1beta1/Course/primaryTeacherId": primary_teacher_id +"/classroom:v1beta1/Course/creationTime": creation_time +"/classroom:v1beta1/Course/updateTime": update_time +"/classroom:v1beta1/Course/enrollmentCode": enrollment_code +"/classroom:v1beta1/Course/courseState": course_state +"/classroom:v1beta1/Course/webLink": web_link +"/classroom:v1beta1/Empty": empty +"/classroom:v1beta1/ListCoursesResponse": list_courses_response +"/classroom:v1beta1/ListCoursesResponse/courses": courses +"/classroom:v1beta1/ListCoursesResponse/courses/course": course +"/classroom:v1beta1/ListCoursesResponse/nextPageToken": next_page_token +"/classroom:v1beta1/CourseAlias": course_alias +"/classroom:v1beta1/CourseAlias/alias": alias +"/classroom:v1beta1/ListCourseAliasesResponse": list_course_aliases_response +"/classroom:v1beta1/ListCourseAliasesResponse/aliases": aliases +"/classroom:v1beta1/ListCourseAliasesResponse/aliases/alias": alias +"/classroom:v1beta1/ListCourseAliasesResponse/nextPageToken": next_page_token +"/classroom:v1beta1/UserProfile": user_profile +"/classroom:v1beta1/UserProfile/id": id +"/classroom:v1beta1/UserProfile/name": name +"/classroom:v1beta1/UserProfile/emailAddress": email_address +"/classroom:v1beta1/UserProfile/photoUrl": photo_url +"/classroom:v1beta1/UserProfile/permissions": permissions +"/classroom:v1beta1/UserProfile/permissions/permission": permission +"/classroom:v1beta1/Name": name +"/classroom:v1beta1/Name/givenName": given_name +"/classroom:v1beta1/Name/familyName": family_name +"/classroom:v1beta1/Name/fullName": full_name +"/classroom:v1beta1/GlobalPermission": global_permission +"/classroom:v1beta1/GlobalPermission/permission": permission +"/classroom:v1beta1/Teacher": teacher +"/classroom:v1beta1/Teacher/courseId": course_id +"/classroom:v1beta1/Teacher/userId": user_id +"/classroom:v1beta1/Teacher/profile": profile +"/classroom:v1beta1/ListTeachersResponse": list_teachers_response +"/classroom:v1beta1/ListTeachersResponse/teachers": teachers +"/classroom:v1beta1/ListTeachersResponse/teachers/teacher": teacher +"/classroom:v1beta1/ListTeachersResponse/nextPageToken": next_page_token +"/classroom:v1beta1/Student": student +"/classroom:v1beta1/Student/courseId": course_id +"/classroom:v1beta1/Student/userId": user_id +"/classroom:v1beta1/Student/profile": profile +"/classroom:v1beta1/ListStudentsResponse": list_students_response +"/classroom:v1beta1/ListStudentsResponse/students": students +"/classroom:v1beta1/ListStudentsResponse/students/student": student +"/classroom:v1beta1/ListStudentsResponse/nextPageToken": next_page_token "/cloudresourcemanager:v1beta1/fields": fields "/cloudresourcemanager:v1beta1/key": key "/cloudresourcemanager:v1beta1/quotaUser": quota_user @@ -14873,6 +14717,481 @@ "/cloudresourcemanager:v1beta1/ListProjectsResponse/projects/project": project "/cloudresourcemanager:v1beta1/ListProjectsResponse/nextPageToken": next_page_token "/cloudresourcemanager:v1beta1/Empty": empty +"/container:v1/fields": fields +"/container:v1/key": key +"/container:v1/quotaUser": quota_user +"/container:v1/container.projects.zones.clusters.list/projectId": project_id +"/container:v1/container.projects.zones.clusters.list/zone": zone +"/container:v1/container.projects.zones.clusters.get/projectId": project_id +"/container:v1/container.projects.zones.clusters.get/zone": zone +"/container:v1/container.projects.zones.clusters.get/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.create/projectId": project_id +"/container:v1/container.projects.zones.clusters.create/zone": zone +"/container:v1/container.projects.zones.clusters.update": update_cluster +"/container:v1/container.projects.zones.clusters.update/projectId": project_id +"/container:v1/container.projects.zones.clusters.update/zone": zone +"/container:v1/container.projects.zones.clusters.update/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.delete/projectId": project_id +"/container:v1/container.projects.zones.clusters.delete/zone": zone +"/container:v1/container.projects.zones.clusters.delete/clusterId": cluster_id +"/container:v1/container.projects.zones.operations.list/projectId": project_id +"/container:v1/container.projects.zones.operations.list/zone": zone +"/container:v1/container.projects.zones.operations.get/projectId": project_id +"/container:v1/container.projects.zones.operations.get/zone": zone +"/container:v1/container.projects.zones.operations.get/operationId": operation_id +"/container:v1/ListClustersResponse": list_clusters_response +"/container:v1/ListClustersResponse/clusters": clusters +"/container:v1/ListClustersResponse/clusters/cluster": cluster +"/container:v1/Cluster": cluster +"/container:v1/Cluster/name": name +"/container:v1/Cluster/description": description +"/container:v1/Cluster/initialNodeCount": initial_node_count +"/container:v1/Cluster/nodeConfig": node_config +"/container:v1/Cluster/masterAuth": master_auth +"/container:v1/Cluster/loggingService": logging_service +"/container:v1/Cluster/monitoringService": monitoring_service +"/container:v1/Cluster/network": network +"/container:v1/Cluster/clusterIpv4Cidr": cluster_ipv4_cidr +"/container:v1/Cluster/selfLink": self_link +"/container:v1/Cluster/zone": zone +"/container:v1/Cluster/endpoint": endpoint +"/container:v1/Cluster/initialClusterVersion": initial_cluster_version +"/container:v1/Cluster/currentMasterVersion": current_master_version +"/container:v1/Cluster/currentNodeVersion": current_node_version +"/container:v1/Cluster/createTime": create_time +"/container:v1/Cluster/status": status +"/container:v1/Cluster/statusMessage": status_message +"/container:v1/Cluster/nodeIpv4CidrSize": node_ipv4_cidr_size +"/container:v1/Cluster/servicesIpv4Cidr": services_ipv4_cidr +"/container:v1/Cluster/instanceGroupUrls": instance_group_urls +"/container:v1/Cluster/instanceGroupUrls/instance_group_url": instance_group_url +"/container:v1/NodeConfig": node_config +"/container:v1/NodeConfig/machineType": machine_type +"/container:v1/NodeConfig/diskSizeGb": disk_size_gb +"/container:v1/NodeConfig/oauthScopes": oauth_scopes +"/container:v1/NodeConfig/oauthScopes/oauth_scope": oauth_scope +"/container:v1/MasterAuth": master_auth +"/container:v1/MasterAuth/username": username +"/container:v1/MasterAuth/password": password +"/container:v1/MasterAuth/clusterCaCertificate": cluster_ca_certificate +"/container:v1/MasterAuth/clientCertificate": client_certificate +"/container:v1/MasterAuth/clientKey": client_key +"/container:v1/CreateClusterRequest": create_cluster_request +"/container:v1/CreateClusterRequest/cluster": cluster +"/container:v1/Operation": operation +"/container:v1/Operation/name": name +"/container:v1/Operation/zone": zone +"/container:v1/Operation/operationType": operation_type +"/container:v1/Operation/status": status +"/container:v1/Operation/statusMessage": status_message +"/container:v1/Operation/selfLink": self_link +"/container:v1/Operation/targetLink": target_link +"/container:v1/UpdateClusterRequest": update_cluster_request +"/container:v1/UpdateClusterRequest/update": update +"/container:v1/ClusterUpdate": cluster_update +"/container:v1/ClusterUpdate/desiredNodeVersion": desired_node_version +"/container:v1/ListOperationsResponse": list_operations_response +"/container:v1/ListOperationsResponse/operations": operations +"/container:v1/ListOperationsResponse/operations/operation": operation +"/genomics:v1/fields": fields +"/genomics:v1/key": key +"/genomics:v1/quotaUser": quota_user +"/genomics:v1/genomics.datasets.list": list_datasets +"/genomics:v1/genomics.datasets.list/projectId": project_id +"/genomics:v1/genomics.datasets.list/pageSize": page_size +"/genomics:v1/genomics.datasets.list/pageToken": page_token +"/genomics:v1/genomics.datasets.create": create_dataset +"/genomics:v1/genomics.datasets.get": get_dataset +"/genomics:v1/genomics.datasets.get/datasetId": dataset_id +"/genomics:v1/genomics.datasets.patch": patch_dataset +"/genomics:v1/genomics.datasets.patch/datasetId": dataset_id +"/genomics:v1/genomics.datasets.patch/updateMask": update_mask +"/genomics:v1/genomics.datasets.delete": delete_dataset +"/genomics:v1/genomics.datasets.delete/datasetId": dataset_id +"/genomics:v1/genomics.datasets.undelete": undelete_dataset +"/genomics:v1/genomics.datasets.undelete/datasetId": dataset_id +"/genomics:v1/genomics.operations.get": get_operation +"/genomics:v1/genomics.operations.get/name": name +"/genomics:v1/genomics.operations.list": list_operations +"/genomics:v1/genomics.operations.list/name": name +"/genomics:v1/genomics.operations.list/filter": filter +"/genomics:v1/genomics.operations.list/pageSize": page_size +"/genomics:v1/genomics.operations.list/pageToken": page_token +"/genomics:v1/genomics.operations.cancel": cancel_operation +"/genomics:v1/genomics.operations.cancel/name": name +"/genomics:v1/genomics.operations.delete": delete_operation +"/genomics:v1/genomics.operations.delete/name": name +"/genomics:v1/genomics.readgroupsets.export/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.patch/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.patch/updateMask": update_mask +"/genomics:v1/genomics.readgroupsets.delete/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.get/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/referenceName": reference_name +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/start": start +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/end": end_ +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/targetBucketWidth": target_bucket_width +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageToken": page_token +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageSize": page_size +"/genomics:v1/genomics.reads.search": search_reads +"/genomics:v1/genomics.referencesets.search": search_reference_sets +"/genomics:v1/genomics.referencesets.get/referenceSetId": reference_set_id +"/genomics:v1/genomics.references.search": search_references +"/genomics:v1/genomics.references.get": get_reference +"/genomics:v1/genomics.references.get/referenceId": reference_id +"/genomics:v1/genomics.references.bases.list": list_reference_bases +"/genomics:v1/genomics.references.bases.list/referenceId": reference_id +"/genomics:v1/genomics.references.bases.list/pageToken": page_token +"/genomics:v1/genomics.references.bases.list/pageSize": page_size +"/genomics:v1/genomics.variants.import": import_variants +"/genomics:v1/genomics.variants.search": search_variants +"/genomics:v1/genomics.variants.create": create_variant +"/genomics:v1/genomics.variants.patch": patch_variant +"/genomics:v1/genomics.variants.patch/variantId": variant_id +"/genomics:v1/genomics.variants.patch/updateMask": update_mask +"/genomics:v1/genomics.variants.delete": delete_variant +"/genomics:v1/genomics.variants.delete/variantId": variant_id +"/genomics:v1/genomics.variants.get": get_variant +"/genomics:v1/genomics.variants.get/variantId": variant_id +"/genomics:v1/genomics.variants.merge": merge_variants +"/genomics:v1/genomics.variantsets.create": create_variantset +"/genomics:v1/genomics.variantsets.export": export_variant_set +"/genomics:v1/genomics.variantsets.export/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.get": get_variantset +"/genomics:v1/genomics.variantsets.get/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.search": search_variant_sets +"/genomics:v1/genomics.variantsets.delete": delete_variantset +"/genomics:v1/genomics.variantsets.delete/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.patch": patch_variantset +"/genomics:v1/genomics.variantsets.patch/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.patch/updateMask": update_mask +"/genomics:v1/genomics.callsets.patch/callSetId": call_set_id +"/genomics:v1/genomics.callsets.patch/updateMask": update_mask +"/genomics:v1/genomics.callsets.delete/callSetId": call_set_id +"/genomics:v1/genomics.callsets.get/callSetId": call_set_id +"/genomics:v1/ListDatasetsResponse": list_datasets_response +"/genomics:v1/ListDatasetsResponse/datasets": datasets +"/genomics:v1/ListDatasetsResponse/datasets/dataset": dataset +"/genomics:v1/ListDatasetsResponse/nextPageToken": next_page_token +"/genomics:v1/Dataset": dataset +"/genomics:v1/Dataset/id": id +"/genomics:v1/Dataset/projectId": project_id +"/genomics:v1/Dataset/name": name +"/genomics:v1/Dataset/createTime": create_time +"/genomics:v1/Empty": empty +"/genomics:v1/UndeleteDatasetRequest": undelete_dataset_request +"/genomics:v1/Operation": operation +"/genomics:v1/Operation/name": name +"/genomics:v1/Operation/metadata": metadata +"/genomics:v1/Operation/metadata/metadatum": metadatum +"/genomics:v1/Operation/done": done +"/genomics:v1/Operation/error": error +"/genomics:v1/Operation/response": response +"/genomics:v1/Operation/response/response": response +"/genomics:v1/Status": status +"/genomics:v1/Status/code": code +"/genomics:v1/Status/message": message +"/genomics:v1/Status/details": details +"/genomics:v1/Status/details/detail": detail +"/genomics:v1/Status/details/detail/detail": detail +"/genomics:v1/ListOperationsResponse": list_operations_response +"/genomics:v1/ListOperationsResponse/operations": operations +"/genomics:v1/ListOperationsResponse/operations/operation": operation +"/genomics:v1/ListOperationsResponse/nextPageToken": next_page_token +"/genomics:v1/CancelOperationRequest": cancel_operation_request +"/genomics:v1/ImportReadGroupSetsRequest": import_read_group_sets_request +"/genomics:v1/ImportReadGroupSetsRequest/datasetId": dataset_id +"/genomics:v1/ImportReadGroupSetsRequest/referenceSetId": reference_set_id +"/genomics:v1/ImportReadGroupSetsRequest/sourceUris": source_uris +"/genomics:v1/ImportReadGroupSetsRequest/sourceUris/source_uri": source_uri +"/genomics:v1/ImportReadGroupSetsRequest/partitionStrategy": partition_strategy +"/genomics:v1/ExportReadGroupSetRequest": export_read_group_set_request +"/genomics:v1/ExportReadGroupSetRequest/projectId": project_id +"/genomics:v1/ExportReadGroupSetRequest/exportUri": export_uri +"/genomics:v1/ExportReadGroupSetRequest/referenceNames": reference_names +"/genomics:v1/ExportReadGroupSetRequest/referenceNames/reference_name": reference_name +"/genomics:v1/SearchReadGroupSetsRequest": search_read_group_sets_request +"/genomics:v1/SearchReadGroupSetsRequest/datasetIds": dataset_ids +"/genomics:v1/SearchReadGroupSetsRequest/datasetIds/dataset_id": dataset_id +"/genomics:v1/SearchReadGroupSetsRequest/name": name +"/genomics:v1/SearchReadGroupSetsRequest/pageToken": page_token +"/genomics:v1/SearchReadGroupSetsRequest/pageSize": page_size +"/genomics:v1/SearchReadGroupSetsResponse": search_read_group_sets_response +"/genomics:v1/SearchReadGroupSetsResponse/readGroupSets": read_group_sets +"/genomics:v1/SearchReadGroupSetsResponse/readGroupSets/read_group_set": read_group_set +"/genomics:v1/SearchReadGroupSetsResponse/nextPageToken": next_page_token +"/genomics:v1/ReadGroupSet": read_group_set +"/genomics:v1/ReadGroupSet/id": id +"/genomics:v1/ReadGroupSet/datasetId": dataset_id +"/genomics:v1/ReadGroupSet/referenceSetId": reference_set_id +"/genomics:v1/ReadGroupSet/name": name +"/genomics:v1/ReadGroupSet/filename": filename +"/genomics:v1/ReadGroupSet/readGroups": read_groups +"/genomics:v1/ReadGroupSet/readGroups/read_group": read_group +"/genomics:v1/ReadGroupSet/info": info +"/genomics:v1/ReadGroupSet/info/info": info +"/genomics:v1/ReadGroupSet/info/info/info": info +"/genomics:v1/ReadGroup": read_group +"/genomics:v1/ReadGroup/id": id +"/genomics:v1/ReadGroup/datasetId": dataset_id +"/genomics:v1/ReadGroup/name": name +"/genomics:v1/ReadGroup/description": description +"/genomics:v1/ReadGroup/sampleId": sample_id +"/genomics:v1/ReadGroup/experiment": experiment +"/genomics:v1/ReadGroup/predictedInsertSize": predicted_insert_size +"/genomics:v1/ReadGroup/programs": programs +"/genomics:v1/ReadGroup/programs/program": program +"/genomics:v1/ReadGroup/referenceSetId": reference_set_id +"/genomics:v1/ReadGroup/info": info +"/genomics:v1/ReadGroup/info/info": info +"/genomics:v1/ReadGroup/info/info/info": info +"/genomics:v1/Experiment": experiment +"/genomics:v1/Experiment/libraryId": library_id +"/genomics:v1/Experiment/platformUnit": platform_unit +"/genomics:v1/Experiment/sequencingCenter": sequencing_center +"/genomics:v1/Experiment/instrumentModel": instrument_model +"/genomics:v1/Program": program +"/genomics:v1/Program/commandLine": command_line +"/genomics:v1/Program/id": id +"/genomics:v1/Program/name": name +"/genomics:v1/Program/prevProgramId": prev_program_id +"/genomics:v1/Program/version": version +"/genomics:v1/ListCoverageBucketsResponse": list_coverage_buckets_response +"/genomics:v1/ListCoverageBucketsResponse/bucketWidth": bucket_width +"/genomics:v1/ListCoverageBucketsResponse/coverageBuckets": coverage_buckets +"/genomics:v1/ListCoverageBucketsResponse/coverageBuckets/coverage_bucket": coverage_bucket +"/genomics:v1/ListCoverageBucketsResponse/nextPageToken": next_page_token +"/genomics:v1/CoverageBucket": coverage_bucket +"/genomics:v1/CoverageBucket/range": range +"/genomics:v1/CoverageBucket/meanCoverage": mean_coverage +"/genomics:v1/Range": range +"/genomics:v1/Range/referenceName": reference_name +"/genomics:v1/Range/start": start +"/genomics:v1/Range/end": end +"/genomics:v1/SearchReadsRequest": search_reads_request +"/genomics:v1/SearchReadsRequest/readGroupSetIds": read_group_set_ids +"/genomics:v1/SearchReadsRequest/readGroupSetIds/read_group_set_id": read_group_set_id +"/genomics:v1/SearchReadsRequest/readGroupIds": read_group_ids +"/genomics:v1/SearchReadsRequest/readGroupIds/read_group_id": read_group_id +"/genomics:v1/SearchReadsRequest/referenceName": reference_name +"/genomics:v1/SearchReadsRequest/start": start +"/genomics:v1/SearchReadsRequest/end": end +"/genomics:v1/SearchReadsRequest/pageToken": page_token +"/genomics:v1/SearchReadsRequest/pageSize": page_size +"/genomics:v1/SearchReadsResponse": search_reads_response +"/genomics:v1/SearchReadsResponse/alignments": alignments +"/genomics:v1/SearchReadsResponse/alignments/alignment": alignment +"/genomics:v1/SearchReadsResponse/nextPageToken": next_page_token +"/genomics:v1/Read": read +"/genomics:v1/Read/id": id +"/genomics:v1/Read/readGroupId": read_group_id +"/genomics:v1/Read/readGroupSetId": read_group_set_id +"/genomics:v1/Read/fragmentName": fragment_name +"/genomics:v1/Read/properPlacement": proper_placement +"/genomics:v1/Read/duplicateFragment": duplicate_fragment +"/genomics:v1/Read/fragmentLength": fragment_length +"/genomics:v1/Read/readNumber": read_number +"/genomics:v1/Read/numberReads": number_reads +"/genomics:v1/Read/failedVendorQualityChecks": failed_vendor_quality_checks +"/genomics:v1/Read/alignment": alignment +"/genomics:v1/Read/secondaryAlignment": secondary_alignment +"/genomics:v1/Read/supplementaryAlignment": supplementary_alignment +"/genomics:v1/Read/alignedSequence": aligned_sequence +"/genomics:v1/Read/alignedQuality": aligned_quality +"/genomics:v1/Read/alignedQuality/aligned_quality": aligned_quality +"/genomics:v1/Read/nextMatePosition": next_mate_position +"/genomics:v1/Read/info": info +"/genomics:v1/Read/info/info": info +"/genomics:v1/Read/info/info/info": info +"/genomics:v1/LinearAlignment": linear_alignment +"/genomics:v1/LinearAlignment/position": position +"/genomics:v1/LinearAlignment/mappingQuality": mapping_quality +"/genomics:v1/LinearAlignment/cigar": cigar +"/genomics:v1/LinearAlignment/cigar/cigar": cigar +"/genomics:v1/Position": position +"/genomics:v1/Position/referenceName": reference_name +"/genomics:v1/Position/position": position +"/genomics:v1/Position/reverseStrand": reverse_strand +"/genomics:v1/CigarUnit": cigar_unit +"/genomics:v1/CigarUnit/operation": operation +"/genomics:v1/CigarUnit/operationLength": operation_length +"/genomics:v1/CigarUnit/referenceSequence": reference_sequence +"/genomics:v1/SearchReferenceSetsRequest": search_reference_sets_request +"/genomics:v1/SearchReferenceSetsRequest/md5checksums": md5checksums +"/genomics:v1/SearchReferenceSetsRequest/md5checksums/md5checksum": md5checksum +"/genomics:v1/SearchReferenceSetsRequest/accessions": accessions +"/genomics:v1/SearchReferenceSetsRequest/accessions/accession": accession +"/genomics:v1/SearchReferenceSetsRequest/assemblyId": assembly_id +"/genomics:v1/SearchReferenceSetsRequest/pageToken": page_token +"/genomics:v1/SearchReferenceSetsRequest/pageSize": page_size +"/genomics:v1/SearchReferenceSetsResponse": search_reference_sets_response +"/genomics:v1/SearchReferenceSetsResponse/referenceSets": reference_sets +"/genomics:v1/SearchReferenceSetsResponse/referenceSets/reference_set": reference_set +"/genomics:v1/SearchReferenceSetsResponse/nextPageToken": next_page_token +"/genomics:v1/ReferenceSet": reference_set +"/genomics:v1/ReferenceSet/id": id +"/genomics:v1/ReferenceSet/referenceIds": reference_ids +"/genomics:v1/ReferenceSet/referenceIds/reference_id": reference_id +"/genomics:v1/ReferenceSet/md5checksum": md5checksum +"/genomics:v1/ReferenceSet/ncbiTaxonId": ncbi_taxon_id +"/genomics:v1/ReferenceSet/description": description +"/genomics:v1/ReferenceSet/assemblyId": assembly_id +"/genomics:v1/ReferenceSet/sourceUri": source_uri +"/genomics:v1/ReferenceSet/sourceAccessions": source_accessions +"/genomics:v1/ReferenceSet/sourceAccessions/source_accession": source_accession +"/genomics:v1/SearchReferencesRequest": search_references_request +"/genomics:v1/SearchReferencesRequest/md5checksums": md5checksums +"/genomics:v1/SearchReferencesRequest/md5checksums/md5checksum": md5checksum +"/genomics:v1/SearchReferencesRequest/accessions": accessions +"/genomics:v1/SearchReferencesRequest/accessions/accession": accession +"/genomics:v1/SearchReferencesRequest/referenceSetId": reference_set_id +"/genomics:v1/SearchReferencesRequest/pageToken": page_token +"/genomics:v1/SearchReferencesRequest/pageSize": page_size +"/genomics:v1/SearchReferencesResponse": search_references_response +"/genomics:v1/SearchReferencesResponse/references": references +"/genomics:v1/SearchReferencesResponse/references/reference": reference +"/genomics:v1/SearchReferencesResponse/nextPageToken": next_page_token +"/genomics:v1/Reference": reference +"/genomics:v1/Reference/id": id +"/genomics:v1/Reference/length": length +"/genomics:v1/Reference/md5checksum": md5checksum +"/genomics:v1/Reference/name": name +"/genomics:v1/Reference/sourceUri": source_uri +"/genomics:v1/Reference/sourceAccessions": source_accessions +"/genomics:v1/Reference/sourceAccessions/source_accession": source_accession +"/genomics:v1/Reference/ncbiTaxonId": ncbi_taxon_id +"/genomics:v1/ListBasesResponse": list_bases_response +"/genomics:v1/ListBasesResponse/offset": offset +"/genomics:v1/ListBasesResponse/sequence": sequence +"/genomics:v1/ListBasesResponse/nextPageToken": next_page_token +"/genomics:v1/ImportVariantsRequest": import_variants_request +"/genomics:v1/ImportVariantsRequest/variantSetId": variant_set_id +"/genomics:v1/ImportVariantsRequest/sourceUris": source_uris +"/genomics:v1/ImportVariantsRequest/sourceUris/source_uri": source_uri +"/genomics:v1/ImportVariantsRequest/format": format +"/genomics:v1/ImportVariantsRequest/normalizeReferenceNames": normalize_reference_names +"/genomics:v1/VariantSet": variant_set +"/genomics:v1/VariantSet/datasetId": dataset_id +"/genomics:v1/VariantSet/id": id +"/genomics:v1/VariantSet/referenceBounds": reference_bounds +"/genomics:v1/VariantSet/referenceBounds/reference_bound": reference_bound +"/genomics:v1/VariantSet/metadata": metadata +"/genomics:v1/VariantSet/metadata/metadatum": metadatum +"/genomics:v1/ReferenceBound": reference_bound +"/genomics:v1/ReferenceBound/referenceName": reference_name +"/genomics:v1/ReferenceBound/upperBound": upper_bound +"/genomics:v1/VariantSetMetadata": variant_set_metadata +"/genomics:v1/VariantSetMetadata/key": key +"/genomics:v1/VariantSetMetadata/value": value +"/genomics:v1/VariantSetMetadata/id": id +"/genomics:v1/VariantSetMetadata/type": type +"/genomics:v1/VariantSetMetadata/number": number +"/genomics:v1/VariantSetMetadata/description": description +"/genomics:v1/VariantSetMetadata/info": info +"/genomics:v1/VariantSetMetadata/info/info": info +"/genomics:v1/VariantSetMetadata/info/info/info": info +"/genomics:v1/ExportVariantSetRequest": export_variant_set_request +"/genomics:v1/ExportVariantSetRequest/callSetIds": call_set_ids +"/genomics:v1/ExportVariantSetRequest/callSetIds/call_set_id": call_set_id +"/genomics:v1/ExportVariantSetRequest/projectId": project_id +"/genomics:v1/ExportVariantSetRequest/format": format +"/genomics:v1/ExportVariantSetRequest/bigqueryDataset": bigquery_dataset +"/genomics:v1/ExportVariantSetRequest/bigqueryTable": bigquery_table +"/genomics:v1/SearchVariantSetsRequest": search_variant_sets_request +"/genomics:v1/SearchVariantSetsRequest/datasetIds": dataset_ids +"/genomics:v1/SearchVariantSetsRequest/datasetIds/dataset_id": dataset_id +"/genomics:v1/SearchVariantSetsRequest/pageToken": page_token +"/genomics:v1/SearchVariantSetsRequest/pageSize": page_size +"/genomics:v1/SearchVariantSetsResponse": search_variant_sets_response +"/genomics:v1/SearchVariantSetsResponse/variantSets": variant_sets +"/genomics:v1/SearchVariantSetsResponse/variantSets/variant_set": variant_set +"/genomics:v1/SearchVariantSetsResponse/nextPageToken": next_page_token +"/genomics:v1/SearchVariantsRequest": search_variants_request +"/genomics:v1/SearchVariantsRequest/variantSetIds": variant_set_ids +"/genomics:v1/SearchVariantsRequest/variantSetIds/variant_set_id": variant_set_id +"/genomics:v1/SearchVariantsRequest/variantName": variant_name +"/genomics:v1/SearchVariantsRequest/callSetIds": call_set_ids +"/genomics:v1/SearchVariantsRequest/callSetIds/call_set_id": call_set_id +"/genomics:v1/SearchVariantsRequest/referenceName": reference_name +"/genomics:v1/SearchVariantsRequest/start": start +"/genomics:v1/SearchVariantsRequest/end": end +"/genomics:v1/SearchVariantsRequest/pageToken": page_token +"/genomics:v1/SearchVariantsRequest/pageSize": page_size +"/genomics:v1/SearchVariantsRequest/maxCalls": max_calls +"/genomics:v1/SearchVariantsResponse": search_variants_response +"/genomics:v1/SearchVariantsResponse/variants": variants +"/genomics:v1/SearchVariantsResponse/variants/variant": variant +"/genomics:v1/SearchVariantsResponse/nextPageToken": next_page_token +"/genomics:v1/Variant": variant +"/genomics:v1/Variant/variantSetId": variant_set_id +"/genomics:v1/Variant/id": id +"/genomics:v1/Variant/names": names +"/genomics:v1/Variant/names/name": name +"/genomics:v1/Variant/created": created +"/genomics:v1/Variant/referenceName": reference_name +"/genomics:v1/Variant/start": start +"/genomics:v1/Variant/end": end +"/genomics:v1/Variant/referenceBases": reference_bases +"/genomics:v1/Variant/alternateBases": alternate_bases +"/genomics:v1/Variant/alternateBases/alternate_basis": alternate_basis +"/genomics:v1/Variant/quality": quality +"/genomics:v1/Variant/filter": filter +"/genomics:v1/Variant/filter/filter": filter +"/genomics:v1/Variant/info": info +"/genomics:v1/Variant/info/info": info +"/genomics:v1/Variant/info/info/info": info +"/genomics:v1/Variant/calls": calls +"/genomics:v1/Variant/calls/call": call +"/genomics:v1/VariantCall": variant_call +"/genomics:v1/VariantCall/callSetId": call_set_id +"/genomics:v1/VariantCall/callSetName": call_set_name +"/genomics:v1/VariantCall/genotype": genotype +"/genomics:v1/VariantCall/genotype/genotype": genotype +"/genomics:v1/VariantCall/phaseset": phaseset +"/genomics:v1/VariantCall/genotypeLikelihood": genotype_likelihood +"/genomics:v1/VariantCall/genotypeLikelihood/genotype_likelihood": genotype_likelihood +"/genomics:v1/VariantCall/info": info +"/genomics:v1/VariantCall/info/info": info +"/genomics:v1/VariantCall/info/info/info": info +"/genomics:v1/MergeVariantsRequest": merge_variants_request +"/genomics:v1/MergeVariantsRequest/variantSetId": variant_set_id +"/genomics:v1/MergeVariantsRequest/variants": variants +"/genomics:v1/MergeVariantsRequest/variants/variant": variant +"/genomics:v1/SearchCallSetsRequest": search_call_sets_request +"/genomics:v1/SearchCallSetsRequest/variantSetIds": variant_set_ids +"/genomics:v1/SearchCallSetsRequest/variantSetIds/variant_set_id": variant_set_id +"/genomics:v1/SearchCallSetsRequest/name": name +"/genomics:v1/SearchCallSetsRequest/pageToken": page_token +"/genomics:v1/SearchCallSetsRequest/pageSize": page_size +"/genomics:v1/SearchCallSetsResponse": search_call_sets_response +"/genomics:v1/SearchCallSetsResponse/callSets": call_sets +"/genomics:v1/SearchCallSetsResponse/callSets/call_set": call_set +"/genomics:v1/SearchCallSetsResponse/nextPageToken": next_page_token +"/genomics:v1/CallSet": call_set +"/genomics:v1/CallSet/id": id +"/genomics:v1/CallSet/name": name +"/genomics:v1/CallSet/sampleId": sample_id +"/genomics:v1/CallSet/variantSetIds": variant_set_ids +"/genomics:v1/CallSet/variantSetIds/variant_set_id": variant_set_id +"/genomics:v1/CallSet/created": created +"/genomics:v1/CallSet/info": info +"/genomics:v1/CallSet/info/info": info +"/genomics:v1/CallSet/info/info/info": info +"/genomics:v1/ImportReadGroupSetsResponse": import_read_group_sets_response +"/genomics:v1/ImportReadGroupSetsResponse/readGroupSetIds": read_group_set_ids +"/genomics:v1/ImportReadGroupSetsResponse/readGroupSetIds/read_group_set_id": read_group_set_id +"/genomics:v1/ImportVariantsResponse": import_variants_response +"/genomics:v1/ImportVariantsResponse/callSetIds": call_set_ids +"/genomics:v1/ImportVariantsResponse/callSetIds/call_set_id": call_set_id +"/genomics:v1/OperationMetadata": operation_metadata +"/genomics:v1/OperationMetadata/projectId": project_id +"/genomics:v1/OperationMetadata/createTime": create_time +"/genomics:v1/OperationMetadata/request": request +"/genomics:v1/OperationMetadata/request/request": request +"/genomics:v1/OperationMetadata/events": events +"/genomics:v1/OperationMetadata/events/event": event +"/genomics:v1/OperationEvent": operation_event +"/genomics:v1/OperationEvent/description": description "/logging:v1beta3/fields": fields "/logging:v1beta3/key": key "/logging:v1beta3/quotaUser": quota_user @@ -17664,6 +17983,7 @@ "/replicapool:v1beta2/OperationList/nextPageToken": next_page_token "/replicapool:v1beta2/OperationList/selfLink": self_link "/replicapool:v1beta2/ReplicaPoolAutoHealingPolicy": replica_pool_auto_healing_policy +"/replicapool:v1beta2/ReplicaPoolAutoHealingPolicy/actionType": action_type "/replicapool:v1beta2/ReplicaPoolAutoHealingPolicy/healthCheck": health_check "/replicapoolupdater:v1beta1/fields": fields "/replicapoolupdater:v1beta1/key": key @@ -19583,6 +19903,12 @@ "/youtube:v3/youtube.liveBroadcasts.bind/onBehalfOfContentOwnerChannel": on_behalf_of_content_owner_channel "/youtube:v3/youtube.liveBroadcasts.bind/part": part "/youtube:v3/youtube.liveBroadcasts.bind/streamId": stream_id +"/youtube:v3/youtube.liveBroadcasts.bind_direct": bind_direct_live_broadcast +"/youtube:v3/youtube.liveBroadcasts.bind_direct/id": id +"/youtube:v3/youtube.liveBroadcasts.bind_direct/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtube:v3/youtube.liveBroadcasts.bind_direct/onBehalfOfContentOwnerChannel": on_behalf_of_content_owner_channel +"/youtube:v3/youtube.liveBroadcasts.bind_direct/part": part +"/youtube:v3/youtube.liveBroadcasts.bind_direct/streamId": stream_id "/youtube:v3/youtube.liveBroadcasts.control": control_live_broadcast "/youtube:v3/youtube.liveBroadcasts.control/displaySlate": display_slate "/youtube:v3/youtube.liveBroadcasts.control/id": id @@ -20317,7 +20643,7 @@ "/youtube:v3/LiveStreamHealthStatus": live_stream_health_status "/youtube:v3/LiveStreamHealthStatus/configurationIssues": configuration_issues "/youtube:v3/LiveStreamHealthStatus/configurationIssues/configuration_issue": configuration_issue -"/youtube:v3/LiveStreamHealthStatus/lastUpdateTimeS": last_update_time_s +"/youtube:v3/LiveStreamHealthStatus/lastUpdateTimeSeconds": last_update_time_seconds "/youtube:v3/LiveStreamHealthStatus/status": status "/youtube:v3/LiveStreamListResponse/etag": etag "/youtube:v3/LiveStreamListResponse/eventId": event_id diff --git a/generated/google/apis/adexchangebuyer_v1_3.rb b/generated/google/apis/adexchangebuyer_v1_3.rb index be15fde6b..e30dff0f0 100644 --- a/generated/google/apis/adexchangebuyer_v1_3.rb +++ b/generated/google/apis/adexchangebuyer_v1_3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_3 VERSION = 'V1_3' - REVISION = '20150520' + REVISION = '20150720' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangeseller_v2_0.rb b/generated/google/apis/adexchangeseller_v2_0.rb index 34ec2abac..83cd86d70 100644 --- a/generated/google/apis/adexchangeseller_v2_0.rb +++ b/generated/google/apis/adexchangeseller_v2_0.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/seller-rest/ module AdexchangesellerV2_0 VERSION = 'V2_0' - REVISION = '20150624' + REVISION = '20150719' # View and manage your Ad Exchange data AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 05cff30ee..6d03d6384 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20150624' + REVISION = '20150719' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 5cf259848..2788ca74f 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20150624' + REVISION = '20150719' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index 14c55dea4..e1f65a18c 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -23,9 +23,10 @@ module Google # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android # for Work users. # + # @see https://developers.google.com/play/enterprise module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20150303' + REVISION = '20150715' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index 22b71ffe4..1fb5633cf 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -145,17 +145,18 @@ module Google end end - # App version represents a single APK version. + # This represents a single version of the app. class AppVersion include Google::Apis::Core::Hashable - # Unique increasing identifier for the apk version. + # Unique increasing identifier for the app version. # Corresponds to the JSON property `versionCode` # @return [Fixnum] attr_accessor :version_code - # The string used in the Play Store by the app developer to identify a version - # of an app. The string is not necessarily unique or localized (e.g. "1.4"). + # The string used in the Play Store by the app developer to identify the version. + # The string is not necessarily unique or localized (for example, the string + # could be "1.4"). # Corresponds to the JSON property `versionString` # @return [String] attr_accessor :version_string @@ -612,17 +613,16 @@ module Google # admin approves a product in Google Play, if the product is added to a # collection, or if an entitlement for the product is created for a user via the # API. For paid products, a group license object is only created as part of the - # first bulk purchase of that product in Google Play done by the enterprise - # admin. + # first bulk purchase of that product in Google Play by the enterprise admin. # The API can be used to query group licenses; the available information # includes the total number of licenses purchased (for paid products) and the - # total number of licenses that have been provisioned, i.e. the total number of - # user entitlements in existence for the product. - # Group license objects are never deleted; if e.g. a free app is added to a - # collection and then removed, the group license will remain, allowing to keep - # track of any remaining entitlements. An enterprise admin may indicate they are - # no longer interested in the group license by marking it as unapproved in - # Google Play. + # total number of licenses that have been provisioned, that is, the total number + # of user entitlements in existence for the product. + # Group license objects are never deleted. If, for example, a free app is added + # to a collection and then removed, the group license will remain, allowing the + # enterprise admin to keep track of any remaining entitlements. An enterprise + # admin may indicate they are no longer interested in the group license by + # marking it as unapproved in Google Play. class GroupLicense include Google::Apis::Core::Hashable @@ -877,8 +877,8 @@ module Google class Product include Google::Apis::Core::Hashable - # List of app versions available for this product. The returned list contains - # only public versions. E.g. alpha, beta or canary versions will not be included. + # App versions currently available for this product. The returned list contains + # only public versions. Alpha and beta versions are not included. # Corresponds to the JSON property `appVersion` # @return [Array] attr_accessor :app_version @@ -893,7 +893,12 @@ module Google # @return [String] attr_accessor :details_url - # How and to whom the package is made available. + # How and to whom the package is made available. The value publicGoogleHosted + # means that the package is available through the Play Store and not restricted + # to a specific enterprise. The value privateGoogleHosted means that the package + # is a private app (restricted to an enterprise) but hosted by Google. The value + # privateSelfHosted means that the package is a private app (restricted to an + # enterprise) and is privately hosted. # Corresponds to the JSON property `distributionChannel` # @return [String] attr_accessor :distribution_channel @@ -909,8 +914,8 @@ module Google # @return [String] attr_accessor :kind - # A string of the form "app: - # " - e.g. "app:com.google.android.gm" represents the GMail app. + # A string of the form app: + # . For example, app:com.google.android.gm represents the Gmail app. # Corresponds to the JSON property `productId` # @return [String] attr_accessor :product_id @@ -1037,12 +1042,14 @@ module Google class GenerateProductApprovalUrlResponse include Google::Apis::Core::Hashable - # A iframe-able URL that displays a product's permissions (if any). This URL can - # be used to approve the product only once and for a limited time (1 hour), - # using the Products.approve call. If the product is not currently approved and - # has no permissions, this URL will point to an empty page. If the product is - # currently approved and all of its permissions (if any) are also approved, this - # field will not be populated. + # A URL that can be rendered in an iframe to display the permissions (if any) of + # a product. This URL can be used to approve the product only once and only + # within 24 hours of being generated, using the Products.approve call. If the + # product is currently unapproved and has no permissions, this URL will point to + # an empty page. If the product is currently approved, a URL will only be + # generated if that product has added permissions since it was last approved, + # and the URL will only display those new permissions that have not yet been + # accepted. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url diff --git a/generated/google/apis/androidenterprise_v1/service.rb b/generated/google/apis/androidenterprise_v1/service.rb index b647b9155..31f2762ec 100644 --- a/generated/google/apis/androidenterprise_v1/service.rb +++ b/generated/google/apis/androidenterprise_v1/service.rb @@ -31,6 +31,7 @@ module Google # Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module # service = Androidenterprise::AndroidEnterpriseService.new # + # @see https://developers.google.com/play/enterprise class AndroidEnterpriseService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -1597,17 +1598,21 @@ module Google execute_or_queue_command(command, &block) end - # Generates a URL that can be used to display an iframe to view the product's - # permissions (if any) and approve the product. This URL can be used to approve - # the product for a limited time (currently 1 hour) using the Products.approve - # call. + # Generates a URL that can be rendered in an iframe to display the permissions ( + # if any) of a product. An enterprise admin must view these permissions and + # accept them on behalf of their organization in order to approve that product. + # Admins should accept the displayed permissions by interacting with a separate + # UI element in the EMM console, which in turn should trigger the use of this + # URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to + # approve the product. This URL can only be used to display permissions for up + # to 1 day. # @param [String] enterprise_id # The ID of the enterprise. # @param [String] product_id # The ID of the product. # @param [String] language_code - # The language code that will be used for permission names and descriptions in - # the returned iframe. + # The BCP 47 language code used for permission names and descriptions in the + # returned iframe, for instance "en-US". # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index 076840cab..e127d4636 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '20150622' + REVISION = '20150714' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/autoscaler_v1beta2.rb b/generated/google/apis/autoscaler_v1beta2.rb index eb9db22a0..7d484a526 100644 --- a/generated/google/apis/autoscaler_v1beta2.rb +++ b/generated/google/apis/autoscaler_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see http://developers.google.com/compute/docs/autoscaler module AutoscalerV1beta2 VERSION = 'V1beta2' - REVISION = '20150617' + REVISION = '20150629' # View and manage your Google Compute Engine resources AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 68709ec29..1650a5270 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20150623' + REVISION = '20150710' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 1d55bfc70..460f3cdd2 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -1063,6 +1063,11 @@ module Google attr_accessor :use_query_cache alias_method :use_query_cache?, :use_query_cache + # [Experimental] Describes user-defined function resources used in the query. + # Corresponds to the JSON property `userDefinedFunctionResources` + # @return [Array] + attr_accessor :user_defined_function_resources + # [Optional] Specifies the action that occurs if the destination table already # exists. The following values are supported: WRITE_TRUNCATE: If the table # already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table @@ -1091,6 +1096,7 @@ module Google @query = args[:query] unless args[:query].nil? @table_definitions = args[:table_definitions] unless args[:table_definitions].nil? @use_query_cache = args[:use_query_cache] unless args[:use_query_cache].nil? + @user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil? @write_disposition = args[:write_disposition] unless args[:write_disposition].nil? end end @@ -2232,6 +2238,34 @@ module Google end end + # + class UserDefinedFunctionResource + include Google::Apis::Core::Hashable + + # [Pick one] An inline resource that contains code for a user-defined function ( + # UDF). Providing a inline code resource is equivalent to providing a URI for a + # file containing the same code. + # Corresponds to the JSON property `inlineCode` + # @return [String] + attr_accessor :inline_code + + # [Pick one] A code resource to load from a Google Cloud Storage URI (gs:// + # bucket/path). + # Corresponds to the JSON property `resourceUri` + # @return [String] + attr_accessor :resource_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inline_code = args[:inline_code] unless args[:inline_code].nil? + @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? + end + end + # class ViewDefinition include Google::Apis::Core::Hashable diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 5cd930322..fdf2a3248 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -194,6 +194,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class UserDefinedFunctionResource + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ViewDefinition class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -428,6 +432,8 @@ module Google hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation property :use_query_cache, as: 'useQueryCache' + collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation + property :write_disposition, as: 'writeDisposition' end end @@ -743,6 +749,14 @@ module Google end end + class UserDefinedFunctionResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inline_code, as: 'inlineCode' + property :resource_uri, as: 'resourceUri' + end + end + class ViewDefinition # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb index bf51df608..a063e7ece 100644 --- a/generated/google/apis/bigquery_v2/service.rb +++ b/generated/google/apis/bigquery_v2/service.rb @@ -404,8 +404,8 @@ module Google # Zero-based index of the starting row # @param [Fixnum] timeout_ms # How long to wait for the query to complete, in milliseconds, before returning. - # Default is to return immediately. If the timeout passes before the job - # completes, the request will fail with a TIMEOUT error + # Default is 10 seconds. If the timeout passes before the job completes, the ' + # jobComplete' field in the response will be false # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index af8ac992c..04b5a6a4a 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20150623' + REVISION = '20150701' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/calendar_v3/classes.rb b/generated/google/apis/calendar_v3/classes.rb index 4095e001a..b100729c5 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -1146,6 +1146,13 @@ module Google class EventAttachment include Google::Apis::Core::Hashable + # ID of the attached file. Read-only. + # E.g. for Google Drive files this is the ID of the corresponding Files resource + # entry in the Drive API. + # Corresponds to the JSON property `fileId` + # @return [String] + attr_accessor :file_id + # URL link to the attachment. # For adding Google Drive file attachments use the same format as in # alternateLink property of the Files resource in the Drive API. @@ -1174,6 +1181,7 @@ module Google # Update properties of this object def update!(**args) + @file_id = args[:file_id] unless args[:file_id].nil? @file_url = args[:file_url] unless args[:file_url].nil? @icon_link = args[:icon_link] unless args[:icon_link].nil? @mime_type = args[:mime_type] unless args[:mime_type].nil? diff --git a/generated/google/apis/calendar_v3/representations.rb b/generated/google/apis/calendar_v3/representations.rb index e50686803..5aa7beb00 100644 --- a/generated/google/apis/calendar_v3/representations.rb +++ b/generated/google/apis/calendar_v3/representations.rb @@ -412,6 +412,7 @@ module Google class EventAttachment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :file_id, as: 'fileId' property :file_url, as: 'fileUrl' property :icon_link, as: 'iconLink' property :mime_type, as: 'mimeType' diff --git a/generated/google/apis/civicinfo_v2.rb b/generated/google/apis/civicinfo_v2.rb index 2f5f77861..5eaa2c288 100644 --- a/generated/google/apis/civicinfo_v2.rb +++ b/generated/google/apis/civicinfo_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/civic-information module CivicinfoV2 VERSION = 'V2' - REVISION = '20150302' + REVISION = '20150707' end end end diff --git a/generated/google/apis/civicinfo_v2/classes.rb b/generated/google/apis/civicinfo_v2/classes.rb index 050a70ff8..a47fe03da 100644 --- a/generated/google/apis/civicinfo_v2/classes.rb +++ b/generated/google/apis/civicinfo_v2/classes.rb @@ -315,12 +315,58 @@ module Google # @return [String] attr_accessor :primary_party + # The set of ballot responses for the referendum. A ballot response represents a + # line on the ballot. Common examples might include "yes" or "no" for referenda, + # or a judge's name for a retention contest. This field is only populated for + # contests of type 'Referendum'. + # Corresponds to the JSON property `referendumBallotResponses` + # @return [Array] + attr_accessor :referendum_ballot_responses + + # Specifies a short summary of the referendum that is on the ballot below the + # title but above the text. This field is only populated for contests of type ' + # Referendum'. + # Corresponds to the JSON property `referendumBrief` + # @return [String] + attr_accessor :referendum_brief + + # A statement in opposition to the referendum. It does not necessarily appear on + # the ballot. This field is only populated for contests of type 'Referendum'. + # Corresponds to the JSON property `referendumConStatement` + # @return [String] + attr_accessor :referendum_con_statement + + # Specifies what effect abstaining (not voting) on the proposition will have (i. + # e. whether abstaining is considered a vote against it). This field is only + # populated for contests of type 'Referendum'. + # Corresponds to the JSON property `referendumEffectOfAbstain` + # @return [String] + attr_accessor :referendum_effect_of_abstain + + # The threshold of votes that the referendum needs in order to pass, e.g. "two- + # thirds". This field is only populated for contests of type 'Referendum'. + # Corresponds to the JSON property `referendumPassageThreshold` + # @return [String] + attr_accessor :referendum_passage_threshold + + # A statement in favor of the referendum. It does not necessarily appear on the + # ballot. This field is only populated for contests of type 'Referendum'. + # Corresponds to the JSON property `referendumProStatement` + # @return [String] + attr_accessor :referendum_pro_statement + # A brief description of the referendum. This field is only populated for # contests of type 'Referendum'. # Corresponds to the JSON property `referendumSubtitle` # @return [String] attr_accessor :referendum_subtitle + # The full text of the referendum. This field is only populated for contests of + # type 'Referendum'. + # Corresponds to the JSON property `referendumText` + # @return [String] + attr_accessor :referendum_text + # The title of the referendum (e.g. 'Proposition 42'). This field is only # populated for contests of type 'Referendum'. # Corresponds to the JSON property `referendumTitle` @@ -372,7 +418,14 @@ module Google @number_voting_for = args[:number_voting_for] unless args[:number_voting_for].nil? @office = args[:office] unless args[:office].nil? @primary_party = args[:primary_party] unless args[:primary_party].nil? + @referendum_ballot_responses = args[:referendum_ballot_responses] unless args[:referendum_ballot_responses].nil? + @referendum_brief = args[:referendum_brief] unless args[:referendum_brief].nil? + @referendum_con_statement = args[:referendum_con_statement] unless args[:referendum_con_statement].nil? + @referendum_effect_of_abstain = args[:referendum_effect_of_abstain] unless args[:referendum_effect_of_abstain].nil? + @referendum_passage_threshold = args[:referendum_passage_threshold] unless args[:referendum_passage_threshold].nil? + @referendum_pro_statement = args[:referendum_pro_statement] unless args[:referendum_pro_statement].nil? @referendum_subtitle = args[:referendum_subtitle] unless args[:referendum_subtitle].nil? + @referendum_text = args[:referendum_text] unless args[:referendum_text].nil? @referendum_title = args[:referendum_title] unless args[:referendum_title].nil? @referendum_url = args[:referendum_url] unless args[:referendum_url].nil? @roles = args[:roles] unless args[:roles].nil? @@ -1006,6 +1059,13 @@ module Google # @return [String] attr_accessor :kind + # Specifies whether voters in the precinct vote only by mailing their ballots ( + # with the possible option of dropping off their ballots as well). + # Corresponds to the JSON property `mailOnly` + # @return [Boolean] + attr_accessor :mail_only + alias_method :mail_only?, :mail_only + # A simple representation of an address. # Corresponds to the JSON property `normalizedInput` # @return [Google::Apis::CivicinfoV2::SimpleAddressType] @@ -1045,6 +1105,7 @@ module Google @early_vote_sites = args[:early_vote_sites] unless args[:early_vote_sites].nil? @election = args[:election] unless args[:election].nil? @kind = args[:kind] unless args[:kind].nil? + @mail_only = args[:mail_only] unless args[:mail_only].nil? @normalized_input = args[:normalized_input] unless args[:normalized_input].nil? @other_elections = args[:other_elections] unless args[:other_elections].nil? @polling_locations = args[:polling_locations] unless args[:polling_locations].nil? diff --git a/generated/google/apis/civicinfo_v2/representations.rb b/generated/google/apis/civicinfo_v2/representations.rb index 59b12a4af..e8b571b75 100644 --- a/generated/google/apis/civicinfo_v2/representations.rb +++ b/generated/google/apis/civicinfo_v2/representations.rb @@ -176,7 +176,14 @@ module Google property :number_voting_for, as: 'numberVotingFor' property :office, as: 'office' property :primary_party, as: 'primaryParty' + collection :referendum_ballot_responses, as: 'referendumBallotResponses' + property :referendum_brief, as: 'referendumBrief' + property :referendum_con_statement, as: 'referendumConStatement' + property :referendum_effect_of_abstain, as: 'referendumEffectOfAbstain' + property :referendum_passage_threshold, as: 'referendumPassageThreshold' + property :referendum_pro_statement, as: 'referendumProStatement' property :referendum_subtitle, as: 'referendumSubtitle' + property :referendum_text, as: 'referendumText' property :referendum_title, as: 'referendumTitle' property :referendum_url, as: 'referendumUrl' collection :roles, as: 'roles' @@ -358,6 +365,7 @@ module Google property :election, as: 'election', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation property :kind, as: 'kind' + property :mail_only, as: 'mailOnly' property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation collection :other_elections, as: 'otherElections', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation diff --git a/generated/google/apis/classroom_v1beta1.rb b/generated/google/apis/classroom_v1beta1.rb new file mode 100644 index 000000000..fc9fa79cb --- /dev/null +++ b/generated/google/apis/classroom_v1beta1.rb @@ -0,0 +1,49 @@ +# 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/classroom_v1beta1/service.rb' +require 'google/apis/classroom_v1beta1/classes.rb' +require 'google/apis/classroom_v1beta1/representations.rb' + +module Google + module Apis + # Google Classroom API + # + # Google Classroom API + # + # @see + module ClassroomV1beta1 + VERSION = 'V1beta1' + REVISION = '20150628' + + # Manage your Google Classroom classes + AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses' + + # View your Google Classroom classes + AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly' + + # View the email addresses of people in your classes + AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails' + + # View the profile photos of people in your classes + AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos' + + # Manage your Google Classroom class rosters + AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters' + + # View your Google Classroom class rosters + AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly' + end + end +end diff --git a/generated/google/apis/classroom_v1beta1/classes.rb b/generated/google/apis/classroom_v1beta1/classes.rb new file mode 100644 index 000000000..a24a4666f --- /dev/null +++ b/generated/google/apis/classroom_v1beta1/classes.rb @@ -0,0 +1,447 @@ +# 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 ClassroomV1beta1 + + # A Course in Classroom. + class Course + include Google::Apis::Core::Hashable + + # Unique identifier for this course assigned by Classroom. You may optionally + # set this to an [alias string][google.classroom.v1beta1.CourseAlias] as part of + # [creating a course][google.classroom.v1beta1.Courses.CreateCourse], creating a + # corresponding alias. The `ID` cannot be updated after a course is created. + # Specifying this field in a course update mask will result in an error. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Name of the course. For example, "10th Grade Biology". This is required and + # must be between 1 and 750 characters and a valid UTF-8 string. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Section of the course For example, "Period 2". If set, this field must be a + # valid UTF-8 string and no longer than 2800 characters. + # Corresponds to the JSON property `section` + # @return [String] + attr_accessor :section + + # Optional heading for the description. For example, "Welcome to 10th Grade + # Biology" If set, this field must be a valid UTF-8 string and no longer than + # 3600 characters. + # Corresponds to the JSON property `descriptionHeading` + # @return [String] + attr_accessor :description_heading + + # Optional description. For example, "We'll be learning about about the + # structure of living creatures from a combination of textbooks, guest lectures, + # and lab work. Expect to be excited!" If set, this field must be a valid UTF-8 + # string and no longer than 30,000 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional room location. For example, "301" If set, this field must be a valid + # UTF-8 string and no longer than 650 characters. + # Corresponds to the JSON property `room` + # @return [String] + attr_accessor :room + + # The identifier of the primary teacher of a course. When specified as a + # parameter of CreateCourseRequest, this field is required. It may be the + # numeric identifier for the user, or an alias that identifies the teacher. The + # following aliases are supported: * the e-mail address of the user * the string + # literal `"me"`, indicating that the requesting user This must be set in a + # CreateRequest; specifying this field in a course update mask will result in an + # error. + # Corresponds to the JSON property `primaryTeacherId` + # @return [String] + attr_accessor :primary_teacher_id + + # Creation time of the course. Specifying this field in a course update mask + # will result in an error. Read-only. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Time of the most recent update to this course. Specifying this field in a + # course update mask will result in an error. Read-only. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Enrollment code to use when joining this course. Specifying this field in a + # course update mask will result in an error. Read-only. + # Corresponds to the JSON property `enrollmentCode` + # @return [String] + attr_accessor :enrollment_code + + # State of the course. If unspecified, the default state will be `PROVISIONED`. + # Corresponds to the JSON property `courseState` + # @return [String] + attr_accessor :course_state + + # Absolute link to this course in the Classroom web UI. Read-only. + # Corresponds to the JSON property `webLink` + # @return [String] + attr_accessor :web_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @section = args[:section] unless args[:section].nil? + @description_heading = args[:description_heading] unless args[:description_heading].nil? + @description = args[:description] unless args[:description].nil? + @room = args[:room] unless args[:room].nil? + @primary_teacher_id = args[:primary_teacher_id] unless args[:primary_teacher_id].nil? + @creation_time = args[:creation_time] unless args[:creation_time].nil? + @update_time = args[:update_time] unless args[:update_time].nil? + @enrollment_code = args[:enrollment_code] unless args[:enrollment_code].nil? + @course_state = args[:course_state] unless args[:course_state].nil? + @web_link = args[:web_link] unless args[:web_link].nil? + 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 + + # Response when listing courses. + class ListCoursesResponse + include Google::Apis::Core::Hashable + + # Courses that match the request. + # Corresponds to the JSON property `courses` + # @return [Array] + attr_accessor :courses + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # 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) + @courses = args[:courses] unless args[:courses].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Alternative identifier for a course. An alias uniquely identifies a course. It + # will be unique within one of the following scopes: * domain: A domain-scoped + # alias is visible to all users within the alias creator's domain and may only + # be created by a domain admin. A domain-scoped alias is often used when a + # course has an identifier external to Classroom. * project: A project-scoped + # alias is visible to any request from an application using the Developer + # Console Project ID that created the alias and may be created by any project. A + # project-scoped alias is often used when an application has alternative + # identifiers. A random value can also be used to avoid duplicate courses in the + # event of transmission failures, as retrying a request will return + # ALREADY_EXISTS if a previous one has succeeded. + class CourseAlias + include Google::Apis::Core::Hashable + + # Alias string. The format of the string indicated the desired alias scoping. * " + # d:" indicates a domain-scoped alias. Example: d:math_101 * "p:" indicates a + # project-scoped alias. Example: p:abc123 This field has a maximum length of 256 + # characters. + # Corresponds to the JSON property `alias` + # @return [String] + attr_accessor :alias + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alias = args[:alias] unless args[:alias].nil? + end + end + + # Response when listing course aliases. + class ListCourseAliasesResponse + include Google::Apis::Core::Hashable + + # The course aliases. + # Corresponds to the JSON property `aliases` + # @return [Array] + attr_accessor :aliases + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # 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) + @aliases = args[:aliases] unless args[:aliases].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Global information for a user. + class UserProfile + include Google::Apis::Core::Hashable + + # Unique identifier of the user. Read-only + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Details of the user's name. + # Corresponds to the JSON property `name` + # @return [Google::Apis::ClassroomV1beta1::Name] + attr_accessor :name + + # E-mail address of the user. Read-only + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + # Url of user's profile photo. Read-only + # Corresponds to the JSON property `photoUrl` + # @return [String] + attr_accessor :photo_url + + # Global permissions of the user. Read-only + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @email_address = args[:email_address] unless args[:email_address].nil? + @photo_url = args[:photo_url] unless args[:photo_url].nil? + @permissions = args[:permissions] unless args[:permissions].nil? + end + end + + # Details of the user's name. + class Name + include Google::Apis::Core::Hashable + + # The user's first name. Read-only + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # The user's last name. Read-only + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # The user's full name formed by concatenating the first and last name values. + # Read-only + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @given_name = args[:given_name] unless args[:given_name].nil? + @family_name = args[:family_name] unless args[:family_name].nil? + @full_name = args[:full_name] unless args[:full_name].nil? + end + end + + # Global user permission description. + class GlobalPermission + include Google::Apis::Core::Hashable + + # Permission value. + # Corresponds to the JSON property `permission` + # @return [String] + attr_accessor :permission + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permission = args[:permission] unless args[:permission].nil? + end + end + + # Teacher of a course. + class Teacher + include Google::Apis::Core::Hashable + + # Unique identifier of the course. Read-only + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # The identifier of the user. When specified as a parameter of request, this + # field may be set to an alias that identifies the teacher. The following are + # supported: * the e-mail address of the user * the string literal `"me"`, + # indicating the requesting user + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # Global information for a user. + # Corresponds to the JSON property `profile` + # @return [Google::Apis::ClassroomV1beta1::UserProfile] + attr_accessor :profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_id = args[:course_id] unless args[:course_id].nil? + @user_id = args[:user_id] unless args[:user_id].nil? + @profile = args[:profile] unless args[:profile].nil? + end + end + + # Response when listing teachers. + class ListTeachersResponse + include Google::Apis::Core::Hashable + + # The teachers who match the list request. + # Corresponds to the JSON property `teachers` + # @return [Array] + attr_accessor :teachers + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # 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) + @teachers = args[:teachers] unless args[:teachers].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Student in a course. + class Student + include Google::Apis::Core::Hashable + + # Unique identifier of the course. Read-only + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # The identifier of the user. When specified as a parameter of request, this + # field may be set to an alias that identifies the student. The following are + # supported: * the e-mail address of the user * the string literal `"me"`, + # indicating that the requesting user + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # Global information for a user. + # Corresponds to the JSON property `profile` + # @return [Google::Apis::ClassroomV1beta1::UserProfile] + attr_accessor :profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_id = args[:course_id] unless args[:course_id].nil? + @user_id = args[:user_id] unless args[:user_id].nil? + @profile = args[:profile] unless args[:profile].nil? + end + end + + # Response when listing students. + class ListStudentsResponse + include Google::Apis::Core::Hashable + + # The students who match the list request. + # Corresponds to the JSON property `students` + # @return [Array] + attr_accessor :students + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # 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) + @students = args[:students] unless args[:students].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + end + end +end diff --git a/generated/google/apis/classroom_v1beta1/representations.rb b/generated/google/apis/classroom_v1beta1/representations.rb new file mode 100644 index 000000000..deeb39bd8 --- /dev/null +++ b/generated/google/apis/classroom_v1beta1/representations.rb @@ -0,0 +1,190 @@ +# 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 ClassroomV1beta1 + + class Course + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListCoursesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CourseAlias + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListCourseAliasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UserProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Name + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GlobalPermission + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Teacher + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListTeachersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Student + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListStudentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Course + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + property :section, as: 'section' + property :description_heading, as: 'descriptionHeading' + property :description, as: 'description' + property :room, as: 'room' + property :primary_teacher_id, as: 'primaryTeacherId' + property :creation_time, as: 'creationTime' + property :update_time, as: 'updateTime' + property :enrollment_code, as: 'enrollmentCode' + property :course_state, as: 'courseState' + property :web_link, as: 'webLink' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListCoursesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :courses, as: 'courses', class: Google::Apis::ClassroomV1beta1::Course, decorator: Google::Apis::ClassroomV1beta1::Course::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class CourseAlias + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alias, as: 'alias' + end + end + + class ListCourseAliasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :aliases, as: 'aliases', class: Google::Apis::ClassroomV1beta1::CourseAlias, decorator: Google::Apis::ClassroomV1beta1::CourseAlias::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class UserProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name', class: Google::Apis::ClassroomV1beta1::Name, decorator: Google::Apis::ClassroomV1beta1::Name::Representation + + property :email_address, as: 'emailAddress' + property :photo_url, as: 'photoUrl' + collection :permissions, as: 'permissions', class: Google::Apis::ClassroomV1beta1::GlobalPermission, decorator: Google::Apis::ClassroomV1beta1::GlobalPermission::Representation + + end + end + + class Name + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :given_name, as: 'givenName' + property :family_name, as: 'familyName' + property :full_name, as: 'fullName' + end + end + + class GlobalPermission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :permission, as: 'permission' + end + end + + class Teacher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' + property :user_id, as: 'userId' + property :profile, as: 'profile', class: Google::Apis::ClassroomV1beta1::UserProfile, decorator: Google::Apis::ClassroomV1beta1::UserProfile::Representation + + end + end + + class ListTeachersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1beta1::Teacher, decorator: Google::Apis::ClassroomV1beta1::Teacher::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Student + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' + property :user_id, as: 'userId' + property :profile, as: 'profile', class: Google::Apis::ClassroomV1beta1::UserProfile, decorator: Google::Apis::ClassroomV1beta1::UserProfile::Representation + + end + end + + class ListStudentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :students, as: 'students', class: Google::Apis::ClassroomV1beta1::Student, decorator: Google::Apis::ClassroomV1beta1::Student::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + end + end +end diff --git a/generated/google/apis/classroom_v1beta1/service.rb b/generated/google/apis/classroom_v1beta1/service.rb new file mode 100644 index 000000000..b82e53557 --- /dev/null +++ b/generated/google/apis/classroom_v1beta1/service.rb @@ -0,0 +1,791 @@ +# 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 ClassroomV1beta1 + # Google Classroom API + # + # Google Classroom API + # + # @example + # require 'google/apis/classroom_v1beta1' + # + # Classroom = Google::Apis::ClassroomV1beta1 # Alias the module + # service = Classroom::ClassroomService.new + # + # @see + class ClassroomService < 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://classroom.googleapis.com/', '') + end + + # Creates a course. The user specified as the primary teacher in ` + # primary_teacher_id` is the owner of the created course and added as a teacher. + # This method returns the following error codes: * `PERMISSION_DENIED` if the + # requesting user is not permitted to create courses. * `NOT_FOUND` if the + # primary teacher is not a valid user. * `ALREADY_EXISTS` if an alias was + # specified and already exists. + # @param [Google::Apis::ClassroomV1beta1::Course] course_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Course] + # + # @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_course(course_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation + command.request_object = course_object + command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Course + 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 course. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to access the + # requested course. * `NOT_FOUND` if no course exists with the requested ID. + # @param [String] id + # Identifier of the course to return. This may either be the Classroom-assigned + # identifier or an [alias][google.classroom.v1beta1.CourseAlias]. + # @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::ClassroomV1beta1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Course] + # + # @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_course(id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{id}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Course + command.params['id'] = id unless id.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 course. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to modify the + # requested course. * `NOT_FOUND` if no course exists with the requested ID. + # @param [String] id + # Identifier of the course to update. This may either be the Classroom-assigned + # identifier or an [alias][google.classroom.v1beta1.CourseAlias]. + # @param [Google::Apis::ClassroomV1beta1::Course] course_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Course] + # + # @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_course(id, course_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{id}' + command = make_simple_command(:put, path, options) + command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation + command.request_object = course_object + command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Course + command.params['id'] = id unless id.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 one or more fields a course. This method returns the following error + # codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify + # the requested course. * `NOT_FOUND` if no course exists with the requested ID. + # * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if + # no update mask is supplied. + # @param [String] id + # Identifier of the course to update. This may either be the Classroom-assigned + # identifier or an [alias][google.classroom.v1beta1.CourseAlias]. + # @param [Google::Apis::ClassroomV1beta1::Course] course_object + # @param [String] update_mask + # Mask which identifies which fields on the course to update. This field is + # required to do an update. The update will fail if invalid fields are specified. + # Valid fields are listed below: * `name` * `section` * `descriptionHeading` * ` + # description` * `room` * `courseState` When set in a query parameter, this + # should be specified as `updateMask=,,...` + # @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::ClassroomV1beta1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Course] + # + # @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_course(id, course_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{id}' + command = make_simple_command(:patch, path, options) + command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation + command.request_object = course_object + command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Course + command.params['id'] = id unless id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a course. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to delete the + # requested course. * `NOT_FOUND` if no course exists with the requested ID. + # @param [String] id + # Identifier of the course to delete. This may either be the Classroom-assigned + # identifier or an [alias][google.classroom.v1beta1.CourseAlias]. + # @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::ClassroomV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::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_course(id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{id}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Empty + command.params['id'] = id unless id.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 list of courses that the requesting user is permitted to view, + # restricted to those that match the request. This method returns the following + # error codes: * `INVALID_ARGUMENT` if the query argument is malformed. * ` + # NOT_FOUND` if any users specified in the query arguments do not exist. + # @param [String] student_id + # Restricts returned courses to those having a student with the specified + # identifier, or an alias that identifies a student. The following aliases are + # supported: * the e-mail address of the user * the string literal `"me"`, + # indicating that the requesting user + # @param [String] teacher_id + # Restricts returned courses to those having a teacher with the specified + # identifier, or an alias that identifies a teacher. The following aliases are + # supported: * the e-mail address of the user * the string literal `"me"`, + # indicating that the requesting user + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. The server may return fewer than the specified + # number of results. + # @param [String] page_token + # [nextPageToken][google.classroom.v1beta1.ListCoursesResponse.next_page_token] + # value returned from a previous [list][google.classroom.v1beta1.Courses. + # ListCourses] call, indicating that the subsequent page of results should be + # returned. The [list][google.classroom.v1beta1.Courses.ListCourses] request + # must be identical to the one which resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::ListCoursesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::ListCoursesResponse] + # + # @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_courses(student_id: nil, teacher_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::ListCoursesResponse::Representation + command.response_class = Google::Apis::ClassroomV1beta1::ListCoursesResponse + command.query['studentId'] = student_id unless student_id.nil? + command.query['teacherId'] = teacher_id unless teacher_id.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 an alias to a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to create the + # alias. * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the + # alias already exists. + # @param [String] course_id + # The identifier of the course to alias. This may either be the Classroom- + # assigned identifier or an [alias][google.classroom.v1beta1.CourseAlias]. + # @param [Google::Apis::ClassroomV1beta1::CourseAlias] course_alias_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::CourseAlias] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::CourseAlias] + # + # @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_course_alias(course_id, course_alias_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/aliases' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ClassroomV1beta1::CourseAlias::Representation + command.request_object = course_alias_object + command.response_representation = Google::Apis::ClassroomV1beta1::CourseAlias::Representation + command.response_class = Google::Apis::ClassroomV1beta1::CourseAlias + command.params['courseId'] = course_id unless course_id.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 an alias of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to remove the + # alias. * `NOT_FOUND` if the alias does not exist. + # @param [String] course_id + # The identifier of the course whose alias should be deleted. This may either be + # the Classroom-assigned identifier or an [alias][google.classroom.v1beta1. + # CourseAlias]. + # @param [String] alias_ + # The alias to delete. This may not be the Classroom-assigned identifier. + # @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::ClassroomV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::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_course_alias(course_id, alias_, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/aliases/{alias}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['alias'] = alias_ unless alias_.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 the aliases of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to access the + # course. * `NOT_FOUND` if the course does not exist. + # @param [String] course_id + # The identifier of the course. This may either be the Classroom-assigned + # identifier or an [alias][google.classroom.v1beta1.CourseAlias]. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. The server may return fewer than the specified + # number of results. + # @param [String] page_token + # [nextPageToken][google.classroom.v1beta1.ListCourseAliasesResponse. + # next_page_token] value returned from a previous [list][google.classroom. + # v1beta1.Courses.ListCourseAliases] call, indicating that the subsequent page + # of results should be returned. The [list][google.classroom.v1beta1.Courses. + # ListCourseAliases] request must be identical to the one which resulted in this + # token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse] + # + # @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_course_aliases(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/aliases' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse::Representation + command.response_class = Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse + command.params['courseId'] = course_id unless course_id.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 teacher of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to create + # teachers in this course. * `NOT_FOUND` if the requested course ID does not + # exist. * `ALREADY_EXISTS` if the user is already a teacher or student in the + # course. + # @param [String] course_id + # Unique identifier of the course. This may either be the Classroom-assigned + # identifier or an alias. + # @param [Google::Apis::ClassroomV1beta1::Teacher] teacher_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::Teacher] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Teacher] + # + # @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_course_teacher(course_id, teacher_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/teachers' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation + command.request_object = teacher_object + command.response_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Teacher + command.params['courseId'] = course_id unless course_id.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 teacher of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to view teachers + # of this course. * `NOT_FOUND` if no teacher of this course has the requested + # ID or if the course does not exist. + # @param [String] course_id + # Unique identifier of the course. This may either be the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the teacher to return, or an alias the identifies the user. the + # following aliases are supported: * the e-mail address of the user * the string + # literal `"me"`, indicating that the requesting user + # @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::ClassroomV1beta1::Teacher] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Teacher] + # + # @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_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/teachers/{userId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Teacher + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.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 teacher of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to delete + # teachers of this course. * `NOT_FOUND` if no teacher of this course has the + # requested ID or if the course does not exist. * `FAILED_PRECONDITION` if the + # requested ID belongs to the primary teacher of this course. + # @param [String] course_id + # Unique identifier of the course. This may either be the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the teacher to delete, or an alias the identifies the user. the + # following aliases are supported: * the e-mail address of the user * the string + # literal `"me"`, indicating that the requesting user + # @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::ClassroomV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::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_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/teachers/{userId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.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 list of teachers of this course that the requester is permitted to + # view. Fails with `NOT_FOUND` if the course does not exist. + # @param [String] course_id + # Unique identifier of the course. This may either be the Classroom-assigned + # identifier or an alias. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero means no maximum. The server may + # return fewer than the specified number of results. + # @param [String] page_token + # [nextPageToken][google.classroom.v1beta1.ListTeachersResponse.next_page_token] + # value returned from a previous [list][google.classroom.v1beta1.Users. + # ListTeachers] call, indicating that the subsequent page of results should be + # returned. The [list][google.classroom.v1beta1.Users.ListTeachers] request must + # be identical to the one which resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::ListTeachersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::ListTeachersResponse] + # + # @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_course_teachers(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/teachers' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::ListTeachersResponse::Representation + command.response_class = Google::Apis::ClassroomV1beta1::ListTeachersResponse + command.params['courseId'] = course_id unless course_id.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 + + # Adds a user as a student of a course. This method returns the following error + # codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create + # students in this course. * `NOT_FOUND` if the requested course ID does not + # exist. * `ALREADY_EXISTS` if the user is already a student or student in the + # course. + # @param [String] course_id + # Identifier of the course to create the student in. This may either be the + # Classroom-assigned identifier or an alias. + # @param [Google::Apis::ClassroomV1beta1::Student] student_object + # @param [String] enrollment_code + # Enrollment code of the course to create the student in. This is required if [ + # userId][google.classroom.v1beta1.Student.user_id] corresponds to the + # requesting user; this may be omitted if the requesting user has administrative + # permissions to create students for any user. + # @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::ClassroomV1beta1::Student] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Student] + # + # @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_course_student(course_id, student_object = nil, enrollment_code: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/students' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ClassroomV1beta1::Student::Representation + command.request_object = student_object + command.response_representation = Google::Apis::ClassroomV1beta1::Student::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Student + command.params['courseId'] = course_id unless course_id.nil? + command.query['enrollmentCode'] = enrollment_code unless enrollment_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a student of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to view students + # of this course. * `NOT_FOUND` if no student of this course has the requested + # ID or if the course does not exist. + # @param [String] course_id + # Unique identifier of the course. This may either be the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the student to return, or an alias the identifies the user. The + # following aliases are supported: * the e-mail address of the user * the string + # literal `"me"`, indicating that the requesting user + # @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::ClassroomV1beta1::Student] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::Student] + # + # @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_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/students/{userId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::Student::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Student + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.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 student of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to delete + # students of this course. * `NOT_FOUND` if no student of this course has the + # requested ID or if the course does not exist. + # @param [String] course_id + # Unique identifier of the course. This may either be the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the student to delete, or an alias the identifies the user. The + # following aliases are supported: * the e-mail address of the user * the string + # literal `"me"`, indicating that the requesting user + # @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::ClassroomV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::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_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/students/{userId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1beta1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.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 list of students of this course that the requester is permitted to + # view. Fails with `NOT_FOUND` if the course does not exist. + # @param [String] course_id + # Unique identifier of the course. This may either be the Classroom-assigned + # identifier or an alias. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero means no maximum. The server may + # return fewer than the specified number of results. + # @param [String] page_token + # [nextPageToken][google.classroom.v1beta1.ListStudentsResponse.next_page_token] + # value returned from a previous [list][google.classroom.v1beta1.Users. + # ListStudents] call, indicating that the subsequent page of results should be + # returned. The [list][google.classroom.v1beta1.Users.ListStudents] request must + # be identical to the one which resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1beta1::ListStudentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::ListStudentsResponse] + # + # @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_course_students(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/courses/{courseId}/students' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::ListStudentsResponse::Representation + command.response_class = Google::Apis::ClassroomV1beta1::ListStudentsResponse + command.params['courseId'] = course_id unless course_id.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 + + # Returns a user profile. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to access this user + # profile. * `NOT_FOUND` if the profile does not exist. + # @param [String] user_id + # Identifier of the profile to return, or an alias the identifies the user. The + # following aliases are supported: * the e-mail address of the user * the string + # literal `"me"`, indicating the requesting user + # @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::ClassroomV1beta1::UserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1beta1::UserProfile] + # + # @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_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1beta1/userProfiles/{userId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ClassroomV1beta1::UserProfile::Representation + command.response_class = Google::Apis::ClassroomV1beta1::UserProfile + command.params['userId'] = user_id unless user_id.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 diff --git a/generated/google/apis/cloudmonitoring_v2beta2.rb b/generated/google/apis/cloudmonitoring_v2beta2.rb index 9f80cf62e..0d9622d1a 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2.rb @@ -25,7 +25,10 @@ module Google # @see https://cloud.google.com/monitoring/v2beta2/ module CloudmonitoringV2beta2 VERSION = 'V2beta2' - REVISION = '20150622' + REVISION = '20150713' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' # View and write monitoring data for all of your Google and third-party Cloud and API projects AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring' diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index a632b095f..98bf517d3 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -21,15 +21,12 @@ module Google # Google Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, - # and updating of project metadata, including IAM policies, and will shortly - # provide the same for other high-level entities (e.g. customers and resource - # groups). Longer term, we expect the cloudresourcemanager API to encompass - # other Cloud resources as well. + # and updating of project metadata. # # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20150603' + REVISION = '20150711' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 89c972ee0..61a364b96 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -24,18 +24,17 @@ module Google # A Project is a high-level Google Cloud Platform entity. It is a container for # ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources. - # Projects are subordinate to Customers. class Project include Google::Apis::Core::Hashable - # The number uniquely identifying the project. Example: 415104041262. Read-only. + # The number uniquely identifying the project. Example: 415104041262 Read-only. # Corresponds to the JSON property `projectNumber` # @return [String] attr_accessor :project_number - # The unique, user-assigned id of the project. It must be 6 to 30 lowercase + # The unique, user-assigned ID of the project. It must be 6 to 30 lowercase # letters, digits, or hyphens. It must start with a letter. Trailing hyphens are - # prohibited. Example: "tokyo-rain-123" Read-only after creation. + # prohibited. Example: tokyo-rain-123 Read-only after creation. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -46,9 +45,9 @@ module Google attr_accessor :lifecycle_state # The user-assigned name of the project. This field is optional and can remain - # unset. Allowed characters are: lower- and upper-case letters, numbers, hyphen, - # single-quote, double-quotes, space, and exclamation point. Example: "My - # Project" Read-write. + # unset. Allowed characters are: lowercase and uppercase letters, numbers, + # hyphen, single-quote, double-quote, space, and exclamation point. Example: My + # Project Read-write. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -59,13 +58,13 @@ module Google attr_accessor :create_time # The labels associated with this project. Label keys must be between 1 and 63 - # characters long and must conform to the following regular expression: [a-z]([- - # a-z0-9]*[a-z0-9])?. Label values must be between 0 and 63 characters long and - # must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. No more - # than 256 labels can be associated with a given resource. Note that additional - # character may be included in labels in the future. Clients should store labels - # in a representation such as JSON that does not depend on specific characters - # being disallowed. Example: "environment" : "dev" Read-write. + # characters long and must conform to the following regular expression: \[a-z\](\ + # [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long + # and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + # No more than 256 labels can be associated with a given resource. Clients + # should store labels in a representation such as JSON that does not depend on + # specific characters being disallowed. Example: "environment" : "dev" Read- + # write. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -85,10 +84,11 @@ module Google end end - # A page of the response received from the [ListProjects][cloudresourcemanager. - # projects.v1beta1.Projects.ListProjects] method. A paginated response where - # more pages are available has `next_page_token` set. This token can be used in - # a subsequent request to retrieve the next request page. + # A page of the response received from the [ListProjects][google. + # cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] method. + # A paginated response where more pages are available has `next_page_token` set. + # This token can be used in a subsequent request to retrieve the next request + # page. class ListProjectsResponse include Google::Apis::Core::Hashable @@ -122,7 +122,8 @@ module Google # 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); ` + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index 71e5df497..257120d02 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -23,10 +23,7 @@ module Google # Google Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, - # and updating of project metadata, including IAM policies, and will shortly - # provide the same for other high-level entities (e.g. customers and resource - # groups). Longer term, we expect the cloudresourcemanager API to encompass - # other Cloud resources as well. + # and updating of project metadata. # # @example # require 'google/apis/cloudresourcemanager_v1beta1' @@ -98,13 +95,14 @@ module Google # this field. Optional. # @param [String] filter # An expression for filtering the results of the request. Filter rules are case - # insensitive. The fields eligible for filtering are: name id labels. where is - # a the name of a label Examples: name:* ==> The project has a name. name:Howl == - # > The project’s name is `Howl` or 'howl'. name:HOWL ==> Equivalent to above. - # NAME:howl ==> Equivalent to above. labels.color:* ==> The project has the - # label "color". labels.color:red ==> The project’s label `color` has the value ` - # red`. labels.color:red label.size:big ==> The project's label `color` has the - # value `red` and its label `size` has the value `big`. Optional. + # insensitive. The fields eligible for filtering are: + `name` + `id` + labels. + # key where *key* is the name of a label Some examples of using labels as + # filters: |Filter|Description| |------|-----------| |name:*|The project has a + # name.| |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL| + # Equivalent to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The + # project has the label `color`.| |labels.color:red|The project's label `color` + # has the value `red`.| |labels.color:red label.size:big|The project's label ` + # color` has the value `red` and its label `size` has the value `big`. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -204,24 +202,26 @@ module Google end # Marks the project identified by the specified `project_id` (for example, `my- - # project-123`) for deletion. This method will only affect the project if it has - # a lifecycle state of [ACTIVE][cloudresourcemanager.projects.v1beta2. - # LifecycleState.ACTIVE] when this method is called. Otherwise this method does - # nothing (since all other states are phases of deletion). This method changes - # the project's lifecycle state from [ACTIVE][cloudresourcemanager.projects. - # v1beta2.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [cloudresourcemanager. - # projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The deletion starts at an - # unspecified time, at which point the lifecycle state changes to [ - # DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2.LifecycleState. - # DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle - # state checked by retrieving the project with [GetProject] [ - # cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project - # remains visible to [ListProjects] [cloudresourcemanager.projects.v1beta2. - # Projects.ListProjects]. However, you cannot update the project. After the - # deletion completes, the project is not retrievable by the [GetProject] [ - # cloudresourcemanager.projects.v1beta2.Projects.GetProject] and [ListProjects] [ - # cloudresourcemanager.projects.v1beta2.Projects.ListProjects] methods. The - # caller must have modify permissions for this project. + # project-123`) for deletion. This method will only affect the project if the + # following criteria are met: + The project does not have a billing account + # associated with it. + The project has a lifecycle state of [ACTIVE][google. + # cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method + # changes the project's lifecycle state from [ACTIVE][google. + # cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [ + # DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState. + # DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point + # the lifecycle state changes to [DELETE_IN_PROGRESS] [google. + # cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. + # Until the deletion completes, you can check the lifecycle state checked by + # retrieving the project with [GetProject] [google.cloudresourcemanager.projects. + # v1beta1.DeveloperProjects.GetProject], and the project remains visible to [ + # ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects. + # ListProjects]. However, you cannot update the project. After the deletion + # completes, the project is not retrievable by the [GetProject] [google. + # cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [ + # ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects. + # ListProjects] methods. The caller must have modify permissions for this + # project. # @param [String] project_id # The project ID (for example, `foo-bar-123`). Required. # @param [String] fields @@ -254,11 +254,11 @@ module Google # Restores the project identified by the specified `project_id` (for example, ` # my-project-123`). You can only use this method for a project that has a - # lifecycle state of [DELETE_REQUESTED] [cloudresourcemanager.projects.v1beta2. - # LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a - # lifecycle state of [DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2. - # LifecycleState.DELETE_IN_PROGRESS], the project cannot be restored. The caller - # must have modify permissions for this project. + # lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects. + # v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated + # by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager. + # projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be + # restored. The caller must have modify permissions for this project. # @param [String] project_id # The project ID (for example, `foo-bar-123`). Required. # @param [String] fields diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 90b790693..3351859b1 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20150617' + REVISION = '20150713' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 10b63ff92..868b0d9c5 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -479,33 +479,417 @@ module Google end end - # Message containing information of one individual backend. - class Backend + # + class Autoscaler include Google::Apis::Core::Hashable - # The balancing mode of this backend, default is UTILIZATION. - # Corresponds to the JSON property `balancingMode` + # Cloud Autoscaler policy. + # Corresponds to the JSON property `autoscalingPolicy` + # @return [Google::Apis::ComputeV1::AutoscalingPolicy] + attr_accessor :autoscaling_policy + + # Creation timestamp in RFC3339 text format (output only). + # Corresponds to the JSON property `creationTimestamp` # @return [String] - attr_accessor :balancing_mode + attr_accessor :creation_timestamp - # The multiplier (a value between 0.0 and 1.0) of the max capacity (CPU or RPS, - # depending on 'balancingMode') the group should serve up to. 0 means the group - # is totally drained. Default value is 1. Valid range is [0.0, 1.0]. - # Corresponds to the JSON property `capacityScaler` - # @return [Float] - attr_accessor :capacity_scaler - - # An optional textual description of the resource, which is provided by the - # client when the resource is created. + # An optional textual description of the resource; provided by the client when + # the resource is created. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # URL of a zonal Cloud Resource View resource. This resource view defines the - # list of instances that serve traffic. Member virtual machine instances from - # each resource view must live in the same zone as the resource view itself. No - # two backends in a backend service are allowed to use same Resource View - # resource. + # Unique identifier for the resource; defined by the server (output only). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Type of the resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource; provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Server defined URL for the resource (output only). + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # URL of Instance Group Manager or Replica Pool which will be controlled by + # Autoscaler. + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # URL of the zone where the instance group resides (output only). + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @autoscaling_policy = args[:autoscaling_policy] unless args[:autoscaling_policy].nil? + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @target = args[:target] unless args[:target].nil? + @zone = args[:zone] unless args[:zone].nil? + end + end + + # + class AutoscalerAggregatedList + include Google::Apis::Core::Hashable + + # Unique identifier for the resource; defined by the server (output only). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A map of scoped autoscaler lists. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A token used to continue a truncated list request (output only). + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Server defined URL for this resource (output only). + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # Contains a list of persistent autoscaler resources. + class AutoscalerList + include Google::Apis::Core::Hashable + + # Unique identifier for the resource; defined by the server (output only). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of Autoscaler resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A token used to continue a truncated list request (output only). + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Server defined URL for this resource (output only). + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # + class AutoscalersScopedList + include Google::Apis::Core::Hashable + + # List of autoscalers contained in this scope. + # Corresponds to the JSON property `autoscalers` + # @return [Array] + attr_accessor :autoscalers + + # Informational warning which replaces the list of autoscalers when the list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::AutoscalersScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @autoscalers = args[:autoscalers] unless args[:autoscalers].nil? + @warning = args[:warning] unless args[:warning].nil? + end + + # Informational warning which replaces the list of autoscalers when the list is + # empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] The warning type identifier for this warning. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata for this warning in key: value format. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] Optional human-readable details for this warning. + # 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] unless args[:code].nil? + @data = args[:data] unless args[:data].nil? + @message = args[:message] unless args[:message].nil? + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key for the warning data. + # 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] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + end + end + + # Cloud Autoscaler policy. + class AutoscalingPolicy + include Google::Apis::Core::Hashable + + # The number of seconds that the Autoscaler should wait between two succeeding + # changes to the number of virtual machines. You should define an interval that + # is at least as long as the initialization time of a virtual machine and the + # time it may take for replica pool to create the virtual machine. The default + # is 60 seconds. + # Corresponds to the JSON property `coolDownPeriodSec` + # @return [Fixnum] + attr_accessor :cool_down_period_sec + + # CPU utilization policy. + # Corresponds to the JSON property `cpuUtilization` + # @return [Google::Apis::ComputeV1::AutoscalingPolicyCpuUtilization] + attr_accessor :cpu_utilization + + # Configuration parameters of autoscaling based on custom metric. + # Corresponds to the JSON property `customMetricUtilizations` + # @return [Array] + attr_accessor :custom_metric_utilizations + + # Load balancing utilization policy. + # Corresponds to the JSON property `loadBalancingUtilization` + # @return [Google::Apis::ComputeV1::AutoscalingPolicyLoadBalancingUtilization] + attr_accessor :load_balancing_utilization + + # The maximum number of replicas that the Autoscaler can scale up to. This field + # is required for config to be effective. Maximum number of replicas should be + # not lower than minimal number of replicas. Absolute limit for this value is + # defined in Autoscaler backend. + # Corresponds to the JSON property `maxNumReplicas` + # @return [Fixnum] + attr_accessor :max_num_replicas + + # The minimum number of replicas that the Autoscaler can scale down to. Can't be + # less than 0. If not provided Autoscaler will choose default value depending on + # maximal number of replicas. + # Corresponds to the JSON property `minNumReplicas` + # @return [Fixnum] + attr_accessor :min_num_replicas + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cool_down_period_sec = args[:cool_down_period_sec] unless args[:cool_down_period_sec].nil? + @cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil? + @custom_metric_utilizations = args[:custom_metric_utilizations] unless args[:custom_metric_utilizations].nil? + @load_balancing_utilization = args[:load_balancing_utilization] unless args[:load_balancing_utilization].nil? + @max_num_replicas = args[:max_num_replicas] unless args[:max_num_replicas].nil? + @min_num_replicas = args[:min_num_replicas] unless args[:min_num_replicas].nil? + end + end + + # CPU utilization policy. + class AutoscalingPolicyCpuUtilization + include Google::Apis::Core::Hashable + + # The target utilization that the Autoscaler should maintain. It is represented + # as a fraction of used cores. For example: 6 cores used in 8-core VM are + # represented here as 0.75. Must be a float value between (0, 1]. If not defined, + # the default is 0.8. + # Corresponds to the JSON property `utilizationTarget` + # @return [Float] + attr_accessor :utilization_target + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + end + end + + # Custom utilization metric policy. + class AutoscalingPolicyCustomMetricUtilization + include Google::Apis::Core::Hashable + + # Identifier of the metric. It should be a Cloud Monitoring metric. The metric + # can not have negative values. The metric should be an utilization metric ( + # increasing number of VMs handling requests x times should reduce average value + # of the metric roughly x times). For example you could use: compute.googleapis. + # com/instance/network/received_bytes_count. + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + # Target value of the metric which Autoscaler should maintain. Must be a + # positive value. + # Corresponds to the JSON property `utilizationTarget` + # @return [Float] + attr_accessor :utilization_target + + # Defines type in which utilization_target is expressed. + # Corresponds to the JSON property `utilizationTargetType` + # @return [String] + attr_accessor :utilization_target_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric = args[:metric] unless args[:metric].nil? + @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + @utilization_target_type = args[:utilization_target_type] unless args[:utilization_target_type].nil? + end + end + + # Load balancing utilization policy. + class AutoscalingPolicyLoadBalancingUtilization + include Google::Apis::Core::Hashable + + # Fraction of backend capacity utilization (set in HTTP load balancing + # configuration) that Autoscaler should maintain. Must be a positive float value. + # If not defined, the default is 0.8. For example if your maxRatePerInstance + # capacity (in HTTP Load Balancing configuration) is set at 10 and you would + # like to keep number of instances such that each instance receives 7 QPS on + # average, set this to 0.7. + # Corresponds to the JSON property `utilizationTarget` + # @return [Float] + attr_accessor :utilization_target + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + end + end + + # Message containing information of one individual backend. + class Backend + include Google::Apis::Core::Hashable + + # Specifies the balancing mode for this backend. The default is UTILIZATION but + # available values are UTILIZATION and RATE. + # Corresponds to the JSON property `balancingMode` + # @return [String] + attr_accessor :balancing_mode + + # A multiplier applied to the group's maximum servicing capacity (either + # UTILIZATION or RATE). Default value is 1, which means the group will serve up + # to 100% of its configured CPU or RPS (depending on balancingMode). A setting + # of 0 means the group is completely drained, offering 0% of its available CPU + # or RPS. Valid range is [0.0,1.0]. + # Corresponds to the JSON property `capacityScaler` + # @return [Float] + attr_accessor :capacity_scaler + + # An optional textual description of the resource. Provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The fully-qualified URL of a zonal Instance Group resource. This instance + # group defines the list of instances that serve traffic. Member virtual machine + # instances from each instance group must live in the same zone as the instance + # group itself. No two backends in a backend service are allowed to use same + # Instance Group resource. + # Note that you must specify an Instance Group resource using the fully- + # qualified URL, rather than a partial URL. # Corresponds to the JSON property `group` # @return [String] attr_accessor :group @@ -523,8 +907,8 @@ module Google # @return [Float] attr_accessor :max_rate_per_instance - # Used when 'balancingMode' is UTILIZATION. This ratio defines the CPU - # utilization target for the group. The default is 0.8. Valid range is [0, 1]. + # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization + # target for the group. The default is 0.8. Valid range is [0.0, 1.0]. # Corresponds to the JSON property `maxUtilization` # @return [Float] attr_accessor :max_utilization @@ -547,16 +931,6 @@ module Google # A BackendService resource. This resource defines a group of backend VMs # together with their serving capacity. - # If you add field foo, you probably need to also add: com.google.cloud.cluster. - # manager.api.BackendServiceResource: foo com.google.cloud.cluster.manager. - # networking.entities: BackendService, BackendServiceEntity: getFoo, setFoo: - # Converters/mappers will need to be updated: com.google.cloud.cluster.manager. - # networking.services.backendservice.BackendServiceResourceConverter: toResource, - # updateEntity: copy foo com.google.cloud.cluster.mixer.protomappers. - # BackendServiceMappers.ResourceMapper: ResourceMapper: add a new map call - # Tests to update: com.google.cloud.cluster.manager.networking.services. - # backendservice.BackendServiceResourceConverterTest com.google.cloud.cluster. - # mixer.protomappers.BackendServiceMappersTest.testResourceMapping class BackendService include Google::Apis::Core::Hashable @@ -565,12 +939,12 @@ module Google # @return [Array] attr_accessor :backends - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp - # An optional textual description of the resource; provided by the client when + # An optional textual description of the resource. Provided by the client when # the resource is created. # Corresponds to the JSON property `description` # @return [String] @@ -591,23 +965,28 @@ module Google # @return [Array] attr_accessor :health_checks - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Type of the resource. + # [Output Only] Type of resource. Always compute#backendService for backend + # services. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Deprecated in favor of port_name. The TCP port to connect on the backend. The + # Deprecated in favor of port name. The TCP port to connect on the backend. The # default value is 80. # Corresponds to the JSON property `port` # @return [Fixnum] @@ -624,7 +1003,7 @@ module Google # @return [String] attr_accessor :protocol - # Server defined URL for the resource (output only). + # [Output Only] Server defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -666,7 +1045,8 @@ module Google # @return [Array] attr_accessor :health_status - # Type of resource. + # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for + # the health of backend services. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -686,7 +1066,7 @@ module Google class BackendServiceList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -696,17 +1076,18 @@ module Google # @return [Array] attr_accessor :items - # Type of resource. + # [Output Only] Type of resource. Always compute#backendServiceList for lists of + # backend services. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1400,7 +1781,7 @@ module Google # @return [Array] attr_accessor :allowed - # [Output Only] Creation timestamp in RFC3339text format. + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -1452,25 +1833,26 @@ module Google # The IP address blocks that this rule applies to, expressed in CIDR format. One # or both of sourceRanges and sourceTags may be set. - # If both properties are set, an inbound connection is allowed if the range or - # the tag of the source matches the sourceRanges OR matches the sourceTags - # property; the connection does not need to match both properties. + # If both properties are set, an inbound connection is allowed if the range + # matches the sourceRanges OR the tag of the source matches the sourceTags + # property. The connection does not need to match both properties. # Corresponds to the JSON property `sourceRanges` # @return [Array] attr_accessor :source_ranges # A list of instance tags which this rule applies to. One or both of # sourceRanges and sourceTags may be set. - # If both properties are set, an inbound connection is allowed if the range or - # the tag of the source matches the sourceRanges OR matches the sourceTags - # property; the connection does not need to match both properties. + # If both properties are set, an inbound connection is allowed if the range + # matches the sourceRanges OR the tag of the source matches the sourceTags + # property. The connection does not need to match both properties. # Corresponds to the JSON property `sourceTags` # @return [Array] attr_accessor :source_tags - # A list of instance tags indicating sets of instances located on network which - # may make network connections as specified in allowed[]. If no targetTags are - # specified, the firewall rule applies to all instances on the specified network. + # A list of instance tags indicating sets of instances located in the network + # that may make network connections as specified in allowed[]. If no targetTags + # are specified, the firewall rule applies to all instances on the specified + # network. # Corresponds to the JSON property `targetTags` # @return [Array] attr_accessor :target_tags @@ -1585,13 +1967,13 @@ module Google # @return [String] attr_accessor :ip_address - # The IP protocol to which this rule applies, valid options are 'TCP', 'UDP', ' - # ESP', 'AH' or 'SCTP'. + # The IP protocol to which this rule applies, valid options are TCP, UDP, ESP, + # AH or SCTP. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -1602,7 +1984,7 @@ module Google # @return [String] attr_accessor :description - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1613,27 +1995,30 @@ module Google attr_accessor :kind # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Applicable only when 'IPProtocol' is 'TCP', 'UDP' or 'SCTP', only packets - # addressed to ports in the specified range will be forwarded to 'target'. If ' - # portRange' is left empty (default value), all ports are forwarded. Forwarding - # rules with the same [IPAddress, IPProtocol] pair must have disjoint port - # ranges. + # Applicable only when `IPProtocol` is TCP, UDP, or SCTP, only packets addressed + # to ports in the specified range will be forwarded to target. If portRange is + # left empty (default value), all ports are forwarded. Forwarding rules with the + # same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. # Corresponds to the JSON property `portRange` # @return [String] attr_accessor :port_range - # URL of the region where the regional forwarding rule resides (output only). + # [Output Only] URL of the region where the regional forwarding rule resides. # This field is not applicable to global forwarding rules. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region - # Server defined URL for the resource (output only). + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1641,7 +2026,7 @@ module Google # The URL of the target resource to receive the matched traffic. For regional # forwarding rules, this target must live in the same region as the forwarding # rule. For global forwarding rules, this target must be a global - # TargetHttpProxy resource. + # TargetHttpProxy or TargetHttpsProxy resource. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -1670,7 +2055,7 @@ module Google class ForwardingRuleAggregatedList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1685,12 +2070,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1713,7 +2098,7 @@ module Google class ForwardingRuleList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Set by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1728,12 +2113,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1891,12 +2276,12 @@ module Google end end - # A host-matching rule for a URL. If matched, will use the named PathMatcher to - # select the BackendService. + # UrlMaps A host-matching rule for a URL. If matched, will use the named + # PathMatcher to select the BackendService. class HostRule include Google::Apis::Core::Hashable - # + # An optional textual description. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -1909,7 +2294,7 @@ module Google attr_accessor :hosts # The name of the PathMatcher to match the path portion of the URL, if the this - # HostRule matches the URL's host portion. + # hostRule matches the URL's host portion. # Corresponds to the JSON property `pathMatcher` # @return [String] attr_accessor :path_matcher @@ -2452,6 +2837,922 @@ module Google end end + # + class InstanceGroup + include Google::Apis::Core::Hashable + + # [Output Only] The creation timestamp for this instance group in RFC3339 text + # format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional text description for the instance group. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The fingerprint of the named ports information. The system uses + # this fingerprint to detect conflicts when multiple users change the named + # ports information concurrently. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # [Output Only] A unique identifier for this instance group. The server defines + # this identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] The resource type, which is always compute#instanceGroup for + # instance groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the instance group. The name must be 1-63 characters long, and + # comply with RFC1035. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Assigns a name to a port number. For example: `name: ?http?, port: 80` This + # allows the system to reference ports by the assigned name instead of a port + # number. Named ports can also contain multiple ports. For example: [`name: ? + # http?, port: 80`,`name: "http", port: 8080`] Named ports apply to all + # instances in this instance group. + # Corresponds to the JSON property `namedPorts` + # @return [Array] + attr_accessor :named_ports + + # The URL of the network to which all instances in the instance group belong. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # [Output Only] The URL for this instance group. The server defines this URL. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The total number of instances in the instance group. + # Corresponds to the JSON property `size` + # @return [Fixnum] + attr_accessor :size + + # The URL of the zone where the instance group is located. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @named_ports = args[:named_ports] unless args[:named_ports].nil? + @network = args[:network] unless args[:network].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @size = args[:size] unless args[:size].nil? + @zone = args[:zone] unless args[:zone].nil? + end + end + + # + class InstanceGroupAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] A unique identifier for this aggregated list of instance groups. + # The server defines this identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A map of scoped instance group lists. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] The resource type, which is always compute# + # instanceGroupAggregatedList for aggregated lists of instance groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token that is used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] A unique identifier for this aggregated list of instance groups. + # The server defines this identifier. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # A list of InstanceGroup resources. + class InstanceGroupList + include Google::Apis::Core::Hashable + + # [Output Only] A unique identifier for this list of instance groups. The server + # defines this identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of InstanceGroup resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] The resource type, which is always compute#instanceGroupList for + # instance group lists. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token that is used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] The URL for this instance group. The server defines this URL. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # InstanceGroupManagers + # Next available tag: 17 + class InstanceGroupManager + include Google::Apis::Core::Hashable + + # The autohealing policy for this managed instance group. You can specify only + # one value. + # Corresponds to the JSON property `autoHealingPolicies` + # @return [Array] + attr_accessor :auto_healing_policies + + # The base instance name to use for instances in this group. The value must be 1- + # 58 characters long. Instances are named by appending a hyphen and a random + # four-character string to the base instance name. The base instance name must + # comply with RFC1035. + # Corresponds to the JSON property `baseInstanceName` + # @return [String] + attr_accessor :base_instance_name + + # [Output Only] The creation timestamp for this managed instance group in + # RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # [Output Only] The list of instance actions and the number of instances in this + # managed instance group that are scheduled for those actions. + # Corresponds to the JSON property `currentActions` + # @return [Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary] + attr_accessor :current_actions + + # An optional text description for the managed instance group. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The fingerprint of the target pools information, which is a hash + # of the contents. This field is used for optimistic locking when updating the + # target pool entries. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # [Output Only] A unique identifier for this managed instance group. The server + # defines this identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] The URL of the InstanceGroup resource. + # Corresponds to the JSON property `instanceGroup` + # @return [String] + attr_accessor :instance_group + + # The URL of the instance template that is specified for this managed instance + # group. The group uses this template to create all new instances in the managed + # instance group. + # Corresponds to the JSON property `instanceTemplate` + # @return [String] + attr_accessor :instance_template + + # [Output Only] The resource type, which is always compute#instanceGroupManager + # for managed instance groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the managed instance group. The name must be 1-63 characters long, + # and comply with RFC1035. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server defined URL for this managed instance group. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # The URL of all TargetPool resources to which new instances in the + # instanceGroup field are added. Updating the target pool values does not affect + # existing instances. + # Corresponds to the JSON property `targetPools` + # @return [Array] + attr_accessor :target_pools + + # The target number of running instances for this managed instance group. + # Deleting or abandoning instances reduces this number. Resizing the group + # changes this number. + # Corresponds to the JSON property `targetSize` + # @return [Fixnum] + attr_accessor :target_size + + # The URL of the zone where the managed instance group is located. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_healing_policies = args[:auto_healing_policies] unless args[:auto_healing_policies].nil? + @base_instance_name = args[:base_instance_name] unless args[:base_instance_name].nil? + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @current_actions = args[:current_actions] unless args[:current_actions].nil? + @description = args[:description] unless args[:description].nil? + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @id = args[:id] unless args[:id].nil? + @instance_group = args[:instance_group] unless args[:instance_group].nil? + @instance_template = args[:instance_template] unless args[:instance_template].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @target_pools = args[:target_pools] unless args[:target_pools].nil? + @target_size = args[:target_size] unless args[:target_size].nil? + @zone = args[:zone] unless args[:zone].nil? + end + end + + # + class InstanceGroupManagerActionsSummary + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `abandoning` + # @return [Fixnum] + attr_accessor :abandoning + + # + # Corresponds to the JSON property `creating` + # @return [Fixnum] + attr_accessor :creating + + # + # Corresponds to the JSON property `deleting` + # @return [Fixnum] + attr_accessor :deleting + + # + # Corresponds to the JSON property `none` + # @return [Fixnum] + attr_accessor :none + + # + # Corresponds to the JSON property `recreating` + # @return [Fixnum] + attr_accessor :recreating + + # + # Corresponds to the JSON property `refreshing` + # @return [Fixnum] + attr_accessor :refreshing + + # + # Corresponds to the JSON property `restarting` + # @return [Fixnum] + attr_accessor :restarting + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @abandoning = args[:abandoning] unless args[:abandoning].nil? + @creating = args[:creating] unless args[:creating].nil? + @deleting = args[:deleting] unless args[:deleting].nil? + @none = args[:none] unless args[:none].nil? + @recreating = args[:recreating] unless args[:recreating].nil? + @refreshing = args[:refreshing] unless args[:refreshing].nil? + @restarting = args[:restarting] unless args[:restarting].nil? + end + end + + # + class InstanceGroupManagerAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] A unique identifier for this aggregated list of managed instance + # groups. The server defines this identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A map of filtered managed instance group lists. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute# + # instanceGroupManagerAggregatedList for an aggregated list of managed instance + # groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token that is used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] The URL for this aggregated list of managed instance groups. The + # server defines this URL. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # + class InstanceGroupManagerAutoHealingPolicy + include Google::Apis::Core::Hashable + + # The action to perform when an instance becomes unhealthy. Possible values are + # RECREATE or RESTART. RECREATE replaces an unhealthy instance with a new + # instance that is based on the instance template for this managed instance + # group. RESTART performs a soft restart on an instance. If the instance cannot + # restart softly, the instance performs a hard restart. + # Corresponds to the JSON property `actionType` + # @return [String] + attr_accessor :action_type + + # The URL for the HealthCheck that signals autohealing. + # Corresponds to the JSON property `healthCheck` + # @return [String] + attr_accessor :health_check + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_type = args[:action_type] unless args[:action_type].nil? + @health_check = args[:health_check] unless args[:health_check].nil? + end + end + + # [Output Only] A list of InstanceGroupManager resources. + class InstanceGroupManagerList + include Google::Apis::Core::Hashable + + # [Output Only] A unique identifier for this managed instance group. The server + # defines this identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of managed instance group resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute#instanceGroupManagerList + # for a list of managed instance group resources. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token that is used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] The URL for this managed instance group. The server defines this + # URL. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # + class InstanceGroupManagersAbandonInstancesRequest + include Google::Apis::Core::Hashable + + # The names of instances to abandon from the managed instance group. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] unless args[:instances].nil? + end + end + + # + class InstanceGroupManagersDeleteInstancesRequest + include Google::Apis::Core::Hashable + + # The names of one or more instances to delete. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] unless args[:instances].nil? + end + end + + # + class InstanceGroupManagersListManagedInstancesResponse + include Google::Apis::Core::Hashable + + # List of managed instances. If empty - all instances are listed. + # Corresponds to the JSON property `managedInstances` + # @return [Array] + attr_accessor :managed_instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @managed_instances = args[:managed_instances] unless args[:managed_instances].nil? + end + end + + # + class InstanceGroupManagersRecreateInstancesRequest + include Google::Apis::Core::Hashable + + # The names of one or more instances to recreate. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] unless args[:instances].nil? + end + end + + # + class InstanceGroupManagersScopedList + include Google::Apis::Core::Hashable + + # [Output Only] The list of managed instance groups that are contained in the + # specified project and zone. + # Corresponds to the JSON property `instanceGroupManagers` + # @return [Array] + attr_accessor :instance_group_managers + + # [Output Only] The warning that replaces the list of managed instance groups + # when the list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance_group_managers = args[:instance_group_managers] unless args[:instance_group_managers].nil? + @warning = args[:warning] unless args[:warning].nil? + end + + # [Output Only] The warning that replaces the list of managed instance groups + # when the list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] The warning type identifier for this warning. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata for this warning in key: value format. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] Optional human-readable details for this warning. + # 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] unless args[:code].nil? + @data = args[:data] unless args[:data].nil? + @message = args[:message] unless args[:message].nil? + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key for the warning data. + # 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] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + end + end + + # + class InstanceGroupManagersSetInstanceTemplateRequest + include Google::Apis::Core::Hashable + + # The URL of the instance template that is specified for this managed instance + # group. The group uses this template to create all new instances in the managed + # instance group. + # Corresponds to the JSON property `instanceTemplate` + # @return [String] + attr_accessor :instance_template + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance_template = args[:instance_template] unless args[:instance_template].nil? + end + end + + # + class InstanceGroupManagersSetTargetPoolsRequest + include Google::Apis::Core::Hashable + + # The fingerprint of the target pools information, which is a hash of the + # contents. This field is used for optimistic locking when updating the target + # pool entries. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # The list of target pool URLs that instances in this managed instance group + # belong to. When the managed instance group creates new instances, the group + # automatically adds those instances to the target pools that are specified in + # this parameter. Changing the value of this parameter does not change the + # target pools of existing instances in this managed instance group. + # Corresponds to the JSON property `targetPools` + # @return [Array] + attr_accessor :target_pools + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @target_pools = args[:target_pools] unless args[:target_pools].nil? + end + end + + # + class InstanceGroupsAddInstancesRequest + include Google::Apis::Core::Hashable + + # The instances to add to the instance group. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] unless args[:instances].nil? + end + end + + # + class InstanceGroupsListInstances + include Google::Apis::Core::Hashable + + # [Output Only] A unique identifier for this list of instance groups. The server + # defines this identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of InstanceWithNamedPorts resources, which contains all named ports for + # the given instance. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] The resource type, which is always compute# + # instanceGroupsListInstances for lists of instance groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token that is used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] The URL for this list of instance groups. The server defines + # this URL. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # + class InstanceGroupsListInstancesRequest + include Google::Apis::Core::Hashable + + # A filter for the state of the instances in the instance group. Valid options + # are ALL or RUNNING. If you do not specify this parameter the list includes all + # instances regardless of their state. + # Corresponds to the JSON property `instanceState` + # @return [String] + attr_accessor :instance_state + + # A filter for the named ports that are associated with instances in the + # instance group. If you specify this parameter, the generated list includes + # only instances that are associated with the specified named ports. If you do + # not specify this parameter, the generated list includes all instances + # regardless of their named ports. + # Corresponds to the JSON property `portName` + # @return [String] + attr_accessor :port_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance_state = args[:instance_state] unless args[:instance_state].nil? + @port_name = args[:port_name] unless args[:port_name].nil? + end + end + + # + class InstanceGroupsRemoveInstancesRequest + include Google::Apis::Core::Hashable + + # The instances to remove from the instance group. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] unless args[:instances].nil? + end + end + + # + class InstanceGroupsScopedList + include Google::Apis::Core::Hashable + + # [Output Only] The list of instance groups that are contained in this scope. + # Corresponds to the JSON property `instanceGroups` + # @return [Array] + attr_accessor :instance_groups + + # [Output Only] An informational warning that replaces the list of instance + # groups when the list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance_groups = args[:instance_groups] unless args[:instance_groups].nil? + @warning = args[:warning] unless args[:warning].nil? + end + + # [Output Only] An informational warning that replaces the list of instance + # groups when the list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] The warning type identifier for this warning. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata for this warning in key: value format. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] Optional human-readable details for this warning. + # 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] unless args[:code].nil? + @data = args[:data] unless args[:data].nil? + @message = args[:message] unless args[:message].nil? + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key for the warning data. + # 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] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + end + end + + # + class InstanceGroupsSetNamedPortsRequest + include Google::Apis::Core::Hashable + + # The fingerprint of the named ports information, which is a hash of the + # contents. Use this field for optimistic locking when you update the named + # ports entries. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # The list of named ports to set for this instance group. + # Corresponds to the JSON property `namedPorts` + # @return [Array] + attr_accessor :named_ports + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @named_ports = args[:named_ports] unless args[:named_ports].nil? + end + end + # Contains a list of instance resources. class InstanceList include Google::Apis::Core::Hashable @@ -2735,6 +4036,37 @@ module Google end end + # + class InstanceWithNamedPorts + include Google::Apis::Core::Hashable + + # The URL of the instance. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The named ports that belong to this instance group. + # Corresponds to the JSON property `namedPorts` + # @return [Array] + attr_accessor :named_ports + + # The status of the instance. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] unless args[:instance].nil? + @named_ports = args[:named_ports] unless args[:named_ports].nil? + @status = args[:status] unless args[:status].nil? + end + end + # class InstancesScopedList include Google::Apis::Core::Hashable @@ -3148,6 +4480,120 @@ module Google end end + # + class ManagedInstance + include Google::Apis::Core::Hashable + + # The current action that the managed instance group has scheduled for the + # instance. + # Corresponds to the JSON property `currentAction` + # @return [String] + attr_accessor :current_action + + # The unique identifier for this resource (empty when instance does not exist). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The URL of the instance (set even though instance does not exist yet). + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The status of the instance (empty when instance does not exist). + # Corresponds to the JSON property `instanceStatus` + # @return [String] + attr_accessor :instance_status + + # Information about the last attempt to create or delete the instance. + # Corresponds to the JSON property `lastAttempt` + # @return [Google::Apis::ComputeV1::ManagedInstanceLastAttempt] + attr_accessor :last_attempt + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_action = args[:current_action] unless args[:current_action].nil? + @id = args[:id] unless args[:id].nil? + @instance = args[:instance] unless args[:instance].nil? + @instance_status = args[:instance_status] unless args[:instance_status].nil? + @last_attempt = args[:last_attempt] unless args[:last_attempt].nil? + end + end + + # + class ManagedInstanceLastAttempt + include Google::Apis::Core::Hashable + + # Encountered errors during the last attempt to create or delete the instance. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors = args[:errors] unless args[:errors].nil? + end + + # Encountered errors during the last attempt to create or delete the instance. + class Errors + include Google::Apis::Core::Hashable + + # [Output Only] The array of errors encountered while processing this operation. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors = args[:errors] unless args[:errors].nil? + end + + # + class Error + include Google::Apis::Core::Hashable + + # [Output Only] The error type identifier for this error. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Indicates the field in the request which caused the error. This + # property is optional. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # [Output Only] An optional, human-readable error message. + # 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] unless args[:code].nil? + @location = args[:location] unless args[:location].nil? + @message = args[:message] unless args[:message].nil? + end + end + end + end + # A metadata key/value entry. class Metadata include Google::Apis::Core::Hashable @@ -3215,6 +4661,31 @@ module Google end end + # The named port information. For example: . + class NamedPort + include Google::Apis::Core::Hashable + + # The name for this NamedPort. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The port number, which can be a value between 1 and 65535. + # Corresponds to the JSON property `port` + # @return [Fixnum] + attr_accessor :port + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @port = args[:port] unless args[:port].nil? + end + end + # A network resource. class Network include Google::Apis::Core::Hashable @@ -3231,7 +4702,7 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional textual description of the resource; provided by the client when + # An optional textual description of the resource. Provided by the client when # the resource is created. # Corresponds to the JSON property `description` # @return [String] @@ -3244,7 +4715,7 @@ module Google # @return [String] attr_accessor :gateway_i_pv4 - # [Output Only] Unique identifier for the resource; defined by the server. + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -3254,7 +4725,7 @@ module Google # @return [String] attr_accessor :kind - # 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 match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -3340,7 +4811,7 @@ module Google class NetworkList include Google::Apis::Core::Hashable - # [Output Only] Unique identifier for the resource; defined by the server. + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -3380,12 +4851,12 @@ module Google end end - # An operation resource, used to manage asynchronous API requests. + # An Operation resource, used to manage asynchronous API requests. class Operation include Google::Apis::Core::Hashable # [Output Only] An optional identifier specified by the client when the mutation - # was initiated. Must be unique for all operation resources in the project. + # was initiated. Must be unique for all Operation resources in the project. # Corresponds to the JSON property `clientOperationId` # @return [String] attr_accessor :client_operation_id @@ -3693,7 +5164,7 @@ module Google end end - # Contains a list of operation resources. + # Contains a list of Operation resources. class OperationList include Google::Apis::Core::Hashable @@ -3702,7 +5173,7 @@ module Google # @return [String] attr_accessor :id - # [Output Only] The operation resources. + # [Output Only] The Operation resources. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items @@ -3832,7 +5303,7 @@ module Google # @return [String] attr_accessor :default_service - # + # An optional textual description of the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -4134,56 +5605,63 @@ module Google # the system selects the Route with the smallest priority value. If there is # still a tie, it uses the layer three and four packet headers to select just # one of the remaining matching Routes. The packet is then forwarded as - # specified by the next_hop field of the winning Route -- either to another VM + # specified by the nextHop field of the winning Route -- either to another VM # destination, a VM gateway or a GCE operated gateway. Packets that do not match - # any Route in the sending VM's routing table will be dropped. + # any Route in the sending VM's routing table are dropped. class Route include Google::Apis::Core::Hashable - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp - # An optional textual description of the resource; provided by the client when + # An optional textual description of the resource. Provided by the client when # the resource is created. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Which packets does this route apply to? + # The destination range of outgoing packets that this route applies to. # Corresponds to the JSON property `destRange` # @return [String] attr_accessor :dest_range - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Type of the resource. + # [Output Only] Type of this resource. Always compute#routes for Route resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # URL of the network to which this route is applied; provided by the client when - # the route is created. + # Fully-qualified URL of the network that this route applies to. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # The URL to a gateway that should handle matching packets. + # The URL to a gateway that should handle matching packets. Currently, this is + # only the internet gateway: projects//global/gateways/default- + # internet-gateway # Corresponds to the JSON property `nextHopGateway` # @return [String] attr_accessor :next_hop_gateway - # The URL to an instance that should handle matching packets. + # The fully-qualified URL to an instance that should handle matching packets. + # For example: + # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ # Corresponds to the JSON property `nextHopInstance` # @return [String] attr_accessor :next_hop_instance @@ -4210,7 +5688,7 @@ module Google # @return [Fixnum] attr_accessor :priority - # Server defined URL for the resource (output only). + # [Output Only] Server-defined fully-qualified URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4220,8 +5698,8 @@ module Google # @return [Array] attr_accessor :tags - # If potential misconfigurations are detected for this route, this field will be - # populated with warning messages. + # [Output Only] If potential misconfigurations are detected for this route, this + # field will be populated with warning messages. # Corresponds to the JSON property `warnings` # @return [Array] attr_accessor :warnings @@ -4311,7 +5789,7 @@ module Google class RouteList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -4326,12 +5804,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4446,7 +5924,7 @@ module Google class Snapshot include Google::Apis::Core::Hashable - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -4457,17 +5935,18 @@ module Google # @return [String] attr_accessor :description - # Size of the persistent disk snapshot, specified in GB (output only). + # [Output Only] Size of the snapshot, specified in GB. # Corresponds to the JSON property `diskSizeGb` # @return [String] attr_accessor :disk_size_gb - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Type of the resource. + # [Output Only] Type of the resource. Always compute#snapshot for Snapshot + # resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -4478,12 +5957,16 @@ module Google attr_accessor :licenses # 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. + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Server defined URL for the resource (output only). + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4493,26 +5976,27 @@ module Google # @return [String] attr_accessor :source_disk - # The 'id' value of the disk used to create this snapshot. This value may be - # used to determine whether the snapshot was taken from the current or a - # previous instance of a given disk name. + # [Output Only] The ID value of the disk used to create this snapshot. This + # value may be used to determine whether the snapshot was taken from the current + # or a previous instance of a given disk name. # Corresponds to the JSON property `sourceDiskId` # @return [String] attr_accessor :source_disk_id - # The status of the persistent disk snapshot (output only). + # [Output Only] The status of the snapshot. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # A size of the the storage used by the snapshot. As snapshots share storage - # this number is expected to change with snapshot creation/deletion. + # [Output Only] A size of the the storage used by the snapshot. As snapshots + # share storage, this number is expected to change with snapshot creation/ + # deletion. # Corresponds to the JSON property `storageBytes` # @return [String] attr_accessor :storage_bytes - # An indicator whether storageBytes is in a stable state, or it is being - # adjusted as a result of shared storage reallocation. + # [Output Only] An indicator whether storageBytes is in a stable state or it is + # being adjusted as a result of shared storage reallocation. # Corresponds to the JSON property `storageBytesStatus` # @return [String] attr_accessor :storage_bytes_status @@ -4539,7 +6023,7 @@ module Google end end - # Contains a list of persistent disk snapshot resources. + # Contains a list of Snapshot resources. class SnapshotList include Google::Apis::Core::Hashable @@ -4617,7 +6101,7 @@ module Google class TargetHttpProxy include Google::Apis::Core::Hashable - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -4628,23 +6112,28 @@ module Google # @return [String] attr_accessor :description - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Type of the resource. + # [Output Only] Type of resource. Always compute#Operation for Operation + # resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Server defined URL for the resource (output only). + # [Output Only] Server defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4671,11 +6160,11 @@ module Google end end - # Contains a list of TargetHttpProxy resources. + # A list of TargetHttpProxy resources. class TargetHttpProxyList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -4685,17 +6174,18 @@ module Google # @return [Array] attr_accessor :items - # Type of resource. + # Type of resource. Always compute#targetHttpProxyList for lists of Target HTTP + # proxies. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5392,8 +6882,12 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource. Provided by the client when the resource is created. The - # name must be 1-63 characters long and comply with RFC1035. + # Name of the resource; provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -5659,7 +7153,7 @@ module Google class UrlMap include Google::Apis::Core::Hashable - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -5669,7 +7163,7 @@ module Google # @return [String] attr_accessor :default_service - # An optional textual description of the resource; provided by the client when + # An optional textual description of the resource. Provided by the client when # the resource is created. # Corresponds to the JSON property `description` # @return [String] @@ -5688,7 +7182,7 @@ module Google # @return [Array] attr_accessor :host_rules - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Set by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -5698,8 +7192,12 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -5709,7 +7207,7 @@ module Google # @return [Array] attr_accessor :path_matchers - # Server defined URL for the resource (output only). + # [Output Only] Server defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5744,7 +7242,7 @@ module Google class UrlMapList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Set by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -5759,12 +7257,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5996,8 +7494,12 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource. Provided by the client when the resource is created. The - # name must be 1-63 characters long and comply with RFC1035. + # Name of the resource; provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index b04c8ee18..2b6d2eaa7 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -58,6 +58,46 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Autoscaler + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AutoscalerAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AutoscalerList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AutoscalersScopedList + 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 + end + end + end + + class AutoscalingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AutoscalingPolicyCpuUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AutoscalingPolicyCustomMetricUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AutoscalingPolicyLoadBalancingUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Backend class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -206,6 +246,106 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class InstanceGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManager + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagerActionsSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagerAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagerAutoHealingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagerList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagersAbandonInstancesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagersDeleteInstancesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagersListManagedInstancesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagersRecreateInstancesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagersScopedList + 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 + end + end + end + + class InstanceGroupManagersSetInstanceTemplateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupManagersSetTargetPoolsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupsAddInstancesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupsListInstances + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupsListInstancesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupsRemoveInstancesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class InstanceGroupsScopedList + 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 + end + end + end + + class InstanceGroupsSetNamedPortsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class InstanceList class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -230,6 +370,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class InstanceWithNamedPorts + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class InstancesScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -274,6 +418,22 @@ module Google end end + class ManagedInstance + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ManagedInstanceLastAttempt + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Errors + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + class Metadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -282,6 +442,10 @@ module Google end end + class NamedPort + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Network class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -684,6 +848,112 @@ module Google end end + class Autoscaler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :autoscaling_policy, as: 'autoscalingPolicy', class: Google::Apis::ComputeV1::AutoscalingPolicy, decorator: Google::Apis::ComputeV1::AutoscalingPolicy::Representation + + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :self_link, as: 'selfLink' + property :target, as: 'target' + property :zone, as: 'zone' + end + end + + class AutoscalerAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::AutoscalersScopedList, decorator: Google::Apis::ComputeV1::AutoscalersScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class AutoscalerList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::Autoscaler, decorator: Google::Apis::ComputeV1::Autoscaler::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class AutoscalersScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :autoscalers, as: 'autoscalers', class: Google::Apis::ComputeV1::Autoscaler, decorator: Google::Apis::ComputeV1::Autoscaler::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::AutoscalersScopedList::Warning, decorator: Google::Apis::ComputeV1::AutoscalersScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::AutoscalersScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::AutoscalersScopedList::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 AutoscalingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cool_down_period_sec, as: 'coolDownPeriodSec' + property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::ComputeV1::AutoscalingPolicyCpuUtilization, decorator: Google::Apis::ComputeV1::AutoscalingPolicyCpuUtilization::Representation + + collection :custom_metric_utilizations, as: 'customMetricUtilizations', class: Google::Apis::ComputeV1::AutoscalingPolicyCustomMetricUtilization, decorator: Google::Apis::ComputeV1::AutoscalingPolicyCustomMetricUtilization::Representation + + property :load_balancing_utilization, as: 'loadBalancingUtilization', class: Google::Apis::ComputeV1::AutoscalingPolicyLoadBalancingUtilization, decorator: Google::Apis::ComputeV1::AutoscalingPolicyLoadBalancingUtilization::Representation + + property :max_num_replicas, as: 'maxNumReplicas' + property :min_num_replicas, as: 'minNumReplicas' + end + end + + class AutoscalingPolicyCpuUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :utilization_target, as: 'utilizationTarget' + end + end + + class AutoscalingPolicyCustomMetricUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric, as: 'metric' + property :utilization_target, as: 'utilizationTarget' + property :utilization_target_type, as: 'utilizationTargetType' + end + end + + class AutoscalingPolicyLoadBalancingUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :utilization_target, as: 'utilizationTarget' + end + end + class Backend # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1153,6 +1423,261 @@ module Google end end + class InstanceGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation + + property :network, as: 'network' + property :self_link, as: 'selfLink' + property :size, as: 'size' + property :zone, as: 'zone' + end + end + + class InstanceGroupAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupsScopedList, decorator: Google::Apis::ComputeV1::InstanceGroupsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class InstanceGroupList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroup, decorator: Google::Apis::ComputeV1::InstanceGroup::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class InstanceGroupManager + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :auto_healing_policies, as: 'autoHealingPolicies', class: Google::Apis::ComputeV1::InstanceGroupManagerAutoHealingPolicy, decorator: Google::Apis::ComputeV1::InstanceGroupManagerAutoHealingPolicy::Representation + + property :base_instance_name, as: 'baseInstanceName' + property :creation_timestamp, as: 'creationTimestamp' + property :current_actions, as: 'currentActions', class: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary::Representation + + property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, as: 'id' + property :instance_group, as: 'instanceGroup' + property :instance_template, as: 'instanceTemplate' + property :kind, as: 'kind' + property :name, as: 'name' + property :self_link, as: 'selfLink' + collection :target_pools, as: 'targetPools' + property :target_size, as: 'targetSize' + property :zone, as: 'zone' + end + end + + class InstanceGroupManagerActionsSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :abandoning, as: 'abandoning' + property :creating, as: 'creating' + property :deleting, as: 'deleting' + property :none, as: 'none' + property :recreating, as: 'recreating' + property :refreshing, as: 'refreshing' + property :restarting, as: 'restarting' + end + end + + class InstanceGroupManagerAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupManagersScopedList, decorator: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class InstanceGroupManagerAutoHealingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_type, as: 'actionType' + property :health_check, as: 'healthCheck' + end + end + + class InstanceGroupManagerList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupManager, decorator: Google::Apis::ComputeV1::InstanceGroupManager::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class InstanceGroupManagersAbandonInstancesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances' + end + end + + class InstanceGroupManagersDeleteInstancesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances' + end + end + + class InstanceGroupManagersListManagedInstancesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :managed_instances, as: 'managedInstances', class: Google::Apis::ComputeV1::ManagedInstance, decorator: Google::Apis::ComputeV1::ManagedInstance::Representation + + end + end + + class InstanceGroupManagersRecreateInstancesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances' + end + end + + class InstanceGroupManagersScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instance_group_managers, as: 'instanceGroupManagers', class: Google::Apis::ComputeV1::InstanceGroupManager, decorator: Google::Apis::ComputeV1::InstanceGroupManager::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning, decorator: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::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 InstanceGroupManagersSetInstanceTemplateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance_template, as: 'instanceTemplate' + end + end + + class InstanceGroupManagersSetTargetPoolsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fingerprint, :base64 => true, as: 'fingerprint' + collection :target_pools, as: 'targetPools' + end + end + + class InstanceGroupsAddInstancesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances', class: Google::Apis::ComputeV1::InstanceReference, decorator: Google::Apis::ComputeV1::InstanceReference::Representation + + end + end + + class InstanceGroupsListInstances + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceWithNamedPorts, decorator: Google::Apis::ComputeV1::InstanceWithNamedPorts::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class InstanceGroupsListInstancesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance_state, as: 'instanceState' + property :port_name, as: 'portName' + end + end + + class InstanceGroupsRemoveInstancesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances', class: Google::Apis::ComputeV1::InstanceReference, decorator: Google::Apis::ComputeV1::InstanceReference::Representation + + end + end + + class InstanceGroupsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instance_groups, as: 'instanceGroups', class: Google::Apis::ComputeV1::InstanceGroup, decorator: Google::Apis::ComputeV1::InstanceGroup::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning, decorator: Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceGroupsScopedList::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 InstanceGroupsSetNamedPortsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fingerprint, :base64 => true, as: 'fingerprint' + collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation + + end + end + class InstanceList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1227,6 +1752,16 @@ module Google end end + class InstanceWithNamedPorts + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation + + property :status, as: 'status' + end + end + class InstancesScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1346,6 +1881,43 @@ module Google end end + class ManagedInstance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_action, as: 'currentAction' + property :id, as: 'id' + property :instance, as: 'instance' + property :instance_status, as: 'instanceStatus' + property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Representation + + end + end + + class ManagedInstanceLastAttempt + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :errors, as: 'errors', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors::Representation + + end + + class Errors + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :errors, as: 'errors', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors::Error, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors::Error::Representation + + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :location, as: 'location' + property :message, as: 'message' + end + end + end + end + class Metadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1364,6 +1936,14 @@ module Google end end + class NamedPort + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :port, as: 'port' + end + end + class Network # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 069ecbcbb..52f8eded4 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -56,12 +56,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -231,12 +250,31 @@ module Google # @param [String] region # The name of the region for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -274,6 +312,358 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of autoscalers grouped by scope. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @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::AutoscalerAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::AutoscalerAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_list_autoscaler(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/aggregated/autoscalers' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::AutoscalerAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::AutoscalerAggregatedList + 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['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified autoscaler resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] zone + # Name of the zone scoping this request. + # @param [String] autoscaler + # Name of the persistent autoscaler resource to delete. + # @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 delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/autoscalers/{autoscaler}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['autoscaler'] = autoscaler unless autoscaler.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified autoscaler resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] zone + # Name of the zone scoping this request. + # @param [String] autoscaler + # Name of the persistent autoscaler resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Autoscaler] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Autoscaler] + # + # @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_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/autoscalers/{autoscaler}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::Autoscaler::Representation + command.response_class = Google::Apis::ComputeV1::Autoscaler + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['autoscaler'] = autoscaler unless autoscaler.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates an autoscaler resource in the specified project using the data + # included in the request. + # @param [String] project + # Name of the project scoping this request. + # @param [String] zone + # Name of the zone scoping this request. + # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/autoscalers' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation + command.request_object = autoscaler_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.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 autoscaler resources contained within the specified zone. + # @param [String] project + # Name of the project scoping this request. + # @param [String] zone + # Name of the zone scoping this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @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::AutoscalerList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::AutoscalerList] + # + # @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_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/autoscalers' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::AutoscalerList::Representation + command.response_class = Google::Apis::ComputeV1::AutoscalerList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['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 + + # Updates an autoscaler resource in the specified project using the data + # included in the request. This method supports patch semantics. + # @param [String] project + # Name of the project scoping this request. + # @param [String] zone + # Name of the zone scoping this request. + # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object + # @param [String] autoscaler + # Name of the autoscaler resource to update. + # @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_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/autoscalers' + command = make_simple_command(:patch, path, options) + command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation + command.request_object = autoscaler_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.query['autoscaler'] = autoscaler unless autoscaler.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an autoscaler resource in the specified project using the data + # included in the request. + # @param [String] project + # Name of the project scoping this request. + # @param [String] zone + # Name of the zone scoping this request. + # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object + # @param [String] autoscaler + # Name of the autoscaler resource to update. + # @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_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/autoscalers' + command = make_simple_command(:put, path, options) + command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation + command.request_object = autoscaler_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.query['autoscaler'] = autoscaler unless autoscaler.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 BackendService resource. # @param [String] project # Name of the project scoping this request. @@ -438,12 +828,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -569,12 +978,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -659,12 +1087,31 @@ module Google # @param [String] zone # The name of the zone for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -706,12 +1153,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -793,7 +1259,9 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified persistent disk. + # Deletes the specified persistent disk. Deleting a disk removes 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] zone @@ -929,12 +1397,31 @@ module Google # @param [String] zone # The name of the zone for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1094,12 +1581,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1225,12 +1731,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1401,12 +1926,31 @@ module Google # @param [String] region # Name of the region scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1611,12 +2155,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1776,12 +2339,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1864,12 +2446,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1906,11 +2507,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified operation resource. + # Deletes the specified Operations resource. # @param [String] project # Project ID for this request. # @param [String] operation - # Name of the operation resource to delete. + # Name of the Operations resource to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1943,11 +2544,11 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the specified operation resource. + # Retrieves the specified Operations resource. # @param [String] project # Project ID for this request. # @param [String] operation - # Name of the operation resource to return. + # Name of the Operations resource to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1982,17 +2583,36 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of operation resources contained within the specified + # Retrieves the list of Operation resources contained within the specified # project. # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2152,12 +2772,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2445,12 +3084,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2487,6 +3145,1069 @@ module Google execute_or_queue_command(command, &block) end + # Removes the specified instances from the managed instance group, and from any + # target pools where they are a member. The instances are not deleted. The + # managed instance group automatically reduces its targetSize value by the + # number of instances that you abandon from the group. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager. + # @param [Google::Apis::ComputeV1::InstanceGroupManagersAbandonInstancesRequest] instance_group_managers_abandon_instances_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::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 abandon_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_abandon_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersAbandonInstancesRequest::Representation + command.request_object = instance_group_managers_abandon_instances_request_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['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 managed instance groups, and groups them by project and + # zone. + # @param [String] project + # The project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @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::InstanceGroupManagerAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList] + # + # @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_aggregated_instance_group_managers(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/aggregated/instanceGroupManagers' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList + 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['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified managed instance group resource. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager to delete. + # @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 delete_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 instances. The instances are deleted and removed from + # the instance group and any target pools where they are a member. The managed + # instance group automatically reduces its targetSize value by the number of + # instances that you delete. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager. + # @param [Google::Apis::ComputeV1::InstanceGroupManagersDeleteInstancesRequest] instance_group_managers_delete_instances_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_delete_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersDeleteInstancesRequest::Representation + command.request_object = instance_group_managers_delete_instances_request_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['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified managed instance group resource. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager resource. + # @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::InstanceGroupManager] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupManager] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupManager + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 managed instance group resource in the specified project using the + # data that is included in the request. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [Google::Apis::ComputeV1::InstanceGroupManager] instance_group_manager_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_instance_group_manager(project, zone, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation + command.request_object = instance_group_manager_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.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 managed instance groups that are contained within the + # specified project and zone. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @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::InstanceGroupManagerList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupManagerList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_instance_group_managers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerList::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['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 + + # Lists managed instances. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the managed instance group. + # @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::InstanceGroupManagersListManagedInstancesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances' + command = make_simple_command(:post, path, options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 + + # Recreates the specified instances. The instances are deleted, then recreated + # using the managed instance group's current instance template. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager. + # @param [Google::Apis::ComputeV1::InstanceGroupManagersRecreateInstancesRequest] instance_group_managers_recreate_instances_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::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 recreate_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_recreate_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersRecreateInstancesRequest::Representation + command.request_object = instance_group_managers_recreate_instances_request_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['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 managed instance group. If you increase the size, the group + # creates new instances using the current instance template. If you decrease the + # size, the group removes instances in the order that is outlined in Resizing a + # managed instance group. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager. + # @param [Fixnum] size + # The number of running instances that the managed instance group should + # maintain at any given time. The group automatically adds or removes instances + # to maintain the number of instances specified by this parameter. + # @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 resize_instance_group_manager(project, zone, instance_group_manager, size: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize' + command = make_simple_command(:post, path, options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil? + command.query['size'] = size unless size.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 + + # Specifies the instance template to use when creating new instances in this + # group. The templates for existing instances in the group do not change unless + # you recreate them. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager. + # @param [Google::Apis::ComputeV1::InstanceGroupManagersSetInstanceTemplateRequest] instance_group_managers_set_instance_template_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_instance_group_manager_instance_template(project, zone, instance_group_manager, instance_group_managers_set_instance_template_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersSetInstanceTemplateRequest::Representation + command.request_object = instance_group_managers_set_instance_template_request_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['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 + + # Modifies the target pools to which all new instances in this group are + # assigned. The target pools for existing instances in the group do not change + # unless you recreate them. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the managed instance group is located. + # @param [String] instance_group_manager + # The name of the instance group manager. + # @param [Google::Apis::ComputeV1::InstanceGroupManagersSetTargetPoolsRequest] instance_group_managers_set_target_pools_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_instance_group_manager_target_pools(project, zone, instance_group_manager, instance_group_managers_set_target_pools_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersSetTargetPoolsRequest::Representation + command.request_object = instance_group_managers_set_target_pools_request_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['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 + + # Adds a list of instances to an instance group. All of the instances in the + # instance group must be in the same network. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [String] instance_group + # The name of the instance group where you are adding instances. + # @param [Google::Apis::ComputeV1::InstanceGroupsAddInstancesRequest] instance_groups_add_instances_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def add_instance_group_instances(project, zone, instance_group, instance_groups_add_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupsAddInstancesRequest::Representation + command.request_object = instance_groups_add_instances_request_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['instanceGroup'] = instance_group unless instance_group.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 instance groups, and sorts them by zone. + # @param [String] project + # The project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @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::InstanceGroupAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupAggregatedList] + # + # @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_aggregated_instance_groups(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/aggregated/instanceGroups' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroupAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupAggregatedList + 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['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified instance group. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [String] instance_group + # The name of the instance group to delete. + # @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 delete_instance_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroup'] = instance_group unless instance_group.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified instance group resource. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [String] instance_group + # The name of the instance group. + # @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::InstanceGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_instance_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroup::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroup + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroup'] = instance_group unless instance_group.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates an instance group in the specified project using the parameters that + # are included in the request. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [Google::Apis::ComputeV1::InstanceGroup] instance_group_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_instance_group(project, zone, instance_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroup::Representation + command.request_object = instance_group_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.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 instance groups that are located in the specified + # project and zone. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @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::InstanceGroupList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_instance_groups(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroupList::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['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 + + # Lists instances in an instance group. The parameters for this method specify + # whether the list filters instances by state and named ports information. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [String] instance_group + # The name of the instance group from which you want to generate a list of + # included instances. + # @param [Google::Apis::ComputeV1::InstanceGroupsListInstancesRequest] instance_groups_list_instances_request_object + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @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::InstanceGroupsListInstances] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupsListInstances] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_instance_group_instances(project, zone, instance_group, instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupsListInstancesRequest::Representation + command.request_object = instance_groups_list_instances_request_object + command.response_representation = Google::Apis::ComputeV1::InstanceGroupsListInstances::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupsListInstances + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroup'] = instance_group unless instance_group.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.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 + + # Removes a list of instances from an instance group. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [String] instance_group + # The name of the instance group where the specified instances will be removed. + # @param [Google::Apis::ComputeV1::InstanceGroupsRemoveInstancesRequest] instance_groups_remove_instances_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def remove_instance_group_instances(project, zone, instance_group, instance_groups_remove_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupsRemoveInstancesRequest::Representation + command.request_object = instance_groups_remove_instances_request_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['instanceGroup'] = instance_group unless instance_group.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 named ports in an instance group. + # @param [String] project + # The project ID for this request. + # @param [String] zone + # The URL of the zone where the instance group is located. + # @param [String] instance_group + # The name of the instance group where the named ports are updated. + # @param [Google::Apis::ComputeV1::InstanceGroupsSetNamedPortsRequest] instance_groups_set_named_ports_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_instance_group_named_ports(project, zone, instance_group, instance_groups_set_named_ports_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupsSetNamedPortsRequest::Representation + command.request_object = instance_groups_set_named_ports_request_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['instanceGroup'] = instance_group unless instance_group.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 instance template. # @param [String] project # The project ID for this request. @@ -2610,12 +4331,31 @@ module Google # @param [String] project # The project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2704,12 +4444,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2977,7 +4736,7 @@ module Google # @param [String] instance # Name of the instance scoping this request. # @param [Fixnum] port - # Which COM port to retrieve data from. + # Specifies which COM or serial port to retrieve data from. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3063,12 +4822,31 @@ module Google # @param [String] zone # The name of the zone for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3464,12 +5242,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3555,12 +5352,31 @@ module Google # @param [String] zone # The name of the zone for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3720,12 +5536,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3957,13 +5792,13 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified region-specific operation resource. + # Deletes the specified region-specific Operations resource. # @param [String] project # Project ID for this request. # @param [String] region # Name of the region scoping this request. # @param [String] operation - # Name of the operation resource to delete. + # Name of the Operations resource to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3997,13 +5832,13 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the specified region-specific operation resource. + # Retrieves the specified region-specific Operations resource. # @param [String] project # Project ID for this request. # @param [String] region # Name of the zone scoping this request. # @param [String] operation - # Name of the operation resource to return. + # Name of the Operations resource to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4039,19 +5874,38 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of operation resources contained within the specified + # Retrieves the list of Operation resources contained within the specified # region. # @param [String] project # Project ID for this request. # @param [String] region # Name of the region scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4132,12 +5986,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4296,12 +6169,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4338,11 +6230,15 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified persistent disk snapshot resource. + # Deletes the specified Snapshot resource. Keep in mind that deleting a single + # snapshot might not necessarily delete all the data on that snapshot. If any + # data on the snapshot that is marked for deletion is needed for subsequent + # snapshots, the data will be moved to the next corresponding snapshot. + # For more information, see Deleting snaphots. # @param [String] project # Name of the project scoping this request. # @param [String] snapshot - # Name of the persistent disk snapshot resource to delete. + # Name of the Snapshot resource to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4377,11 +6273,11 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified persistent disk snapshot resource. + # Returns the specified Snapshot resource. # @param [String] project # Name of the project scoping this request. # @param [String] snapshot - # Name of the persistent disk snapshot resource to return. + # Name of the Snapshot resource to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4416,17 +6312,36 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of persistent disk snapshot resources contained within the - # specified project. + # Retrieves the list of Snapshot resources contained within the specified + # project. # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4586,12 +6501,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4674,12 +6608,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4850,12 +6803,31 @@ module Google # @param [String] zone # Name of the zone scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4985,12 +6957,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5206,12 +7197,31 @@ module Google # @param [String] region # Name of the region scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5389,12 +7399,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5565,12 +7594,31 @@ module Google # @param [String] region # The name of the region for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5730,12 +7778,31 @@ module Google # @param [String] project # Name of the project scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5904,12 +7971,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6080,12 +8166,31 @@ module Google # @param [String] region # The name of the region for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6123,13 +8228,13 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified zone-specific operation resource. + # Deletes the specified zone-specific Operations resource. # @param [String] project # Project ID for this request. # @param [String] zone # Name of the zone scoping this request. # @param [String] operation - # Name of the operation resource to delete. + # Name of the Operations resource to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6163,13 +8268,13 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the specified zone-specific operation resource. + # Retrieves the specified zone-specific Operations resource. # @param [String] project # Project ID for this request. # @param [String] zone # Name of the zone scoping this request. # @param [String] operation - # Name of the operation resource to return. + # Name of the Operations resource to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6205,18 +8310,37 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of operation resources contained within the specified zone. + # Retrieves the list of Operation resources contained within the specified zone. # @param [String] project # Project ID for this request. # @param [String] zone # Name of the zone scoping this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6297,12 +8421,31 @@ module Google # @param [String] project # Project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb new file mode 100644 index 000000000..0526fc708 --- /dev/null +++ b/generated/google/apis/container_v1.rb @@ -0,0 +1,35 @@ +# 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/container_v1/service.rb' +require 'google/apis/container_v1/classes.rb' +require 'google/apis/container_v1/representations.rb' + +module Google + module Apis + # Google Container Engine API + # + # The Google Container Engine API is used for building and managing container + # based applications, powered by the open source Kubernetes technology. + # + # @see https://cloud.google.com/container-engine/ + module ContainerV1 + VERSION = 'V1' + REVISION = '20150605' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb new file mode 100644 index 000000000..0f375aeef --- /dev/null +++ b/generated/google/apis/container_v1/classes.rb @@ -0,0 +1,438 @@ +# 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 ContainerV1 + + # ListClustersResponse is the result of ListClustersRequest. + class ListClustersResponse + include Google::Apis::Core::Hashable + + # A list of clusters in the project in the specified zone, or across all ones. + # Corresponds to the JSON property `clusters` + # @return [Array] + attr_accessor :clusters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @clusters = args[:clusters] unless args[:clusters].nil? + end + end + + # A Google Container Engine cluster. + class Cluster + include Google::Apis::Core::Hashable + + # The name of this cluster. The name must be unique within this project and zone, + # and can be up to 40 characters with the following restrictions: * Lowercase + # letters, numbers, and hyphens only. * Must start with a letter. * Must end + # with a number or a letter. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # An optional description of this cluster. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The number of nodes to create in this cluster. You must ensure that your + # Compute Engine [resource quota](/compute/docs/resource-quotas) is sufficient + # for this number of instances. You must also have available firewall and routes + # quota. + # Corresponds to the JSON property `initialNodeCount` + # @return [Fixnum] + attr_accessor :initial_node_count + + # Per-node parameters. + # Corresponds to the JSON property `nodeConfig` + # @return [Google::Apis::ContainerV1::NodeConfig] + attr_accessor :node_config + + # The authentication information for accessing the master endpoint. + # Authentication can be done using HTTP basic auth or using client certificates. + # Corresponds to the JSON property `masterAuth` + # @return [Google::Apis::ContainerV1::MasterAuth] + attr_accessor :master_auth + + # The logging service that the cluster should write logs to. Currently available + # options: * "logging.googleapis.com" - the Google Cloud Logging service * "none" + # - no logs will be exported from the cluster * "" - default value; the default + # is "logging.googleapis.com" + # Corresponds to the JSON property `loggingService` + # @return [String] + attr_accessor :logging_service + + # The monitoring service that the cluster should write metrics to. Currently + # available options: * "monitoring.googleapis.com" - the Google Cloud Monitoring + # service * "none" - no metrics will be exported from the cluster * "" - default + # value; the default is "monitoring.googleapis.com" + # Corresponds to the JSON property `monitoringService` + # @return [String] + attr_accessor :monitoring_service + + # The name of the Google Compute Engine [network](/compute/docs/networking# + # networks_1) to which the cluster is connected. If left unspecified, the " + # default" network will be used. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # The IP address range of the container pods in this cluster, in [CIDR](http:// + # en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0. + # 0/14`). Leave blank to have one automatically chosen or specify a `/14` block + # in `10.0.0.0/8` or `172.16.0.0/12`. + # Corresponds to the JSON property `clusterIpv4Cidr` + # @return [String] + attr_accessor :cluster_ipv4_cidr + + # [Output only] Server-defined URL for the resource. @OutputOnly. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output only] The name of the Google Compute Engine [zone](/compute/docs/zones# + # available) in which the cluster resides. @OutputOnly. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + # [Output only] The IP address of this cluster's Kubernetes master endpoint. The + # endpoint can be accessed from the internet at `https://username:password@ + # endpoint/`. @OutputOnly. See the `masterAuth` property of this resource for + # username and password information. + # Corresponds to the JSON property `endpoint` + # @return [String] + attr_accessor :endpoint + + # [Output only] The software version of Kubernetes master and kubelets used in + # the cluster when it was first created. The version can be upgraded over time. @ + # OutputOnly. + # Corresponds to the JSON property `initialClusterVersion` + # @return [String] + attr_accessor :initial_cluster_version + + # [Output only] The current software version of the master endpoint. @OutputOnly. + # Corresponds to the JSON property `currentMasterVersion` + # @return [String] + attr_accessor :current_master_version + + # [Output only] The current version of the node software components. If they are + # currently at different versions because they're in the process of being + # upgraded, this reflects the minimum version of any of them. @OutputOnly. + # Corresponds to the JSON property `currentNodeVersion` + # @return [String] + attr_accessor :current_node_version + + # [Output only] The time the cluster was created, in [RFC3339](href='https://www. + # ietf.org/rfc/rfc3339.txt) text format. @OutputOnly. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # [Output only] The current status of this cluster. @OutputOnly. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output only] Additional information about the current status of this cluster, + # if available. @OutputOnly. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + # [Output only] The size of the address space on each node for hosting + # containers. This is provisioned from within the container_ipv4_cidr range. @ + # OutputOnly. + # Corresponds to the JSON property `nodeIpv4CidrSize` + # @return [Fixnum] + attr_accessor :node_ipv4_cidr_size + + # [Output only] The IP address range of the Kubernetes services in this cluster, + # in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last / + # 16 from the container CIDR. @OutputOnly. + # Corresponds to the JSON property `servicesIpv4Cidr` + # @return [String] + attr_accessor :services_ipv4_cidr + + # [Output only] The resource URLs of [instance groups](/compute/docs/instance- + # groups/) associated with this cluster. @OutputOnly. + # Corresponds to the JSON property `instanceGroupUrls` + # @return [Array] + attr_accessor :instance_group_urls + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @description = args[:description] unless args[:description].nil? + @initial_node_count = args[:initial_node_count] unless args[:initial_node_count].nil? + @node_config = args[:node_config] unless args[:node_config].nil? + @master_auth = args[:master_auth] unless args[:master_auth].nil? + @logging_service = args[:logging_service] unless args[:logging_service].nil? + @monitoring_service = args[:monitoring_service] unless args[:monitoring_service].nil? + @network = args[:network] unless args[:network].nil? + @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] unless args[:cluster_ipv4_cidr].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @zone = args[:zone] unless args[:zone].nil? + @endpoint = args[:endpoint] unless args[:endpoint].nil? + @initial_cluster_version = args[:initial_cluster_version] unless args[:initial_cluster_version].nil? + @current_master_version = args[:current_master_version] unless args[:current_master_version].nil? + @current_node_version = args[:current_node_version] unless args[:current_node_version].nil? + @create_time = args[:create_time] unless args[:create_time].nil? + @status = args[:status] unless args[:status].nil? + @status_message = args[:status_message] unless args[:status_message].nil? + @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] unless args[:node_ipv4_cidr_size].nil? + @services_ipv4_cidr = args[:services_ipv4_cidr] unless args[:services_ipv4_cidr].nil? + @instance_group_urls = args[:instance_group_urls] unless args[:instance_group_urls].nil? + end + end + + # Per-node parameters. + class NodeConfig + include Google::Apis::Core::Hashable + + # The name of a Google Compute Engine [machine type](/compute/docs/machine-types) + # (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1- + # standard-1`. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # Size of the disk attached to each node, specified in GB. The smallest allowed + # disk size is 10GB, and the default is 100GB. + # Corresponds to the JSON property `diskSizeGb` + # @return [Fixnum] + attr_accessor :disk_size_gb + + # The set of Google API scopes to be made available on all of the node VMs under + # the "default" service account. Currently, the following scopes are necessary + # to ensure the correct functioning of the cluster: * "https://www.googleapis. + # com/auth/compute" * "https://www.googleapis.com/auth/devstorage.read_only" + # Corresponds to the JSON property `oauthScopes` + # @return [Array] + attr_accessor :oauth_scopes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @machine_type = args[:machine_type] unless args[:machine_type].nil? + @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? + @oauth_scopes = args[:oauth_scopes] unless args[:oauth_scopes].nil? + end + end + + # The authentication information for accessing the master endpoint. + # Authentication can be done using HTTP basic auth or using client certificates. + class MasterAuth + include Google::Apis::Core::Hashable + + # The username to use for HTTP basic authentication when accessing the + # Kubernetes master endpoint. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + # The password to use for HTTP basic authentication when accessing the + # Kubernetes master endpoint. Because the master endpoint is open to the + # internet, you should create a strong password. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + # [Output only] Base64 encoded public certificate that is the root of trust for + # the cluster. @OutputOnly. + # Corresponds to the JSON property `clusterCaCertificate` + # @return [String] + attr_accessor :cluster_ca_certificate + + # [Output only] Base64 encoded public certificate used by clients to + # authenticate to the cluster endpoint. @OutputOnly. + # Corresponds to the JSON property `clientCertificate` + # @return [String] + attr_accessor :client_certificate + + # [Output only] Base64 encoded private key used by clients to authenticate to + # the cluster endpoint. @OutputOnly. + # Corresponds to the JSON property `clientKey` + # @return [String] + attr_accessor :client_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @username = args[:username] unless args[:username].nil? + @password = args[:password] unless args[:password].nil? + @cluster_ca_certificate = args[:cluster_ca_certificate] unless args[:cluster_ca_certificate].nil? + @client_certificate = args[:client_certificate] unless args[:client_certificate].nil? + @client_key = args[:client_key] unless args[:client_key].nil? + end + end + + # CreateClusterRequest creates a cluster. + class CreateClusterRequest + include Google::Apis::Core::Hashable + + # A Google Container Engine cluster. + # Corresponds to the JSON property `cluster` + # @return [Google::Apis::ContainerV1::Cluster] + attr_accessor :cluster + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster = args[:cluster] unless args[:cluster].nil? + end + end + + # Defines the operation resource. All fields are output only. + class Operation + include Google::Apis::Core::Hashable + + # The server-assigned ID for the operation. @OutputOnly. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the operation is taking place. @OutputOnly. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + # The operation type. @OutputOnly. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The current status of the operation. @OutputOnly. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # If an error has occurred, a textual description of the error. @OutputOnly. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + # Server-defined URL for the resource. @OutputOnly. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # Server-defined URL for the target of the operation. @OutputOnly. + # Corresponds to the JSON property `targetLink` + # @return [String] + attr_accessor :target_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @zone = args[:zone] unless args[:zone].nil? + @operation_type = args[:operation_type] unless args[:operation_type].nil? + @status = args[:status] unless args[:status].nil? + @status_message = args[:status_message] unless args[:status_message].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @target_link = args[:target_link] unless args[:target_link].nil? + end + end + + # UpdateClusterRequest updates a cluster. + class UpdateClusterRequest + include Google::Apis::Core::Hashable + + # ClusterUpdate describes an update to the cluster. + # Corresponds to the JSON property `update` + # @return [Google::Apis::ContainerV1::ClusterUpdate] + attr_accessor :update + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update = args[:update] unless args[:update].nil? + end + end + + # ClusterUpdate describes an update to the cluster. + class ClusterUpdate + include Google::Apis::Core::Hashable + + # The Kubernetes version to change the nodes to (typically an upgrade). Use "-" + # to upgrade to the latest version supported by the server. + # Corresponds to the JSON property `desiredNodeVersion` + # @return [String] + attr_accessor :desired_node_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @desired_node_version = args[:desired_node_version] unless args[:desired_node_version].nil? + end + end + + # ListOperationsResponse is the result of ListOperationsRequest. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # A list of operations in the project in the specified zone. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operations = args[:operations] unless args[:operations].nil? + end + end + end + end +end diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb new file mode 100644 index 000000000..c75373ef5 --- /dev/null +++ b/generated/google/apis/container_v1/representations.rb @@ -0,0 +1,163 @@ +# 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 ContainerV1 + + class ListClustersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Cluster + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class NodeConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MasterAuth + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CreateClusterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UpdateClusterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ClusterUpdate + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListClustersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation + + end + end + + class Cluster + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :description, as: 'description' + property :initial_node_count, as: 'initialNodeCount' + property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation + + property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation + + property :logging_service, as: 'loggingService' + property :monitoring_service, as: 'monitoringService' + property :network, as: 'network' + property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' + property :self_link, as: 'selfLink' + property :zone, as: 'zone' + property :endpoint, as: 'endpoint' + property :initial_cluster_version, as: 'initialClusterVersion' + property :current_master_version, as: 'currentMasterVersion' + property :current_node_version, as: 'currentNodeVersion' + property :create_time, as: 'createTime' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize' + property :services_ipv4_cidr, as: 'servicesIpv4Cidr' + collection :instance_group_urls, as: 'instanceGroupUrls' + end + end + + class NodeConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :machine_type, as: 'machineType' + property :disk_size_gb, as: 'diskSizeGb' + collection :oauth_scopes, as: 'oauthScopes' + end + end + + class MasterAuth + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :username, as: 'username' + property :password, as: 'password' + property :cluster_ca_certificate, as: 'clusterCaCertificate' + property :client_certificate, as: 'clientCertificate' + property :client_key, as: 'clientKey' + end + end + + class CreateClusterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster, as: 'cluster', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation + + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :zone, as: 'zone' + property :operation_type, as: 'operationType' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + property :self_link, as: 'selfLink' + property :target_link, as: 'targetLink' + end + end + + class UpdateClusterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation + + end + end + + class ClusterUpdate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :desired_node_version, as: 'desiredNodeVersion' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation + + end + end + end + end +end diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb new file mode 100644 index 000000000..4361d760e --- /dev/null +++ b/generated/google/apis/container_v1/service.rb @@ -0,0 +1,346 @@ +# 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 ContainerV1 + # Google Container Engine API + # + # The Google Container Engine API is used for building and managing container + # based applications, powered by the open source Kubernetes technology. + # + # @example + # require 'google/apis/container_v1' + # + # Container = Google::Apis::ContainerV1 # Alias the module + # service = Container::ContainerService.new + # + # @see https://cloud.google.com/container-engine/ + class ContainerService < 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://container.googleapis.com/', '') + end + + # Lists all clusters owned by a project in either the specified zone or all + # zones. + # @param [String] project_id + # The Google Developers Console [project ID](https://console.developers.google. + # com/project) or [project number](https://developers.google.com/console/help/ + # project-number) + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides, or "-" for all zones. + # @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::ContainerV1::ListClustersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ListClustersResponse] + # + # @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_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/projects/{projectId}/zones/{zone}/clusters' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListClustersResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a specific cluster. + # @param [String] project_id + # The Google Developers Console A [project ID](https://console.developers.google. + # com/project) or [project number](https://developers.google.com/console/help/ + # project-number) + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] cluster_id + # The name of the cluster to retrieve. + # @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::ContainerV1::Cluster] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Cluster] + # + # @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_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ContainerV1::Cluster::Representation + command.response_class = Google::Apis::ContainerV1::Cluster + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.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 cluster, consisting of the specified number and type of Google + # Compute Engine instances, plus a Kubernetes master endpoint. By default, the + # cluster is created in the project's [default network]('/compute/docs/ + # networking#networks_1'). One firewall is added for the cluster. After cluster + # creation, the cluster creates routes for each node to allow the containers on + # that node to communicate with all other instances in the cluster. Finally, an + # entry is added to the project's global metadata indicating which CIDR range is + # being used by the cluster. + # @param [String] project_id + # The Google Developers Console [project ID](https://console.developers.google. + # com/project) or [project number](https://developers.google.com/console/help/ + # project-number) + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/projects/{projectId}/zones/{zone}/clusters' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation + command.request_object = create_cluster_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Update settings of a specific cluster. + # @param [String] project_id + # The Google Developers Console [project ID](https://console.developers.google. + # com/project) or [project number](https://developers.google.com/console/help/ + # project-number) + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] cluster_id + # The name of the cluster to upgrade. + # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}' + command = make_simple_command(:put, path, options) + command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation + command.request_object = update_cluster_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.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 the cluster, including the Kubernetes endpoint and all worker nodes. + # Firewalls and routes that were configured during cluster creation are also + # deleted. + # @param [String] project_id + # The Google Developers Console [project ID](https://console.developers.google. + # com/project) or [project number](https://developers.google.com/console/help/ + # project-number) + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] cluster_id + # The name of the cluster to delete. + # @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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all operations in a project in a specific zone or all zones. + # @param [String] project_id + # The Google Developers Console [project ID](https://console.developers.google. + # com/project) or [project number](https://developers.google.com/console/help/ + # project-number) + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) to + # return operations for, or "-" for all zones. + # @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::ContainerV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/projects/{projectId}/zones/{zone}/operations' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListOperationsResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified operation. + # @param [String] project_id + # The Google Developers Console [project ID](https://console.developers.google. + # com/project) or [project number](https://developers.google.com/console/help/ + # project-number) + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] operation_id + # The server-assigned `name` of the operation. + # @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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['operationId'] = operation_id unless operation_id.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 diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 9d915fbf6..9a058b746 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/docs/v1beta1/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20150617' + REVISION = '20150713' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index a6b0e9fbd..4e73e6832 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content/v2/ module ContentV2 VERSION = 'V2' - REVISION = '20150528' + REVISION = '20150710' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index e6f6eb3c7..b546916ef 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -89,6 +89,8 @@ module Google # Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-) # accounts in a single request. # @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -110,13 +112,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_account(batch_accounts_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'accounts/batch' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation command.request_object = batch_accounts_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation command.response_class = Google::Apis::ContentV2::BatchAccountsResponse + command.query['dryRun'] = dry_run unless dry_run.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? @@ -128,6 +131,8 @@ module Google # The ID of the managing account. # @param [String] account_id # The ID of the account. + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -149,11 +154,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/accounts/{accountId}' command = make_simple_command(:delete, path, options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -203,6 +209,8 @@ module Google # @param [String] merchant_id # The ID of the managing account. # @param [Google::Apis::ContentV2::Account] account_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -224,7 +232,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/accounts' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ContentV2::Account::Representation @@ -232,6 +240,7 @@ module Google command.response_representation = Google::Apis::ContentV2::Account::Representation command.response_class = Google::Apis::ContentV2::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -286,6 +295,8 @@ module Google # @param [String] account_id # The ID of the account. # @param [Google::Apis::ContentV2::Account] account_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -307,7 +318,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/accounts/{accountId}' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::ContentV2::Account::Representation @@ -316,6 +327,7 @@ module Google command.response_class = Google::Apis::ContentV2::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -328,6 +340,8 @@ module Google # @param [String] account_id # The ID of the account. # @param [Google::Apis::ContentV2::Account] account_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -349,7 +363,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/accounts/{accountId}' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::ContentV2::Account::Representation @@ -358,6 +372,7 @@ module Google command.response_class = Google::Apis::ContentV2::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -908,6 +923,8 @@ module Google # # @param [Google::Apis::ContentV2::BatchDatafeedsRequest] batch_datafeeds_request_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -929,13 +946,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_datafeed(batch_datafeeds_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'datafeeds/batch' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation command.request_object = batch_datafeeds_request_object command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation command.response_class = Google::Apis::ContentV2::BatchDatafeedsResponse + command.query['dryRun'] = dry_run unless dry_run.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? @@ -945,6 +963,8 @@ module Google # Deletes a datafeed from your Merchant Center account. # @param [String] merchant_id # @param [String] datafeed_id + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -966,11 +986,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/datafeeds/{datafeedId}' command = make_simple_command(:delete, path, options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -1017,6 +1038,8 @@ module Google # Registers a datafeed with your Merchant Center account. # @param [String] merchant_id # @param [Google::Apis::ContentV2::Datafeed] datafeed_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1038,7 +1061,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/datafeeds' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -1046,6 +1069,7 @@ module Google command.response_representation = Google::Apis::ContentV2::Datafeed::Representation command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -1099,6 +1123,8 @@ module Google # @param [String] merchant_id # @param [String] datafeed_id # @param [Google::Apis::ContentV2::Datafeed] datafeed_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1120,7 +1146,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/datafeeds/{datafeedId}' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -1129,6 +1155,7 @@ module Google command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -1139,6 +1166,8 @@ module Google # @param [String] merchant_id # @param [String] datafeed_id # @param [Google::Apis::ContentV2::Datafeed] datafeed_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1160,7 +1189,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/datafeeds/{datafeedId}' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -1169,6 +1198,7 @@ module Google command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? @@ -1293,6 +1323,8 @@ module Google # Updates price and availability for multiple products or stores in a single # request. # @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1314,13 +1346,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_inventory(batch_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'inventory/batch' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation command.request_object = batch_inventory_request_object command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation command.response_class = Google::Apis::ContentV2::BatchInventoryResponse + command.query['dryRun'] = dry_run unless dry_run.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? @@ -1336,6 +1369,8 @@ module Google # @param [String] product_id # The ID of the product for which to update price and availability. # @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object + # @param [Boolean] dry_run + # Flag to run the request in dry-run mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1357,7 +1392,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{merchantId}/inventory/{storeCode}/products/{productId}' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation @@ -1367,6 +1402,7 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['storeCode'] = store_code unless store_code.nil? command.params['productId'] = product_id unless product_id.nil? + command.query['dryRun'] = dry_run unless dry_run.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? diff --git a/generated/google/apis/deploymentmanager_v2beta2.rb b/generated/google/apis/deploymentmanager_v2beta2.rb index 93cee8849..517a935e0 100644 --- a/generated/google/apis/deploymentmanager_v2beta2.rb +++ b/generated/google/apis/deploymentmanager_v2beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta2 VERSION = 'V2beta2' - REVISION = '20150616' + REVISION = '20150715' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2beta2/classes.rb b/generated/google/apis/deploymentmanager_v2beta2/classes.rb index 57f0a19c0..836074ad8 100644 --- a/generated/google/apis/deploymentmanager_v2beta2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta2/classes.rb @@ -34,10 +34,9 @@ module Google # Specifies a fingerprint for update() requests. A fingerprint is a randomly # generated value that must be provided in update() requests to perform # optimistic locking. This ensures optimistic concurrency so that only one - # update can be performed at a time. - # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify data. To get the latest fingerprint value, perform a - # get() request to a deployment. + # update can be performed at a time. The fingerprint is initially generated by + # Deployment Manager and changes after every request to modify data. To get the + # latest fingerprint value, perform a get() request to a deployment. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -81,7 +80,12 @@ module Google # @return [String] attr_accessor :manifest - # The name of the deployment, which must be unique within the project. + # Name of the resource; provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -293,12 +297,12 @@ module Google end end - # An operation resource, used to manage asynchronous API requests. + # An Operation resource, used to manage asynchronous API requests. class Operation include Google::Apis::Core::Hashable # [Output Only] An optional identifier specified by the client when the mutation - # was initiated. Must be unique for all operation resources in the project. + # was initiated. Must be unique for all Operation resources in the project. # Corresponds to the JSON property `clientOperationId` # @return [String] attr_accessor :client_operation_id @@ -626,8 +630,8 @@ module Google # @return [String] attr_accessor :properties - # [Output Only] The type of the resource, for example ?compute.v1.instance?, or ? - # replicaPools.v1beta2.instanceGroupManager? + # [Output Only] The type of the resource, for example compute.v1.instance, or + # replicaPools.v1beta2.instanceGroupManager. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/deploymentmanager_v2beta2/service.rb b/generated/google/apis/deploymentmanager_v2beta2/service.rb index 3f85192c3..98dff95f6 100644 --- a/generated/google/apis/deploymentmanager_v2beta2/service.rb +++ b/generated/google/apis/deploymentmanager_v2beta2/service.rb @@ -175,12 +175,31 @@ module Google # @param [String] project # The project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -369,12 +388,31 @@ module Google # @param [String] deployment # The name of the deployment for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -455,12 +493,31 @@ module Google # @param [String] project # The project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -545,12 +602,31 @@ module Google # @param [String] deployment # The name of the deployment for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -592,12 +668,31 @@ module Google # @param [String] project # The project ID for this request. # @param [String] filter - # Filter expression for filtering listed resources. + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must contain the following: + # FIELD_NAME COMPARISON_STRING LITERAL_STRING + # + # - FIELD_NAME: The name of the field you want to compare. The field name must + # be valid for the type of resource being filtered. Only atomic field types are + # supported (string, number, boolean). Array and object fields are not currently + # supported. + # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not + # equals). + # - LITERAL_STRING: The literal string value to filter to. The literal value + # must be valid for the type of field (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, you can + # filter by the name of a resource: + # filter=name ne example-instance + # The above filter returns only results whose name field does not equal example- + # instance. You can also enclose your literal string in single, double, or no + # quotes. # @param [Fixnum] max_results # Maximum count of results to be returned. # @param [String] page_token - # Tag returned by a previous list request when that list was truncated to - # maxResults. Used to continue a previous list request. + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/discovery_v1/classes.rb b/generated/google/apis/discovery_v1/classes.rb index ae7394005..8c8d728bc 100644 --- a/generated/google/apis/discovery_v1/classes.rb +++ b/generated/google/apis/discovery_v1/classes.rb @@ -434,6 +434,12 @@ module Google # @return [String] attr_accessor :etag + # Enable exponential backoff for suitable methods in the generated clients. + # Corresponds to the JSON property `exponentialBackoffDefault` + # @return [Boolean] + attr_accessor :exponential_backoff_default + alias_method :exponential_backoff_default?, :exponential_backoff_default + # A list of supported features for this API. # Corresponds to the JSON property `features` # @return [Array] @@ -546,6 +552,7 @@ module Google @discovery_version = args[:discovery_version] unless args[:discovery_version].nil? @documentation_link = args[:documentation_link] unless args[:documentation_link].nil? @etag = args[:etag] unless args[:etag].nil? + @exponential_backoff_default = args[:exponential_backoff_default] unless args[:exponential_backoff_default].nil? @features = args[:features] unless args[:features].nil? @icons = args[:icons] unless args[:icons].nil? @id = args[:id] unless args[:id].nil? diff --git a/generated/google/apis/discovery_v1/representations.rb b/generated/google/apis/discovery_v1/representations.rb index cdc89911f..03558ba10 100644 --- a/generated/google/apis/discovery_v1/representations.rb +++ b/generated/google/apis/discovery_v1/representations.rb @@ -207,6 +207,7 @@ module Google property :discovery_version, as: 'discoveryVersion' property :documentation_link, as: 'documentationLink' property :etag, as: 'etag' + property :exponential_backoff_default, as: 'exponentialBackoffDefault' collection :features, as: 'features' property :icons, as: 'icons', class: Google::Apis::DiscoveryV1::RestDescription::Icons, decorator: Google::Apis::DiscoveryV1::RestDescription::Icons::Representation diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index 034ca953a..83389d68e 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20150218' + REVISION = '20150624' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v1/service.rb b/generated/google/apis/dns_v1/service.rb index d218a5969..bbba49a58 100644 --- a/generated/google/apis/dns_v1/service.rb +++ b/generated/google/apis/dns_v1/service.rb @@ -314,6 +314,8 @@ module Google # Enumerate ManagedZones that have been created but not yet deleted. # @param [String] project # Identifies the project addressed by this request. + # @param [String] dns_name + # Restricts the list to return only zones with this domain name. # @param [Fixnum] max_results # Optional. Maximum number of results to be returned. If unspecified, the server # will decide how many results to return. @@ -341,12 +343,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_managed_zones(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/managedZones' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::DnsV1::ListManagedZonesResponse::Representation command.response_class = Google::Apis::DnsV1::ListManagedZonesResponse command.params['project'] = project unless project.nil? + command.query['dnsName'] = dns_name unless dns_name.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index c628f3368..77280b6fa 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '20150526' + REVISION = '20150708' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index eaca1fc84..c1122cc98 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20150618' + REVISION = '20150702' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index 3c4eb1c5b..5fa48a5fd 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/ module FitnessV1 VERSION = 'V1' - REVISION = '20150527' + REVISION = '20150717' # View your activity information in Google Fit AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' diff --git a/generated/google/apis/fitness_v1/classes.rb b/generated/google/apis/fitness_v1/classes.rb index c5fb3794b..0bd4bf867 100644 --- a/generated/google/apis/fitness_v1/classes.rb +++ b/generated/google/apis/fitness_v1/classes.rb @@ -705,6 +705,26 @@ module Google end end + # Holder object for the value of an entry in a map field of a data point. + # A map value supports a subset of the formats that the regular Value supports. + class MapValue + include Google::Apis::Core::Hashable + + # Floating point value. + # Corresponds to the JSON property `fpVal` + # @return [Float] + attr_accessor :fp_val + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fp_val = args[:fp_val] unless args[:fp_val].nil? + end + end + # Sessions contain metadata, such as a user-friendly name and time interval # information. class Session @@ -784,16 +804,31 @@ module Google class Value include Google::Apis::Core::Hashable - # Floating point value. When this is set, intVal must not be set. + # Floating point value. When this is set, other values must not be set. # Corresponds to the JSON property `fpVal` # @return [Float] attr_accessor :fp_val - # Integer value. When this is set, fpVal must not be set. + # Integer value. When this is set, other values must not be set. # Corresponds to the JSON property `intVal` # @return [Fixnum] attr_accessor :int_val + # Map value. The valid key space and units for the corresponding value of each + # entry should be documented as part of the data type definition. Keys should be + # kept small whenever possible. Data streams with large keys and high data + # frequency may be down sampled. + # Corresponds to the JSON property `mapVal` + # @return [Array] + attr_accessor :map_val + + # String value. When this is set, other values must not be set. Strings should + # be kept small whenever possible. Data streams with large string values and + # high data frequency may be down sampled. + # Corresponds to the JSON property `stringVal` + # @return [String] + attr_accessor :string_val + def initialize(**args) update!(**args) end @@ -802,6 +837,34 @@ module Google def update!(**args) @fp_val = args[:fp_val] unless args[:fp_val].nil? @int_val = args[:int_val] unless args[:int_val].nil? + @map_val = args[:map_val] unless args[:map_val].nil? + @string_val = args[:string_val] unless args[:string_val].nil? + end + end + + # + class ValueMapValEntry + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Holder object for the value of an entry in a map field of a data point. + # A map value supports a subset of the formats that the regular Value supports. + # Corresponds to the JSON property `value` + # @return [Google::Apis::FitnessV1::MapValue] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? end end end diff --git a/generated/google/apis/fitness_v1/representations.rb b/generated/google/apis/fitness_v1/representations.rb index 5f654b713..1f1f67776 100644 --- a/generated/google/apis/fitness_v1/representations.rb +++ b/generated/google/apis/fitness_v1/representations.rb @@ -86,6 +86,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class MapValue + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Session class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -94,6 +98,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class ValueMapValEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class AggregateBucket # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -267,6 +275,13 @@ module Google end end + class MapValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fp_val, as: 'fpVal' + end + end + class Session # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -288,6 +303,18 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :fp_val, as: 'fpVal' property :int_val, as: 'intVal' + collection :map_val, as: 'mapVal', class: Google::Apis::FitnessV1::ValueMapValEntry, decorator: Google::Apis::FitnessV1::ValueMapValEntry::Representation + + property :string_val, as: 'stringVal' + end + end + + class ValueMapValEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value', class: Google::Apis::FitnessV1::MapValue, decorator: Google::Apis::FitnessV1::MapValue::Representation + end end end diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 54083aea8..fcea1ea6e 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20150622' + REVISION = '20150713' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index c185e7a18..0eb7abd36 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20150622' + REVISION = '20150713' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb new file mode 100644 index 000000000..f2a528770 --- /dev/null +++ b/generated/google/apis/genomics_v1.rb @@ -0,0 +1,47 @@ +# 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/genomics_v1/service.rb' +require 'google/apis/genomics_v1/classes.rb' +require 'google/apis/genomics_v1/representations.rb' + +module Google + module Apis + # Genomics API + # + # An API to store, process, explore, and share DNA sequence reads, reference- + # based alignments, and variant calls. + # + # @see + module GenomicsV1 + VERSION = 'V1' + REVISION = '20150716' + + # View and manage your data in Google BigQuery + AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Manage your data in Google Cloud Storage + AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write' + + # View and manage Genomics data + AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics' + + # View Genomics data + AUTH_GENOMICS_READONLY = 'https://www.googleapis.com/auth/genomics.readonly' + end + end +end diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb new file mode 100644 index 000000000..bfc32988f --- /dev/null +++ b/generated/google/apis/genomics_v1/classes.rb @@ -0,0 +1,2287 @@ +# 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 GenomicsV1 + + # The dataset list response. + class ListDatasetsResponse + include Google::Apis::Core::Hashable + + # The list of matching Datasets. + # Corresponds to the JSON property `datasets` + # @return [Array] + attr_accessor :datasets + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @datasets = args[:datasets] unless args[:datasets].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A Dataset is a collection of genomic data. + class Dataset + include Google::Apis::Core::Hashable + + # The server-generated dataset ID, unique across all datasets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The Google Developers Console project ID that this dataset belongs to. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The dataset name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The time this dataset was created, in seconds from the epoch. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @project_id = args[:project_id] unless args[:project_id].nil? + @name = args[:name] unless args[:name].nil? + @create_time = args[:create_time] unless args[:create_time].nil? + 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 + + # + class UndeleteDatasetRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # The server-assigned name, which is only unique within the same service that + # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- + # qzoWAgEw` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # An [OperationMetadata][google.genomics.v1.OperationMetadata] object. This will + # always be returned with the [Operation][google.longrunning.Operation]. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # If the value is `false`, it means the operation is still in progress. If true, + # the operation is completed and the `result` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users. - Flexible enough to meet unexpected needs. + # # Overview The `Status` message contains 3 pieces of data: error code, error + # message, and error details. The error code should be an enum value of [google. + # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. + # The error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, it can be sent in the error details or localized by + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments - + # either with or without APIs - to provide consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::GenomicsV1::Status] + attr_accessor :error + + # If importing [ReadGroupSets][google.genomics.v1.ReadGroupSet], an [ + # ImportReadGroupSetsResponse][google.genomics.v1.ImportReadGroupSetsResponse] + # is returned. If importing [Variants][google.genomics.v1.Variant], an [ + # ImportVariantsResponse][google.genomics.v1.ImportVariantsResponse] is returned. + # For exports, an empty response is returned. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @metadata = args[:metadata] unless args[:metadata].nil? + @done = args[:done] unless args[:done].nil? + @error = args[:error] unless args[:error].nil? + @response = args[:response] unless args[:response].nil? + end + end + + # The `Status` defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users. - Flexible enough to meet unexpected needs. + # # Overview The `Status` message contains 3 pieces of data: error code, error + # message, and error details. The error code should be an enum value of [google. + # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. + # The error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, it can be sent in the error details or localized by + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments - + # either with or without APIs - to provide consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of [google.rpc.Code][google.rpc. + # Code]. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the [google.rpc.Status.details][ + # google.rpc.Status.details] field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # A list of messages that carry the error details. There will be a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @message = args[:message] unless args[:message].nil? + @details = args[:details] unless args[:details].nil? + end + end + + # The response message for [Operations.ListOperations][google.longrunning. + # Operations.ListOperations]. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + # The standard List next-page token. + # 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) + @operations = args[:operations] unless args[:operations].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # The request message for [Operations.CancelOperation][google.longrunning. + # Operations.CancelOperation]. + class CancelOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The read group set import request. + class ImportReadGroupSetsRequest + include Google::Apis::Core::Hashable + + # Required. The ID of the dataset these read group sets will belong to. The + # caller must have WRITE permissions to this dataset. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + + # The reference set to which the imported read group sets are aligned to, if any. + # The reference names of this reference set must be a superset of those found + # in the imported file headers. If no reference set id is provided, a best + # effort is made to associate with a matching reference set. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + + # A list of URIs pointing at BAM files in Google Cloud Storage. + # Corresponds to the JSON property `sourceUris` + # @return [Array] + attr_accessor :source_uris + + # The partition strategy describes how read groups are partitioned into read + # group sets. + # Corresponds to the JSON property `partitionStrategy` + # @return [String] + attr_accessor :partition_strategy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? + @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? + @source_uris = args[:source_uris] unless args[:source_uris].nil? + @partition_strategy = args[:partition_strategy] unless args[:partition_strategy].nil? + end + end + + # The read group set export request. + class ExportReadGroupSetRequest + include Google::Apis::Core::Hashable + + # Required. The Google Developers Console project ID that owns this export. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Required. A Google Cloud Storage URI for the exported BAM file. The currently + # authenticated user must have write access to the new file. An error will be + # returned if the URI already contains data. + # Corresponds to the JSON property `exportUri` + # @return [String] + attr_accessor :export_uri + + # The reference names to export. If this is not specified, all reference + # sequences, including unmapped reads, are exported. Use `*` to export only + # unmapped reads. + # Corresponds to the JSON property `referenceNames` + # @return [Array] + attr_accessor :reference_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_id = args[:project_id] unless args[:project_id].nil? + @export_uri = args[:export_uri] unless args[:export_uri].nil? + @reference_names = args[:reference_names] unless args[:reference_names].nil? + end + end + + # The read group set search request. + class SearchReadGroupSetsRequest + include Google::Apis::Core::Hashable + + # Restricts this query to read group sets within the given datasets. At least + # one ID must be provided. + # Corresponds to the JSON property `datasetIds` + # @return [Array] + attr_accessor :dataset_ids + + # Only return read group sets for which a substring of the name matches this + # string. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Specifies number of results to return in a single page. If unspecified, it + # will default to 256. The maximum value is 1024. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset_ids = args[:dataset_ids] unless args[:dataset_ids].nil? + @name = args[:name] unless args[:name].nil? + @page_token = args[:page_token] unless args[:page_token].nil? + @page_size = args[:page_size] unless args[:page_size].nil? + end + end + + # The read group set search response. + class SearchReadGroupSetsResponse + include Google::Apis::Core::Hashable + + # The list of matching read group sets. + # Corresponds to the JSON property `readGroupSets` + # @return [Array] + attr_accessor :read_group_sets + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @read_group_sets = args[:read_group_sets] unless args[:read_group_sets].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A read group set is a logical collection of read groups, which are collections + # of reads produced by a sequencer. A read group set typically models reads + # corresponding to one sample, sequenced one way, and aligned one way. * A read + # group set belongs to one dataset. * A read group belongs to one read group set. + # * A read belongs to one read group. + class ReadGroupSet + include Google::Apis::Core::Hashable + + # The server-generated read group set ID, unique for all read group sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The dataset ID. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + + # The reference set the reads in this read group set are aligned to. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + + # The read group set name. By default this will be initialized to the sample + # name of the sequenced data contained in this set. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The filename of the original source file for this read group set, if any. + # Corresponds to the JSON property `filename` + # @return [String] + attr_accessor :filename + + # The read groups in this set. There are typically 1-10 read groups in a read + # group set. + # Corresponds to the JSON property `readGroups` + # @return [Array] + attr_accessor :read_groups + + # A map of additional read group set information. + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? + @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? + @name = args[:name] unless args[:name].nil? + @filename = args[:filename] unless args[:filename].nil? + @read_groups = args[:read_groups] unless args[:read_groups].nil? + @info = args[:info] unless args[:info].nil? + end + end + + # A read group is all the data that's processed the same way by the sequencer. + class ReadGroup + include Google::Apis::Core::Hashable + + # The server-generated read group ID, unique for all read groups. Note: This is + # different than the `@RG ID` field in the SAM spec. For that value, see the ` + # name` field. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The ID of the dataset this read group belongs to. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + + # The read group name. This corresponds to the @RG ID field in the SAM spec. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A free-form text description of this read group. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The sample this read group's data was generated from. Note: This is not an + # actual ID within this repository, but rather an identifier for a sample which + # may be meaningful to some external system. + # Corresponds to the JSON property `sampleId` + # @return [String] + attr_accessor :sample_id + + # The experiment used to generate this read group. + # Corresponds to the JSON property `experiment` + # @return [Google::Apis::GenomicsV1::Experiment] + attr_accessor :experiment + + # The predicted insert size of this read group. The insert size is the length + # the sequenced DNA fragment from end-to-end, not including the adapters. + # Corresponds to the JSON property `predictedInsertSize` + # @return [Fixnum] + attr_accessor :predicted_insert_size + + # The programs used to generate this read group. Programs are always identical + # for all read groups within a read group set. For this reason, only the first + # read group in a returned set will have this field populated. + # Corresponds to the JSON property `programs` + # @return [Array] + attr_accessor :programs + + # The reference set the reads in this read group are aligned to. Required if + # there are any read alignments. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + + # A map of additional read group information. This must be of the form map ( + # string key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? + @name = args[:name] unless args[:name].nil? + @description = args[:description] unless args[:description].nil? + @sample_id = args[:sample_id] unless args[:sample_id].nil? + @experiment = args[:experiment] unless args[:experiment].nil? + @predicted_insert_size = args[:predicted_insert_size] unless args[:predicted_insert_size].nil? + @programs = args[:programs] unless args[:programs].nil? + @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? + @info = args[:info] unless args[:info].nil? + end + end + + # + class Experiment + include Google::Apis::Core::Hashable + + # The library used as part of this experiment. Note: This is not an actual ID + # within this repository, but rather an identifier for a library which may be + # meaningful to some external system. + # Corresponds to the JSON property `libraryId` + # @return [String] + attr_accessor :library_id + + # The platform unit used as part of this experiment e.g. flowcell-barcode.lane + # for Illumina or slide for SOLiD. Corresponds to the @RG PU field in the SAM + # spec. + # Corresponds to the JSON property `platformUnit` + # @return [String] + attr_accessor :platform_unit + + # The sequencing center used as part of this experiment. + # Corresponds to the JSON property `sequencingCenter` + # @return [String] + attr_accessor :sequencing_center + + # The instrument model used as part of this experiment. This maps to sequencing + # technology in BAM. + # Corresponds to the JSON property `instrumentModel` + # @return [String] + attr_accessor :instrument_model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @library_id = args[:library_id] unless args[:library_id].nil? + @platform_unit = args[:platform_unit] unless args[:platform_unit].nil? + @sequencing_center = args[:sequencing_center] unless args[:sequencing_center].nil? + @instrument_model = args[:instrument_model] unless args[:instrument_model].nil? + end + end + + # + class Program + include Google::Apis::Core::Hashable + + # The command line used to run this program. + # Corresponds to the JSON property `commandLine` + # @return [String] + attr_accessor :command_line + + # The user specified locally unique ID of the program. Used along with ` + # prevProgramId` to define an ordering between programs. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The name of the program. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The ID of the program run before this one. + # Corresponds to the JSON property `prevProgramId` + # @return [String] + attr_accessor :prev_program_id + + # The version of the program run. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @command_line = args[:command_line] unless args[:command_line].nil? + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @prev_program_id = args[:prev_program_id] unless args[:prev_program_id].nil? + @version = args[:version] unless args[:version].nil? + end + end + + # + class ListCoverageBucketsResponse + include Google::Apis::Core::Hashable + + # The length of each coverage bucket in base pairs. Note that buckets at the end + # of a reference sequence may be shorter. This value is omitted if the bucket + # width is infinity (the default behaviour, with no range or `targetBucketWidth`) + # . + # Corresponds to the JSON property `bucketWidth` + # @return [String] + attr_accessor :bucket_width + + # The coverage buckets. The list of buckets is sparse; a bucket with 0 + # overlapping reads is not returned. A bucket never crosses more than one + # reference sequence. Each bucket has width `bucketWidth`, unless its end is the + # end of the reference sequence. + # Corresponds to the JSON property `coverageBuckets` + # @return [Array] + attr_accessor :coverage_buckets + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @bucket_width = args[:bucket_width] unless args[:bucket_width].nil? + @coverage_buckets = args[:coverage_buckets] unless args[:coverage_buckets].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A bucket over which read coverage has been precomputed. A bucket corresponds + # to a specific range of the reference sequence. + class CoverageBucket + include Google::Apis::Core::Hashable + + # A 0-based half-open genomic coordinate range for search requests. + # Corresponds to the JSON property `range` + # @return [Google::Apis::GenomicsV1::Range] + attr_accessor :range + + # The average number of reads which are aligned to each individual reference + # base in this bucket. + # Corresponds to the JSON property `meanCoverage` + # @return [Float] + attr_accessor :mean_coverage + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @range = args[:range] unless args[:range].nil? + @mean_coverage = args[:mean_coverage] unless args[:mean_coverage].nil? + end + end + + # A 0-based half-open genomic coordinate range for search requests. + class Range + include Google::Apis::Core::Hashable + + # The reference sequence name, for example `chr1`, `1`, or `chrX`. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + + # The start position of the range on the reference, 0-based inclusive. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + + # The end position of the range on the reference, 0-based exclusive. + # Corresponds to the JSON property `end` + # @return [String] + attr_accessor :end + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reference_name = args[:reference_name] unless args[:reference_name].nil? + @start = args[:start] unless args[:start].nil? + @end = args[:end] unless args[:end].nil? + end + end + + # The read search request. + class SearchReadsRequest + include Google::Apis::Core::Hashable + + # The IDs of the read groups sets within which to search for reads. All + # specified read group sets must be aligned against a common set of reference + # sequences; this defines the genomic coordinates for the query. Must specify + # one of `readGroupSetIds` or `readGroupIds`. + # Corresponds to the JSON property `readGroupSetIds` + # @return [Array] + attr_accessor :read_group_set_ids + + # The IDs of the read groups within which to search for reads. All specified + # read groups must belong to the same read group sets. Must specify one of ` + # readGroupSetIds` or `readGroupIds`. + # Corresponds to the JSON property `readGroupIds` + # @return [Array] + attr_accessor :read_group_ids + + # The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to *, + # only unmapped reads are returned. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + + # The start position of the range on the reference, 0-based inclusive. If + # specified, `referenceName` must also be specified. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + + # The end position of the range on the reference, 0-based exclusive. If + # specified, `referenceName` must also be specified. + # Corresponds to the JSON property `end` + # @return [String] + attr_accessor :end + + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Specifies number of results to return in a single page. If unspecified, it + # will default to 256. The maximum value is 2048. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @read_group_set_ids = args[:read_group_set_ids] unless args[:read_group_set_ids].nil? + @read_group_ids = args[:read_group_ids] unless args[:read_group_ids].nil? + @reference_name = args[:reference_name] unless args[:reference_name].nil? + @start = args[:start] unless args[:start].nil? + @end = args[:end] unless args[:end].nil? + @page_token = args[:page_token] unless args[:page_token].nil? + @page_size = args[:page_size] unless args[:page_size].nil? + end + end + + # The read search response. + class SearchReadsResponse + include Google::Apis::Core::Hashable + + # The list of matching alignments sorted by mapped genomic coordinate, if any, + # ascending in position within the same reference. Unmapped reads, which have no + # position, are returned last and are further sorted in ascending lexicographic + # order by fragment name. + # Corresponds to the JSON property `alignments` + # @return [Array] + attr_accessor :alignments + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @alignments = args[:alignments] unless args[:alignments].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A read alignment describes a linear alignment of a string of DNA to a [ + # reference sequence][google.genomics.v1.Reference], in addition to metadata + # about the fragment (the molecule of DNA sequenced) and the read (the bases + # which were read by the sequencer). A read is equivalent to a line in a SAM + # file. A read belongs to exactly one read group and exactly one [read group set] + # [google.genomics.v1.ReadGroupSet]. ### Generating a reference-aligned sequence + # string When interacting with mapped reads, it's often useful to produce a + # string representing the local alignment of the read to reference. The + # following pseudocode demonstrates one way of doing this: out = "" offset = 0 + # for c in read.alignment.cigar ` switch c.operation ` case "ALIGNMENT_MATCH", " + # SEQUENCE_MATCH", "SEQUENCE_MISMATCH": out += read.alignedSequence[offset: + # offset+c.operationLength] offset += c.operationLength break case "CLIP_SOFT", " + # INSERT": offset += c.operationLength break case "PAD": out += repeat("*", c. + # operationLength) break case "DELETE": out += repeat("-", c.operationLength) + # break case "SKIP": out += repeat(" ", c.operationLength) break case "CLIP_HARD" + # : break ` ` return out ### Converting to SAM's CIGAR string The following + # pseudocode generates a SAM CIGAR string from the `cigar` field. Note that this + # is a lossy conversion (`cigar.referenceSequence` is lost). cigarMap = ` " + # ALIGNMENT_MATCH": "M", "INSERT": "I", "DELETE": "D", "SKIP": "N", "CLIP_SOFT": + # "S", "CLIP_HARD": "H", "PAD": "P", "SEQUENCE_MATCH": "=", "SEQUENCE_MISMATCH": + # "X", ` cigarStr = "" for c in read.alignment.cigar ` cigarStr += c. + # operationLength + cigarMap[c.operation] ` return cigarStr + class Read + include Google::Apis::Core::Hashable + + # The server-generated read ID, unique across all reads. This is different from + # the `fragmentName`. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The ID of the read group this read belongs to. (Every read must belong to + # exactly one read group.) + # Corresponds to the JSON property `readGroupId` + # @return [String] + attr_accessor :read_group_id + + # The ID of the read group set this read belongs to. (Every read must belong to + # exactly one read group set.) + # Corresponds to the JSON property `readGroupSetId` + # @return [String] + attr_accessor :read_group_set_id + + # The fragment name. Equivalent to QNAME (query template name) in SAM. + # Corresponds to the JSON property `fragmentName` + # @return [String] + attr_accessor :fragment_name + + # The orientation and the distance between reads from the fragment are + # consistent with the sequencing protocol (SAM flag 0x2) + # Corresponds to the JSON property `properPlacement` + # @return [Boolean] + attr_accessor :proper_placement + alias_method :proper_placement?, :proper_placement + + # The fragment is a PCR or optical duplicate (SAM flag 0x400) + # Corresponds to the JSON property `duplicateFragment` + # @return [Boolean] + attr_accessor :duplicate_fragment + alias_method :duplicate_fragment?, :duplicate_fragment + + # The observed length of the fragment, equivalent to TLEN in SAM. + # Corresponds to the JSON property `fragmentLength` + # @return [Fixnum] + attr_accessor :fragment_length + + # The read number in sequencing. 0-based and less than numberReads. This field + # replaces SAM flag 0x40 and 0x80. + # Corresponds to the JSON property `readNumber` + # @return [Fixnum] + attr_accessor :read_number + + # The number of reads in the fragment (extension to SAM flag 0x1). + # Corresponds to the JSON property `numberReads` + # @return [Fixnum] + attr_accessor :number_reads + + # SAM flag 0x200 + # Corresponds to the JSON property `failedVendorQualityChecks` + # @return [Boolean] + attr_accessor :failed_vendor_quality_checks + alias_method :failed_vendor_quality_checks?, :failed_vendor_quality_checks + + # A linear alignment can be represented by one CIGAR string. Describes the + # mapped position and local alignment of the read to the reference. + # Corresponds to the JSON property `alignment` + # @return [Google::Apis::GenomicsV1::LinearAlignment] + attr_accessor :alignment + + # Whether this alignment is secondary. Equivalent to SAM flag 0x100. A secondary + # alignment represents an alternative to the primary alignment for this read. + # Aligners may return secondary alignments if a read can map ambiguously to + # multiple coordinates in the genome. By convention, each read has one and only + # one alignment where both `secondaryAlignment` and `supplementaryAlignment` are + # false. + # Corresponds to the JSON property `secondaryAlignment` + # @return [Boolean] + attr_accessor :secondary_alignment + alias_method :secondary_alignment?, :secondary_alignment + + # Whether this alignment is supplementary. Equivalent to SAM flag 0x800. + # Supplementary alignments are used in the representation of a chimeric + # alignment. In a chimeric alignment, a read is split into multiple linear + # alignments that map to different reference contigs. The first linear alignment + # in the read will be designated as the representative alignment; the remaining + # linear alignments will be designated as supplementary alignments. These + # alignments may have different mapping quality scores. In each linear alignment + # in a chimeric alignment, the read will be hard clipped. The `alignedSequence` + # and `alignedQuality` fields in the alignment record will only represent the + # bases for its respective linear alignment. + # Corresponds to the JSON property `supplementaryAlignment` + # @return [Boolean] + attr_accessor :supplementary_alignment + alias_method :supplementary_alignment?, :supplementary_alignment + + # The bases of the read sequence contained in this alignment record, *without + # CIGAR operations applied*. `alignedSequence` and `alignedQuality` may be + # shorter than the full read sequence and quality. This will occur if the + # alignment is part of a chimeric alignment, or if the read was trimmed. When + # this occurs, the CIGAR for this read will begin/end with a hard clip operator + # that will indicate the length of the excised sequence. + # Corresponds to the JSON property `alignedSequence` + # @return [String] + attr_accessor :aligned_sequence + + # The quality of the read sequence contained in this alignment record. ` + # alignedSequence` and `alignedQuality` may be shorter than the full read + # sequence and quality. This will occur if the alignment is part of a chimeric + # alignment, or if the read was trimmed. When this occurs, the CIGAR for this + # read will begin/end with a hard clip operator that will indicate the length of + # the excised sequence. + # Corresponds to the JSON property `alignedQuality` + # @return [Array] + attr_accessor :aligned_quality + + # An abstraction for referring to a genomic position, in relation to some + # already known reference. For now, represents a genomic position as a reference + # name, a base number on that reference (0-based), and a determination of + # forward or reverse strand. + # Corresponds to the JSON property `nextMatePosition` + # @return [Google::Apis::GenomicsV1::Position] + attr_accessor :next_mate_position + + # A map of additional read alignment information. This must be of the form map ( + # string key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @read_group_id = args[:read_group_id] unless args[:read_group_id].nil? + @read_group_set_id = args[:read_group_set_id] unless args[:read_group_set_id].nil? + @fragment_name = args[:fragment_name] unless args[:fragment_name].nil? + @proper_placement = args[:proper_placement] unless args[:proper_placement].nil? + @duplicate_fragment = args[:duplicate_fragment] unless args[:duplicate_fragment].nil? + @fragment_length = args[:fragment_length] unless args[:fragment_length].nil? + @read_number = args[:read_number] unless args[:read_number].nil? + @number_reads = args[:number_reads] unless args[:number_reads].nil? + @failed_vendor_quality_checks = args[:failed_vendor_quality_checks] unless args[:failed_vendor_quality_checks].nil? + @alignment = args[:alignment] unless args[:alignment].nil? + @secondary_alignment = args[:secondary_alignment] unless args[:secondary_alignment].nil? + @supplementary_alignment = args[:supplementary_alignment] unless args[:supplementary_alignment].nil? + @aligned_sequence = args[:aligned_sequence] unless args[:aligned_sequence].nil? + @aligned_quality = args[:aligned_quality] unless args[:aligned_quality].nil? + @next_mate_position = args[:next_mate_position] unless args[:next_mate_position].nil? + @info = args[:info] unless args[:info].nil? + end + end + + # A linear alignment can be represented by one CIGAR string. Describes the + # mapped position and local alignment of the read to the reference. + class LinearAlignment + include Google::Apis::Core::Hashable + + # An abstraction for referring to a genomic position, in relation to some + # already known reference. For now, represents a genomic position as a reference + # name, a base number on that reference (0-based), and a determination of + # forward or reverse strand. + # Corresponds to the JSON property `position` + # @return [Google::Apis::GenomicsV1::Position] + attr_accessor :position + + # The mapping quality of this alignment. Represents how likely the read maps to + # this position as opposed to other locations. + # Corresponds to the JSON property `mappingQuality` + # @return [Fixnum] + attr_accessor :mapping_quality + + # Represents the local alignment of this sequence (alignment matches, indels, + # etc) against the reference. + # Corresponds to the JSON property `cigar` + # @return [Array] + attr_accessor :cigar + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @position = args[:position] unless args[:position].nil? + @mapping_quality = args[:mapping_quality] unless args[:mapping_quality].nil? + @cigar = args[:cigar] unless args[:cigar].nil? + end + end + + # An abstraction for referring to a genomic position, in relation to some + # already known reference. For now, represents a genomic position as a reference + # name, a base number on that reference (0-based), and a determination of + # forward or reverse strand. + class Position + include Google::Apis::Core::Hashable + + # The name of the reference in whatever reference set is being used. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + + # The 0-based offset from the start of the forward strand for that reference. + # Corresponds to the JSON property `position` + # @return [String] + attr_accessor :position + + # Whether this position is on the reverse strand, as opposed to the forward + # strand. + # Corresponds to the JSON property `reverseStrand` + # @return [Boolean] + attr_accessor :reverse_strand + alias_method :reverse_strand?, :reverse_strand + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reference_name = args[:reference_name] unless args[:reference_name].nil? + @position = args[:position] unless args[:position].nil? + @reverse_strand = args[:reverse_strand] unless args[:reverse_strand].nil? + end + end + + # A single CIGAR operation. + class CigarUnit + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + # The number of genomic bases that the operation runs for. Required. + # Corresponds to the JSON property `operationLength` + # @return [String] + attr_accessor :operation_length + + # `referenceSequence` is only used at mismatches (`SEQUENCE_MISMATCH`) and + # deletions (`DELETE`). Filling this field replaces SAM's MD tag. If the + # relevant information is not available, this field is unset. + # Corresponds to the JSON property `referenceSequence` + # @return [String] + attr_accessor :reference_sequence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation = args[:operation] unless args[:operation].nil? + @operation_length = args[:operation_length] unless args[:operation_length].nil? + @reference_sequence = args[:reference_sequence] unless args[:reference_sequence].nil? + end + end + + # + class SearchReferenceSetsRequest + include Google::Apis::Core::Hashable + + # If present, return references for which the `md5checksum` matches. See ` + # ReferenceSet.md5checksum` for details. + # Corresponds to the JSON property `md5checksums` + # @return [Array] + attr_accessor :md5checksums + + # If present, return references for which the accession matches any of these + # strings. Best to give a version number, for example `GCF_000001405.26`. If + # only the main accession number is given then all records with that main + # accession will be returned, whichever version. Note that different versions + # will have different sequences. + # Corresponds to the JSON property `accessions` + # @return [Array] + attr_accessor :accessions + + # If present, return reference sets for which a substring of their `assemblyId` + # matches this string (case insensitive). + # Corresponds to the JSON property `assemblyId` + # @return [String] + attr_accessor :assembly_id + + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Specifies the maximum number of results to return in a single page. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @md5checksums = args[:md5checksums] unless args[:md5checksums].nil? + @accessions = args[:accessions] unless args[:accessions].nil? + @assembly_id = args[:assembly_id] unless args[:assembly_id].nil? + @page_token = args[:page_token] unless args[:page_token].nil? + @page_size = args[:page_size] unless args[:page_size].nil? + end + end + + # + class SearchReferenceSetsResponse + include Google::Apis::Core::Hashable + + # The matching references sets. + # Corresponds to the JSON property `referenceSets` + # @return [Array] + attr_accessor :reference_sets + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @reference_sets = args[:reference_sets] unless args[:reference_sets].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A reference set is a set of references which typically comprise a reference + # assembly for a species, such as `GRCh38` which is representative of the human + # genome. A reference set defines a common coordinate space for comparing + # reference-aligned experimental data. A reference set contains 1 or more + # references. + class ReferenceSet + include Google::Apis::Core::Hashable + + # The server-generated reference set ID, unique across all reference sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The IDs of the reference objects that are part of this set. `Reference. + # md5checksum` must be unique within this set. + # Corresponds to the JSON property `referenceIds` + # @return [Array] + attr_accessor :reference_ids + + # Order-independent MD5 checksum which identifies this reference set. The + # checksum is computed by sorting all lower case hexidecimal string `reference. + # md5checksum` (for all reference in this set) in ascending lexicographic order, + # concatenating, and taking the MD5 of that value. The resulting value is + # represented in lower case hexadecimal format. + # Corresponds to the JSON property `md5checksum` + # @return [String] + attr_accessor :md5checksum + + # ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) indicating the + # species which this assembly is intended to model. Note that contained + # references may specify a different `ncbiTaxonId`, as assemblies may contain + # reference sequences which do not belong to the modeled species, e.g. EBV in a + # human reference genome. + # Corresponds to the JSON property `ncbiTaxonId` + # @return [Fixnum] + attr_accessor :ncbi_taxon_id + + # Free text description of this reference set. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Public id of this reference set, such as `GRCh37`. + # Corresponds to the JSON property `assemblyId` + # @return [String] + attr_accessor :assembly_id + + # The URI from which the references were obtained. + # Corresponds to the JSON property `sourceUri` + # @return [String] + attr_accessor :source_uri + + # All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally with + # a version number, for example `NC_000001.11`. + # Corresponds to the JSON property `sourceAccessions` + # @return [Array] + attr_accessor :source_accessions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @reference_ids = args[:reference_ids] unless args[:reference_ids].nil? + @md5checksum = args[:md5checksum] unless args[:md5checksum].nil? + @ncbi_taxon_id = args[:ncbi_taxon_id] unless args[:ncbi_taxon_id].nil? + @description = args[:description] unless args[:description].nil? + @assembly_id = args[:assembly_id] unless args[:assembly_id].nil? + @source_uri = args[:source_uri] unless args[:source_uri].nil? + @source_accessions = args[:source_accessions] unless args[:source_accessions].nil? + end + end + + # + class SearchReferencesRequest + include Google::Apis::Core::Hashable + + # If present, return references for which the `md5checksum` matches. See ` + # Reference.md5checksum` for construction details. + # Corresponds to the JSON property `md5checksums` + # @return [Array] + attr_accessor :md5checksums + + # If present, return references for which the accession matches this string. + # Best to give a version number, for example `GCF_000001405.26`. If only the + # main accession number is given then all records with that main accession will + # be returned, whichever version. Note that different versions will have + # different sequences. + # Corresponds to the JSON property `accessions` + # @return [Array] + attr_accessor :accessions + + # If present, return only references which belong to this reference set. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Specifies the maximum number of results to return in a single page. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @md5checksums = args[:md5checksums] unless args[:md5checksums].nil? + @accessions = args[:accessions] unless args[:accessions].nil? + @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? + @page_token = args[:page_token] unless args[:page_token].nil? + @page_size = args[:page_size] unless args[:page_size].nil? + end + end + + # + class SearchReferencesResponse + include Google::Apis::Core::Hashable + + # The matching references. + # Corresponds to the JSON property `references` + # @return [Array] + attr_accessor :references + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @references = args[:references] unless args[:references].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A reference is a canonical assembled DNA sequence, intended to act as a + # reference coordinate space for other genomic annotations. A single reference + # might represent the human chromosome 1 or mitochandrial DNA, for instance. A + # reference belongs to one or more reference sets. + class Reference + include Google::Apis::Core::Hashable + + # The server-generated reference ID, unique across all references. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The length of this reference's sequence. + # Corresponds to the JSON property `length` + # @return [String] + attr_accessor :length + + # MD5 of the upper-case sequence excluding all whitespace characters (this is + # equivalent to SQ:M5 in SAM). This value is represented in lower case + # hexadecimal format. + # Corresponds to the JSON property `md5checksum` + # @return [String] + attr_accessor :md5checksum + + # The name of this reference, for example `22`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The URI from which the sequence was obtained. Specifies a FASTA format file/ + # string with one name, sequence pair. + # Corresponds to the JSON property `sourceUri` + # @return [String] + attr_accessor :source_uri + + # All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally with + # a version number, for example `GCF_000001405.26`. + # Corresponds to the JSON property `sourceAccessions` + # @return [Array] + attr_accessor :source_accessions + + # ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) if not + # specified by the containing reference set. + # Corresponds to the JSON property `ncbiTaxonId` + # @return [Fixnum] + attr_accessor :ncbi_taxon_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @length = args[:length] unless args[:length].nil? + @md5checksum = args[:md5checksum] unless args[:md5checksum].nil? + @name = args[:name] unless args[:name].nil? + @source_uri = args[:source_uri] unless args[:source_uri].nil? + @source_accessions = args[:source_accessions] unless args[:source_accessions].nil? + @ncbi_taxon_id = args[:ncbi_taxon_id] unless args[:ncbi_taxon_id].nil? + end + end + + # + class ListBasesResponse + include Google::Apis::Core::Hashable + + # The offset position (0-based) of the given `sequence` from the start of this ` + # Reference`. This value will differ for each page in a paginated request. + # Corresponds to the JSON property `offset` + # @return [String] + attr_accessor :offset + + # A substring of the bases that make up this reference. + # Corresponds to the JSON property `sequence` + # @return [String] + attr_accessor :sequence + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @offset = args[:offset] unless args[:offset].nil? + @sequence = args[:sequence] unless args[:sequence].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # The variant data import request. + class ImportVariantsRequest + include Google::Apis::Core::Hashable + + # Required. The variant set to which variant data should be imported. + # Corresponds to the JSON property `variantSetId` + # @return [String] + attr_accessor :variant_set_id + + # A list of URIs referencing variant files in Google Cloud Storage. URIs can + # include wildcards [as described here](https://cloud.google.com/storage/docs/ + # gsutil/addlhelp/WildcardNames). Note that recursive wildcards ('**') are not + # supported. + # Corresponds to the JSON property `sourceUris` + # @return [Array] + attr_accessor :source_uris + + # The format of the variant data being imported. If unspecified, defaults to to ` + # VCF`. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Convert reference names to the canonical representation. hg19 haploytypes ( + # those reference names containing "_hap") are not modified in any way. All + # other reference names are modified according to the following rules: The + # reference name is capitalized. The "chr" prefix is dropped for all autosomes + # and sex chromsomes. For example "chr17" becomes "17" and "chrX" becomes "X". + # All mitochondrial chromosomes ("chrM", "chrMT", etc) become "MT". + # Corresponds to the JSON property `normalizeReferenceNames` + # @return [Boolean] + attr_accessor :normalize_reference_names + alias_method :normalize_reference_names?, :normalize_reference_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil? + @source_uris = args[:source_uris] unless args[:source_uris].nil? + @format = args[:format] unless args[:format].nil? + @normalize_reference_names = args[:normalize_reference_names] unless args[:normalize_reference_names].nil? + end + end + + # A variant set is a collection of call sets and variants. It contains summary + # statistics of those contents. A variant set belongs to a dataset. + class VariantSet + include Google::Apis::Core::Hashable + + # The dataset to which this variant set belongs. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + + # The server-generated variant set ID, unique across all variant sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of all references used by the variants in a variant set with associated + # coordinate upper bounds for each one. + # Corresponds to the JSON property `referenceBounds` + # @return [Array] + attr_accessor :reference_bounds + + # The metadata associated with this variant set. + # Corresponds to the JSON property `metadata` + # @return [Array] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? + @id = args[:id] unless args[:id].nil? + @reference_bounds = args[:reference_bounds] unless args[:reference_bounds].nil? + @metadata = args[:metadata] unless args[:metadata].nil? + end + end + + # ReferenceBound records an upper bound for the starting coordinate of variants + # in a particular reference. + class ReferenceBound + include Google::Apis::Core::Hashable + + # The reference the bound is associate with. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + + # An upper bound (inclusive) on the starting coordinate of any variant in the + # reference sequence. + # Corresponds to the JSON property `upperBound` + # @return [String] + attr_accessor :upper_bound + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reference_name = args[:reference_name] unless args[:reference_name].nil? + @upper_bound = args[:upper_bound] unless args[:upper_bound].nil? + end + end + + # Metadata describes a single piece of variant call metadata. These data include + # a top level key and either a single value string (value) or a list of key- + # value pairs (info.) Value and info are mutually exclusive. + class VariantSetMetadata + include Google::Apis::Core::Hashable + + # The top-level key. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The value field for simple metadata + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # User-provided ID field, not enforced by this API. Two or more pieces of + # structured metadata with identical id and key fields are considered equivalent. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The type of data. Possible types include: Integer, Float, Flag, Character, and + # String. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The number of values that can be included in a field described by this + # metadata. + # Corresponds to the JSON property `number` + # @return [Fixnum] + attr_accessor :number + + # A textual description of this metadata. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Remaining structured metadata key-value pairs. This must be of the form map ( + # string key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + @id = args[:id] unless args[:id].nil? + @type = args[:type] unless args[:type].nil? + @number = args[:number] unless args[:number].nil? + @description = args[:description] unless args[:description].nil? + @info = args[:info] unless args[:info].nil? + end + end + + # The variant data export request. + class ExportVariantSetRequest + include Google::Apis::Core::Hashable + + # If provided, only variant call information from the specified call sets will + # be exported. By default all variant calls are exported. + # Corresponds to the JSON property `callSetIds` + # @return [Array] + attr_accessor :call_set_ids + + # Required. The Google Cloud project ID that owns the destination BigQuery + # dataset. The caller must have WRITE access to this project. This project will + # also own the resulting export job. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The format for the exported data. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Required. The BigQuery dataset to export data to. This dataset must already + # exist. Note that this is distinct from the Genomics concept of "dataset". + # Corresponds to the JSON property `bigqueryDataset` + # @return [String] + attr_accessor :bigquery_dataset + + # Required. The BigQuery table to export data to. If the table doesn't exist, it + # will be created. If it already exists, it will be overwritten. + # Corresponds to the JSON property `bigqueryTable` + # @return [String] + attr_accessor :bigquery_table + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil? + @project_id = args[:project_id] unless args[:project_id].nil? + @format = args[:format] unless args[:format].nil? + @bigquery_dataset = args[:bigquery_dataset] unless args[:bigquery_dataset].nil? + @bigquery_table = args[:bigquery_table] unless args[:bigquery_table].nil? + end + end + + # The search variant sets request. + class SearchVariantSetsRequest + include Google::Apis::Core::Hashable + + # Exactly one dataset ID must be provided here. Only variant sets which belong + # to this dataset will be returned. + # Corresponds to the JSON property `datasetIds` + # @return [Array] + attr_accessor :dataset_ids + + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # The maximum number of variant sets to return in a request. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset_ids = args[:dataset_ids] unless args[:dataset_ids].nil? + @page_token = args[:page_token] unless args[:page_token].nil? + @page_size = args[:page_size] unless args[:page_size].nil? + end + end + + # The search variant sets response. + class SearchVariantSetsResponse + include Google::Apis::Core::Hashable + + # The variant sets belonging to the requested dataset. + # Corresponds to the JSON property `variantSets` + # @return [Array] + attr_accessor :variant_sets + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @variant_sets = args[:variant_sets] unless args[:variant_sets].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # The variant search request. + class SearchVariantsRequest + include Google::Apis::Core::Hashable + + # At most one variant set ID must be provided. Only variants from this variant + # set will be returned. If omitted, a call set id must be included in the + # request. + # Corresponds to the JSON property `variantSetIds` + # @return [Array] + attr_accessor :variant_set_ids + + # Only return variants which have exactly this name. + # Corresponds to the JSON property `variantName` + # @return [String] + attr_accessor :variant_name + + # Only return variant calls which belong to call sets with these ids. Leaving + # this blank returns all variant calls. If a variant has no calls belonging to + # any of these call sets, it won't be returned at all. Currently, variants with + # no calls from any call set will never be returned. + # Corresponds to the JSON property `callSetIds` + # @return [Array] + attr_accessor :call_set_ids + + # Required. Only return variants in this reference sequence. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + + # The beginning of the window (0-based, inclusive) for which overlapping + # variants should be returned. If unspecified, defaults to 0. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + + # The end of the window, 0-based exclusive. If unspecified or 0, defaults to the + # length of the reference. + # Corresponds to the JSON property `end` + # @return [String] + attr_accessor :end + + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # The maximum number of variants to return. If unspecified, defaults to 5000. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # The maximum number of calls to return. However, at least one variant will + # always be returned, even if it has more calls than this limit. If unspecified, + # defaults to 5000. + # Corresponds to the JSON property `maxCalls` + # @return [Fixnum] + attr_accessor :max_calls + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil? + @variant_name = args[:variant_name] unless args[:variant_name].nil? + @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil? + @reference_name = args[:reference_name] unless args[:reference_name].nil? + @start = args[:start] unless args[:start].nil? + @end = args[:end] unless args[:end].nil? + @page_token = args[:page_token] unless args[:page_token].nil? + @page_size = args[:page_size] unless args[:page_size].nil? + @max_calls = args[:max_calls] unless args[:max_calls].nil? + end + end + + # The variant search response. + class SearchVariantsResponse + include Google::Apis::Core::Hashable + + # The list of matching Variants. + # Corresponds to the JSON property `variants` + # @return [Array] + attr_accessor :variants + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @variants = args[:variants] unless args[:variants].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A variant represents a change in DNA sequence relative to a reference sequence. + # For example, a variant could represent a SNP or an insertion. Variants belong + # to a variant set. Each of the calls on a variant represent a determination of + # genotype with respect to that variant. For example, a call might assign + # probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named + # NA12345. A call belongs to a call set, which contains related calls typically + # from one sample. + class Variant + include Google::Apis::Core::Hashable + + # The ID of the variant set this variant belongs to. + # Corresponds to the JSON property `variantSetId` + # @return [String] + attr_accessor :variant_set_id + + # The server-generated variant ID, unique across all variants. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Names for the variant, for example a RefSNP ID. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names + + # The date this variant was created, in milliseconds from the epoch. + # Corresponds to the JSON property `created` + # @return [String] + attr_accessor :created + + # The reference on which this variant occurs. (such as `chr20` or `X`) + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + + # The position at which this variant occurs (0-based). This corresponds to the + # first base of the string of reference bases. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + + # The end position (0-based) of this variant. This corresponds to the first base + # after the last base in the reference allele. So, the length of the reference + # allele is (end - start). This is useful for variants that don't explicitly + # give alternate bases, for example large deletions. + # Corresponds to the JSON property `end` + # @return [String] + attr_accessor :end + + # The reference bases for this variant. They start at the given position. + # Corresponds to the JSON property `referenceBases` + # @return [String] + attr_accessor :reference_bases + + # The bases that appear instead of the reference bases. + # Corresponds to the JSON property `alternateBases` + # @return [Array] + attr_accessor :alternate_bases + + # A measure of how likely this variant is to be real. A higher value is better. + # Corresponds to the JSON property `quality` + # @return [Float] + attr_accessor :quality + + # A list of filters (normally quality filters) this variant has failed. `PASS` + # indicates this variant has passed all filters. + # Corresponds to the JSON property `filter` + # @return [Array] + attr_accessor :filter + + # A map of additional variant information. This must be of the form map (string + # key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + # The variant calls for this particular variant. Each one represents the + # determination of genotype with respect to this variant. + # Corresponds to the JSON property `calls` + # @return [Array] + attr_accessor :calls + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil? + @id = args[:id] unless args[:id].nil? + @names = args[:names] unless args[:names].nil? + @created = args[:created] unless args[:created].nil? + @reference_name = args[:reference_name] unless args[:reference_name].nil? + @start = args[:start] unless args[:start].nil? + @end = args[:end] unless args[:end].nil? + @reference_bases = args[:reference_bases] unless args[:reference_bases].nil? + @alternate_bases = args[:alternate_bases] unless args[:alternate_bases].nil? + @quality = args[:quality] unless args[:quality].nil? + @filter = args[:filter] unless args[:filter].nil? + @info = args[:info] unless args[:info].nil? + @calls = args[:calls] unless args[:calls].nil? + end + end + + # A call represents the determination of genotype with respect to a particular + # variant. It may include associated information such as quality and phasing. + # For example, a call might assign a probability of 0.32 to the occurrence of a + # SNP named rs1234 in a call set with the name NA12345. + class VariantCall + include Google::Apis::Core::Hashable + + # The ID of the call set this variant call belongs to. + # Corresponds to the JSON property `callSetId` + # @return [String] + attr_accessor :call_set_id + + # The name of the call set this variant call belongs to. + # Corresponds to the JSON property `callSetName` + # @return [String] + attr_accessor :call_set_name + + # The genotype of this variant call. Each value represents either the value of + # the `referenceBases` field or a 1-based index into `alternateBases`. If a + # variant had a `referenceBases` value of `T` and an `alternateBases` value of `[ + # "A", "C"]`, and the `genotype` was `[2, 1]`, that would mean the call + # represented the heterozygous value `CA` for this variant. If the `genotype` + # was instead `[0, 1]`, the represented value would be `TA`. Ordering of the + # genotype values is important if the `phaseset` is present. If a genotype is + # not called (that is, a `.` is present in the GT string) -1 is returned. + # Corresponds to the JSON property `genotype` + # @return [Array] + attr_accessor :genotype + + # If this field is present, this variant call's genotype ordering implies the + # phase of the bases and is consistent with any other variant calls in the same + # reference sequence which have the same phaseset value. When importing data + # from VCF, if the genotype data was phased but no phase set was specified this + # field will be set to `*`. + # Corresponds to the JSON property `phaseset` + # @return [String] + attr_accessor :phaseset + + # The genotype likelihoods for this variant call. Each array entry represents + # how likely a specific genotype is for this call. The value ordering is defined + # by the GL tag in the VCF spec. If Phred-scaled genotype likelihood scores (PL) + # are available and log10(P) genotype likelihood scores (GL) are not, PL scores + # are converted to GL scores. If both are available, PL scores are stored in ` + # info`. + # Corresponds to the JSON property `genotypeLikelihood` + # @return [Array] + attr_accessor :genotype_likelihood + + # A map of additional variant call information. This must be of the form map ( + # string key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @call_set_id = args[:call_set_id] unless args[:call_set_id].nil? + @call_set_name = args[:call_set_name] unless args[:call_set_name].nil? + @genotype = args[:genotype] unless args[:genotype].nil? + @phaseset = args[:phaseset] unless args[:phaseset].nil? + @genotype_likelihood = args[:genotype_likelihood] unless args[:genotype_likelihood].nil? + @info = args[:info] unless args[:info].nil? + end + end + + # + class MergeVariantsRequest + include Google::Apis::Core::Hashable + + # The destination variant set. + # Corresponds to the JSON property `variantSetId` + # @return [String] + attr_accessor :variant_set_id + + # The variants to be merged with existing variants. + # Corresponds to the JSON property `variants` + # @return [Array] + attr_accessor :variants + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil? + @variants = args[:variants] unless args[:variants].nil? + end + end + + # The call set search request. + class SearchCallSetsRequest + include Google::Apis::Core::Hashable + + # Restrict the query to call sets within the given variant sets. At least one ID + # must be provided. + # Corresponds to the JSON property `variantSetIds` + # @return [Array] + attr_accessor :variant_set_ids + + # Only return call sets for which a substring of the name matches this string. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # The maximum number of call sets to return. If unspecified, defaults to 1000. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil? + @name = args[:name] unless args[:name].nil? + @page_token = args[:page_token] unless args[:page_token].nil? + @page_size = args[:page_size] unless args[:page_size].nil? + end + end + + # The call set search response. + class SearchCallSetsResponse + include Google::Apis::Core::Hashable + + # The list of matching call sets. + # Corresponds to the JSON property `callSets` + # @return [Array] + attr_accessor :call_sets + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of results. + # This field will be empty if there aren't any additional 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) + @call_sets = args[:call_sets] unless args[:call_sets].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A call set is a collection of variant calls, typically for one sample. It + # belongs to a variant set. + class CallSet + include Google::Apis::Core::Hashable + + # The server-generated call set ID, unique across all call sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The call set name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The sample ID this call set corresponds to. + # Corresponds to the JSON property `sampleId` + # @return [String] + attr_accessor :sample_id + + # The IDs of the variant sets this call set belongs to. + # Corresponds to the JSON property `variantSetIds` + # @return [Array] + attr_accessor :variant_set_ids + + # The date this call set was created in milliseconds from the epoch. + # Corresponds to the JSON property `created` + # @return [String] + attr_accessor :created + + # A map of additional call set information. This must be of the form map (string + # key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @sample_id = args[:sample_id] unless args[:sample_id].nil? + @variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil? + @created = args[:created] unless args[:created].nil? + @info = args[:info] unless args[:info].nil? + end + end + + # The read group set import response. + class ImportReadGroupSetsResponse + include Google::Apis::Core::Hashable + + # IDs of the read group sets that were created. + # Corresponds to the JSON property `readGroupSetIds` + # @return [Array] + attr_accessor :read_group_set_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @read_group_set_ids = args[:read_group_set_ids] unless args[:read_group_set_ids].nil? + end + end + + # The variant data import response. + class ImportVariantsResponse + include Google::Apis::Core::Hashable + + # IDs of the call sets that were created. + # Corresponds to the JSON property `callSetIds` + # @return [Array] + attr_accessor :call_set_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil? + end + end + + # Metadata describing an [Operation][google.longrunning.Operation]. + class OperationMetadata + include Google::Apis::Core::Hashable + + # The Google Cloud Project in which the job is scoped. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The time at which the job was submitted to the Genomics service. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The original request that started the operation. Note that this will be in + # current version of the API. If the operation was started with v1beta2 API and + # a GetOperation is performed on v1 API, a v1 request will be returned. + # Corresponds to the JSON property `request` + # @return [Hash] + attr_accessor :request + + # Optional event messages that were generated during the job's execution. This + # also contains any warnings that were generated during import or export. + # Corresponds to the JSON property `events` + # @return [Array] + attr_accessor :events + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_id = args[:project_id] unless args[:project_id].nil? + @create_time = args[:create_time] unless args[:create_time].nil? + @request = args[:request] unless args[:request].nil? + @events = args[:events] unless args[:events].nil? + end + end + + # An event that occurred during an [Operation][google.longrunning.Operation]. + class OperationEvent + include Google::Apis::Core::Hashable + + # Required description of event. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] unless args[:description].nil? + end + end + end + end +end diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb new file mode 100644 index 000000000..9e57e29da --- /dev/null +++ b/generated/google/apis/genomics_v1/representations.rb @@ -0,0 +1,796 @@ +# 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 GenomicsV1 + + class ListDatasetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Dataset + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UndeleteDatasetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ImportReadGroupSetsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExportReadGroupSetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReadGroupSetsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReadGroupSetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ReadGroupSet + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ReadGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Experiment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Program + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListCoverageBucketsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CoverageBucket + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Range + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReadsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReadsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Read + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LinearAlignment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Position + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CigarUnit + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReferenceSetsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReferenceSetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ReferenceSet + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReferencesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchReferencesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Reference + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListBasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ImportVariantsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class VariantSet + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ReferenceBound + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class VariantSetMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExportVariantSetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchVariantSetsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchVariantSetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchVariantsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchVariantsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Variant + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class VariantCall + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MergeVariantsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchCallSetsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SearchCallSetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CallSet + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ImportReadGroupSetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ImportVariantsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OperationEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListDatasetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :datasets, as: 'datasets', class: Google::Apis::GenomicsV1::Dataset, decorator: Google::Apis::GenomicsV1::Dataset::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Dataset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :project_id, as: 'projectId' + property :name, as: 'name' + property :create_time, as: 'createTime' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class UndeleteDatasetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + hash :metadata, as: 'metadata' + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation + + hash :response, as: 'response' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :message, as: 'message' + collection :details, as: 'details' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class CancelOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ImportReadGroupSetsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataset_id, as: 'datasetId' + property :reference_set_id, as: 'referenceSetId' + collection :source_uris, as: 'sourceUris' + property :partition_strategy, as: 'partitionStrategy' + end + end + + class ExportReadGroupSetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + property :export_uri, as: 'exportUri' + collection :reference_names, as: 'referenceNames' + end + end + + class SearchReadGroupSetsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dataset_ids, as: 'datasetIds' + property :name, as: 'name' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class SearchReadGroupSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :read_group_sets, as: 'readGroupSets', class: Google::Apis::GenomicsV1::ReadGroupSet, decorator: Google::Apis::GenomicsV1::ReadGroupSet::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ReadGroupSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :dataset_id, as: 'datasetId' + property :reference_set_id, as: 'referenceSetId' + property :name, as: 'name' + property :filename, as: 'filename' + collection :read_groups, as: 'readGroups', class: Google::Apis::GenomicsV1::ReadGroup, decorator: Google::Apis::GenomicsV1::ReadGroup::Representation + + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + + class ReadGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :dataset_id, as: 'datasetId' + property :name, as: 'name' + property :description, as: 'description' + property :sample_id, as: 'sampleId' + property :experiment, as: 'experiment', class: Google::Apis::GenomicsV1::Experiment, decorator: Google::Apis::GenomicsV1::Experiment::Representation + + property :predicted_insert_size, as: 'predictedInsertSize' + collection :programs, as: 'programs', class: Google::Apis::GenomicsV1::Program, decorator: Google::Apis::GenomicsV1::Program::Representation + + property :reference_set_id, as: 'referenceSetId' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + + class Experiment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :library_id, as: 'libraryId' + property :platform_unit, as: 'platformUnit' + property :sequencing_center, as: 'sequencingCenter' + property :instrument_model, as: 'instrumentModel' + end + end + + class Program + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command_line, as: 'commandLine' + property :id, as: 'id' + property :name, as: 'name' + property :prev_program_id, as: 'prevProgramId' + property :version, as: 'version' + end + end + + class ListCoverageBucketsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_width, as: 'bucketWidth' + collection :coverage_buckets, as: 'coverageBuckets', class: Google::Apis::GenomicsV1::CoverageBucket, decorator: Google::Apis::GenomicsV1::CoverageBucket::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class CoverageBucket + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :range, as: 'range', class: Google::Apis::GenomicsV1::Range, decorator: Google::Apis::GenomicsV1::Range::Representation + + property :mean_coverage, as: 'meanCoverage' + end + end + + class Range + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reference_name, as: 'referenceName' + property :start, as: 'start' + property :end, as: 'end' + end + end + + class SearchReadsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :read_group_set_ids, as: 'readGroupSetIds' + collection :read_group_ids, as: 'readGroupIds' + property :reference_name, as: 'referenceName' + property :start, as: 'start' + property :end, as: 'end' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class SearchReadsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :alignments, as: 'alignments', class: Google::Apis::GenomicsV1::Read, decorator: Google::Apis::GenomicsV1::Read::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Read + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :read_group_id, as: 'readGroupId' + property :read_group_set_id, as: 'readGroupSetId' + property :fragment_name, as: 'fragmentName' + property :proper_placement, as: 'properPlacement' + property :duplicate_fragment, as: 'duplicateFragment' + property :fragment_length, as: 'fragmentLength' + property :read_number, as: 'readNumber' + property :number_reads, as: 'numberReads' + property :failed_vendor_quality_checks, as: 'failedVendorQualityChecks' + property :alignment, as: 'alignment', class: Google::Apis::GenomicsV1::LinearAlignment, decorator: Google::Apis::GenomicsV1::LinearAlignment::Representation + + property :secondary_alignment, as: 'secondaryAlignment' + property :supplementary_alignment, as: 'supplementaryAlignment' + property :aligned_sequence, as: 'alignedSequence' + collection :aligned_quality, as: 'alignedQuality' + property :next_mate_position, as: 'nextMatePosition', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation + + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + + class LinearAlignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation + + property :mapping_quality, as: 'mappingQuality' + collection :cigar, as: 'cigar', class: Google::Apis::GenomicsV1::CigarUnit, decorator: Google::Apis::GenomicsV1::CigarUnit::Representation + + end + end + + class Position + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reference_name, as: 'referenceName' + property :position, as: 'position' + property :reverse_strand, as: 'reverseStrand' + end + end + + class CigarUnit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation, as: 'operation' + property :operation_length, as: 'operationLength' + property :reference_sequence, as: 'referenceSequence' + end + end + + class SearchReferenceSetsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :md5checksums, as: 'md5checksums' + collection :accessions, as: 'accessions' + property :assembly_id, as: 'assemblyId' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class SearchReferenceSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reference_sets, as: 'referenceSets', class: Google::Apis::GenomicsV1::ReferenceSet, decorator: Google::Apis::GenomicsV1::ReferenceSet::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ReferenceSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :reference_ids, as: 'referenceIds' + property :md5checksum, as: 'md5checksum' + property :ncbi_taxon_id, as: 'ncbiTaxonId' + property :description, as: 'description' + property :assembly_id, as: 'assemblyId' + property :source_uri, as: 'sourceUri' + collection :source_accessions, as: 'sourceAccessions' + end + end + + class SearchReferencesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :md5checksums, as: 'md5checksums' + collection :accessions, as: 'accessions' + property :reference_set_id, as: 'referenceSetId' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class SearchReferencesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :references, as: 'references', class: Google::Apis::GenomicsV1::Reference, decorator: Google::Apis::GenomicsV1::Reference::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Reference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :length, as: 'length' + property :md5checksum, as: 'md5checksum' + property :name, as: 'name' + property :source_uri, as: 'sourceUri' + collection :source_accessions, as: 'sourceAccessions' + property :ncbi_taxon_id, as: 'ncbiTaxonId' + end + end + + class ListBasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :offset, as: 'offset' + property :sequence, as: 'sequence' + property :next_page_token, as: 'nextPageToken' + end + end + + class ImportVariantsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :variant_set_id, as: 'variantSetId' + collection :source_uris, as: 'sourceUris' + property :format, as: 'format' + property :normalize_reference_names, as: 'normalizeReferenceNames' + end + end + + class VariantSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataset_id, as: 'datasetId' + property :id, as: 'id' + collection :reference_bounds, as: 'referenceBounds', class: Google::Apis::GenomicsV1::ReferenceBound, decorator: Google::Apis::GenomicsV1::ReferenceBound::Representation + + collection :metadata, as: 'metadata', class: Google::Apis::GenomicsV1::VariantSetMetadata, decorator: Google::Apis::GenomicsV1::VariantSetMetadata::Representation + + end + end + + class ReferenceBound + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reference_name, as: 'referenceName' + property :upper_bound, as: 'upperBound' + end + end + + class VariantSetMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + property :id, as: 'id' + property :type, as: 'type' + property :number, as: 'number' + property :description, as: 'description' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + + class ExportVariantSetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :call_set_ids, as: 'callSetIds' + property :project_id, as: 'projectId' + property :format, as: 'format' + property :bigquery_dataset, as: 'bigqueryDataset' + property :bigquery_table, as: 'bigqueryTable' + end + end + + class SearchVariantSetsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dataset_ids, as: 'datasetIds' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class SearchVariantSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :variant_sets, as: 'variantSets', class: Google::Apis::GenomicsV1::VariantSet, decorator: Google::Apis::GenomicsV1::VariantSet::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class SearchVariantsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :variant_set_ids, as: 'variantSetIds' + property :variant_name, as: 'variantName' + collection :call_set_ids, as: 'callSetIds' + property :reference_name, as: 'referenceName' + property :start, as: 'start' + property :end, as: 'end' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + property :max_calls, as: 'maxCalls' + end + end + + class SearchVariantsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Variant + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :variant_set_id, as: 'variantSetId' + property :id, as: 'id' + collection :names, as: 'names' + property :created, as: 'created' + property :reference_name, as: 'referenceName' + property :start, as: 'start' + property :end, as: 'end' + property :reference_bases, as: 'referenceBases' + collection :alternate_bases, as: 'alternateBases' + property :quality, as: 'quality' + collection :filter, as: 'filter' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + collection :calls, as: 'calls', class: Google::Apis::GenomicsV1::VariantCall, decorator: Google::Apis::GenomicsV1::VariantCall::Representation + + end + end + + class VariantCall + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :call_set_id, as: 'callSetId' + property :call_set_name, as: 'callSetName' + collection :genotype, as: 'genotype' + property :phaseset, as: 'phaseset' + collection :genotype_likelihood, as: 'genotypeLikelihood' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + + class MergeVariantsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :variant_set_id, as: 'variantSetId' + collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation + + end + end + + class SearchCallSetsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :variant_set_ids, as: 'variantSetIds' + property :name, as: 'name' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class SearchCallSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :call_sets, as: 'callSets', class: Google::Apis::GenomicsV1::CallSet, decorator: Google::Apis::GenomicsV1::CallSet::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class CallSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + property :sample_id, as: 'sampleId' + collection :variant_set_ids, as: 'variantSetIds' + property :created, as: 'created' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + + class ImportReadGroupSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :read_group_set_ids, as: 'readGroupSetIds' + end + end + + class ImportVariantsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :call_set_ids, as: 'callSetIds' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + property :create_time, as: 'createTime' + hash :request, as: 'request' + collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation + + end + end + + class OperationEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + end + end + end + end +end diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb new file mode 100644 index 000000000..1c25995c4 --- /dev/null +++ b/generated/google/apis/genomics_v1/service.rb @@ -0,0 +1,1520 @@ +# 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 GenomicsV1 + # Genomics API + # + # An API to store, process, explore, and share DNA sequence reads, reference- + # based alignments, and variant calls. + # + # @example + # require 'google/apis/genomics_v1' + # + # Genomics = Google::Apis::GenomicsV1 # Alias the module + # service = Genomics::GenomicsService.new + # + # @see + class GenomicsService < 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://genomics.googleapis.com/', '') + end + + # Lists datasets within a project. + # @param [String] project_id + # Required. The project to list datasets for. + # @param [Fixnum] page_size + # The maximum number of results returned by this request. If unspecified, + # defaults to 50. The maximum value is 1024. + # @param [String] page_token + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # @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::GenomicsV1::ListDatasetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ListDatasetsResponse] + # + # @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_datasets(project_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/datasets' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse + command.query['projectId'] = project_id unless project_id.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 new dataset. + # @param [Google::Apis::GenomicsV1::Dataset] dataset_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Dataset] + # + # @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_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/datasets' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.request_object = dataset_object + command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.response_class = Google::Apis::GenomicsV1::Dataset + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a dataset by ID. + # @param [String] dataset_id + # The ID of the dataset. + # @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::GenomicsV1::Dataset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Dataset] + # + # @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_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/datasets/{datasetId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.response_class = Google::Apis::GenomicsV1::Dataset + command.params['datasetId'] = dataset_id unless dataset_id.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 dataset. This method supports patch semantics. + # @param [String] dataset_id + # The ID of the dataset to be updated. + # @param [Google::Apis::GenomicsV1::Dataset] dataset_object + # @param [String] update_mask + # An optional mask specifying which fields to update. At this time, the only + # mutable field is [name][google.genomics.v1.Dataset.name]. The only acceptable + # value is "name". If unspecified, all mutable fields will be updated. + # @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::GenomicsV1::Dataset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Dataset] + # + # @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_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/datasets/{datasetId}' + command = make_simple_command(:patch, path, options) + command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.request_object = dataset_object + command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.response_class = Google::Apis::GenomicsV1::Dataset + command.params['datasetId'] = dataset_id unless dataset_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a dataset. + # @param [String] dataset_id + # The ID of the dataset to be deleted. + # @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::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/datasets/{datasetId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['datasetId'] = dataset_id unless dataset_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Undeletes a dataset by restoring a dataset which was deleted via this API. + # This operation is only possible for a week after the deletion occurred. + # @param [String] dataset_id + # The ID of the dataset to be undeleted. + # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Dataset] + # + # @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 undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/datasets/{datasetId}:undelete' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation + command.request_object = undelete_dataset_request_object + command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.response_class = Google::Apis::GenomicsV1::Dataset + command.params['datasetId'] = dataset_id unless dataset_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] name + # The name of the operation resource. + # @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::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/{+name}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + 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 operations that match the specified filter in the request. + # @param [String] name + # The name of the operation collection. + # @param [String] filter + # A string for filtering [Operations][google.longrunning.Operation]. The + # following filter fields are supported: * projectId: Required. Corresponds to [ + # OperationMetadata.projectId][google.genomics.v1.OperationMetadata.project_id]. + # * createTime: The time this job was created, in seconds from the [epoch](http:/ + # /en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= 1432140000` * ` + # projectId = my-project AND createTime >= 1432140000 AND createTime <= + # 1432150000 AND status = RUNNING` + # @param [Fixnum] page_size + # The maximum number of results to return. If unspecified, defaults to 256. The + # maximum value is 2048. + # @param [String] page_token + # The standard List page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/{+name}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.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 + + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. Clients + # may use [Operations.GetOperation][google.longrunning.Operations.GetOperation] + # or [Operations.ListOperations][google.longrunning.Operations.ListOperations] + # to check whether the cancellation succeeded or the operation completed despite + # cancellation. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/{+name}:cancel' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::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 + + # This method is not implemented. To cancel an operation, please use [Operations. + # CancelOperation][google.longrunning.Operations.CancelOperation]. + # @param [String] name + # The name of the operation resource to be deleted. + # @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::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/{+name}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::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 + + # Creates read group sets by asynchronously importing the provided information. + # Note that currently comments in the input file header are **not** imported and + # some custom tags will be converted to strings, rather than preserving tag + # types. The caller must have WRITE permissions to the dataset. + # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/readgroupsets:import' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation + command.request_object = import_read_group_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports a read group set to a BAM file in Google Cloud Storage. Note that + # currently there may be some differences between exported BAM files and the + # original BAM file at the time of import. In particular, comments in the input + # file header will not be preserved, some custom tags will be converted to + # strings, and original reference sequence order is not necessarily preserved. + # @param [String] read_group_set_id + # Required. The ID of the read group set to export. + # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/readgroupsets/{readGroupSetId}:export' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation + command.request_object = export_read_group_set_request_object + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches for read group sets matching the criteria. Implements [ + # GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/ + # v0.5.1/src/main/resources/avro/readmethods.avdl#L135). + # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] + # + # @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 search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/readgroupsets/search' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation + command.request_object = search_read_group_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse + 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 read group set. This method supports patch semantics. + # @param [String] read_group_set_id + # The ID of the read group set to be updated. The caller must have WRITE + # permissions to the dataset associated with this read group set. + # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object + # @param [String] update_mask + # An optional mask specifying which fields to update. At this time, mutable + # fields are [referenceSetId][google.genomics.v1.ReadGroupSet.reference_set_id] + # and [name][google.genomics.v1.ReadGroupSet.name]. Acceptable values are " + # referenceSetId" and "name". If unspecified, all mutable fields will be updated. + # @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::GenomicsV1::ReadGroupSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ReadGroupSet] + # + # @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_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/readgroupsets/{readGroupSetId}' + command = make_simple_command(:patch, path, options) + command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation + command.request_object = read_group_set_object + command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation + command.response_class = Google::Apis::GenomicsV1::ReadGroupSet + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a read group set. + # @param [String] read_group_set_id + # The ID of the read group set to be deleted. The caller must have WRITE + # permissions to the dataset associated with this read group set. + # @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::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/readgroupsets/{readGroupSetId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a read group set by ID. + # @param [String] read_group_set_id + # The ID of the read group set. + # @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::GenomicsV1::ReadGroupSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ReadGroupSet] + # + # @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_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/readgroupsets/{readGroupSetId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation + command.response_class = Google::Apis::GenomicsV1::ReadGroupSet + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.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 fixed width coverage buckets for a read group set, each of which + # correspond to a range of a reference sequence. Each bucket summarizes coverage + # information across its corresponding genomic range. Coverage is defined as the + # number of reads which are aligned to a given base in the reference sequence. + # Coverage buckets are available at several precomputed bucket widths, enabling + # retrieval of various coverage 'zoom levels'. The caller must have READ + # permissions for the target read group set. + # @param [String] read_group_set_id + # Required. The ID of the read group set over which coverage is requested. + # @param [String] reference_name + # The name of the reference to query, within the reference set associated with + # this query. Optional. + # @param [String] start + # The start position of the range on the reference, 0-based inclusive. If + # specified, `referenceName` must also be specified. Defaults to 0. + # @param [String] end_ + # The end position of the range on the reference, 0-based exclusive. If + # specified, `referenceName` must also be specified. If unset or 0, defaults to + # the length of the reference. + # @param [String] target_bucket_width + # The desired width of each reported coverage bucket in base pairs. This will be + # rounded down to the nearest precomputed bucket width; the value of which is + # returned as `bucketWidth` in the response. Defaults to infinity (each bucket + # spans an entire reference sequence) or the length of the target range, if + # specified. The smallest precomputed `bucketWidth` is currently 2048 base pairs; + # this is subject to change. + # @param [String] page_token + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # @param [Fixnum] page_size + # The maximum number of results to return in a single page. If unspecified, + # defaults to 1024. The maximum value is 2048. + # @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::GenomicsV1::ListCoverageBucketsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] + # + # @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_coverage_buckets(read_group_set_id, reference_name: nil, start: nil, end_: nil, target_bucket_width: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/readgroupsets/{readGroupSetId}/coveragebuckets' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['referenceName'] = reference_name unless reference_name.nil? + command.query['start'] = start unless start.nil? + command.query['end'] = end_ unless end_.nil? + command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a list of reads for one or more read group sets. Reads search operates + # over a genomic coordinate space of reference sequence & position defined over + # the reference sequences to which the requested read group sets are aligned. If + # a target positional range is specified, search returns all reads whose + # alignment to the reference genome overlap the range. A query which specifies + # only read group set IDs yields all reads in those read group sets, including + # unmapped reads. All reads returned (including reads on subsequent pages) are + # ordered by genomic coordinate (reference sequence & position). Reads with + # equivalent genomic coordinates are returned in a deterministic order. + # Implements [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/ + # blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L85). + # @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchReadsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchReadsResponse] + # + # @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 search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/reads/search' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation + command.request_object = search_reads_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchReadsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches for reference sets which match the given criteria. Implements [ + # GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/documentation/api/v0.5. + # 1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets). + # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] + # + # @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 search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/referencesets/search' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation + command.request_object = search_reference_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a reference set. Implements [GlobalAllianceApi.getReferenceSet](https:// + # github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods. + # avdl#L83). + # @param [String] reference_set_id + # The ID of the reference set. + # @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::GenomicsV1::ReferenceSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ReferenceSet] + # + # @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_reference_set(reference_set_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/referencesets/{referenceSetId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation + command.response_class = Google::Apis::GenomicsV1::ReferenceSet + command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches for references which match the given criteria. Implements [ + # GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.5. + # 1/src/main/resources/avro/referencemethods.avdl#L146). + # @param [Google::Apis::GenomicsV1::SearchReferencesRequest] search_references_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchReferencesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchReferencesResponse] + # + # @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 search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/references/search' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::SearchReferencesRequest::Representation + command.request_object = search_references_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchReferencesResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchReferencesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a reference. Implements [GlobalAllianceApi.getReference](https://github. + # com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl# + # L158). + # @param [String] reference_id + # The ID of the reference. + # @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::GenomicsV1::Reference] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Reference] + # + # @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_reference(reference_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/references/{referenceId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::Reference::Representation + command.response_class = Google::Apis::GenomicsV1::Reference + command.params['referenceId'] = reference_id unless reference_id.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 the bases in a reference, optionally restricted to a range. Implements [ + # GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v0. + # 5.1/src/main/resources/avro/referencemethods.avdl#L221). + # @param [String] reference_id + # The ID of the reference. + # @param [String] start_position + # The start position (0-based) of this query. Defaults to 0. + # @param [String] end_position + # The end position (0-based, exclusive) of this query. Defaults to the length of + # this reference. + # @param [String] page_token + # The continuation token, which is used to page through large result sets. To + # get the next page of results, set this parameter to the value of ` + # nextPageToken` from the previous response. + # @param [Fixnum] page_size + # Specifies the maximum number of bases to return in a single page. + # @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::GenomicsV1::ListBasesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ListBasesResponse] + # + # @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_reference_bases(reference_id, start_position: nil, end_position: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/references/{referenceId}/bases' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation + command.response_class = Google::Apis::GenomicsV1::ListBasesResponse + command.params['referenceId'] = reference_id unless reference_id.nil? + command.query['start'] = start_position unless start_position.nil? + command.query['end'] = end_position unless end_position.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.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 variant data by asynchronously importing the provided information. The + # variants for import will be merged with any existing data and each other + # according to the behavior of mergeVariants. In particular, this means for + # merged VCF variants that have conflicting INFO fields, some data will be + # arbitrarily discarded. As a special case, for single-sample VCF files, QUAL + # and FILTER fields will be moved to the call level; these are sometimes + # interpreted in a call-specific context. Imported VCF headers are appended to + # the metadata already in a variant set. + # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variants:import' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation + command.request_object = import_variants_request_object + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a list of variants matching the criteria. Implements [GlobalAllianceApi. + # searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/ + # resources/avro/variantmethods.avdl#L126). + # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchVariantsResponse] + # + # @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 search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variants/search' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation + command.request_object = search_variants_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse + 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 new variant. + # @param [Google::Apis::GenomicsV1::Variant] variant_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Variant] + # + # @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_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variants' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::Variant::Representation + command.request_object = variant_object + command.response_representation = Google::Apis::GenomicsV1::Variant::Representation + command.response_class = Google::Apis::GenomicsV1::Variant + 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 variant. This method supports patch semantics. Returns the modified + # variant without its calls. + # @param [String] variant_id + # The ID of the variant to be updated. + # @param [Google::Apis::GenomicsV1::Variant] variant_object + # @param [String] update_mask + # An optional mask specifying which fields to update. At this time, mutable + # fields are [names][google.genomics.v1.Variant.names] and [info][google. + # genomics.v1.Variant.info]. Acceptable values are "names" and "info". If + # unspecified, all mutable fields will be updated. + # @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::GenomicsV1::Variant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Variant] + # + # @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_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variants/{variantId}' + command = make_simple_command(:patch, path, options) + command.request_representation = Google::Apis::GenomicsV1::Variant::Representation + command.request_object = variant_object + command.response_representation = Google::Apis::GenomicsV1::Variant::Representation + command.response_class = Google::Apis::GenomicsV1::Variant + command.params['variantId'] = variant_id unless variant_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a variant. + # @param [String] variant_id + # The ID of the variant to be deleted. + # @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::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variants/{variantId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['variantId'] = variant_id unless variant_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a variant by ID. + # @param [String] variant_id + # The ID of the variant. + # @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::GenomicsV1::Variant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Variant] + # + # @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_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variants/{variantId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::Variant::Representation + command.response_class = Google::Apis::GenomicsV1::Variant + command.params['variantId'] = variant_id unless variant_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Merges the given variants with existing variants. Each variant will be merged + # with an existing variant that matches its reference sequence, start, end, + # reference bases, and alternative bases. If no such variant exists, a new one + # will be created. When variants are merged, the call information from the new + # variant is added to the existing variant, and other fields (such as key/value + # pairs) are discarded. + # @param [Google::Apis::GenomicsV1::MergeVariantsRequest] merge_variants_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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 merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variants:merge' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation + command.request_object = merge_variants_request_object + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + 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 new variant set. + # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::VariantSet] + # + # @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_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variantsets' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.request_object = variant_set_object + command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.response_class = Google::Apis::GenomicsV1::VariantSet + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports variant set data to an external destination. + # @param [String] variant_set_id + # Required. The ID of the variant set that contains variant data which should be + # exported. The caller must have READ access to this variant set. + # @param [Google::Apis::GenomicsV1::ExportVariantSetRequest] export_variant_set_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variantsets/{variantSetId}:export' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation + command.request_object = export_variant_set_request_object + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a variant set by ID. + # @param [String] variant_set_id + # Required. The ID of the variant set. + # @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::GenomicsV1::VariantSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::VariantSet] + # + # @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_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variantsets/{variantSetId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.response_class = Google::Apis::GenomicsV1::VariantSet + command.params['variantSetId'] = variant_set_id unless variant_set_id.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 list of all variant sets matching search criteria. Implements [ + # GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0. + # 5.1/src/main/resources/avro/variantmethods.avdl#L49). + # @param [Google::Apis::GenomicsV1::SearchVariantSetsRequest] search_variant_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchVariantSetsResponse] + # + # @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 search_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variantsets/search' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation + command.request_object = search_variant_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchVariantSetsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the contents of a variant set. The variant set object is not deleted. + # @param [String] variant_set_id + # The ID of the variant set to be deleted. + # @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::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variantsets/{variantSetId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['variantSetId'] = variant_set_id unless variant_set_id.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 variant set. This method supports patch semantics. + # @param [String] variant_set_id + # The ID of the variant to be updated (must already exist). + # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object + # @param [String] update_mask + # An optional mask specifying which fields to update. At this time, the only + # mutable field is [metadata][google.genomics.v1.VariantSet.metadata]. The only + # acceptable value is "metadata". If unspecified, all mutable fields will be + # updated. + # @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::GenomicsV1::VariantSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::VariantSet] + # + # @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_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/variantsets/{variantSetId}' + command = make_simple_command(:patch, path, options) + command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.request_object = variant_set_object + command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.response_class = Google::Apis::GenomicsV1::VariantSet + command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi. + # searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/ + # resources/avro/variantmethods.avdl#L178). + # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchCallSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse] + # + # @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 search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/callsets/search' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation + command.request_object = search_call_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse + 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 new call set. + # @param [Google::Apis::GenomicsV1::CallSet] call_set_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::CallSet] + # + # @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_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/callsets' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.request_object = call_set_object + command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.response_class = Google::Apis::GenomicsV1::CallSet + 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 call set. This method supports patch semantics. + # @param [String] call_set_id + # The ID of the call set to be updated. + # @param [Google::Apis::GenomicsV1::CallSet] call_set_object + # @param [String] update_mask + # An optional mask specifying which fields to update. At this time, the only + # mutable field is [name][google.genomics.v1.CallSet.name]. The only acceptable + # value is "name". If unspecified, all mutable fields will be updated. + # @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::GenomicsV1::CallSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::CallSet] + # + # @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_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/callsets/{callSetId}' + command = make_simple_command(:patch, path, options) + command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.request_object = call_set_object + command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.response_class = Google::Apis::GenomicsV1::CallSet + command.params['callSetId'] = call_set_id unless call_set_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a call set. + # @param [String] call_set_id + # The ID of the call set to be deleted. + # @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::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/callsets/{callSetId}' + command = make_simple_command(:delete, path, options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['callSetId'] = call_set_id unless call_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a call set by ID. + # @param [String] call_set_id + # The ID of the call set. + # @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::GenomicsV1::CallSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::CallSet] + # + # @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_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block) + path = 'v1/callsets/{callSetId}' + command = make_simple_command(:get, path, options) + command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.response_class = Google::Apis::GenomicsV1::CallSet + command.params['callSetId'] = call_set_id unless call_set_id.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 diff --git a/generated/google/apis/genomics_v1beta2.rb b/generated/google/apis/genomics_v1beta2.rb index 7dd91788c..3364cd9ee 100644 --- a/generated/google/apis/genomics_v1beta2.rb +++ b/generated/google/apis/genomics_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/genomics/v1beta2/reference module GenomicsV1beta2 VERSION = 'V1beta2' - REVISION = '20150623' + REVISION = '20150715' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1beta2/service.rb b/generated/google/apis/genomics_v1beta2/service.rb index 58a1d8005..6c4e90afa 100644 --- a/generated/google/apis/genomics_v1beta2/service.rb +++ b/generated/google/apis/genomics_v1beta2/service.rb @@ -2028,6 +2028,42 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new variant set (only necessary in v1). + # @param [Google::Apis::GenomicsV1beta2::VariantSet] variant_set_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::GenomicsV1beta2::VariantSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1beta2::VariantSet] + # + # @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_variantset(variant_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = 'variantsets' + command = make_simple_command(:post, path, options) + command.request_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation + command.request_object = variant_set_object + command.response_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation + command.response_class = Google::Apis::GenomicsV1beta2::VariantSet + 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 contents of a variant set. The variant set object is not deleted. # @param [String] variant_set_id # The ID of the variant set to be deleted. diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index e992678b6..24e6f862a 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20150513' + REVISION = '20150710' end end end diff --git a/generated/google/apis/mapsengine_v1.rb b/generated/google/apis/mapsengine_v1.rb index 076a8733f..537472c0b 100644 --- a/generated/google/apis/mapsengine_v1.rb +++ b/generated/google/apis/mapsengine_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/maps-engine/ module MapsengineV1 VERSION = 'V1' - REVISION = '20150619' + REVISION = '20150629' # View and manage your Google My Maps data AUTH_MAPSENGINE = 'https://www.googleapis.com/auth/mapsengine' diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb index 9bd217a53..a630fa86f 100644 --- a/generated/google/apis/oauth2_v2.rb +++ b/generated/google/apis/oauth2_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/accounts/docs/OAuth2 module Oauth2V2 VERSION = 'V2' - REVISION = '20150526' + REVISION = '20150714' # Know your basic profile info and list of people in your circles. AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index 0c772b0c2..fc95bb62d 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '20150622' + REVISION = '20150719' # View your circles and the people and pages in them AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index fd85b0ad0..3e4f7785a 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '20150622' + REVISION = '20150719' # Know your basic profile info and list of people in your circles. AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/prediction_v1_6/classes.rb b/generated/google/apis/prediction_v1_6/classes.rb index 74e8ca954..6f8167918 100644 --- a/generated/google/apis/prediction_v1_6/classes.rb +++ b/generated/google/apis/prediction_v1_6/classes.rb @@ -674,7 +674,7 @@ module Google # The estimated regression value (Regression models only). # Corresponds to the JSON property `outputValue` - # @return [String] + # @return [Float] attr_accessor :output_value # A URL to re-request this resource. diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index b3174ec49..5cc46464c 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20150427' + REVISION = '20150604' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index ae7b28465..d2d4d1d33 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -26,20 +26,20 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # # Overview The `Policy` defines an access control policy language. It can be - # used to define policies that can be attached to resources like files, folders, - # VMs, etc. # Policy structure A `Policy` consists of a list of bindings. A ` - # Binding` binds a set of members to a role, where the members can include user - # accounts, user groups, user domains, and service accounts. A role is a named - # set of permissions, defined by the IAM system. The definition of a role is - # outside the policy. A permission check involves determining the roles that - # include the specified permission, and then determining if the principal - # specified by the check is a member of a binding to at least one of these roles. - # The membership check is recursive when a group is bound to a role. Policy - # examples: ``` ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@ - # example.com", "group::admins@example.com", "domain:google.com", " - # serviceAccount:frontend@example.iam.gserviceaccounts.com"] `, ` "role": "roles/ - # viewer", "members": ["user:sean@example.com"] ` ] ` ``` + # # Overview The `Policy` defines an access control policy language. It is used + # to define policies that are attached to resources like files, folders, VMs, + # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` + # binds a set of members to a role, where the members include user accounts, + # user groups, user domains, and service accounts. A 'role' is a named set of + # permissions, defined by IAM. The definition of a role is outside the policy. A + # permission check first determines the roles that include the specified + # permission, and then determines if the principal specified is a member of a + # binding to at least one of these roles. The membership check is recursive when + # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " + # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", + # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. + # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` + # `` # Corresponds to the JSON property `policy` # @return [Google::Apis::PubsubV1beta2::Policy] attr_accessor :policy @@ -54,25 +54,25 @@ module Google end end - # # Overview The `Policy` defines an access control policy language. It can be - # used to define policies that can be attached to resources like files, folders, - # VMs, etc. # Policy structure A `Policy` consists of a list of bindings. A ` - # Binding` binds a set of members to a role, where the members can include user - # accounts, user groups, user domains, and service accounts. A role is a named - # set of permissions, defined by the IAM system. The definition of a role is - # outside the policy. A permission check involves determining the roles that - # include the specified permission, and then determining if the principal - # specified by the check is a member of a binding to at least one of these roles. - # The membership check is recursive when a group is bound to a role. Policy - # examples: ``` ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@ - # example.com", "group::admins@example.com", "domain:google.com", " - # serviceAccount:frontend@example.iam.gserviceaccounts.com"] `, ` "role": "roles/ - # viewer", "members": ["user:sean@example.com"] ` ] ` ``` + # # Overview The `Policy` defines an access control policy language. It is used + # to define policies that are attached to resources like files, folders, VMs, + # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` + # binds a set of members to a role, where the members include user accounts, + # user groups, user domains, and service accounts. A 'role' is a named set of + # permissions, defined by IAM. The definition of a role is outside the policy. A + # permission check first determines the roles that include the specified + # permission, and then determines if the principal specified is a member of a + # binding to at least one of these roles. The membership check is recursive when + # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " + # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", + # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. + # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` + # `` class Policy include Google::Apis::Core::Hashable - # The policy language version. The version of the policy itself is represented - # by the etag. The current version is 0. + # The policy language version. The version of the policy is represented by the + # etag. The default version is 0. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -106,8 +106,7 @@ module Google end end - # Associates members of various types with roles. See below for details of the - # various objects that can be included as members. + # Associates members with roles. See below for allowed formats of members. class Binding include Google::Apis::Core::Hashable @@ -387,10 +386,11 @@ module Google include Google::Apis::Core::Hashable # The name of the topic. It must have the format "projects/`project`/topics/` - # topic`" for Google Cloud Pub/Sub API v1beta2. `topic` must start with a letter, - # and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores ( - # _), periods (.), tildes (~), plus (+) or percent signs (%). It must be between - # 3 and 255 characters in length, and it must not start with "goog". + # topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a + # letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), + # underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It + # must be between 3 and 255 characters in length, and it must not start with " + # goog". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -535,7 +535,8 @@ module Google # 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); ` + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -553,7 +554,7 @@ module Google include Google::Apis::Core::Hashable # The name of the subscription. It must have the format "projects/`project`/ - # subscriptions/`subscription`" for Google Cloud Pub/Sub API v1beta2. ` + # subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. ` # subscription` must start with a letter, and contain only letters ([A-Za-z]), # numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+) # or percent signs (%). It must be between 3 and 255 characters in length, and @@ -562,9 +563,8 @@ module Google # @return [String] attr_accessor :name - # The name of the topic from which this subscription is receiving messages. This - # will be present if and only if the subscription has not been detached from its - # topic. + # The name of the topic from which this subscription is receiving messages. The + # value of this field will be `_deleted-topic_` if the topic has been deleted. # Corresponds to the JSON property `topic` # @return [String] attr_accessor :topic @@ -672,7 +672,7 @@ module Google class ModifyAckDeadlineRequest include Google::Apis::Core::Hashable - # The acknowledgment ID. + # The acknowledgment ID. Either this or ack_ids must be populated, but not both. # Corresponds to the JSON property `ackId` # @return [String] attr_accessor :ack_id diff --git a/generated/google/apis/pubsub_v1beta2/service.rb b/generated/google/apis/pubsub_v1beta2/service.rb index 2b809e92a..3f5e06fb8 100644 --- a/generated/google/apis/pubsub_v1beta2/service.rb +++ b/generated/google/apis/pubsub_v1beta2/service.rb @@ -49,8 +49,9 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource - # REQUIRED: The resource for which policy is being specified. Usually some path - # like projects/`project`/zones/`zone`/disks/`disk`. + # REQUIRED: The resource for which policy is being specified. Resource is + # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/` + # disk`. # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -82,11 +83,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. May be empty if no such policy - # or resource exists. + # Gets the access control policy for a resource. Is empty if the policy or the + # resource does not exist. # @param [String] resource - # REQUIRED: The resource for which policy is being requested. Usually some path - # like projects/`project`. + # REQUIRED: The resource for which policy is being requested. Resource is + # usually specified as a path, such as, projects/`project`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -117,8 +118,8 @@ module Google # Returns permissions that a caller has on the specified resource. # @param [String] resource - # REQUIRED: The resource for which policy detail is being requested. Usually - # some path like projects/`project`. + # REQUIRED: The resource for which policy detail is being requested. Resource is + # usually specified as a path, such as, projects/`project`. # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -153,10 +154,11 @@ module Google # Creates the given topic with the given name. # @param [String] name # The name of the topic. It must have the format "projects/`project`/topics/` - # topic`" for Google Cloud Pub/Sub API v1beta2. `topic` must start with a letter, - # and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores ( - # _), periods (.), tildes (~), plus (+) or percent signs (%). It must be between - # 3 and 255 characters in length, and it must not start with "goog". + # topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a + # letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), + # underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It + # must be between 3 and 255 characters in length, and it must not start with " + # goog". # @param [Google::Apis::PubsubV1beta2::Topic] topic_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -296,7 +298,8 @@ module Google # Deletes the topic with the given name. Returns NOT_FOUND if the topic does not # exist. After a topic is deleted, a new topic may be created with the same name; # this is an entirely new topic with none of the old configuration or - # subscriptions. Existing subscriptions to this topic are not deleted. + # subscriptions. Existing subscriptions to this topic are not deleted, but their + # `topic` field is set to `_deleted-topic_`. # @param [String] topic # Name of the topic to delete. # @param [String] fields @@ -369,8 +372,9 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource - # REQUIRED: The resource for which policy is being specified. Usually some path - # like projects/`project`/zones/`zone`/disks/`disk`. + # REQUIRED: The resource for which policy is being specified. Resource is + # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/` + # disk`. # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -402,11 +406,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. May be empty if no such policy - # or resource exists. + # Gets the access control policy for a resource. Is empty if the policy or the + # resource does not exist. # @param [String] resource - # REQUIRED: The resource for which policy is being requested. Usually some path - # like projects/`project`. + # REQUIRED: The resource for which policy is being requested. Resource is + # usually specified as a path, such as, projects/`project`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -437,8 +441,8 @@ module Google # Returns permissions that a caller has on the specified resource. # @param [String] resource - # REQUIRED: The resource for which policy detail is being requested. Usually - # some path like projects/`project`. + # REQUIRED: The resource for which policy detail is being requested. Resource is + # usually specified as a path, such as, projects/`project`. # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -477,7 +481,7 @@ module Google # same project as the topic. # @param [String] name # The name of the subscription. It must have the format "projects/`project`/ - # subscriptions/`subscription`" for Google Cloud Pub/Sub API v1beta2. ` + # subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. ` # subscription` must start with a letter, and contain only letters ([A-Za-z]), # numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+) # or percent signs (%). It must be between 3 and 255 characters in length, and diff --git a/generated/google/apis/replicapool_v1beta2.rb b/generated/google/apis/replicapool_v1beta2.rb index e854d5b14..3c5cf2be4 100644 --- a/generated/google/apis/replicapool_v1beta2.rb +++ b/generated/google/apis/replicapool_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/compute/docs/instance-groups/manager/v1beta2 module ReplicapoolV1beta2 VERSION = 'V1beta2' - REVISION = '20150311' + REVISION = '20150708' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/replicapool_v1beta2/classes.rb b/generated/google/apis/replicapool_v1beta2/classes.rb index 5aeba3f19..b95aa0f8f 100644 --- a/generated/google/apis/replicapool_v1beta2/classes.rb +++ b/generated/google/apis/replicapool_v1beta2/classes.rb @@ -602,6 +602,15 @@ module Google class ReplicaPoolAutoHealingPolicy include Google::Apis::Core::Hashable + # The action to perform when an instance becomes unhealthy. Possible values are + # RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new + # instance that is based on the instance template for this managed instance + # group. REBOOT performs a soft reboot on an instance. If the instance cannot + # reboot, the instance performs a hard restart. + # Corresponds to the JSON property `actionType` + # @return [String] + attr_accessor :action_type + # The URL for the HealthCheck that signals autohealing. # Corresponds to the JSON property `healthCheck` # @return [String] @@ -613,6 +622,7 @@ module Google # Update properties of this object def update!(**args) + @action_type = args[:action_type] unless args[:action_type].nil? @health_check = args[:health_check] unless args[:health_check].nil? end end diff --git a/generated/google/apis/replicapool_v1beta2/representations.rb b/generated/google/apis/replicapool_v1beta2/representations.rb index e0719d444..1c304cb60 100644 --- a/generated/google/apis/replicapool_v1beta2/representations.rb +++ b/generated/google/apis/replicapool_v1beta2/representations.rb @@ -227,6 +227,7 @@ module Google class ReplicaPoolAutoHealingPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + property :action_type, as: 'actionType' property :health_check, as: 'healthCheck' end end diff --git a/generated/google/apis/resourceviews_v1beta2.rb b/generated/google/apis/resourceviews_v1beta2.rb index e749795b3..1183f389d 100644 --- a/generated/google/apis/resourceviews_v1beta2.rb +++ b/generated/google/apis/resourceviews_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/compute/ module ResourceviewsV1beta2 VERSION = 'V1beta2' - REVISION = '20150326' + REVISION = '20150708' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 6a9ab6b18..cef912241 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20150326' + REVISION = '20150710' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 9792076fd..3bb7397ad 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -781,7 +781,8 @@ module Google attr_accessor :content_type # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in - # big-endian byte order. + # big-endian byte order. For more information about using the CRC32c checksum, + # see Hashes and ETags: Best Practices. # Corresponds to the JSON property `crc32c` # @return [String] attr_accessor :crc32c @@ -806,7 +807,8 @@ module Google # @return [String] attr_accessor :kind - # MD5 hash of the data; encoded using base64. + # MD5 hash of the data; encoded using base64. For more information about using + # the MD5 hash, see Hashes and ETags: Best Practices. # Corresponds to the JSON property `md5Hash` # @return [String] attr_accessor :md5_hash diff --git a/generated/google/apis/youtube_analytics_v1.rb b/generated/google/apis/youtube_analytics_v1.rb index 7471b4133..02acc5a01 100644 --- a/generated/google/apis/youtube_analytics_v1.rb +++ b/generated/google/apis/youtube_analytics_v1.rb @@ -36,7 +36,7 @@ module Google # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' - # View YouTube Analytics monetary reports for your YouTube content + # View monetary and non-monetary YouTube Analytics reports for your YouTube content AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly' # View YouTube Analytics reports for your YouTube content diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index f4c180f4e..1bbef28ce 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '20150529' + REVISION = '20150706' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 87e17ffe4..30355de95 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -4029,9 +4029,9 @@ module Google attr_accessor :configuration_issues # The last time this status was updated (in seconds) - # Corresponds to the JSON property `lastUpdateTimeS` + # Corresponds to the JSON property `lastUpdateTimeSeconds` # @return [String] - attr_accessor :last_update_time_s + attr_accessor :last_update_time_seconds # The status code of this stream # Corresponds to the JSON property `status` @@ -4045,7 +4045,7 @@ module Google # Update properties of this object def update!(**args) @configuration_issues = args[:configuration_issues] unless args[:configuration_issues].nil? - @last_update_time_s = args[:last_update_time_s] unless args[:last_update_time_s].nil? + @last_update_time_seconds = args[:last_update_time_seconds] unless args[:last_update_time_seconds].nil? @status = args[:status] unless args[:status].nil? end end diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index d2c19b547..4380c612a 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -1671,7 +1671,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :configuration_issues, as: 'configurationIssues', class: Google::Apis::YoutubeV3::LiveStreamConfigurationIssue, decorator: Google::Apis::YoutubeV3::LiveStreamConfigurationIssue::Representation - property :last_update_time_s, as: 'lastUpdateTimeS' + property :last_update_time_seconds, as: 'lastUpdateTimeSeconds' property :status, as: 'status' end end diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index e61bcc08c..c010ef0bf 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -1663,6 +1663,84 @@ module Google execute_or_queue_command(command, &block) end + # Binds a YouTube broadcast to a stream or removes an existing binding between a + # broadcast and a stream. A broadcast can only be bound to one video stream, + # though a video stream may be bound to more than one broadcast. + # @param [String] id + # The id parameter specifies the unique ID of the broadcast that is being bound + # to a video stream. + # @param [String] on_behalf_of_content_owner + # Note: This parameter is intended exclusively for YouTube content partners. + # The onBehalfOfContentOwner parameter indicates that the request's + # authorization credentials identify a YouTube CMS user who is acting on behalf + # of the content owner specified in the parameter value. This parameter is + # intended for YouTube content partners that own and manage many different + # YouTube channels. It allows content owners to authenticate once and get access + # to all their video and channel data, without having to provide authentication + # credentials for each individual channel. The CMS account that the user + # authenticates with must be linked to the specified YouTube content owner. + # @param [String] on_behalf_of_content_owner_channel + # This parameter can only be used in a properly authorized request. Note: This + # parameter is intended exclusively for YouTube content partners. + # The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + # of the channel to which a video is being added. This parameter is required + # when a request specifies a value for the onBehalfOfContentOwner parameter, and + # it can only be used in conjunction with that parameter. In addition, the + # request must be authorized using a CMS account that is linked to the content + # owner that the onBehalfOfContentOwner parameter specifies. Finally, the + # channel that the onBehalfOfContentOwnerChannel parameter value specifies must + # be linked to the content owner that the onBehalfOfContentOwner parameter + # specifies. + # This parameter is intended for YouTube content partners that own and manage + # many different YouTube channels. It allows content owners to authenticate once + # and perform actions on behalf of the channel specified in the parameter value, + # without having to provide authentication credentials for each separate channel. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # liveBroadcast resource properties that the API response will include. The part + # names that you can include in the parameter value are id, snippet, + # contentDetails, and status. + # @param [String] stream_id + # The streamId parameter specifies the unique ID of the video stream that is + # being bound to a broadcast. If this parameter is omitted, the API will remove + # any existing binding between the broadcast and a video stream. + # @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::YoutubeV3::LiveBroadcast] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubeV3::LiveBroadcast] + # + # @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 bind_direct_live_broadcast(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + path = 'liveBroadcasts/bind/direct' + command = make_simple_command(:post, path, options) + command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation + command.response_class = Google::Apis::YoutubeV3::LiveBroadcast + command.query['id'] = id unless id.nil? + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil? + command.query['part'] = part unless part.nil? + command.query['streamId'] = stream_id unless stream_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 + # Controls the settings for a slate that can be displayed in the broadcast # stream. # @param [Boolean] display_slate diff --git a/script/generate b/script/generate index c081817bb..bd30da20e 100755 --- a/script/generate +++ b/script/generate @@ -21,10 +21,11 @@ APIS=(adexchangebuyer:v1.3 \ books:v1 \ calendar:v3 \ civicinfo:v2 \ - cloudmonitoring:v2beta2 \ + classroom:v1beta1 \ + cloudmonitoring:v2beta2 \ cloudresourcemanager:v1beta1 \ compute:v1 \ - container:v1beta1 \ + container:v1 \ content:v2 \ coordinate:v1 \ customsearch:v1 \ @@ -42,7 +43,7 @@ APIS=(adexchangebuyer:v1.3 \ gamesConfiguration:v1configuration \ gamesConfiguration:v1management \ gan:v1beta1 \ - genomics:v1beta2 \ + genomics:v1 \ gmail:v1 \ groupsmigration:v1 \ groupssettings:v1 \