From 8ef7aa4206b148b285c3e418421585fa30e90ac9 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 17 Sep 2020 00:39:25 +0000 Subject: [PATCH] Autogenerated update (2020-09-17) Delete: - plus_v1 Update: - admob_v1 - androidenterprise_v1 - androidpublisher_v3 - appsmarket_v2 - artifactregistry_v1beta1 - classroom_v1 - cloudasset_v1 - cloudasset_v1p4beta1 - cloudtasks_v2 - dataflow_v1b3 - networkmanagement_v1beta1 - serviceconsumermanagement_v1 - youtube_partner_v1 --- api_names_out.yaml | 160 ++ generated/google/apis/admob_v1.rb | 2 +- generated/google/apis/androidenterprise_v1.rb | 2 +- .../apis/androidenterprise_v1/service.rb | 4 +- generated/google/apis/androidpublisher_v3.rb | 2 +- generated/google/apis/appsmarket_v2.rb | 2 +- .../google/apis/artifactregistry_v1beta1.rb | 2 +- .../apis/artifactregistry_v1beta1/classes.rb | 7 + .../representations.rb | 1 + .../google/apis/assuredworkloads_v1beta1.rb | 34 + .../apis/assuredworkloads_v1beta1/classes.rb | 458 ++++ .../representations.rb | 230 ++ .../apis/assuredworkloads_v1beta1/service.rb | 328 +++ generated/google/apis/classroom_v1.rb | 8 +- generated/google/apis/classroom_v1/classes.rb | 132 ++ .../apis/classroom_v1/representations.rb | 43 + generated/google/apis/classroom_v1/service.rb | 240 ++ generated/google/apis/cloudasset_v1.rb | 2 +- .../google/apis/cloudasset_v1/classes.rb | 52 + .../apis/cloudasset_v1/representations.rb | 16 + generated/google/apis/cloudasset_v1p4beta1.rb | 2 +- .../apis/cloudasset_v1p4beta1/classes.rb | 6 +- generated/google/apis/cloudtasks_v2.rb | 2 +- .../google/apis/cloudtasks_v2/classes.rb | 7 + .../apis/cloudtasks_v2/representations.rb | 1 + generated/google/apis/dataflow_v1b3.rb | 2 +- .../google/apis/dataflow_v1b3/classes.rb | 135 ++ .../apis/dataflow_v1b3/representations.rb | 30 + .../google/apis/dataflow_v1b3/service.rb | 11 +- .../google/apis/networkmanagement_v1beta1.rb | 2 +- .../apis/networkmanagement_v1beta1/classes.rb | 68 + .../representations.rb | 23 + generated/google/apis/plus_v1.rb | 43 - generated/google/apis/plus_v1/classes.rb | 2094 ----------------- .../google/apis/plus_v1/representations.rb | 907 ------- generated/google/apis/plus_v1/service.rb | 451 ---- .../apis/serviceconsumermanagement_v1.rb | 2 +- .../serviceconsumermanagement_v1/classes.rb | 24 +- .../serviceconsumermanagement_v1/service.rb | 60 +- generated/google/apis/youtube_partner_v1.rb | 2 +- 40 files changed, 2043 insertions(+), 3554 deletions(-) create mode 100644 generated/google/apis/assuredworkloads_v1beta1.rb create mode 100644 generated/google/apis/assuredworkloads_v1beta1/classes.rb create mode 100644 generated/google/apis/assuredworkloads_v1beta1/representations.rb create mode 100644 generated/google/apis/assuredworkloads_v1beta1/service.rb delete mode 100644 generated/google/apis/plus_v1.rb delete mode 100644 generated/google/apis/plus_v1/classes.rb delete mode 100644 generated/google/apis/plus_v1/representations.rb delete mode 100644 generated/google/apis/plus_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index b5b6addc9..d4727d9c8 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -13651,6 +13651,7 @@ "/appstate:v1/quotaUser": quota_user "/appstate:v1/userIp": user_ip "/artifactregistry:v1beta1/Binding": binding +"/artifactregistry:v1beta1/Binding/bindingId": binding_id "/artifactregistry:v1beta1/Binding/condition": condition "/artifactregistry:v1beta1/Binding/members": members "/artifactregistry:v1beta1/Binding/members/member": member @@ -13854,6 +13855,89 @@ "/artifactregistry:v1beta1/fields": fields "/artifactregistry:v1beta1/key": key "/artifactregistry:v1beta1/quotaUser": quota_user +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata": google_cloud_assuredworkloads_v1beta1_create_workload_operation_metadata +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata/complianceRegime": compliance_regime +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata/createTime": create_time +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata/displayName": display_name +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata/parent": parent +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse": google_cloud_assuredworkloads_v1beta1_list_workloads_response +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse/nextPageToken": next_page_token +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse/workloads": workloads +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse/workloads/workload": workload +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload": google_cloud_assuredworkloads_v1beta1_workload +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/billingAccount": billing_account +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/cjisSettings": cjis_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/complianceRegime": compliance_regime +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/createTime": create_time +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/displayName": display_name +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/etag": etag +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/fedrampHighSettings": fedramp_high_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/fedrampModerateSettings": fedramp_moderate_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/il4Settings": il4_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/labels": labels +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/labels/label": label +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/name": name +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/resources": resources +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/resources/resource": resource +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings": google_cloud_assuredworkloads_v1beta1_workload_cjis_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings/kmsSettings": kms_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings": google_cloud_assuredworkloads_v1beta1_workload_fedramp_high_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings/kmsSettings": kms_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings": google_cloud_assuredworkloads_v1beta1_workload_fedramp_moderate_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings/kmsSettings": kms_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings": google_cloud_assuredworkloads_v1beta1_workload_il4_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings/kmsSettings": kms_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings": google_cloud_assuredworkloads_v1beta1_workload_kms_settings +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings/nextRotationTime": next_rotation_time +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings/rotationPeriod": rotation_period +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo": google_cloud_assuredworkloads_v1beta1_workload_resource_info +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo/resourceId": resource_id +"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo/resourceType": resource_type +"/assuredworkloads:v1beta1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response +"/assuredworkloads:v1beta1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token +"/assuredworkloads:v1beta1/GoogleLongrunningListOperationsResponse/operations": operations +"/assuredworkloads:v1beta1/GoogleLongrunningListOperationsResponse/operations/operation": operation +"/assuredworkloads:v1beta1/GoogleLongrunningOperation": google_longrunning_operation +"/assuredworkloads:v1beta1/GoogleLongrunningOperation/done": done +"/assuredworkloads:v1beta1/GoogleLongrunningOperation/error": error +"/assuredworkloads:v1beta1/GoogleLongrunningOperation/metadata": metadata +"/assuredworkloads:v1beta1/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/assuredworkloads:v1beta1/GoogleLongrunningOperation/name": name +"/assuredworkloads:v1beta1/GoogleLongrunningOperation/response": response +"/assuredworkloads:v1beta1/GoogleLongrunningOperation/response/response": response +"/assuredworkloads:v1beta1/GoogleProtobufEmpty": google_protobuf_empty +"/assuredworkloads:v1beta1/GoogleRpcStatus": google_rpc_status +"/assuredworkloads:v1beta1/GoogleRpcStatus/code": code +"/assuredworkloads:v1beta1/GoogleRpcStatus/details": details +"/assuredworkloads:v1beta1/GoogleRpcStatus/details/detail": detail +"/assuredworkloads:v1beta1/GoogleRpcStatus/details/detail/detail": detail +"/assuredworkloads:v1beta1/GoogleRpcStatus/message": message +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.operations.get": get_organization_location_operation +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.operations.get/name": name +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.operations.list": list_organization_location_operations +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.operations.list/filter": filter +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.operations.list/name": name +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.operations.list/pageSize": page_size +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.operations.list/pageToken": page_token +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.create": create_organization_location_workload +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.create/externalId": external_id +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.create/parent": parent +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.delete": delete_organization_location_workload +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.delete/etag": etag +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.delete/name": name +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.get": get_organization_location_workload +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.get/name": name +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.list": list_organization_location_workloads +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.list/filter": filter +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.list/pageSize": page_size +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.list/pageToken": page_token +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.list/parent": parent +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.patch": patch_organization_location_workload +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.patch/name": name +"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.patch/updateMask": update_mask +"/assuredworkloads:v1beta1/fields": fields +"/assuredworkloads:v1beta1/key": key +"/assuredworkloads:v1beta1/quotaUser": quota_user "/autoscaler:v1beta2/AutoscalerListResponse": list_autoscaler_response "/bigquery:v2/AggregateClassificationMetrics": aggregate_classification_metrics "/bigquery:v2/AggregateClassificationMetrics/accuracy": accuracy @@ -18929,6 +19013,22 @@ "/classroom:v1/CourseWork/workType": work_type "/classroom:v1/CourseWorkChangesInfo": course_work_changes_info "/classroom:v1/CourseWorkChangesInfo/courseId": course_id +"/classroom:v1/CourseWorkMaterial": course_work_material +"/classroom:v1/CourseWorkMaterial/alternateLink": alternate_link +"/classroom:v1/CourseWorkMaterial/assigneeMode": assignee_mode +"/classroom:v1/CourseWorkMaterial/courseId": course_id +"/classroom:v1/CourseWorkMaterial/creationTime": creation_time +"/classroom:v1/CourseWorkMaterial/creatorUserId": creator_user_id +"/classroom:v1/CourseWorkMaterial/description": description +"/classroom:v1/CourseWorkMaterial/id": id +"/classroom:v1/CourseWorkMaterial/individualStudentsOptions": individual_students_options +"/classroom:v1/CourseWorkMaterial/materials": materials +"/classroom:v1/CourseWorkMaterial/materials/material": material +"/classroom:v1/CourseWorkMaterial/scheduledTime": scheduled_time +"/classroom:v1/CourseWorkMaterial/state": state +"/classroom:v1/CourseWorkMaterial/title": title +"/classroom:v1/CourseWorkMaterial/topicId": topic_id +"/classroom:v1/CourseWorkMaterial/updateTime": update_time "/classroom:v1/Date": date "/classroom:v1/Date/day": day "/classroom:v1/Date/month": month @@ -18991,6 +19091,10 @@ "/classroom:v1/ListCourseAliasesResponse/aliases": aliases "/classroom:v1/ListCourseAliasesResponse/aliases/alias": alias "/classroom:v1/ListCourseAliasesResponse/nextPageToken": next_page_token +"/classroom:v1/ListCourseWorkMaterialResponse": list_course_work_material_response +"/classroom:v1/ListCourseWorkMaterialResponse/courseWorkMaterial": course_work_material +"/classroom:v1/ListCourseWorkMaterialResponse/courseWorkMaterial/course_work_material": course_work_material +"/classroom:v1/ListCourseWorkMaterialResponse/nextPageToken": next_page_token "/classroom:v1/ListCourseWorkResponse": list_course_work_response "/classroom:v1/ListCourseWorkResponse/courseWork": course_work "/classroom:v1/ListCourseWorkResponse/courseWork/course_work": course_work @@ -19210,6 +19314,26 @@ "/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/courseId": course_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/courseWorkId": course_work_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/id": id +"/classroom:v1/classroom.courses.courseWorkMaterials.create": create_course_course_work_material +"/classroom:v1/classroom.courses.courseWorkMaterials.create/courseId": course_id +"/classroom:v1/classroom.courses.courseWorkMaterials.delete": delete_course_course_work_material +"/classroom:v1/classroom.courses.courseWorkMaterials.delete/courseId": course_id +"/classroom:v1/classroom.courses.courseWorkMaterials.delete/id": id +"/classroom:v1/classroom.courses.courseWorkMaterials.get": get_course_course_work_material +"/classroom:v1/classroom.courses.courseWorkMaterials.get/courseId": course_id +"/classroom:v1/classroom.courses.courseWorkMaterials.get/id": id +"/classroom:v1/classroom.courses.courseWorkMaterials.list": list_course_course_work_materials +"/classroom:v1/classroom.courses.courseWorkMaterials.list/courseId": course_id +"/classroom:v1/classroom.courses.courseWorkMaterials.list/courseWorkMaterialStates": course_work_material_states +"/classroom:v1/classroom.courses.courseWorkMaterials.list/materialDriveId": material_drive_id +"/classroom:v1/classroom.courses.courseWorkMaterials.list/materialLink": material_link +"/classroom:v1/classroom.courses.courseWorkMaterials.list/orderBy": order_by +"/classroom:v1/classroom.courses.courseWorkMaterials.list/pageSize": page_size +"/classroom:v1/classroom.courses.courseWorkMaterials.list/pageToken": page_token +"/classroom:v1/classroom.courses.courseWorkMaterials.patch": patch_course_course_work_material +"/classroom:v1/classroom.courses.courseWorkMaterials.patch/courseId": course_id +"/classroom:v1/classroom.courses.courseWorkMaterials.patch/id": id +"/classroom:v1/classroom.courses.courseWorkMaterials.patch/updateMask": update_mask "/classroom:v1/classroom.courses.create": create_course "/classroom:v1/classroom.courses.delete": delete_course "/classroom:v1/classroom.courses.delete/id": id @@ -19340,6 +19464,8 @@ "/cloudasset:v1/BigQueryDestination": big_query_destination "/cloudasset:v1/BigQueryDestination/dataset": dataset "/cloudasset:v1/BigQueryDestination/force": force +"/cloudasset:v1/BigQueryDestination/partitionSpec": partition_spec +"/cloudasset:v1/BigQueryDestination/separateTablesPerAssetType": separate_tables_per_asset_type "/cloudasset:v1/BigQueryDestination/table": table "/cloudasset:v1/Binding": binding "/cloudasset:v1/Binding/condition": condition @@ -19478,6 +19604,8 @@ "/cloudasset:v1/OutputConfig": output_config "/cloudasset:v1/OutputConfig/bigqueryDestination": bigquery_destination "/cloudasset:v1/OutputConfig/gcsDestination": gcs_destination +"/cloudasset:v1/PartitionSpec": partition_spec +"/cloudasset:v1/PartitionSpec/partitionKey": partition_key "/cloudasset:v1/Permissions": permissions "/cloudasset:v1/Permissions/permissions": permissions "/cloudasset:v1/Permissions/permissions/permission": permission @@ -25251,6 +25379,7 @@ "/cloudtasks:v2/Attempt/responseTime": response_time "/cloudtasks:v2/Attempt/scheduleTime": schedule_time "/cloudtasks:v2/Binding": binding +"/cloudtasks:v2/Binding/bindingId": binding_id "/cloudtasks:v2/Binding/condition": condition "/cloudtasks:v2/Binding/members": members "/cloudtasks:v2/Binding/members/member": member @@ -59314,6 +59443,24 @@ "/dataflow:v1b3/FlattenInstruction": flatten_instruction "/dataflow:v1b3/FlattenInstruction/inputs": inputs "/dataflow:v1b3/FlattenInstruction/inputs/input": input +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment": flex_template_runtime_environment +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/additionalExperiments": additional_experiments +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/additionalExperiments/additional_experiment": additional_experiment +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/additionalUserLabels": additional_user_labels +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/additionalUserLabels/additional_user_label": additional_user_label +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/enableStreamingEngine": enable_streaming_engine +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/ipConfiguration": ip_configuration +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/kmsKeyName": kms_key_name +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/machineType": machine_type +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/maxWorkers": max_workers +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/network": network +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/numWorkers": num_workers +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/serviceAccountEmail": service_account_email +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/subnetwork": subnetwork +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/tempLocation": temp_location +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/workerRegion": worker_region +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/workerZone": worker_zone +"/dataflow:v1b3/FlexTemplateRuntimeEnvironment/zone": zone "/dataflow:v1b3/FloatingPointList": floating_point_list "/dataflow:v1b3/FloatingPointList/elements": elements "/dataflow:v1b3/FloatingPointList/elements/element": element @@ -59390,6 +59537,7 @@ "/dataflow:v1b3/Job/transformNameMapping/transform_name_mapping": transform_name_mapping "/dataflow:v1b3/Job/type": type "/dataflow:v1b3/JobExecutionDetails": job_execution_details +"/dataflow:v1b3/JobExecutionDetails/nextPageToken": next_page_token "/dataflow:v1b3/JobExecutionDetails/stages": stages "/dataflow:v1b3/JobExecutionDetails/stages/stage": stage "/dataflow:v1b3/JobExecutionInfo": job_execution_info @@ -59434,6 +59582,7 @@ "/dataflow:v1b3/LaunchFlexTemplateParameter": launch_flex_template_parameter "/dataflow:v1b3/LaunchFlexTemplateParameter/containerSpec": container_spec "/dataflow:v1b3/LaunchFlexTemplateParameter/containerSpecGcsPath": container_spec_gcs_path +"/dataflow:v1b3/LaunchFlexTemplateParameter/environment": environment "/dataflow:v1b3/LaunchFlexTemplateParameter/jobName": job_name "/dataflow:v1b3/LaunchFlexTemplateParameter/launchOptions": launch_options "/dataflow:v1b3/LaunchFlexTemplateParameter/launchOptions/launch_option": launch_option @@ -60177,6 +60326,8 @@ "/dataflow:v1b3/dataflow.projects.locations.jobs.getExecutionDetails": get_project_location_job_execution_details "/dataflow:v1b3/dataflow.projects.locations.jobs.getExecutionDetails/jobId": job_id "/dataflow:v1b3/dataflow.projects.locations.jobs.getExecutionDetails/location": location +"/dataflow:v1b3/dataflow.projects.locations.jobs.getExecutionDetails/pageSize": page_size +"/dataflow:v1b3/dataflow.projects.locations.jobs.getExecutionDetails/pageToken": page_token "/dataflow:v1b3/dataflow.projects.locations.jobs.getExecutionDetails/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics": get_project_location_job_metrics "/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/jobId": job_id @@ -112855,6 +113006,7 @@ "/networkmanagement:v1beta1/ConnectivityTest/labels": labels "/networkmanagement:v1beta1/ConnectivityTest/labels/label": label "/networkmanagement:v1beta1/ConnectivityTest/name": name +"/networkmanagement:v1beta1/ConnectivityTest/probingDetails": probing_details "/networkmanagement:v1beta1/ConnectivityTest/protocol": protocol "/networkmanagement:v1beta1/ConnectivityTest/reachabilityDetails": reachability_details "/networkmanagement:v1beta1/ConnectivityTest/relatedProjects": related_projects @@ -112991,6 +113143,14 @@ "/networkmanagement:v1beta1/Policy/bindings/binding": binding "/networkmanagement:v1beta1/Policy/etag": etag "/networkmanagement:v1beta1/Policy/version": version +"/networkmanagement:v1beta1/ProbingDetails": probing_details +"/networkmanagement:v1beta1/ProbingDetails/abortCause": abort_cause +"/networkmanagement:v1beta1/ProbingDetails/endpointInfo": endpoint_info +"/networkmanagement:v1beta1/ProbingDetails/error": error +"/networkmanagement:v1beta1/ProbingDetails/result": result +"/networkmanagement:v1beta1/ProbingDetails/sentProbeCount": sent_probe_count +"/networkmanagement:v1beta1/ProbingDetails/successfulProbeCount": successful_probe_count +"/networkmanagement:v1beta1/ProbingDetails/verifyTime": verify_time "/networkmanagement:v1beta1/ReachabilityDetails": reachability_details "/networkmanagement:v1beta1/ReachabilityDetails/error": error "/networkmanagement:v1beta1/ReachabilityDetails/result": result diff --git a/generated/google/apis/admob_v1.rb b/generated/google/apis/admob_v1.rb index 4ee3d4aeb..9f3e8ef4d 100644 --- a/generated/google/apis/admob_v1.rb +++ b/generated/google/apis/admob_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/admob/api/ module AdmobV1 VERSION = 'V1' - REVISION = '20200914' + REVISION = '20200916' # See your AdMob data AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report' diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index a75cf1b13..2c95d3eee 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20200825' + REVISION = '20200915' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/service.rb b/generated/google/apis/androidenterprise_v1/service.rb index 8c8ef3988..afb1dff47 100644 --- a/generated/google/apis/androidenterprise_v1/service.rb +++ b/generated/google/apis/androidenterprise_v1/service.rb @@ -43,8 +43,8 @@ module Google attr_accessor :quota_user def initialize - super('https://www.googleapis.com/', '') - @batch_path = 'batch/androidenterprise/v1' + super('https://androidenterprise.googleapis.com/', '') + @batch_path = 'batch' end # Uploads a report containing any changes in app states on the device since the diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index 88e699e1f..62ea702ae 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20200909' + REVISION = '20200916' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index fdf05c6a1..e81fe2538 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/apps-marketplace module AppsmarketV2 VERSION = 'V2' - REVISION = '20200824' + REVISION = '20200914' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/artifactregistry_v1beta1.rb b/generated/google/apis/artifactregistry_v1beta1.rb index 704e9b6ae..7fbe6df3d 100644 --- a/generated/google/apis/artifactregistry_v1beta1.rb +++ b/generated/google/apis/artifactregistry_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/artifacts/docs/ module ArtifactregistryV1beta1 VERSION = 'V1beta1' - REVISION = '20200807' + REVISION = '20200903' # 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/artifactregistry_v1beta1/classes.rb b/generated/google/apis/artifactregistry_v1beta1/classes.rb index 130426d3e..4333143e7 100644 --- a/generated/google/apis/artifactregistry_v1beta1/classes.rb +++ b/generated/google/apis/artifactregistry_v1beta1/classes.rb @@ -26,6 +26,12 @@ module Google class Binding include Google::Apis::Core::Hashable + # A client-specified ID for this binding. Expected to be globally unique to + # support the internal bindings-by-ID API. + # Corresponds to the JSON property `bindingId` + # @return [String] + attr_accessor :binding_id + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -87,6 +93,7 @@ module Google # Update properties of this object def update!(**args) + @binding_id = args[:binding_id] if args.key?(:binding_id) @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) diff --git a/generated/google/apis/artifactregistry_v1beta1/representations.rb b/generated/google/apis/artifactregistry_v1beta1/representations.rb index 98d345164..21628594b 100644 --- a/generated/google/apis/artifactregistry_v1beta1/representations.rb +++ b/generated/google/apis/artifactregistry_v1beta1/representations.rb @@ -187,6 +187,7 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :binding_id, as: 'bindingId' property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1beta1::Expr, decorator: Google::Apis::ArtifactregistryV1beta1::Expr::Representation collection :members, as: 'members' diff --git a/generated/google/apis/assuredworkloads_v1beta1.rb b/generated/google/apis/assuredworkloads_v1beta1.rb new file mode 100644 index 000000000..440224111 --- /dev/null +++ b/generated/google/apis/assuredworkloads_v1beta1.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/assuredworkloads_v1beta1/service.rb' +require 'google/apis/assuredworkloads_v1beta1/classes.rb' +require 'google/apis/assuredworkloads_v1beta1/representations.rb' + +module Google + module Apis + # Assured Workloads API + # + # + # + # @see https://cloud.google.com + module AssuredworkloadsV1beta1 + VERSION = 'V1beta1' + REVISION = '20200914' + + # 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/assuredworkloads_v1beta1/classes.rb b/generated/google/apis/assuredworkloads_v1beta1/classes.rb new file mode 100644 index 000000000..9e33d7d8d --- /dev/null +++ b/generated/google/apis/assuredworkloads_v1beta1/classes.rb @@ -0,0 +1,458 @@ +# 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 AssuredworkloadsV1beta1 + + # Operation metadata to give request details of CreateWorkload. + class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata + include Google::Apis::Core::Hashable + + # Optional. Compliance controls that should be applied to the resources managed + # by the workload. + # Corresponds to the JSON property `complianceRegime` + # @return [String] + attr_accessor :compliance_regime + + # Optional. Time when the operation was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. The display name of the workload. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. The parent of the workload. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime) + @create_time = args[:create_time] if args.key?(:create_time) + @display_name = args[:display_name] if args.key?(:display_name) + @parent = args[:parent] if args.key?(:parent) + end + end + + # Response of ListWorkloads endpoint. + class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse + include Google::Apis::Core::Hashable + + # The next page token. Return empty if reached the last page. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of Workloads under a given parent. + # Corresponds to the JSON property `workloads` + # @return [Array] + attr_accessor :workloads + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @workloads = args[:workloads] if args.key?(:workloads) + end + end + + # An Workload object for managing highly regulated workloads of cloud customers. + class GoogleCloudAssuredworkloadsV1beta1Workload + include Google::Apis::Core::Hashable + + # Required. Input only. The billing account used for the resources which are + # direct children of workload. This billing account is initially associated with + # the resources created as part of Workload creation. After the initial creation + # of these resources, the customer can change the assigned billing account. The + # resource name has the form `billingAccounts/`billing_account_id``. For example, + # `billingAccounts/012345-567890-ABCDEF`. + # Corresponds to the JSON property `billingAccount` + # @return [String] + attr_accessor :billing_account + + # Settings specific to resources needed for CJIS. + # Corresponds to the JSON property `cjisSettings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings] + attr_accessor :cjis_settings + + # Required. Immutable. Compliance Regime associated with this workload. + # Corresponds to the JSON property `complianceRegime` + # @return [String] + attr_accessor :compliance_regime + + # Output only. Immutable. The Workload creation timestamp. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Required. The user-assigned display name of the Workload. When present it must + # be between 4 to 30 characters. Allowed characters are: lowercase and uppercase + # letters, numbers, hyphen, and spaces. Example: My Workload + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. ETag of the workload, it is calculated on the basis of the Workload + # contents. It will be used in Update & Delete operations. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Settings specific to resources needed for FedRAMP High. + # Corresponds to the JSON property `fedrampHighSettings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings] + attr_accessor :fedramp_high_settings + + # Settings specific to resources needed for FedRAMP Moderate. + # Corresponds to the JSON property `fedrampModerateSettings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings] + attr_accessor :fedramp_moderate_settings + + # Settings specific to resources needed for IL4. + # Corresponds to the JSON property `il4Settings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings] + attr_accessor :il4_settings + + # Optional. Labels applied to the workload. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Optional. The resource name of the workload. Format: organizations/` + # organization`/locations/`location`/workloads/`workload` Read-only. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The resources associated with this workload. These resources will + # be created when creating the workload. If any of the projects already exist, + # the workload creation will fail. Always read only. + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @billing_account = args[:billing_account] if args.key?(:billing_account) + @cjis_settings = args[:cjis_settings] if args.key?(:cjis_settings) + @compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime) + @create_time = args[:create_time] if args.key?(:create_time) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @fedramp_high_settings = args[:fedramp_high_settings] if args.key?(:fedramp_high_settings) + @fedramp_moderate_settings = args[:fedramp_moderate_settings] if args.key?(:fedramp_moderate_settings) + @il4_settings = args[:il4_settings] if args.key?(:il4_settings) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @resources = args[:resources] if args.key?(:resources) + end + end + + # Settings specific to resources needed for CJIS. + class GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings + include Google::Apis::Core::Hashable + + # Settings specific to the Key Management Service. + # Corresponds to the JSON property `kmsSettings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings] + attr_accessor :kms_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kms_settings = args[:kms_settings] if args.key?(:kms_settings) + end + end + + # Settings specific to resources needed for FedRAMP High. + class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings + include Google::Apis::Core::Hashable + + # Settings specific to the Key Management Service. + # Corresponds to the JSON property `kmsSettings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings] + attr_accessor :kms_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kms_settings = args[:kms_settings] if args.key?(:kms_settings) + end + end + + # Settings specific to resources needed for FedRAMP Moderate. + class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings + include Google::Apis::Core::Hashable + + # Settings specific to the Key Management Service. + # Corresponds to the JSON property `kmsSettings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings] + attr_accessor :kms_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kms_settings = args[:kms_settings] if args.key?(:kms_settings) + end + end + + # Settings specific to resources needed for IL4. + class GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings + include Google::Apis::Core::Hashable + + # Settings specific to the Key Management Service. + # Corresponds to the JSON property `kmsSettings` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings] + attr_accessor :kms_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kms_settings = args[:kms_settings] if args.key?(:kms_settings) + end + end + + # Settings specific to the Key Management Service. + class GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings + include Google::Apis::Core::Hashable + + # Required. Input only. Immutable. The time at which the Key Management Service + # will automatically create a new version of the crypto key and mark it as the + # primary. + # Corresponds to the JSON property `nextRotationTime` + # @return [String] + attr_accessor :next_rotation_time + + # Required. Input only. Immutable. [next_rotation_time] will be advanced by this + # period when the Key Management Service automatically rotates a key. Must be at + # least 24 hours and at most 876,000 hours. + # Corresponds to the JSON property `rotationPeriod` + # @return [String] + attr_accessor :rotation_period + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time) + @rotation_period = args[:rotation_period] if args.key?(:rotation_period) + end + end + + # Represent the resources that are children of this Workload. + class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo + include Google::Apis::Core::Hashable + + # Resource identifier. For a project this represents project_number. + # Corresponds to the JSON property `resourceId` + # @return [Fixnum] + attr_accessor :resource_id + + # Indicates the type of resource. + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_type = args[:resource_type] if args.key?(:resource_type) + end + end + + # The response message for Operations.ListOperations. + class GoogleLongrunningListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. + # 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) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + 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 GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The `Status` type 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + class GoogleRpcStatus + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # 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 + # field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + end + end +end diff --git a/generated/google/apis/assuredworkloads_v1beta1/representations.rb b/generated/google/apis/assuredworkloads_v1beta1/representations.rb new file mode 100644 index 000000000..2c055a3f2 --- /dev/null +++ b/generated/google/apis/assuredworkloads_v1beta1/representations.rb @@ -0,0 +1,230 @@ +# 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 AssuredworkloadsV1beta1 + + class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1Workload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleRpcStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compliance_regime, as: 'complianceRegime' + property :create_time, as: 'createTime' + property :display_name, as: 'displayName' + property :parent, as: 'parent' + end + end + + class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :workloads, as: 'workloads', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation + + end + end + + class GoogleCloudAssuredworkloadsV1beta1Workload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :billing_account, as: 'billingAccount' + property :cjis_settings, as: 'cjisSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings::Representation + + property :compliance_regime, as: 'complianceRegime' + property :create_time, as: 'createTime' + property :display_name, as: 'displayName' + property :etag, as: 'etag' + property :fedramp_high_settings, as: 'fedrampHighSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings::Representation + + property :fedramp_moderate_settings, as: 'fedrampModerateSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings::Representation + + property :il4_settings, as: 'il4Settings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings::Representation + + hash :labels, as: 'labels' + property :name, as: 'name' + collection :resources, as: 'resources', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo::Representation + + end + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation + + end + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation + + end + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation + + end + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation + + end + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_rotation_time, as: 'nextRotationTime' + property :rotation_period, as: 'rotationPeriod' + end + end + + class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource_id, :numeric_string => true, as: 'resourceId' + property :resource_type, as: 'resourceType' + end + end + + class GoogleLongrunningListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation::Representation + + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleRpcStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + end + end +end diff --git a/generated/google/apis/assuredworkloads_v1beta1/service.rb b/generated/google/apis/assuredworkloads_v1beta1/service.rb new file mode 100644 index 000000000..a0fdd05be --- /dev/null +++ b/generated/google/apis/assuredworkloads_v1beta1/service.rb @@ -0,0 +1,328 @@ +# 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 AssuredworkloadsV1beta1 + # Assured Workloads API + # + # + # + # @example + # require 'google/apis/assuredworkloads_v1beta1' + # + # Assuredworkloads = Google::Apis::AssuredworkloadsV1beta1 # Alias the module + # service = Assuredworkloads::AssuredworkloadsService.new + # + # @see https://cloud.google.com + class AssuredworkloadsService < 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://assuredworkloads.googleapis.com/', '') + @batch_path = 'batch' + 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::AssuredworkloadsV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation] + # + # @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_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation + 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. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @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::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse] + # + # @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_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse + 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 + + # Creates Assured Workload. + # @param [String] parent + # Required. The resource name of the new Workload's parent. Must be of the form ` + # organizations/`org_id`/locations/`location_id``. + # @param [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] google_cloud_assuredworkloads_v1beta1_workload_object + # @param [String] external_id + # Optional. A identifier associated with the workload and underlying projects + # which allows for the break down of billing costs for a workload. The value + # provided for the identifier will add a label to the workload and contained + # projects with the identifier as the value. + # @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::AssuredworkloadsV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation] + # + # @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_organization_location_workload(parent, google_cloud_assuredworkloads_v1beta1_workload_object = nil, external_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/workloads', options) + command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation + command.request_object = google_cloud_assuredworkloads_v1beta1_workload_object + command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['externalId'] = external_id unless external_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 workload. Make sure that workload's direct children are already in + # a deleted state, otherwise the request will fail with a FAILED_PRECONDITION + # error. + # @param [String] name + # Required. The `name` field is used to identify the workload. Format: + # organizations/`org_id`/locations/`location_id`/workloads/`workload_id` + # @param [String] etag + # Optional. The etag of the workload. If this is provided, it must match the + # server's etag. + # @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::AssuredworkloadsV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleProtobufEmpty] + # + # @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_organization_location_workload(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['etag'] = etag unless etag.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 Assured Workload associated with a CRM Node + # @param [String] name + # Required. The resource name of the Workload to fetch. This is the workloads's + # relative path in the API, formatted as "organizations/`organization_id`/ + # locations/`location_id`/workloads/`workload_id`". For example, "organizations/ + # 123/locations/us-east1/workloads/assured-workload-1". + # @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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] + # + # @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_organization_location_workload(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation + command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload + 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 Assured Workloads under a CRM Node. + # @param [String] parent + # Required. Parent Resource to list workloads from. Must be of the form ` + # organizations/`org_id`/locations/`location``. + # @param [String] filter + # A custom filter for filtering by properties of a workload. At this time, only + # filtering by labels is supported. + # @param [Fixnum] page_size + # Page size. + # @param [String] page_token + # Page token returned from previous request. Page token contains context from + # previous request. Page token needs to be passed in the second and following + # requests. + # @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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse] + # + # @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_organization_location_workloads(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/workloads', options) + command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse::Representation + command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse + command.params['parent'] = parent unless parent.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 + + # Updates an existing workload. Currently allows updating of workload + # display_name and labels. For force updates don't set etag field in the + # Workload. Only one update operation per workload can be in progress. + # @param [String] name + # Optional. The resource name of the workload. Format: organizations/` + # organization`/locations/`location`/workloads/`workload` Read-only. + # @param [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] google_cloud_assuredworkloads_v1beta1_workload_object + # @param [String] update_mask + # Required. The list of fields to 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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] + # + # @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_organization_location_workload(name, google_cloud_assuredworkloads_v1beta1_workload_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation + command.request_object = google_cloud_assuredworkloads_v1beta1_workload_object + command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation + command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb index 8196123d2..0cc133344 100644 --- a/generated/google/apis/classroom_v1.rb +++ b/generated/google/apis/classroom_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/classroom/ module ClassroomV1 VERSION = 'V1' - REVISION = '20200801' + REVISION = '20200915' # View and manage announcements in Google Classroom AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements' @@ -51,6 +51,12 @@ module Google # View course work and grades for students in the Google Classroom classes you teach or administer AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly' + # See, edit, and create classwork materials in Google Classroom + AUTH_CLASSROOM_COURSEWORKMATERIALS = 'https://www.googleapis.com/auth/classroom.courseworkmaterials' + + # See all classwork materials for your Google Classroom classes + AUTH_CLASSROOM_COURSEWORKMATERIALS_READONLY = 'https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly' + # View your Google Classroom guardians AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly' diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb index b7e381f0e..7074b37b5 100644 --- a/generated/google/apis/classroom_v1/classes.rb +++ b/generated/google/apis/classroom_v1/classes.rb @@ -662,6 +662,112 @@ module Google end end + # Course work material created by a teacher for students of the course + class CourseWorkMaterial + include Google::Apis::Core::Hashable + + # Absolute link to this course work material in the Classroom web UI. This is + # only populated if `state` is `PUBLISHED`. Read-only. + # Corresponds to the JSON property `alternateLink` + # @return [String] + attr_accessor :alternate_link + + # Assignee mode of the course work material. If unspecified, the default value + # is `ALL_STUDENTS`. + # Corresponds to the JSON property `assigneeMode` + # @return [String] + attr_accessor :assignee_mode + + # Identifier of the course. Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # Timestamp when this course work material was created. Read-only. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Identifier for the user that created the course work material. Read-only. + # Corresponds to the JSON property `creatorUserId` + # @return [String] + attr_accessor :creator_user_id + + # Optional description of this course work material. The text must be a valid + # UTF-8 string containing no more than 30,000 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Classroom-assigned identifier of this course work material, unique per course. + # Read-only. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Assignee details about a coursework/announcement. This field is set if and + # only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. + # Corresponds to the JSON property `individualStudentsOptions` + # @return [Google::Apis::ClassroomV1::IndividualStudentsOptions] + attr_accessor :individual_students_options + + # Additional materials. A course work material must have no more than 20 + # material items. + # Corresponds to the JSON property `materials` + # @return [Array] + attr_accessor :materials + + # Optional timestamp when this course work material is scheduled to be published. + # Corresponds to the JSON property `scheduledTime` + # @return [String] + attr_accessor :scheduled_time + + # Status of this course work material. If unspecified, the default state is ` + # DRAFT`. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Title of this course work material. The title must be a valid UTF-8 string + # containing between 1 and 3000 characters. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Identifier for the topic that this course work material is associated with. + # Must match an existing topic in the course. + # Corresponds to the JSON property `topicId` + # @return [String] + attr_accessor :topic_id + + # Timestamp of the most recent change to this course work material. Read-only. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode) + @course_id = args[:course_id] if args.key?(:course_id) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options) + @materials = args[:materials] if args.key?(:materials) + @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time) + @state = args[:state] if args.key?(:state) + @title = args[:title] if args.key?(:title) + @topic_id = args[:topic_id] if args.key?(:topic_id) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date # is relative to the Proleptic Gregorian Calendar. This can represent: * A full @@ -1148,6 +1254,32 @@ module Google end end + # Response when listing course work material. + class ListCourseWorkMaterialResponse + include Google::Apis::Core::Hashable + + # Course work material items that match the request. + # Corresponds to the JSON property `courseWorkMaterial` + # @return [Array] + attr_accessor :course_work_material + + # 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) + @course_work_material = args[:course_work_material] if args.key?(:course_work_material) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Response when listing course work. class ListCourseWorkResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/classroom_v1/representations.rb b/generated/google/apis/classroom_v1/representations.rb index 1341fb066..12b618268 100644 --- a/generated/google/apis/classroom_v1/representations.rb +++ b/generated/google/apis/classroom_v1/representations.rb @@ -94,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CourseWorkMaterial + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Date class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,6 +190,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListCourseWorkMaterialResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListCourseWorkResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -537,6 +549,28 @@ module Google end end + class CourseWorkMaterial + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alternate_link, as: 'alternateLink' + property :assignee_mode, as: 'assigneeMode' + property :course_id, as: 'courseId' + property :creation_time, as: 'creationTime' + property :creator_user_id, as: 'creatorUserId' + property :description, as: 'description' + property :id, as: 'id' + property :individual_students_options, as: 'individualStudentsOptions', class: Google::Apis::ClassroomV1::IndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::IndividualStudentsOptions::Representation + + collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation + + property :scheduled_time, as: 'scheduledTime' + property :state, as: 'state' + property :title, as: 'title' + property :topic_id, as: 'topicId' + property :update_time, as: 'updateTime' + end + end + class Date # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -676,6 +710,15 @@ module Google end end + class ListCourseWorkMaterialResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :course_work_material, as: 'courseWorkMaterial', class: Google::Apis::ClassroomV1::CourseWorkMaterial, decorator: Google::Apis::ClassroomV1::CourseWorkMaterial::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListCourseWorkResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/classroom_v1/service.rb b/generated/google/apis/classroom_v1/service.rb index 10e6ee067..edbe9f360 100644 --- a/generated/google/apis/classroom_v1/service.rb +++ b/generated/google/apis/classroom_v1/service.rb @@ -1335,6 +1335,246 @@ module Google execute_or_queue_command(command, &block) end + # Creates a course work material. This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to access the + # requested course, create course work material in the requested course, share a + # Drive attachment, or for access errors. * `INVALID_ARGUMENT` if the request is + # malformed or if more than 20 * materials are provided. * `NOT_FOUND` if the + # requested course does not exist. * `FAILED_PRECONDITION` for the following + # request error: * AttachmentNotVisible + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_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::ClassroomV1::CourseWorkMaterial] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::CourseWorkMaterial] + # + # @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_work_material(course_id, course_work_material_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/courseWorkMaterials', options) + command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation + command.request_object = course_work_material_object + command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation + command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial + 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 a course work material. This request must be made by the Developer + # Console project of the [OAuth client ID](https://support.google.com/cloud/ + # answer/6158849) used to create the corresponding course work material item. + # This method returns the following error codes: * `PERMISSION_DENIED` if the + # requesting developer project did not create the corresponding course work + # material, if the requesting user is not permitted to delete the requested + # course or for access errors. * `FAILED_PRECONDITION` if the requested course + # work material has already been deleted. * `NOT_FOUND` if no course exists with + # the requested ID. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] id + # Identifier of the course work material to delete. This identifier is a + # 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::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::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_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + 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 course work material. This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to access the + # requested course or course work material, or for access errors. * ` + # INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested + # course or course work material does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] id + # Identifier of the course work material. + # @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::ClassroomV1::CourseWorkMaterial] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::CourseWorkMaterial] + # + # @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_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation + command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial + command.params['courseId'] = course_id unless course_id.nil? + 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 course work material that the requester is permitted to view. + # Course students may only view `PUBLISHED` course work material. Course + # teachers and domain administrators may view all course work material. This + # method returns the following error codes: * `PERMISSION_DENIED` if the + # requesting user is not permitted to access the requested course or for access + # errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the + # requested course does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [Array, String] course_work_material_states + # Restriction on the work status to return. Only course work material that + # matches is returned. If unspecified, items with a work status of `PUBLISHED` + # is returned. + # @param [String] material_drive_id + # Optional filtering for course work material with at least one Drive material + # whose ID matches the provided string. If `material_link` is also specified, + # course work material must have materials matching both filters. + # @param [String] material_link + # Optional filtering for course work material with at least one link material + # whose URL partially matches the provided string. + # @param [String] order_by + # Optional sort ordering for results. A comma-separated list of fields with an + # optional sort direction keyword. Supported field is `updateTime`. Supported + # direction keywords are `asc` and `desc`. If not specified, `updateTime desc` + # is the default behavior. Examples: `updateTime asc`, `updateTime` + # @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 value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that 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::ClassroomV1::ListCourseWorkMaterialResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse] + # + # @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_course_work_materials(course_id, course_work_material_states: nil, material_drive_id: nil, material_link: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials', options) + command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse + command.params['courseId'] = course_id unless course_id.nil? + command.query['courseWorkMaterialStates'] = course_work_material_states unless course_work_material_states.nil? + command.query['materialDriveId'] = material_drive_id unless material_drive_id.nil? + command.query['materialLink'] = material_link unless material_link.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates one or more fields of a course work material. This method returns the + # following error codes: * `PERMISSION_DENIED` if the requesting developer + # project for access errors. * `INVALID_ARGUMENT` if the request is malformed. * + # `FAILED_PRECONDITION` if the requested course work material has already been + # deleted. * `NOT_FOUND` if the requested course or course work material does + # not exist + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] id + # Identifier of the course work material. + # @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_object + # @param [String] update_mask + # Mask that identifies which fields on the course work material to update. This + # field is required to do an update. The update fails if invalid fields are + # specified. If a field supports empty values, it can be cleared by specifying + # it in the update mask and not in the course work material object. If a field + # that does not support empty values is included in the update mask and not set + # in the course work material object, an `INVALID_ARGUMENT` error is returned. + # The following fields may be specified by teachers: * `title` * `description` * + # `state` * `scheduled_time` * `topic_id` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::CourseWorkMaterial] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::CourseWorkMaterial] + # + # @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_course_work_material(course_id, id, course_work_material_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options) + command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation + command.request_object = course_work_material_object + command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation + command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial + command.params['courseId'] = course_id unless course_id.nil? + 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 + # 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 or for access errors. * `NOT_FOUND` if the requested diff --git a/generated/google/apis/cloudasset_v1.rb b/generated/google/apis/cloudasset_v1.rb index 5e171e032..c53e3396a 100644 --- a/generated/google/apis/cloudasset_v1.rb +++ b/generated/google/apis/cloudasset_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/asset-inventory/docs/quickstart module CloudassetV1 VERSION = 'V1' - REVISION = '20200828' + REVISION = '20200911' # 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/cloudasset_v1/classes.rb b/generated/google/apis/cloudasset_v1/classes.rb index dca0c1b2c..1959e7f12 100644 --- a/generated/google/apis/cloudasset_v1/classes.rb +++ b/generated/google/apis/cloudasset_v1/classes.rb @@ -264,6 +264,37 @@ module Google attr_accessor :force alias_method :force?, :force + # Specifications of BigQuery partitioned table as export destination. + # Corresponds to the JSON property `partitionSpec` + # @return [Google::Apis::CloudassetV1::PartitionSpec] + attr_accessor :partition_spec + + # If this flag is `TRUE`, the snapshot results will be written to one or + # multiple tables, each of which contains results of one asset type. The [force] + # and [partition_spec] fields will apply to each of them. Field [table] will be + # concatenated with "_" and the asset type names (see https://cloud.google.com/ + # asset-inventory/docs/supported-asset-types for supported asset types) to + # construct per-asset-type table names, in which all non-alphanumeric characters + # like "." and "/" will be substituted by "_". Example: if field [table] is " + # mytable" and snapshot results contain "storage.googleapis.com/Bucket" assets, + # the corresponding table name will be "mytable_storage_googleapis_com_Bucket". + # If any of these tables does not exist, a new table with the concatenated name + # will be created. When [content_type] in the ExportAssetsRequest is `RESOURCE`, + # the schema of each table will include RECORD-type columns mapped to the nested + # fields in the Asset.resource.data field of that asset type (up to the 15 + # nested level BigQuery supports (https://cloud.google.com/bigquery/docs/nested- + # repeated#limitations)). The fields in >15 nested levels will be stored in JSON + # format string as a child column of its parent RECORD column. If error occurs + # when exporting to any table, the whole export call will return an error but + # the export results that already succeed will persist. Example: if exporting to + # table_type_A succeeds when exporting to table_type_B fails during one export + # call, the results in table_type_A will persist and there will not be partial + # results persisting in a table. + # Corresponds to the JSON property `separateTablesPerAssetType` + # @return [Boolean] + attr_accessor :separate_tables_per_asset_type + alias_method :separate_tables_per_asset_type?, :separate_tables_per_asset_type + # Required. The BigQuery table to which the snapshot result should be written. # If this table does not exist, a new table with the given name will be created. # Corresponds to the JSON property `table` @@ -278,6 +309,8 @@ module Google def update!(**args) @dataset = args[:dataset] if args.key?(:dataset) @force = args[:force] if args.key?(:force) + @partition_spec = args[:partition_spec] if args.key?(:partition_spec) + @separate_tables_per_asset_type = args[:separate_tables_per_asset_type] if args.key?(:separate_tables_per_asset_type) @table = args[:table] if args.key?(:table) end end @@ -1610,6 +1643,25 @@ module Google end end + # Specifications of BigQuery partitioned table as export destination. + class PartitionSpec + include Google::Apis::Core::Hashable + + # The partition key for BigQuery partitioned table. + # Corresponds to the JSON property `partitionKey` + # @return [String] + attr_accessor :partition_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @partition_key = args[:partition_key] if args.key?(:partition_key) + end + end + # IAM permissions class Permissions include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudasset_v1/representations.rb b/generated/google/apis/cloudasset_v1/representations.rb index dea924b7c..f5521a3ff 100644 --- a/generated/google/apis/cloudasset_v1/representations.rb +++ b/generated/google/apis/cloudasset_v1/representations.rb @@ -214,6 +214,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PartitionSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Permissions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -332,6 +338,9 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :dataset, as: 'dataset' property :force, as: 'force' + property :partition_spec, as: 'partitionSpec', class: Google::Apis::CloudassetV1::PartitionSpec, decorator: Google::Apis::CloudassetV1::PartitionSpec::Representation + + property :separate_tables_per_asset_type, as: 'separateTablesPerAssetType' property :table, as: 'table' end end @@ -611,6 +620,13 @@ module Google end end + class PartitionSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :partition_key, as: 'partitionKey' + end + end + class Permissions # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudasset_v1p4beta1.rb b/generated/google/apis/cloudasset_v1p4beta1.rb index 9ecd22739..652a463f3 100644 --- a/generated/google/apis/cloudasset_v1p4beta1.rb +++ b/generated/google/apis/cloudasset_v1p4beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/asset-inventory/docs/quickstart module CloudassetV1p4beta1 VERSION = 'V1p4beta1' - REVISION = '20200814' + REVISION = '20200911' # 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/cloudasset_v1p4beta1/classes.rb b/generated/google/apis/cloudasset_v1p4beta1/classes.rb index ee3e9eb15..8d5ce4cdc 100644 --- a/generated/google/apis/cloudasset_v1p4beta1/classes.rb +++ b/generated/google/apis/cloudasset_v1p4beta1/classes.rb @@ -25,7 +25,8 @@ module Google # Specifies roles and/or permissions to analyze, to determine both the # identities possessing them and the resources they control. If multiple values # are specified, results will include identities and resources matching any of - # them. + # them. The total number of roles and permissions should be equal or less than + # 10. class AccessSelector include Google::Apis::Core::Hashable @@ -551,7 +552,8 @@ module Google # Specifies roles and/or permissions to analyze, to determine both the # identities possessing them and the resources they control. If multiple values # are specified, results will include identities and resources matching any of - # them. + # them. The total number of roles and permissions should be equal or less than + # 10. # Corresponds to the JSON property `accessSelector` # @return [Google::Apis::CloudassetV1p4beta1::AccessSelector] attr_accessor :access_selector diff --git a/generated/google/apis/cloudtasks_v2.rb b/generated/google/apis/cloudtasks_v2.rb index 22cf6076d..6db8c5d4d 100644 --- a/generated/google/apis/cloudtasks_v2.rb +++ b/generated/google/apis/cloudtasks_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2 VERSION = 'V2' - REVISION = '20200804' + REVISION = '20200909' # 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/cloudtasks_v2/classes.rb b/generated/google/apis/cloudtasks_v2/classes.rb index 953e84d8f..906ecf994 100644 --- a/generated/google/apis/cloudtasks_v2/classes.rb +++ b/generated/google/apis/cloudtasks_v2/classes.rb @@ -262,6 +262,12 @@ module Google class Binding include Google::Apis::Core::Hashable + # A client-specified ID for this binding. Expected to be globally unique to + # support the internal bindings-by-ID API. + # Corresponds to the JSON property `bindingId` + # @return [String] + attr_accessor :binding_id + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -323,6 +329,7 @@ module Google # Update properties of this object def update!(**args) + @binding_id = args[:binding_id] if args.key?(:binding_id) @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) diff --git a/generated/google/apis/cloudtasks_v2/representations.rb b/generated/google/apis/cloudtasks_v2/representations.rb index df94feb57..00687e63e 100644 --- a/generated/google/apis/cloudtasks_v2/representations.rb +++ b/generated/google/apis/cloudtasks_v2/representations.rb @@ -238,6 +238,7 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :binding_id, as: 'bindingId' property :condition, as: 'condition', class: Google::Apis::CloudtasksV2::Expr, decorator: Google::Apis::CloudtasksV2::Expr::Representation collection :members, as: 'members' diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index b6beea63d..49d2286ef 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20200805' + REVISION = '20200901' # 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/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index 7f7f8186c..cd099ae95 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -1490,6 +1490,128 @@ module Google end end + # The environment values to be set at runtime for flex template. + class FlexTemplateRuntimeEnvironment + include Google::Apis::Core::Hashable + + # Additional experiment flags for the job. + # Corresponds to the JSON property `additionalExperiments` + # @return [Array] + attr_accessor :additional_experiments + + # Additional user labels to be specified for the job. Keys and values must + # follow the restrictions specified in the [labeling restrictions](https://cloud. + # google.com/compute/docs/labeling-resources#restrictions) page. + # Corresponds to the JSON property `additionalUserLabels` + # @return [Hash] + attr_accessor :additional_user_labels + + # Whether to enable Streaming Engine for the job. + # Corresponds to the JSON property `enableStreamingEngine` + # @return [Boolean] + attr_accessor :enable_streaming_engine + alias_method :enable_streaming_engine?, :enable_streaming_engine + + # Configuration for VM IPs. + # Corresponds to the JSON property `ipConfiguration` + # @return [String] + attr_accessor :ip_configuration + + # Name for the Cloud KMS key for the job. Key format is: projects//locations// + # keyRings//cryptoKeys/ + # Corresponds to the JSON property `kmsKeyName` + # @return [String] + attr_accessor :kms_key_name + + # The machine type to use for the job. Defaults to the value from the template + # if not specified. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # The maximum number of Google Compute Engine instances to be made available to + # your pipeline during execution, from 1 to 1000. + # Corresponds to the JSON property `maxWorkers` + # @return [Fixnum] + attr_accessor :max_workers + + # Network to which VMs will be assigned. If empty or unspecified, the service + # will use the network "default". + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # The initial number of Google Compute Engine instances for the job. + # Corresponds to the JSON property `numWorkers` + # @return [Fixnum] + attr_accessor :num_workers + + # The email address of the service account to run the job as. + # Corresponds to the JSON property `serviceAccountEmail` + # @return [String] + attr_accessor :service_account_email + + # Subnetwork to which VMs will be assigned, if desired. Expected to be of the + # form "regions/REGION/subnetworks/SUBNETWORK". + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + + # The Cloud Storage path to use for temporary files. Must be a valid Cloud + # Storage URL, beginning with `gs://`. + # Corresponds to the JSON property `tempLocation` + # @return [String] + attr_accessor :temp_location + + # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/ + # regions-zones) in which worker processing should occur, e.g. "us-west1". + # Mutually exclusive with worker_zone. If neither worker_region nor worker_zone + # is specified, default to the control plane's region. + # Corresponds to the JSON property `workerRegion` + # @return [String] + attr_accessor :worker_region + + # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/ + # regions-zones) in which worker processing should occur, e.g. "us-west1-a". + # Mutually exclusive with worker_region. If neither worker_region nor + # worker_zone is specified, a zone in the control plane's region is chosen based + # on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` + # takes precedence. + # Corresponds to the JSON property `workerZone` + # @return [String] + attr_accessor :worker_zone + + # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/ + # regions-zones/regions-zones) for launching worker instances to run your + # pipeline. In the future, worker_zone will take precedence. + # 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) + @additional_experiments = args[:additional_experiments] if args.key?(:additional_experiments) + @additional_user_labels = args[:additional_user_labels] if args.key?(:additional_user_labels) + @enable_streaming_engine = args[:enable_streaming_engine] if args.key?(:enable_streaming_engine) + @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) + @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @max_workers = args[:max_workers] if args.key?(:max_workers) + @network = args[:network] if args.key?(:network) + @num_workers = args[:num_workers] if args.key?(:num_workers) + @service_account_email = args[:service_account_email] if args.key?(:service_account_email) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @temp_location = args[:temp_location] if args.key?(:temp_location) + @worker_region = args[:worker_region] if args.key?(:worker_region) + @worker_zone = args[:worker_zone] if args.key?(:worker_zone) + @zone = args[:zone] if args.key?(:zone) + end + end + # A metric value representing a list of floating point numbers. class FloatingPointList include Google::Apis::Core::Hashable @@ -2053,6 +2175,12 @@ module Google class JobExecutionDetails include Google::Apis::Core::Hashable + # If present, this response does not contain all requested tasks. To obtain the + # next page of results, repeat the request with page_token set to this value. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + # The stages of the job execution. # Corresponds to the JSON property `stages` # @return [Array] @@ -2064,6 +2192,7 @@ module Google # Update properties of this object def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @stages = args[:stages] if args.key?(:stages) end end @@ -2329,6 +2458,11 @@ module Google # @return [String] attr_accessor :container_spec_gcs_path + # The environment values to be set at runtime for flex template. + # Corresponds to the JSON property `environment` + # @return [Google::Apis::DataflowV1b3::FlexTemplateRuntimeEnvironment] + attr_accessor :environment + # Required. The job name to use for the created job. # Corresponds to the JSON property `jobName` # @return [String] @@ -2353,6 +2487,7 @@ module Google def update!(**args) @container_spec = args[:container_spec] if args.key?(:container_spec) @container_spec_gcs_path = args[:container_spec_gcs_path] if args.key?(:container_spec_gcs_path) + @environment = args[:environment] if args.key?(:environment) @job_name = args[:job_name] if args.key?(:job_name) @launch_options = args[:launch_options] if args.key?(:launch_options) @parameters = args[:parameters] if args.key?(:parameters) diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index a0578c07b..c6158981e 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -244,6 +244,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FlexTemplateRuntimeEnvironment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FloatingPointList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1445,6 +1451,27 @@ module Google end end + class FlexTemplateRuntimeEnvironment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :additional_experiments, as: 'additionalExperiments' + hash :additional_user_labels, as: 'additionalUserLabels' + property :enable_streaming_engine, as: 'enableStreamingEngine' + property :ip_configuration, as: 'ipConfiguration' + property :kms_key_name, as: 'kmsKeyName' + property :machine_type, as: 'machineType' + property :max_workers, as: 'maxWorkers' + property :network, as: 'network' + property :num_workers, as: 'numWorkers' + property :service_account_email, as: 'serviceAccountEmail' + property :subnetwork, as: 'subnetwork' + property :temp_location, as: 'tempLocation' + property :worker_region, as: 'workerRegion' + property :worker_zone, as: 'workerZone' + property :zone, as: 'zone' + end + end + class FloatingPointList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1593,6 +1620,7 @@ module Google class JobExecutionDetails # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :stages, as: 'stages', class: Google::Apis::DataflowV1b3::StageSummary, decorator: Google::Apis::DataflowV1b3::StageSummary::Representation end @@ -1678,6 +1706,8 @@ module Google property :container_spec, as: 'containerSpec', class: Google::Apis::DataflowV1b3::ContainerSpec, decorator: Google::Apis::DataflowV1b3::ContainerSpec::Representation property :container_spec_gcs_path, as: 'containerSpecGcsPath' + property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::FlexTemplateRuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::FlexTemplateRuntimeEnvironment::Representation + property :job_name, as: 'jobName' hash :launch_options, as: 'launchOptions' hash :parameters, as: 'parameters' diff --git a/generated/google/apis/dataflow_v1b3/service.rb b/generated/google/apis/dataflow_v1b3/service.rb index 7b8b3b34d..ee95bac2f 100644 --- a/generated/google/apis/dataflow_v1b3/service.rb +++ b/generated/google/apis/dataflow_v1b3/service.rb @@ -1028,6 +1028,13 @@ module Google # regional-endpoints) that contains the job specified by job_id. # @param [String] job_id # The job to get execution details for. + # @param [Fixnum] page_size + # If specified, determines the maximum number of stages to return. If + # unspecified, the service may choose an appropriate default, or may return an + # arbitrarily large number of results. + # @param [String] page_token + # If supplied, this should be the value of next_page_token returned by an + # earlier call. This will cause the next page of results to be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1045,13 +1052,15 @@ 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 get_project_location_job_execution_details(project_id, location, job_id, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_job_execution_details(project_id, location, job_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/executionDetails', options) command.response_representation = Google::Apis::DataflowV1b3::JobExecutionDetails::Representation command.response_class = Google::Apis::DataflowV1b3::JobExecutionDetails command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? command.params['jobId'] = job_id unless job_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) diff --git a/generated/google/apis/networkmanagement_v1beta1.rb b/generated/google/apis/networkmanagement_v1beta1.rb index 5697899ba..9c3ddfe1e 100644 --- a/generated/google/apis/networkmanagement_v1beta1.rb +++ b/generated/google/apis/networkmanagement_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module NetworkmanagementV1beta1 VERSION = 'V1beta1' - REVISION = '20200820' + REVISION = '20200910' # 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/networkmanagement_v1beta1/classes.rb b/generated/google/apis/networkmanagement_v1beta1/classes.rb index 9bac29eea..d2f727b84 100644 --- a/generated/google/apis/networkmanagement_v1beta1/classes.rb +++ b/generated/google/apis/networkmanagement_v1beta1/classes.rb @@ -288,6 +288,11 @@ module Google # @return [String] attr_accessor :name + # The details of probing from the latest run. + # Corresponds to the JSON property `probingDetails` + # @return [Google::Apis::NetworkmanagementV1beta1::ProbingDetails] + attr_accessor :probing_details + # IP Protocol of the test. When not provided, "TCP" is assumed. # Corresponds to the JSON property `protocol` # @return [String] @@ -326,6 +331,7 @@ module Google @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) + @probing_details = args[:probing_details] if args.key?(:probing_details) @protocol = args[:protocol] if args.key?(:protocol) @reachability_details = args[:reachability_details] if args.key?(:reachability_details) @related_projects = args[:related_projects] if args.key?(:related_projects) @@ -1279,6 +1285,68 @@ module Google end end + # The details of probing from the latest run. + class ProbingDetails + include Google::Apis::Core::Hashable + + # Causes that the probing was aborted. + # Corresponds to the JSON property `abortCause` + # @return [String] + attr_accessor :abort_cause + + # For display only. The specification of the endpoints for the test. + # EndpointInfo is derived from source and destination Endpoint and validated by + # the backend data plane model. + # Corresponds to the JSON property `endpointInfo` + # @return [Google::Apis::NetworkmanagementV1beta1::EndpointInfo] + attr_accessor :endpoint_info + + # The `Status` type 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::NetworkmanagementV1beta1::Status] + attr_accessor :error + + # The overall reachability result of the test. + # Corresponds to the JSON property `result` + # @return [String] + attr_accessor :result + + # Number of probes sent. + # Corresponds to the JSON property `sentProbeCount` + # @return [Fixnum] + attr_accessor :sent_probe_count + + # Number of probes that reached destination. + # Corresponds to the JSON property `successfulProbeCount` + # @return [Fixnum] + attr_accessor :successful_probe_count + + # The time the reachability state was verified. + # Corresponds to the JSON property `verifyTime` + # @return [String] + attr_accessor :verify_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @abort_cause = args[:abort_cause] if args.key?(:abort_cause) + @endpoint_info = args[:endpoint_info] if args.key?(:endpoint_info) + @error = args[:error] if args.key?(:error) + @result = args[:result] if args.key?(:result) + @sent_probe_count = args[:sent_probe_count] if args.key?(:sent_probe_count) + @successful_probe_count = args[:successful_probe_count] if args.key?(:successful_probe_count) + @verify_time = args[:verify_time] if args.key?(:verify_time) + end + end + # The details of reachability state from the latest run. class ReachabilityDetails include Google::Apis::Core::Hashable diff --git a/generated/google/apis/networkmanagement_v1beta1/representations.rb b/generated/google/apis/networkmanagement_v1beta1/representations.rb index 02298c6ef..712e690d1 100644 --- a/generated/google/apis/networkmanagement_v1beta1/representations.rb +++ b/generated/google/apis/networkmanagement_v1beta1/representations.rb @@ -190,6 +190,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProbingDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReachabilityDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -319,6 +325,8 @@ module Google property :display_name, as: 'displayName' hash :labels, as: 'labels' property :name, as: 'name' + property :probing_details, as: 'probingDetails', class: Google::Apis::NetworkmanagementV1beta1::ProbingDetails, decorator: Google::Apis::NetworkmanagementV1beta1::ProbingDetails::Representation + property :protocol, as: 'protocol' property :reachability_details, as: 'reachabilityDetails', class: Google::Apis::NetworkmanagementV1beta1::ReachabilityDetails, decorator: Google::Apis::NetworkmanagementV1beta1::ReachabilityDetails::Representation @@ -555,6 +563,21 @@ module Google end end + class ProbingDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :abort_cause, as: 'abortCause' + property :endpoint_info, as: 'endpointInfo', class: Google::Apis::NetworkmanagementV1beta1::EndpointInfo, decorator: Google::Apis::NetworkmanagementV1beta1::EndpointInfo::Representation + + property :error, as: 'error', class: Google::Apis::NetworkmanagementV1beta1::Status, decorator: Google::Apis::NetworkmanagementV1beta1::Status::Representation + + property :result, as: 'result' + property :sent_probe_count, as: 'sentProbeCount' + property :successful_probe_count, as: 'successfulProbeCount' + property :verify_time, as: 'verifyTime' + end + end + class ReachabilityDetails # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb deleted file mode 100644 index cdb0779b5..000000000 --- a/generated/google/apis/plus_v1.rb +++ /dev/null @@ -1,43 +0,0 @@ -# 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/plus_v1/service.rb' -require 'google/apis/plus_v1/classes.rb' -require 'google/apis/plus_v1/representations.rb' - -module Google - module Apis - # Google+ API - # - # Builds on top of the Google+ platform. - # - # @see https://developers.google.com/+/api/ - module PlusV1 - VERSION = 'V1' - REVISION = '20190328' - - # View your basic profile info, including your age range and language - AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' - - # Associate you with your personal info on Google - AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me' - - # View your email address - AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' - - # See your personal info, including any personal info you've made publicly available - AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile' - end - end -end diff --git a/generated/google/apis/plus_v1/classes.rb b/generated/google/apis/plus_v1/classes.rb deleted file mode 100644 index 150f53267..000000000 --- a/generated/google/apis/plus_v1/classes.rb +++ /dev/null @@ -1,2094 +0,0 @@ -# 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 PlusV1 - - # - class Acl - include Google::Apis::Core::Hashable - - # Description of the access granted, suitable for display. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The list of access entries. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Identifies this resource as a collection of access controls. Value: "plus#acl". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class Activity - include Google::Apis::Core::Hashable - - # Identifies who has access to see this activity. - # Corresponds to the JSON property `access` - # @return [Google::Apis::PlusV1::Acl] - attr_accessor :access - - # The person who performed this activity. - # Corresponds to the JSON property `actor` - # @return [Google::Apis::PlusV1::Activity::Actor] - attr_accessor :actor - - # Street address where this activity occurred. - # Corresponds to the JSON property `address` - # @return [String] - attr_accessor :address - - # Additional content added by the person who shared this activity, applicable - # only when resharing an activity. - # Corresponds to the JSON property `annotation` - # @return [String] - attr_accessor :annotation - - # If this activity is a crosspost from another system, this property specifies - # the ID of the original activity. - # Corresponds to the JSON property `crosspostSource` - # @return [String] - attr_accessor :crosspost_source - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # Latitude and longitude where this activity occurred. Format is latitude - # followed by longitude, space separated. - # Corresponds to the JSON property `geocode` - # @return [String] - attr_accessor :geocode - - # The ID of this activity. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Identifies this resource as an activity. Value: "plus#activity". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The location where this activity occurred. - # Corresponds to the JSON property `location` - # @return [Google::Apis::PlusV1::Place] - attr_accessor :location - - # The object of this activity. - # Corresponds to the JSON property `object` - # @return [Google::Apis::PlusV1::Activity::Object] - attr_accessor :object - - # ID of the place where this activity occurred. - # Corresponds to the JSON property `placeId` - # @return [String] - attr_accessor :place_id - - # Name of the place where this activity occurred. - # Corresponds to the JSON property `placeName` - # @return [String] - attr_accessor :place_name - - # The service provider that initially published this activity. - # Corresponds to the JSON property `provider` - # @return [Google::Apis::PlusV1::Activity::Provider] - attr_accessor :provider - - # The time at which this activity was initially published. Formatted as an RFC - # 3339 timestamp. - # Corresponds to the JSON property `published` - # @return [DateTime] - attr_accessor :published - - # Radius, in meters, of the region where this activity occurred, centered at the - # latitude and longitude identified in geocode. - # Corresponds to the JSON property `radius` - # @return [String] - attr_accessor :radius - - # Title of this activity. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # The time at which this activity was last updated. Formatted as an RFC 3339 - # timestamp. - # Corresponds to the JSON property `updated` - # @return [DateTime] - attr_accessor :updated - - # The link to this activity. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # This activity's verb, which indicates the action that was performed. Possible - # values include, but are not limited to, the following values: - # - "post" - Publish content to the stream. - # - "share" - Reshare an activity. - # Corresponds to the JSON property `verb` - # @return [String] - attr_accessor :verb - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @access = args[:access] if args.key?(:access) - @actor = args[:actor] if args.key?(:actor) - @address = args[:address] if args.key?(:address) - @annotation = args[:annotation] if args.key?(:annotation) - @crosspost_source = args[:crosspost_source] if args.key?(:crosspost_source) - @etag = args[:etag] if args.key?(:etag) - @geocode = args[:geocode] if args.key?(:geocode) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @location = args[:location] if args.key?(:location) - @object = args[:object] if args.key?(:object) - @place_id = args[:place_id] if args.key?(:place_id) - @place_name = args[:place_name] if args.key?(:place_name) - @provider = args[:provider] if args.key?(:provider) - @published = args[:published] if args.key?(:published) - @radius = args[:radius] if args.key?(:radius) - @title = args[:title] if args.key?(:title) - @updated = args[:updated] if args.key?(:updated) - @url = args[:url] if args.key?(:url) - @verb = args[:verb] if args.key?(:verb) - end - - # The person who performed this activity. - class Actor - include Google::Apis::Core::Hashable - - # Actor info specific to particular clients. - # Corresponds to the JSON property `clientSpecificActorInfo` - # @return [Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo] - attr_accessor :client_specific_actor_info - - # The name of the actor, suitable for display. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The ID of the actor's Person resource. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The image representation of the actor. - # Corresponds to the JSON property `image` - # @return [Google::Apis::PlusV1::Activity::Actor::Image] - attr_accessor :image - - # An object representation of the individual components of name. - # Corresponds to the JSON property `name` - # @return [Google::Apis::PlusV1::Activity::Actor::Name] - attr_accessor :name - - # The link to the actor's Google profile. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # Verification status of actor. - # Corresponds to the JSON property `verification` - # @return [Google::Apis::PlusV1::Activity::Actor::Verification] - attr_accessor :verification - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) - @display_name = args[:display_name] if args.key?(:display_name) - @id = args[:id] if args.key?(:id) - @image = args[:image] if args.key?(:image) - @name = args[:name] if args.key?(:name) - @url = args[:url] if args.key?(:url) - @verification = args[:verification] if args.key?(:verification) - end - - # Actor info specific to particular clients. - class ClientSpecificActorInfo - include Google::Apis::Core::Hashable - - # Actor info specific to YouTube clients. - # Corresponds to the JSON property `youtubeActorInfo` - # @return [Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo] - attr_accessor :youtube_actor_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) - end - - # Actor info specific to YouTube clients. - class YoutubeActorInfo - include Google::Apis::Core::Hashable - - # ID of the YouTube channel owned by the Actor. - # Corresponds to the JSON property `channelId` - # @return [String] - attr_accessor :channel_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @channel_id = args[:channel_id] if args.key?(:channel_id) - end - end - end - - # The image representation of the actor. - class Image - include Google::Apis::Core::Hashable - - # The URL of the actor's profile photo. To resize the image and crop it to a - # square, append the query string ?sz=x, where x is the dimension in pixels of - # each side. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @url = args[:url] if args.key?(:url) - end - end - - # An object representation of the individual components of name. - class Name - include Google::Apis::Core::Hashable - - # The family name ("last name") of the actor. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # The given name ("first name") of the actor. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @family_name = args[:family_name] if args.key?(:family_name) - @given_name = args[:given_name] if args.key?(:given_name) - end - end - - # Verification status of actor. - class Verification - include Google::Apis::Core::Hashable - - # Verification for one-time or manual processes. - # Corresponds to the JSON property `adHocVerified` - # @return [String] - attr_accessor :ad_hoc_verified - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) - end - end - end - - # The object of this activity. - class Object - include Google::Apis::Core::Hashable - - # If this activity's object is itself another activity, such as when a person - # reshares an activity, this property specifies the original activity's actor. - # Corresponds to the JSON property `actor` - # @return [Google::Apis::PlusV1::Activity::Object::Actor] - attr_accessor :actor - - # The media objects attached to this activity. - # Corresponds to the JSON property `attachments` - # @return [Array] - attr_accessor :attachments - - # The HTML-formatted content, which is suitable for display. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - # The ID of the object. When resharing an activity, this is the ID of the - # activity that is being reshared. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The type of the object. Possible values include, but are not limited to, the - # following values: - # - "note" - Textual content. - # - "activity" - A Google+ activity. - # Corresponds to the JSON property `objectType` - # @return [String] - attr_accessor :object_type - - # The content (text) as provided by the author, which is stored without any HTML - # formatting. When creating or updating an activity, this value must be supplied - # as plain text in the request. - # Corresponds to the JSON property `originalContent` - # @return [String] - attr_accessor :original_content - - # People who +1'd this activity. - # Corresponds to the JSON property `plusoners` - # @return [Google::Apis::PlusV1::Activity::Object::Plusoners] - attr_accessor :plusoners - - # Comments in reply to this activity. - # Corresponds to the JSON property `replies` - # @return [Google::Apis::PlusV1::Activity::Object::Replies] - attr_accessor :replies - - # People who reshared this activity. - # Corresponds to the JSON property `resharers` - # @return [Google::Apis::PlusV1::Activity::Object::Resharers] - attr_accessor :resharers - - # The URL that points to the linked resource. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @actor = args[:actor] if args.key?(:actor) - @attachments = args[:attachments] if args.key?(:attachments) - @content = args[:content] if args.key?(:content) - @id = args[:id] if args.key?(:id) - @object_type = args[:object_type] if args.key?(:object_type) - @original_content = args[:original_content] if args.key?(:original_content) - @plusoners = args[:plusoners] if args.key?(:plusoners) - @replies = args[:replies] if args.key?(:replies) - @resharers = args[:resharers] if args.key?(:resharers) - @url = args[:url] if args.key?(:url) - end - - # If this activity's object is itself another activity, such as when a person - # reshares an activity, this property specifies the original activity's actor. - class Actor - include Google::Apis::Core::Hashable - - # Actor info specific to particular clients. - # Corresponds to the JSON property `clientSpecificActorInfo` - # @return [Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo] - attr_accessor :client_specific_actor_info - - # The original actor's name, which is suitable for display. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # ID of the original actor. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The image representation of the original actor. - # Corresponds to the JSON property `image` - # @return [Google::Apis::PlusV1::Activity::Object::Actor::Image] - attr_accessor :image - - # A link to the original actor's Google profile. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # Verification status of actor. - # Corresponds to the JSON property `verification` - # @return [Google::Apis::PlusV1::Activity::Object::Actor::Verification] - attr_accessor :verification - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) - @display_name = args[:display_name] if args.key?(:display_name) - @id = args[:id] if args.key?(:id) - @image = args[:image] if args.key?(:image) - @url = args[:url] if args.key?(:url) - @verification = args[:verification] if args.key?(:verification) - end - - # Actor info specific to particular clients. - class ClientSpecificActorInfo - include Google::Apis::Core::Hashable - - # Actor info specific to YouTube clients. - # Corresponds to the JSON property `youtubeActorInfo` - # @return [Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo] - attr_accessor :youtube_actor_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) - end - - # Actor info specific to YouTube clients. - class YoutubeActorInfo - include Google::Apis::Core::Hashable - - # ID of the YouTube channel owned by the Actor. - # Corresponds to the JSON property `channelId` - # @return [String] - attr_accessor :channel_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @channel_id = args[:channel_id] if args.key?(:channel_id) - end - end - end - - # The image representation of the original actor. - class Image - include Google::Apis::Core::Hashable - - # A URL that points to a thumbnail photo of the original actor. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @url = args[:url] if args.key?(:url) - end - end - - # Verification status of actor. - class Verification - include Google::Apis::Core::Hashable - - # Verification for one-time or manual processes. - # Corresponds to the JSON property `adHocVerified` - # @return [String] - attr_accessor :ad_hoc_verified - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) - end - end - end - - # - class Attachment - include Google::Apis::Core::Hashable - - # If the attachment is an article, this property contains a snippet of text from - # the article. It can also include descriptions for other types. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - # The title of the attachment, such as a photo caption or an article title. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # If the attachment is a video, the embeddable link. - # Corresponds to the JSON property `embed` - # @return [Google::Apis::PlusV1::Activity::Object::Attachment::Embed] - attr_accessor :embed - - # The full image URL for photo attachments. - # Corresponds to the JSON property `fullImage` - # @return [Google::Apis::PlusV1::Activity::Object::Attachment::FullImage] - attr_accessor :full_image - - # The ID of the attachment. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The preview image for photos or videos. - # Corresponds to the JSON property `image` - # @return [Google::Apis::PlusV1::Activity::Object::Attachment::Image] - attr_accessor :image - - # The type of media object. Possible values include, but are not limited to, the - # following values: - # - "photo" - A photo. - # - "album" - A photo album. - # - "video" - A video. - # - "article" - An article, specified by a link. - # Corresponds to the JSON property `objectType` - # @return [String] - attr_accessor :object_type - - # If the attachment is an album, this property is a list of potential additional - # thumbnails from the album. - # Corresponds to the JSON property `thumbnails` - # @return [Array] - attr_accessor :thumbnails - - # The link to the attachment, which should be of type text/html. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @content = args[:content] if args.key?(:content) - @display_name = args[:display_name] if args.key?(:display_name) - @embed = args[:embed] if args.key?(:embed) - @full_image = args[:full_image] if args.key?(:full_image) - @id = args[:id] if args.key?(:id) - @image = args[:image] if args.key?(:image) - @object_type = args[:object_type] if args.key?(:object_type) - @thumbnails = args[:thumbnails] if args.key?(:thumbnails) - @url = args[:url] if args.key?(:url) - end - - # If the attachment is a video, the embeddable link. - class Embed - include Google::Apis::Core::Hashable - - # Media type of the link. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # URL of the link. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @url = args[:url] if args.key?(:url) - end - end - - # The full image URL for photo attachments. - class FullImage - include Google::Apis::Core::Hashable - - # The height, in pixels, of the linked resource. - # Corresponds to the JSON property `height` - # @return [Fixnum] - attr_accessor :height - - # Media type of the link. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # URL of the image. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # The width, in pixels, of the linked resource. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @height = args[:height] if args.key?(:height) - @type = args[:type] if args.key?(:type) - @url = args[:url] if args.key?(:url) - @width = args[:width] if args.key?(:width) - end - end - - # The preview image for photos or videos. - class Image - include Google::Apis::Core::Hashable - - # The height, in pixels, of the linked resource. - # Corresponds to the JSON property `height` - # @return [Fixnum] - attr_accessor :height - - # Media type of the link. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Image URL. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # The width, in pixels, of the linked resource. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @height = args[:height] if args.key?(:height) - @type = args[:type] if args.key?(:type) - @url = args[:url] if args.key?(:url) - @width = args[:width] if args.key?(:width) - end - end - - # - class Thumbnail - include Google::Apis::Core::Hashable - - # Potential name of the thumbnail. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Image resource. - # Corresponds to the JSON property `image` - # @return [Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Image] - attr_accessor :image - - # URL of the webpage containing the image. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @image = args[:image] if args.key?(:image) - @url = args[:url] if args.key?(:url) - end - - # Image resource. - class Image - include Google::Apis::Core::Hashable - - # The height, in pixels, of the linked resource. - # Corresponds to the JSON property `height` - # @return [Fixnum] - attr_accessor :height - - # Media type of the link. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Image url. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # The width, in pixels, of the linked resource. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @height = args[:height] if args.key?(:height) - @type = args[:type] if args.key?(:type) - @url = args[:url] if args.key?(:url) - @width = args[:width] if args.key?(:width) - end - end - end - end - - # People who +1'd this activity. - class Plusoners - include Google::Apis::Core::Hashable - - # The URL for the collection of people who +1'd this activity. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # Total number of people who +1'd this activity. - # Corresponds to the JSON property `totalItems` - # @return [Fixnum] - attr_accessor :total_items - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @self_link = args[:self_link] if args.key?(:self_link) - @total_items = args[:total_items] if args.key?(:total_items) - end - end - - # Comments in reply to this activity. - class Replies - include Google::Apis::Core::Hashable - - # The URL for the collection of comments in reply to this activity. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # Total number of comments on this activity. - # Corresponds to the JSON property `totalItems` - # @return [Fixnum] - attr_accessor :total_items - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @self_link = args[:self_link] if args.key?(:self_link) - @total_items = args[:total_items] if args.key?(:total_items) - end - end - - # People who reshared this activity. - class Resharers - include Google::Apis::Core::Hashable - - # The URL for the collection of resharers. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # Total number of people who reshared this activity. - # Corresponds to the JSON property `totalItems` - # @return [Fixnum] - attr_accessor :total_items - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @self_link = args[:self_link] if args.key?(:self_link) - @total_items = args[:total_items] if args.key?(:total_items) - end - end - end - - # The service provider that initially published this activity. - class Provider - include Google::Apis::Core::Hashable - - # Name of the service provider. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @title = args[:title] if args.key?(:title) - end - end - end - - # - class ActivityFeed - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ID of this collection of activities. Deprecated. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The activities in this page of results. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Identifies this resource as a collection of activities. Value: "plus# - # activityFeed". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Link to the next page of activities. - # Corresponds to the JSON property `nextLink` - # @return [String] - attr_accessor :next_link - - # 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. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Link to this activity resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # The title of this collection of activities, which is a truncated portion of - # the content. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # The time at which this collection of activities was last updated. Formatted as - # an RFC 3339 timestamp. - # Corresponds to the JSON property `updated` - # @return [DateTime] - attr_accessor :updated - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_link = args[:next_link] if args.key?(:next_link) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @title = args[:title] if args.key?(:title) - @updated = args[:updated] if args.key?(:updated) - end - end - - # - class Comment - include Google::Apis::Core::Hashable - - # The person who posted this comment. - # Corresponds to the JSON property `actor` - # @return [Google::Apis::PlusV1::Comment::Actor] - attr_accessor :actor - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ID of this comment. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The activity this comment replied to. - # Corresponds to the JSON property `inReplyTo` - # @return [Array] - attr_accessor :in_reply_to - - # Identifies this resource as a comment. Value: "plus#comment". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The object of this comment. - # Corresponds to the JSON property `object` - # @return [Google::Apis::PlusV1::Comment::Object] - attr_accessor :object - - # People who +1'd this comment. - # Corresponds to the JSON property `plusoners` - # @return [Google::Apis::PlusV1::Comment::Plusoners] - attr_accessor :plusoners - - # The time at which this comment was initially published. Formatted as an RFC - # 3339 timestamp. - # Corresponds to the JSON property `published` - # @return [DateTime] - attr_accessor :published - - # Link to this comment resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # The time at which this comment was last updated. Formatted as an RFC 3339 - # timestamp. - # Corresponds to the JSON property `updated` - # @return [DateTime] - attr_accessor :updated - - # This comment's verb, indicating what action was performed. Possible values are: - # - # - "post" - Publish content to the stream. - # Corresponds to the JSON property `verb` - # @return [String] - attr_accessor :verb - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @actor = args[:actor] if args.key?(:actor) - @etag = args[:etag] if args.key?(:etag) - @id = args[:id] if args.key?(:id) - @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to) - @kind = args[:kind] if args.key?(:kind) - @object = args[:object] if args.key?(:object) - @plusoners = args[:plusoners] if args.key?(:plusoners) - @published = args[:published] if args.key?(:published) - @self_link = args[:self_link] if args.key?(:self_link) - @updated = args[:updated] if args.key?(:updated) - @verb = args[:verb] if args.key?(:verb) - end - - # The person who posted this comment. - class Actor - include Google::Apis::Core::Hashable - - # Actor info specific to particular clients. - # Corresponds to the JSON property `clientSpecificActorInfo` - # @return [Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo] - attr_accessor :client_specific_actor_info - - # The name of this actor, suitable for display. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The ID of the actor. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The image representation of this actor. - # Corresponds to the JSON property `image` - # @return [Google::Apis::PlusV1::Comment::Actor::Image] - attr_accessor :image - - # A link to the Person resource for this actor. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # Verification status of actor. - # Corresponds to the JSON property `verification` - # @return [Google::Apis::PlusV1::Comment::Actor::Verification] - attr_accessor :verification - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) - @display_name = args[:display_name] if args.key?(:display_name) - @id = args[:id] if args.key?(:id) - @image = args[:image] if args.key?(:image) - @url = args[:url] if args.key?(:url) - @verification = args[:verification] if args.key?(:verification) - end - - # Actor info specific to particular clients. - class ClientSpecificActorInfo - include Google::Apis::Core::Hashable - - # Actor info specific to YouTube clients. - # Corresponds to the JSON property `youtubeActorInfo` - # @return [Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo] - attr_accessor :youtube_actor_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) - end - - # Actor info specific to YouTube clients. - class YoutubeActorInfo - include Google::Apis::Core::Hashable - - # ID of the YouTube channel owned by the Actor. - # Corresponds to the JSON property `channelId` - # @return [String] - attr_accessor :channel_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @channel_id = args[:channel_id] if args.key?(:channel_id) - end - end - end - - # The image representation of this actor. - class Image - include Google::Apis::Core::Hashable - - # The URL of the actor's profile photo. To resize the image and crop it to a - # square, append the query string ?sz=x, where x is the dimension in pixels of - # each side. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @url = args[:url] if args.key?(:url) - end - end - - # Verification status of actor. - class Verification - include Google::Apis::Core::Hashable - - # Verification for one-time or manual processes. - # Corresponds to the JSON property `adHocVerified` - # @return [String] - attr_accessor :ad_hoc_verified - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) - end - end - end - - # - class InReplyTo - include Google::Apis::Core::Hashable - - # The ID of the activity. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The URL of the activity. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @url = args[:url] if args.key?(:url) - end - end - - # The object of this comment. - class Object - include Google::Apis::Core::Hashable - - # The HTML-formatted content, suitable for display. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - # The object type of this comment. Possible values are: - # - "comment" - A comment in reply to an activity. - # Corresponds to the JSON property `objectType` - # @return [String] - attr_accessor :object_type - - # The content (text) as provided by the author, stored without any HTML - # formatting. When creating or updating a comment, this value must be supplied - # as plain text in the request. - # Corresponds to the JSON property `originalContent` - # @return [String] - attr_accessor :original_content - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @content = args[:content] if args.key?(:content) - @object_type = args[:object_type] if args.key?(:object_type) - @original_content = args[:original_content] if args.key?(:original_content) - end - end - - # People who +1'd this comment. - class Plusoners - include Google::Apis::Core::Hashable - - # Total number of people who +1'd this comment. - # Corresponds to the JSON property `totalItems` - # @return [Fixnum] - attr_accessor :total_items - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @total_items = args[:total_items] if args.key?(:total_items) - end - end - end - - # - class CommentFeed - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ID of this collection of comments. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The comments in this page of results. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Identifies this resource as a collection of comments. Value: "plus#commentFeed" - # . - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Link to the next page of activities. - # Corresponds to the JSON property `nextLink` - # @return [String] - attr_accessor :next_link - - # 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. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The title of this collection of comments. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # The time at which this collection of comments was last updated. Formatted as - # an RFC 3339 timestamp. - # Corresponds to the JSON property `updated` - # @return [DateTime] - attr_accessor :updated - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_link = args[:next_link] if args.key?(:next_link) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @title = args[:title] if args.key?(:title) - @updated = args[:updated] if args.key?(:updated) - end - end - - # - class PeopleFeed - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The people in this page of results. Each item includes the id, displayName, - # image, and url for the person. To retrieve additional profile data, see the - # people.get method. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Identifies this resource as a collection of people. Value: "plus#peopleFeed". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # 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. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Link to this resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # The title of this collection of people. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # The total number of people available in this list. The number of people in a - # response might be smaller due to paging. This might not be set for all - # collections. - # Corresponds to the JSON property `totalItems` - # @return [Fixnum] - attr_accessor :total_items - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @title = args[:title] if args.key?(:title) - @total_items = args[:total_items] if args.key?(:total_items) - end - end - - # - class Person - include Google::Apis::Core::Hashable - - # A short biography for this person. - # Corresponds to the JSON property `aboutMe` - # @return [String] - attr_accessor :about_me - - # The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 - # or older. Age is determined from the user's birthday using Western age - # reckoning. - # Corresponds to the JSON property `ageRange` - # @return [Google::Apis::PlusV1::Person::AgeRange] - attr_accessor :age_range - - # The person's date of birth, represented as YYYY-MM-DD. - # Corresponds to the JSON property `birthday` - # @return [String] - attr_accessor :birthday - - # The "bragging rights" line of this person. - # Corresponds to the JSON property `braggingRights` - # @return [String] - attr_accessor :bragging_rights - - # For followers who are visible, the number of people who have added this person - # or page to a circle. - # Corresponds to the JSON property `circledByCount` - # @return [Fixnum] - attr_accessor :circled_by_count - - # The cover photo content. - # Corresponds to the JSON property `cover` - # @return [Google::Apis::PlusV1::Person::Cover] - attr_accessor :cover - - # (this field is not currently used) - # Corresponds to the JSON property `currentLocation` - # @return [String] - attr_accessor :current_location - - # The name of this person, which is suitable for display. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The hosted domain name for the user's Google Apps account. For instance, - # example.com. The plus.profile.emails.read or email scope is needed to get this - # domain name. - # Corresponds to the JSON property `domain` - # @return [String] - attr_accessor :domain - - # A list of email addresses that this person has, including their Google account - # email address, and the public verified email addresses on their Google+ - # profile. The plus.profile.emails.read scope is needed to retrieve these email - # addresses, or the email scope can be used to retrieve just the Google account - # email address. - # Corresponds to the JSON property `emails` - # @return [Array] - attr_accessor :emails - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The person's gender. Possible values include, but are not limited to, the - # following values: - # - "male" - Male gender. - # - "female" - Female gender. - # - "other" - Other. - # Corresponds to the JSON property `gender` - # @return [String] - attr_accessor :gender - - # The ID of this person. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The representation of the person's profile photo. - # Corresponds to the JSON property `image` - # @return [Google::Apis::PlusV1::Person::Image] - attr_accessor :image - - # Whether this user has signed up for Google+. - # Corresponds to the JSON property `isPlusUser` - # @return [Boolean] - attr_accessor :is_plus_user - alias_method :is_plus_user?, :is_plus_user - - # Identifies this resource as a person. Value: "plus#person". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The user's preferred language for rendering. - # Corresponds to the JSON property `language` - # @return [String] - attr_accessor :language - - # An object representation of the individual components of a person's name. - # Corresponds to the JSON property `name` - # @return [Google::Apis::PlusV1::Person::Name] - attr_accessor :name - - # The nickname of this person. - # Corresponds to the JSON property `nickname` - # @return [String] - attr_accessor :nickname - - # Type of person within Google+. Possible values include, but are not limited to, - # the following values: - # - "person" - represents an actual person. - # - "page" - represents a page. - # Corresponds to the JSON property `objectType` - # @return [String] - attr_accessor :object_type - - # The occupation of this person. - # Corresponds to the JSON property `occupation` - # @return [String] - attr_accessor :occupation - - # A list of current or past organizations with which this person is associated. - # Corresponds to the JSON property `organizations` - # @return [Array] - attr_accessor :organizations - - # A list of places where this person has lived. - # Corresponds to the JSON property `placesLived` - # @return [Array] - attr_accessor :places_lived - - # If a Google+ Page, the number of people who have +1'd this page. - # Corresponds to the JSON property `plusOneCount` - # @return [Fixnum] - attr_accessor :plus_one_count - - # The person's relationship status. Possible values include, but are not limited - # to, the following values: - # - "single" - Person is single. - # - "in_a_relationship" - Person is in a relationship. - # - "engaged" - Person is engaged. - # - "married" - Person is married. - # - "its_complicated" - The relationship is complicated. - # - "open_relationship" - Person is in an open relationship. - # - "widowed" - Person is widowed. - # - "in_domestic_partnership" - Person is in a domestic partnership. - # - "in_civil_union" - Person is in a civil union. - # Corresponds to the JSON property `relationshipStatus` - # @return [String] - attr_accessor :relationship_status - - # The person's skills. - # Corresponds to the JSON property `skills` - # @return [String] - attr_accessor :skills - - # The brief description (tagline) of this person. - # Corresponds to the JSON property `tagline` - # @return [String] - attr_accessor :tagline - - # The URL of this person's profile. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # A list of URLs for this person. - # Corresponds to the JSON property `urls` - # @return [Array] - attr_accessor :urls - - # Whether the person or Google+ Page has been verified. - # Corresponds to the JSON property `verified` - # @return [Boolean] - attr_accessor :verified - alias_method :verified?, :verified - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @about_me = args[:about_me] if args.key?(:about_me) - @age_range = args[:age_range] if args.key?(:age_range) - @birthday = args[:birthday] if args.key?(:birthday) - @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights) - @circled_by_count = args[:circled_by_count] if args.key?(:circled_by_count) - @cover = args[:cover] if args.key?(:cover) - @current_location = args[:current_location] if args.key?(:current_location) - @display_name = args[:display_name] if args.key?(:display_name) - @domain = args[:domain] if args.key?(:domain) - @emails = args[:emails] if args.key?(:emails) - @etag = args[:etag] if args.key?(:etag) - @gender = args[:gender] if args.key?(:gender) - @id = args[:id] if args.key?(:id) - @image = args[:image] if args.key?(:image) - @is_plus_user = args[:is_plus_user] if args.key?(:is_plus_user) - @kind = args[:kind] if args.key?(:kind) - @language = args[:language] if args.key?(:language) - @name = args[:name] if args.key?(:name) - @nickname = args[:nickname] if args.key?(:nickname) - @object_type = args[:object_type] if args.key?(:object_type) - @occupation = args[:occupation] if args.key?(:occupation) - @organizations = args[:organizations] if args.key?(:organizations) - @places_lived = args[:places_lived] if args.key?(:places_lived) - @plus_one_count = args[:plus_one_count] if args.key?(:plus_one_count) - @relationship_status = args[:relationship_status] if args.key?(:relationship_status) - @skills = args[:skills] if args.key?(:skills) - @tagline = args[:tagline] if args.key?(:tagline) - @url = args[:url] if args.key?(:url) - @urls = args[:urls] if args.key?(:urls) - @verified = args[:verified] if args.key?(:verified) - end - - # The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 - # or older. Age is determined from the user's birthday using Western age - # reckoning. - class AgeRange - include Google::Apis::Core::Hashable - - # The age range's upper bound, if any. Possible values include, but are not - # limited to, the following: - # - "17" - for age 17 - # - "20" - for age 20 - # Corresponds to the JSON property `max` - # @return [Fixnum] - attr_accessor :max - - # The age range's lower bound, if any. Possible values include, but are not - # limited to, the following: - # - "21" - for age 21 - # - "18" - for age 18 - # Corresponds to the JSON property `min` - # @return [Fixnum] - attr_accessor :min - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @max = args[:max] if args.key?(:max) - @min = args[:min] if args.key?(:min) - end - end - - # The cover photo content. - class Cover - include Google::Apis::Core::Hashable - - # Extra information about the cover photo. - # Corresponds to the JSON property `coverInfo` - # @return [Google::Apis::PlusV1::Person::Cover::CoverInfo] - attr_accessor :cover_info - - # The person's primary cover image. - # Corresponds to the JSON property `coverPhoto` - # @return [Google::Apis::PlusV1::Person::Cover::CoverPhoto] - attr_accessor :cover_photo - - # The layout of the cover art. Possible values include, but are not limited to, - # the following values: - # - "banner" - One large image banner. - # Corresponds to the JSON property `layout` - # @return [String] - attr_accessor :layout - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cover_info = args[:cover_info] if args.key?(:cover_info) - @cover_photo = args[:cover_photo] if args.key?(:cover_photo) - @layout = args[:layout] if args.key?(:layout) - end - - # Extra information about the cover photo. - class CoverInfo - include Google::Apis::Core::Hashable - - # The difference between the left position of the cover image and the actual - # displayed cover image. Only valid for banner layout. - # Corresponds to the JSON property `leftImageOffset` - # @return [Fixnum] - attr_accessor :left_image_offset - - # The difference between the top position of the cover image and the actual - # displayed cover image. Only valid for banner layout. - # Corresponds to the JSON property `topImageOffset` - # @return [Fixnum] - attr_accessor :top_image_offset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @left_image_offset = args[:left_image_offset] if args.key?(:left_image_offset) - @top_image_offset = args[:top_image_offset] if args.key?(:top_image_offset) - end - end - - # The person's primary cover image. - class CoverPhoto - include Google::Apis::Core::Hashable - - # The height of the image. - # Corresponds to the JSON property `height` - # @return [Fixnum] - attr_accessor :height - - # The URL of the image. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # The width of the image. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @height = args[:height] if args.key?(:height) - @url = args[:url] if args.key?(:url) - @width = args[:width] if args.key?(:width) - end - end - end - - # - class Email - include Google::Apis::Core::Hashable - - # The type of address. Possible values include, but are not limited to, the - # following values: - # - "account" - Google account email address. - # - "home" - Home email address. - # - "work" - Work email address. - # - "other" - Other. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The email address. - # 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) - @type = args[:type] if args.key?(:type) - @value = args[:value] if args.key?(:value) - end - end - - # The representation of the person's profile photo. - class Image - include Google::Apis::Core::Hashable - - # Whether the person's profile photo is the default one - # Corresponds to the JSON property `isDefault` - # @return [Boolean] - attr_accessor :is_default - alias_method :is_default?, :is_default - - # The URL of the person's profile photo. To resize the image and crop it to a - # square, append the query string ?sz=x, where x is the dimension in pixels of - # each side. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @is_default = args[:is_default] if args.key?(:is_default) - @url = args[:url] if args.key?(:url) - end - end - - # An object representation of the individual components of a person's name. - class Name - include Google::Apis::Core::Hashable - - # The family name (last name) of this person. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # The full name of this person, including middle names, suffixes, etc. - # Corresponds to the JSON property `formatted` - # @return [String] - attr_accessor :formatted - - # The given name (first name) of this person. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - # The honorific prefixes (such as "Dr." or "Mrs.") for this person. - # Corresponds to the JSON property `honorificPrefix` - # @return [String] - attr_accessor :honorific_prefix - - # The honorific suffixes (such as "Jr.") for this person. - # Corresponds to the JSON property `honorificSuffix` - # @return [String] - attr_accessor :honorific_suffix - - # The middle name of this person. - # Corresponds to the JSON property `middleName` - # @return [String] - attr_accessor :middle_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @family_name = args[:family_name] if args.key?(:family_name) - @formatted = args[:formatted] if args.key?(:formatted) - @given_name = args[:given_name] if args.key?(:given_name) - @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix) - @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix) - @middle_name = args[:middle_name] if args.key?(:middle_name) - end - end - - # - class Organization - include Google::Apis::Core::Hashable - - # The department within the organization. Deprecated. - # Corresponds to the JSON property `department` - # @return [String] - attr_accessor :department - - # A short description of the person's role in this organization. Deprecated. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The date that the person left this organization. - # Corresponds to the JSON property `endDate` - # @return [String] - attr_accessor :end_date - - # The location of this organization. Deprecated. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The name of the organization. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # If "true", indicates this organization is the person's primary one, which is - # typically interpreted as the current one. - # Corresponds to the JSON property `primary` - # @return [Boolean] - attr_accessor :primary - alias_method :primary?, :primary - - # The date that the person joined this organization. - # Corresponds to the JSON property `startDate` - # @return [String] - attr_accessor :start_date - - # The person's job title or role within the organization. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # The type of organization. Possible values include, but are not limited to, the - # following values: - # - "work" - Work. - # - "school" - School. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @department = args[:department] if args.key?(:department) - @description = args[:description] if args.key?(:description) - @end_date = args[:end_date] if args.key?(:end_date) - @location = args[:location] if args.key?(:location) - @name = args[:name] if args.key?(:name) - @primary = args[:primary] if args.key?(:primary) - @start_date = args[:start_date] if args.key?(:start_date) - @title = args[:title] if args.key?(:title) - @type = args[:type] if args.key?(:type) - end - end - - # - class PlacesLived - include Google::Apis::Core::Hashable - - # If "true", this place of residence is this person's primary residence. - # Corresponds to the JSON property `primary` - # @return [Boolean] - attr_accessor :primary - alias_method :primary?, :primary - - # A place where this person has lived. For example: "Seattle, WA", "Near Toronto" - # . - # 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) - @primary = args[:primary] if args.key?(:primary) - @value = args[:value] if args.key?(:value) - end - end - - # - class Url - include Google::Apis::Core::Hashable - - # The label of the URL. - # Corresponds to the JSON property `label` - # @return [String] - attr_accessor :label - - # The type of URL. Possible values include, but are not limited to, the - # following values: - # - "otherProfile" - URL for another profile. - # - "contributor" - URL to a site for which this person is a contributor. - # - "website" - URL for this Google+ Page's primary website. - # - "other" - Other URL. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The URL value. - # 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) - @label = args[:label] if args.key?(:label) - @type = args[:type] if args.key?(:type) - @value = args[:value] if args.key?(:value) - end - end - end - - # - class Place - include Google::Apis::Core::Hashable - - # The physical address of the place. - # Corresponds to the JSON property `address` - # @return [Google::Apis::PlusV1::Place::Address] - attr_accessor :address - - # The display name of the place. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The id of the place. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Identifies this resource as a place. Value: "plus#place". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The position of the place. - # Corresponds to the JSON property `position` - # @return [Google::Apis::PlusV1::Place::Position] - attr_accessor :position - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @address = args[:address] if args.key?(:address) - @display_name = args[:display_name] if args.key?(:display_name) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @position = args[:position] if args.key?(:position) - end - - # The physical address of the place. - class Address - include Google::Apis::Core::Hashable - - # The formatted address for display. - # Corresponds to the JSON property `formatted` - # @return [String] - attr_accessor :formatted - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @formatted = args[:formatted] if args.key?(:formatted) - end - end - - # The position of the place. - class Position - include Google::Apis::Core::Hashable - - # The latitude of this position. - # Corresponds to the JSON property `latitude` - # @return [Float] - attr_accessor :latitude - - # The longitude of this position. - # Corresponds to the JSON property `longitude` - # @return [Float] - attr_accessor :longitude - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @latitude = args[:latitude] if args.key?(:latitude) - @longitude = args[:longitude] if args.key?(:longitude) - end - end - end - - # - class PlusAclentryResource - include Google::Apis::Core::Hashable - - # A descriptive name for this entry. Suitable for display. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The ID of the entry. For entries of type "person" or "circle", this is the ID - # of the resource. For other types, this property is not set. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The type of entry describing to whom access is granted. Possible values are: - # - "person" - Access to an individual. - # - "circle" - Access to members of a circle. - # - "myCircles" - Access to members of all the person's circles. - # - "extendedCircles" - Access to members of all the person's circles, plus all - # of the people in their circles. - # - "domain" - Access to members of the person's Google Apps domain. - # - "public" - Access to anyone on the web. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @display_name = args[:display_name] if args.key?(:display_name) - @id = args[:id] if args.key?(:id) - @type = args[:type] if args.key?(:type) - end - end - end - end -end diff --git a/generated/google/apis/plus_v1/representations.rb b/generated/google/apis/plus_v1/representations.rb deleted file mode 100644 index 7b4241672..000000000 --- a/generated/google/apis/plus_v1/representations.rb +++ /dev/null @@ -1,907 +0,0 @@ -# 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 PlusV1 - - class Acl - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Activity - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Actor - class Representation < Google::Apis::Core::JsonRepresentation; end - - class ClientSpecificActorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - class YoutubeActorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Image - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Name - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Verification - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Object - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Actor - class Representation < Google::Apis::Core::JsonRepresentation; end - - class ClientSpecificActorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - class YoutubeActorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Image - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Verification - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Attachment - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Embed - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FullImage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Image - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Thumbnail - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Image - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Plusoners - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Replies - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Resharers - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Provider - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class ActivityFeed - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Comment - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Actor - class Representation < Google::Apis::Core::JsonRepresentation; end - - class ClientSpecificActorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - class YoutubeActorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Image - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Verification - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class InReplyTo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Object - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Plusoners - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class CommentFeed - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PeopleFeed - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Person - class Representation < Google::Apis::Core::JsonRepresentation; end - - class AgeRange - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Cover - class Representation < Google::Apis::Core::JsonRepresentation; end - - class CoverInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CoverPhoto - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Email - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Image - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Name - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Organization - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PlacesLived - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Url - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class Place - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Address - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Position - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class PlusAclentryResource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Acl - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - collection :items, as: 'items', class: Google::Apis::PlusV1::PlusAclentryResource, decorator: Google::Apis::PlusV1::PlusAclentryResource::Representation - - property :kind, as: 'kind' - end - end - - class Activity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :access, as: 'access', class: Google::Apis::PlusV1::Acl, decorator: Google::Apis::PlusV1::Acl::Representation - - property :actor, as: 'actor', class: Google::Apis::PlusV1::Activity::Actor, decorator: Google::Apis::PlusV1::Activity::Actor::Representation - - property :address, as: 'address' - property :annotation, as: 'annotation' - property :crosspost_source, as: 'crosspostSource' - property :etag, as: 'etag' - property :geocode, as: 'geocode' - property :id, as: 'id' - property :kind, as: 'kind' - property :location, as: 'location', class: Google::Apis::PlusV1::Place, decorator: Google::Apis::PlusV1::Place::Representation - - property :object, as: 'object', class: Google::Apis::PlusV1::Activity::Object, decorator: Google::Apis::PlusV1::Activity::Object::Representation - - property :place_id, as: 'placeId' - property :place_name, as: 'placeName' - property :provider, as: 'provider', class: Google::Apis::PlusV1::Activity::Provider, decorator: Google::Apis::PlusV1::Activity::Provider::Representation - - property :published, as: 'published', type: DateTime - - property :radius, as: 'radius' - property :title, as: 'title' - property :updated, as: 'updated', type: DateTime - - property :url, as: 'url' - property :verb, as: 'verb' - end - - class Actor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::Representation - - property :display_name, as: 'displayName' - property :id, as: 'id' - property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Actor::Image, decorator: Google::Apis::PlusV1::Activity::Actor::Image::Representation - - property :name, as: 'name', class: Google::Apis::PlusV1::Activity::Actor::Name, decorator: Google::Apis::PlusV1::Activity::Actor::Name::Representation - - property :url, as: 'url' - property :verification, as: 'verification', class: Google::Apis::PlusV1::Activity::Actor::Verification, decorator: Google::Apis::PlusV1::Activity::Actor::Verification::Representation - - end - - class ClientSpecificActorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation - - end - - class YoutubeActorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :channel_id, as: 'channelId' - end - end - end - - class Image - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - end - end - - class Name - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :family_name, as: 'familyName' - property :given_name, as: 'givenName' - end - end - - class Verification - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ad_hoc_verified, as: 'adHocVerified' - end - end - end - - class Object - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :actor, as: 'actor', class: Google::Apis::PlusV1::Activity::Object::Actor, decorator: Google::Apis::PlusV1::Activity::Object::Actor::Representation - - collection :attachments, as: 'attachments', class: Google::Apis::PlusV1::Activity::Object::Attachment, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Representation - - property :content, as: 'content' - property :id, as: 'id' - property :object_type, as: 'objectType' - property :original_content, as: 'originalContent' - property :plusoners, as: 'plusoners', class: Google::Apis::PlusV1::Activity::Object::Plusoners, decorator: Google::Apis::PlusV1::Activity::Object::Plusoners::Representation - - property :replies, as: 'replies', class: Google::Apis::PlusV1::Activity::Object::Replies, decorator: Google::Apis::PlusV1::Activity::Object::Replies::Representation - - property :resharers, as: 'resharers', class: Google::Apis::PlusV1::Activity::Object::Resharers, decorator: Google::Apis::PlusV1::Activity::Object::Resharers::Representation - - property :url, as: 'url' - end - - class Actor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::Representation - - property :display_name, as: 'displayName' - property :id, as: 'id' - property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Object::Actor::Image, decorator: Google::Apis::PlusV1::Activity::Object::Actor::Image::Representation - - property :url, as: 'url' - property :verification, as: 'verification', class: Google::Apis::PlusV1::Activity::Object::Actor::Verification, decorator: Google::Apis::PlusV1::Activity::Object::Actor::Verification::Representation - - end - - class ClientSpecificActorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation - - end - - class YoutubeActorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :channel_id, as: 'channelId' - end - end - end - - class Image - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - end - end - - class Verification - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ad_hoc_verified, as: 'adHocVerified' - end - end - end - - class Attachment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, as: 'content' - property :display_name, as: 'displayName' - property :embed, as: 'embed', class: Google::Apis::PlusV1::Activity::Object::Attachment::Embed, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Embed::Representation - - property :full_image, as: 'fullImage', class: Google::Apis::PlusV1::Activity::Object::Attachment::FullImage, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::FullImage::Representation - - property :id, as: 'id' - property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Object::Attachment::Image, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Image::Representation - - property :object_type, as: 'objectType' - collection :thumbnails, as: 'thumbnails', class: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Representation - - property :url, as: 'url' - end - - class Embed - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :url, as: 'url' - end - end - - class FullImage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :height, as: 'height' - property :type, as: 'type' - property :url, as: 'url' - property :width, as: 'width' - end - end - - class Image - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :height, as: 'height' - property :type, as: 'type' - property :url, as: 'url' - property :width, as: 'width' - end - end - - class Thumbnail - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Image, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Image::Representation - - property :url, as: 'url' - end - - class Image - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :height, as: 'height' - property :type, as: 'type' - property :url, as: 'url' - property :width, as: 'width' - end - end - end - end - - class Plusoners - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :self_link, as: 'selfLink' - property :total_items, as: 'totalItems' - end - end - - class Replies - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :self_link, as: 'selfLink' - property :total_items, as: 'totalItems' - end - end - - class Resharers - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :self_link, as: 'selfLink' - property :total_items, as: 'totalItems' - end - end - end - - class Provider - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' - end - end - end - - class ActivityFeed - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - property :id, as: 'id' - collection :items, as: 'items', class: Google::Apis::PlusV1::Activity, decorator: Google::Apis::PlusV1::Activity::Representation - - property :kind, as: 'kind' - property :next_link, as: 'nextLink' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :title, as: 'title' - property :updated, as: 'updated', type: DateTime - - end - end - - class Comment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :actor, as: 'actor', class: Google::Apis::PlusV1::Comment::Actor, decorator: Google::Apis::PlusV1::Comment::Actor::Representation - - property :etag, as: 'etag' - property :id, as: 'id' - collection :in_reply_to, as: 'inReplyTo', class: Google::Apis::PlusV1::Comment::InReplyTo, decorator: Google::Apis::PlusV1::Comment::InReplyTo::Representation - - property :kind, as: 'kind' - property :object, as: 'object', class: Google::Apis::PlusV1::Comment::Object, decorator: Google::Apis::PlusV1::Comment::Object::Representation - - property :plusoners, as: 'plusoners', class: Google::Apis::PlusV1::Comment::Plusoners, decorator: Google::Apis::PlusV1::Comment::Plusoners::Representation - - property :published, as: 'published', type: DateTime - - property :self_link, as: 'selfLink' - property :updated, as: 'updated', type: DateTime - - property :verb, as: 'verb' - end - - class Actor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::Representation - - property :display_name, as: 'displayName' - property :id, as: 'id' - property :image, as: 'image', class: Google::Apis::PlusV1::Comment::Actor::Image, decorator: Google::Apis::PlusV1::Comment::Actor::Image::Representation - - property :url, as: 'url' - property :verification, as: 'verification', class: Google::Apis::PlusV1::Comment::Actor::Verification, decorator: Google::Apis::PlusV1::Comment::Actor::Verification::Representation - - end - - class ClientSpecificActorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation - - end - - class YoutubeActorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :channel_id, as: 'channelId' - end - end - end - - class Image - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - end - end - - class Verification - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ad_hoc_verified, as: 'adHocVerified' - end - end - end - - class InReplyTo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :url, as: 'url' - end - end - - class Object - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, as: 'content' - property :object_type, as: 'objectType' - property :original_content, as: 'originalContent' - end - end - - class Plusoners - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :total_items, as: 'totalItems' - end - end - end - - class CommentFeed - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - property :id, as: 'id' - collection :items, as: 'items', class: Google::Apis::PlusV1::Comment, decorator: Google::Apis::PlusV1::Comment::Representation - - property :kind, as: 'kind' - property :next_link, as: 'nextLink' - property :next_page_token, as: 'nextPageToken' - property :title, as: 'title' - property :updated, as: 'updated', type: DateTime - - end - end - - class PeopleFeed - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::PlusV1::Person, decorator: Google::Apis::PlusV1::Person::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :title, as: 'title' - property :total_items, as: 'totalItems' - end - end - - class Person - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :about_me, as: 'aboutMe' - property :age_range, as: 'ageRange', class: Google::Apis::PlusV1::Person::AgeRange, decorator: Google::Apis::PlusV1::Person::AgeRange::Representation - - property :birthday, as: 'birthday' - property :bragging_rights, as: 'braggingRights' - property :circled_by_count, as: 'circledByCount' - property :cover, as: 'cover', class: Google::Apis::PlusV1::Person::Cover, decorator: Google::Apis::PlusV1::Person::Cover::Representation - - property :current_location, as: 'currentLocation' - property :display_name, as: 'displayName' - property :domain, as: 'domain' - collection :emails, as: 'emails', class: Google::Apis::PlusV1::Person::Email, decorator: Google::Apis::PlusV1::Person::Email::Representation - - property :etag, as: 'etag' - property :gender, as: 'gender' - property :id, as: 'id' - property :image, as: 'image', class: Google::Apis::PlusV1::Person::Image, decorator: Google::Apis::PlusV1::Person::Image::Representation - - property :is_plus_user, as: 'isPlusUser' - property :kind, as: 'kind' - property :language, as: 'language' - property :name, as: 'name', class: Google::Apis::PlusV1::Person::Name, decorator: Google::Apis::PlusV1::Person::Name::Representation - - property :nickname, as: 'nickname' - property :object_type, as: 'objectType' - property :occupation, as: 'occupation' - collection :organizations, as: 'organizations', class: Google::Apis::PlusV1::Person::Organization, decorator: Google::Apis::PlusV1::Person::Organization::Representation - - collection :places_lived, as: 'placesLived', class: Google::Apis::PlusV1::Person::PlacesLived, decorator: Google::Apis::PlusV1::Person::PlacesLived::Representation - - property :plus_one_count, as: 'plusOneCount' - property :relationship_status, as: 'relationshipStatus' - property :skills, as: 'skills' - property :tagline, as: 'tagline' - property :url, as: 'url' - collection :urls, as: 'urls', class: Google::Apis::PlusV1::Person::Url, decorator: Google::Apis::PlusV1::Person::Url::Representation - - property :verified, as: 'verified' - end - - class AgeRange - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max, as: 'max' - property :min, as: 'min' - end - end - - class Cover - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cover_info, as: 'coverInfo', class: Google::Apis::PlusV1::Person::Cover::CoverInfo, decorator: Google::Apis::PlusV1::Person::Cover::CoverInfo::Representation - - property :cover_photo, as: 'coverPhoto', class: Google::Apis::PlusV1::Person::Cover::CoverPhoto, decorator: Google::Apis::PlusV1::Person::Cover::CoverPhoto::Representation - - property :layout, as: 'layout' - end - - class CoverInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :left_image_offset, as: 'leftImageOffset' - property :top_image_offset, as: 'topImageOffset' - end - end - - class CoverPhoto - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :height, as: 'height' - property :url, as: 'url' - property :width, as: 'width' - end - end - end - - class Email - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :value, as: 'value' - end - end - - class Image - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :is_default, as: 'isDefault' - property :url, as: 'url' - end - end - - class Name - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :family_name, as: 'familyName' - property :formatted, as: 'formatted' - property :given_name, as: 'givenName' - property :honorific_prefix, as: 'honorificPrefix' - property :honorific_suffix, as: 'honorificSuffix' - property :middle_name, as: 'middleName' - end - end - - class Organization - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :department, as: 'department' - property :description, as: 'description' - property :end_date, as: 'endDate' - property :location, as: 'location' - property :name, as: 'name' - property :primary, as: 'primary' - property :start_date, as: 'startDate' - property :title, as: 'title' - property :type, as: 'type' - end - end - - class PlacesLived - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :primary, as: 'primary' - property :value, as: 'value' - end - end - - class Url - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :label, as: 'label' - property :type, as: 'type' - property :value, as: 'value' - end - end - end - - class Place - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :address, as: 'address', class: Google::Apis::PlusV1::Place::Address, decorator: Google::Apis::PlusV1::Place::Address::Representation - - property :display_name, as: 'displayName' - property :id, as: 'id' - property :kind, as: 'kind' - property :position, as: 'position', class: Google::Apis::PlusV1::Place::Position, decorator: Google::Apis::PlusV1::Place::Position::Representation - - end - - class Address - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :formatted, as: 'formatted' - end - end - - class Position - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :latitude, as: 'latitude' - property :longitude, as: 'longitude' - end - end - end - - class PlusAclentryResource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_name, as: 'displayName' - property :id, as: 'id' - property :type, as: 'type' - end - end - end - end -end diff --git a/generated/google/apis/plus_v1/service.rb b/generated/google/apis/plus_v1/service.rb deleted file mode 100644 index 914a9345e..000000000 --- a/generated/google/apis/plus_v1/service.rb +++ /dev/null @@ -1,451 +0,0 @@ -# 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 PlusV1 - # Google+ API - # - # Builds on top of the Google+ platform. - # - # @example - # require 'google/apis/plus_v1' - # - # Plus = Google::Apis::PlusV1 # Alias the module - # service = Plus::PlusService.new - # - # @see https://developers.google.com/+/api/ - class PlusService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'plus/v1/') - @batch_path = 'batch/plus/v1' - end - - # Shut down. See https://developers.google.com/+/api-shutdown for more details. - # @param [String] activity_id - # The ID of the activity to get. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::Activity] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::Activity] - # - # @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_activity(activity_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'activities/{activityId}', options) - command.response_representation = Google::Apis::PlusV1::Activity::Representation - command.response_class = Google::Apis::PlusV1::Activity - command.params['activityId'] = activity_id unless activity_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 - - # Shut down. See https://developers.google.com/+/api-shutdown for more details. - # @param [String] user_id - # The ID of the user to get activities for. The special value "me" can be used - # to indicate the authenticated user. - # @param [String] collection - # The collection of activities to list. - # @param [Fixnum] max_results - # The maximum number of activities to include in the response, which is used for - # paging. For any response, the actual number returned might be less than the - # specified maxResults. - # @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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::ActivityFeed] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::ActivityFeed] - # - # @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_activities(user_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'people/{userId}/activities/{collection}', options) - command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation - command.response_class = Google::Apis::PlusV1::ActivityFeed - command.params['userId'] = user_id unless user_id.nil? - command.params['collection'] = collection unless collection.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 - - # Shut down. See https://developers.google.com/+/api-shutdown for more details. - # @param [String] query - # Full-text search query string. - # @param [String] language - # Specify the preferred language to search with. See search language codes for - # available values. - # @param [Fixnum] max_results - # The maximum number of activities to include in the response, which is used for - # paging. For any response, the actual number returned might be less than the - # specified maxResults. - # @param [String] order_by - # Specifies how to order search results. - # @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. This token can be of any length. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::ActivityFeed] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::ActivityFeed] - # - # @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_activities(query, language: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'activities', options) - command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation - command.response_class = Google::Apis::PlusV1::ActivityFeed - command.query['language'] = language unless language.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['query'] = query unless query.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 - - # Shut down. See https://developers.google.com/+/api-shutdown for more details. - # @param [String] comment_id - # The ID of the comment to get. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::Comment] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::Comment] - # - # @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_comment(comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'comments/{commentId}', options) - command.response_representation = Google::Apis::PlusV1::Comment::Representation - command.response_class = Google::Apis::PlusV1::Comment - command.params['commentId'] = comment_id unless comment_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 - - # Shut down. See https://developers.google.com/+/api-shutdown for more details. - # @param [String] activity_id - # The ID of the activity to get comments for. - # @param [Fixnum] max_results - # The maximum number of comments to include in the response, which is used for - # paging. For any response, the actual number returned might be less than the - # specified maxResults. - # @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] sort_order - # The order in which to sort the list of comments. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::CommentFeed] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::CommentFeed] - # - # @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_comments(activity_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'activities/{activityId}/comments', options) - command.response_representation = Google::Apis::PlusV1::CommentFeed::Representation - command.response_class = Google::Apis::PlusV1::CommentFeed - command.params['activityId'] = activity_id unless activity_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['sortOrder'] = sort_order unless sort_order.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 - - # Get a person's profile. If your app uses scope https://www.googleapis.com/auth/ - # plus.login, this method is guaranteed to return ageRange and language. - # @param [String] user_id - # The ID of the person to get the profile for. The special value "me" can be - # used to indicate the authenticated user. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::Person] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::Person] - # - # @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_person(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'people/{userId}', options) - command.response_representation = Google::Apis::PlusV1::Person::Representation - command.response_class = Google::Apis::PlusV1::Person - 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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all of the people in the specified collection. - # @param [String] user_id - # Get the collection of people for the person identified. Use "me" to indicate - # the authenticated user. - # @param [String] collection - # The collection of people to list. - # @param [Fixnum] max_results - # The maximum number of people to include in the response, which is used for - # paging. For any response, the actual number returned might be less than the - # specified maxResults. - # @param [String] order_by - # The order to return people in. - # @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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::PeopleFeed] - # - # @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_people(user_id, collection, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'people/{userId}/people/{collection}', options) - command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation - command.response_class = Google::Apis::PlusV1::PeopleFeed - command.params['userId'] = user_id unless user_id.nil? - command.params['collection'] = collection unless collection.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Shut down. See https://developers.google.com/+/api-shutdown for more details. - # @param [String] activity_id - # The ID of the activity to get the list of people for. - # @param [String] collection - # The collection of people to list. - # @param [Fixnum] max_results - # The maximum number of people to include in the response, which is used for - # paging. For any response, the actual number returned might be less than the - # specified maxResults. - # @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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::PeopleFeed] - # - # @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_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options) - command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation - command.response_class = Google::Apis::PlusV1::PeopleFeed - command.params['activityId'] = activity_id unless activity_id.nil? - command.params['collection'] = collection unless collection.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 - - # Shut down. See https://developers.google.com/+/api-shutdown for more details. - # @param [String] query - # Specify a query string for full text search of public text in all profiles. - # @param [String] language - # Specify the preferred language to search with. See search language codes for - # available values. - # @param [Fixnum] max_results - # The maximum number of people to include in the response, which is used for - # paging. For any response, the actual number returned might be less than the - # specified maxResults. - # @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. This token can be of any length. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PlusV1::PeopleFeed] - # - # @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_people(query, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'people', options) - command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation - command.response_class = Google::Apis::PlusV1::PeopleFeed - command.query['language'] = language unless language.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['query'] = query unless query.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 - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 278f7b46d..e291ecd3b 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200818' + REVISION = '20200915' # 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/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index 1397e5d40..ffd36a485 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -34,7 +34,7 @@ module Google # @return [Google::Apis::ServiceconsumermanagementV1::TenantProjectConfig] attr_accessor :project_config - # Tag of the added project. Must be less than 128 characters. Required. + # Required. Tag of the added project. Must be less than 128 characters. Required. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -137,7 +137,7 @@ module Google # @return [Google::Apis::ServiceconsumermanagementV1::TenantProjectConfig] attr_accessor :project_config - # Tag of the project. Must be less than 128 characters. Required. + # Required. Tag of the project. Must be less than 128 characters. Required. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -171,8 +171,8 @@ module Google # @return [String] attr_accessor :reserved_resource - # Tag of the tenant resource after attachment. Must be less than 128 characters. - # Required. + # Required. Tag of the tenant resource after attachment. Must be less than 128 + # characters. Required. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -805,7 +805,7 @@ module Google class DeleteTenantProjectRequest include Google::Apis::Core::Hashable - # Tag of the resource within the tenancy unit. + # Required. Tag of the resource within the tenancy unit. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -2462,7 +2462,7 @@ module Google class RemoveTenantProjectRequest include Google::Apis::Core::Hashable - # Tag of the resource within the tenancy unit. + # Required. Tag of the resource within the tenancy unit. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -3069,13 +3069,13 @@ module Google class TenancyUnit include Google::Apis::Core::Hashable - # @OutputOnly Cloud resource name of the consumer of this service. For example ' - # projects/123456'. + # Output only. @OutputOnly Cloud resource name of the consumer of this service. + # For example 'projects/123456'. # Corresponds to the JSON property `consumer` # @return [String] attr_accessor :consumer - # @OutputOnly The time this tenancy unit was created. + # Output only. @OutputOnly The time this tenancy unit was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -3198,8 +3198,8 @@ module Google class TenantResource include Google::Apis::Core::Hashable - # @OutputOnly Identifier of the tenant resource. For cloud projects, it is in - # the form 'projects/`number`'. For example 'projects/123456'. + # Output only. @OutputOnly Identifier of the tenant resource. For cloud projects, + # it is in the form 'projects/`number`'. For example 'projects/123456'. # Corresponds to the JSON property `resource` # @return [String] attr_accessor :resource @@ -3281,7 +3281,7 @@ module Google class UndeleteTenantProjectRequest include Google::Apis::Core::Hashable - # Tag of the resource within the tenancy unit. + # Required. Tag of the resource within the tenancy unit. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag diff --git a/generated/google/apis/serviceconsumermanagement_v1/service.rb b/generated/google/apis/serviceconsumermanagement_v1/service.rb index b1dafa455..3bc737737 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/service.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/service.rb @@ -199,8 +199,8 @@ module Google # Search tenancy units for a managed service. # @param [String] parent - # Service for which search is performed. services/`service` `service` the name - # of a service, for example 'service.googleapis.com'. + # Required. Service for which search is performed. services/`service` `service` + # the name of a service, for example 'service.googleapis.com'. # @param [Fixnum] page_size # Optional. The maximum number of results returned by this request. Currently, # the default maximum is set to 1000. If `page_size` isn't provided or the size @@ -257,8 +257,8 @@ module Google # resolve them before you can make another call to `AddTenantProject` with the # same tag. Operation. # @param [String] parent - # Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/ - # 12345/tenancyUnits/abcd'. + # Required. Name of the tenancy unit. Such as 'services/service.googleapis.com/ + # projects/12345/tenancyUnits/abcd'. # @param [Google::Apis::ServiceconsumermanagementV1::AddTenantProjectRequest] add_tenant_project_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -303,8 +303,8 @@ module Google # isn't supported. The operation fails if any of the steps fail, but no rollback # of already applied configuration changes is attempted. Operation. # @param [String] name - # Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/ - # 12345/tenancyUnits/abcd'. + # Required. Name of the tenancy unit. Such as 'services/service.googleapis.com/ + # projects/12345/tenancyUnits/abcd'. # @param [Google::Apis::ServiceconsumermanagementV1::ApplyTenantProjectConfigRequest] apply_tenant_project_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -345,8 +345,8 @@ module Google # of that project. These two requirements are already met if the project is # reserved by calling `AddTenantProject`. Operation. # @param [String] name - # Name of the tenancy unit that the project will be attached to. Such as ' - # services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. + # Required. Name of the tenancy unit that the project will be attached to. Such + # as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. # @param [Google::Apis::ServiceconsumermanagementV1::AttachTenantProjectRequest] attach_tenant_project_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -382,11 +382,12 @@ module Google # not have tenant_resources field set and ListTenancyUnits has to be used to get # a complete TenancyUnit with all fields populated. # @param [String] parent - # services/`service`/`collection id`/`resource id` `collection id` is the cloud - # resource collection type representing the service consumer, for example ' - # projects', or 'organizations'. `resource id` is the consumer numeric id, such - # as project number: '123456'. `service` the name of a managed service, such as ' - # service.googleapis.com'. Enables service binding using the new tenancy unit. + # Required. services/`service`/`collection id`/`resource id` `collection id` is + # the cloud resource collection type representing the service consumer, for + # example 'projects', or 'organizations'. `resource id` is the consumer numeric + # id, such as project number: '123456'. `service` the name of a managed service, + # such as 'service.googleapis.com'. Enables service binding using the new + # tenancy unit. # @param [Google::Apis::ServiceconsumermanagementV1::CreateTenancyUnitRequest] create_tenancy_unit_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -420,7 +421,7 @@ module Google # Delete a tenancy unit. Before you delete the tenancy unit, there should be no # tenant resources in it that aren't in a DELETED state. Operation. # @param [String] name - # Name of the tenancy unit to be deleted. + # Required. Name of the tenancy unit to be deleted. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -456,8 +457,8 @@ module Google # call the `RemoveTenantProject` method. New resources with the same tag can't # be added if there are existing resources in a DELETED state. Operation. # @param [String] name - # Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/ - # 12345/tenancyUnits/abcd'. + # Required. Name of the tenancy unit. Such as 'services/service.googleapis.com/ + # projects/12345/tenancyUnits/abcd'. # @param [Google::Apis::ServiceconsumermanagementV1::DeleteTenantProjectRequest] delete_tenant_project_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -493,18 +494,19 @@ module Google # the tenant project number when creating VMs. Service producers must persist # the tenant project's information after the project is created. # @param [String] parent - # Managed service and service consumer. Required. services/`service`/`collection - # id`/`resource id` `collection id` is the cloud resource collection type - # representing the service consumer, for example 'projects', or 'organizations'. - # `resource id` is the consumer numeric id, such as project number: '123456'. ` - # service` the name of a service, such as 'service.googleapis.com'. + # Required. Managed service and service consumer. Required. services/`service`/` + # collection id`/`resource id` `collection id` is the cloud resource collection + # type representing the service consumer, for example 'projects', or ' + # organizations'. `resource id` is the consumer numeric id, such as project + # number: '123456'. `service` the name of a service, such as 'service.googleapis. + # com'. # @param [String] filter - # Filter expression over tenancy resources field. Optional. + # Optional. Filter expression over tenancy resources field. Optional. # @param [Fixnum] page_size - # The maximum number of results returned by this request. + # Optional. The maximum number of results returned by this request. # @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 ` + # Optional. 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. @@ -544,8 +546,8 @@ module Google # DELETED state, resource metadata is permanently removed from the tenancy unit. # Operation. # @param [String] name - # Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/ - # 12345/tenancyUnits/abcd'. + # Required. Name of the tenancy unit. Such as 'services/service.googleapis.com/ + # projects/12345/tenancyUnits/abcd'. # @param [Google::Apis::ServiceconsumermanagementV1::RemoveTenantProjectRequest] remove_tenant_project_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -582,8 +584,8 @@ module Google # method to update its configuration and then validate all managed service # resources. Operation. # @param [String] name - # Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/ - # 12345/tenancyUnits/abcd'. + # Required. Name of the tenancy unit. Such as 'services/service.googleapis.com/ + # projects/12345/tenancyUnits/abcd'. # @param [Google::Apis::ServiceconsumermanagementV1::UndeleteTenantProjectRequest] undelete_tenant_project_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 4cb50abce..0152220a3 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://devsite.googleplex.com/youtube/partner/docs/v1/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20200914' + REVISION = '20200916' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'