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
This commit is contained in:
Google APIs 2020-09-17 00:39:25 +00:00
parent 68aad98b54
commit 8ef7aa4206
40 changed files with 2043 additions and 3554 deletions

View File

@ -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

View File

@ -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'

View File

@ -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'

View File

@ -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

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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)

View File

@ -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'

View File

@ -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

View File

@ -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<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload>]
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<String,String>]
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<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo>]
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<Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation>]
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<String,Object>]
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<String,Object>]
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<Hash<String,Object>>]
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

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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<Google::Apis::ClassroomV1::Material>]
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<Google::Apis::ClassroomV1::CourseWorkMaterial>]
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

View File

@ -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

View File

@ -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>, 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

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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'

View File

@ -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)

View File

@ -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'

View File

@ -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'

View File

@ -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<String>]
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<String,String>]
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<Google::Apis::DataflowV1b3::StageSummary>]
@ -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)

View File

@ -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'

View File

@ -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)

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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.

View File

@ -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'