diff --git a/api_names_out.yaml b/api_names_out.yaml index ef9e77486..f4b679a0f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -801,6 +801,7 @@ "/adexchangebuyer2:v2beta1/FilteredBidCreativeRow/rowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/FilteredBidDetailRow": filtered_bid_detail_row "/adexchangebuyer2:v2beta1/FilteredBidDetailRow/bidCount": bid_count +"/adexchangebuyer2:v2beta1/FilteredBidDetailRow/detail": detail "/adexchangebuyer2:v2beta1/FilteredBidDetailRow/detailId": detail_id "/adexchangebuyer2:v2beta1/FilteredBidDetailRow/rowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/FilteringStats": filtering_stats @@ -8130,6 +8131,7 @@ "/androidmanagement:v1/SoftwareInfo/deviceKernelVersion": device_kernel_version "/androidmanagement:v1/SoftwareInfo/primaryLanguageCode": primary_language_code "/androidmanagement:v1/SoftwareInfo/securityPatchLevel": security_patch_level +"/androidmanagement:v1/SoftwareInfo/systemUpdateInfo": system_update_info "/androidmanagement:v1/Status": status "/androidmanagement:v1/Status/code": code "/androidmanagement:v1/Status/details": details @@ -8153,6 +8155,9 @@ "/androidmanagement:v1/SystemUpdate/freezePeriods/freeze_period": freeze_period "/androidmanagement:v1/SystemUpdate/startMinutes": start_minutes "/androidmanagement:v1/SystemUpdate/type": type +"/androidmanagement:v1/SystemUpdateInfo": system_update_info +"/androidmanagement:v1/SystemUpdateInfo/updateReceivedTime": update_received_time +"/androidmanagement:v1/SystemUpdateInfo/updateStatus": update_status "/androidmanagement:v1/TermsAndConditions": terms_and_conditions "/androidmanagement:v1/TermsAndConditions/content": content "/androidmanagement:v1/TermsAndConditions/header": header @@ -9421,6 +9426,7 @@ "/apigee:v1/GoogleCloudApigeeV1ApiProduct/environments/environment": environment "/apigee:v1/GoogleCloudApigeeV1ApiProduct/lastModifiedAt": last_modified_at "/apigee:v1/GoogleCloudApigeeV1ApiProduct/name": name +"/apigee:v1/GoogleCloudApigeeV1ApiProduct/operationGroup": operation_group "/apigee:v1/GoogleCloudApigeeV1ApiProduct/proxies": proxies "/apigee:v1/GoogleCloudApigeeV1ApiProduct/proxies/proxy": proxy "/apigee:v1/GoogleCloudApigeeV1ApiProduct/quota": quota @@ -9928,6 +9934,19 @@ "/apigee:v1/GoogleCloudApigeeV1Metric/name": name "/apigee:v1/GoogleCloudApigeeV1Metric/values": values "/apigee:v1/GoogleCloudApigeeV1Metric/values/value": value +"/apigee:v1/GoogleCloudApigeeV1OperationConfig": google_cloud_apigee_v1_operation_config +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/apiSource": api_source +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/attributes": attributes +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/attributes/attribute": attribute +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/methods": methods_prop +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/methods/methods_prop": methods_prop +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/quota": quota +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/resources": resources +"/apigee:v1/GoogleCloudApigeeV1OperationConfig/resources/resource": resource +"/apigee:v1/GoogleCloudApigeeV1OperationGroup": google_cloud_apigee_v1_operation_group +"/apigee:v1/GoogleCloudApigeeV1OperationGroup/operationConfigType": operation_config_type +"/apigee:v1/GoogleCloudApigeeV1OperationGroup/operationConfigs": operation_configs +"/apigee:v1/GoogleCloudApigeeV1OperationGroup/operationConfigs/operation_config": operation_config "/apigee:v1/GoogleCloudApigeeV1OperationMetadata": google_cloud_apigee_v1_operation_metadata "/apigee:v1/GoogleCloudApigeeV1OperationMetadata/operationType": operation_type "/apigee:v1/GoogleCloudApigeeV1OperationMetadata/state": state @@ -10014,6 +10033,10 @@ "/apigee:v1/GoogleCloudApigeeV1QueryMetric/name": name "/apigee:v1/GoogleCloudApigeeV1QueryMetric/operator": operator "/apigee:v1/GoogleCloudApigeeV1QueryMetric/value": value +"/apigee:v1/GoogleCloudApigeeV1Quota": google_cloud_apigee_v1_quota +"/apigee:v1/GoogleCloudApigeeV1Quota/interval": interval +"/apigee:v1/GoogleCloudApigeeV1Quota/limit": limit +"/apigee:v1/GoogleCloudApigeeV1Quota/timeUnit": time_unit "/apigee:v1/GoogleCloudApigeeV1Reference": google_cloud_apigee_v1_reference "/apigee:v1/GoogleCloudApigeeV1Reference/description": description "/apigee:v1/GoogleCloudApigeeV1Reference/name": name @@ -110980,6 +111003,13 @@ "/networkmanagement:v1beta1/Binding/members/member": member "/networkmanagement:v1beta1/Binding/role": role "/networkmanagement:v1beta1/CancelOperationRequest": cancel_operation_request +"/networkmanagement:v1beta1/CloudSQLInstanceInfo": cloud_sql_instance_info +"/networkmanagement:v1beta1/CloudSQLInstanceInfo/displayName": display_name +"/networkmanagement:v1beta1/CloudSQLInstanceInfo/externalIp": external_ip +"/networkmanagement:v1beta1/CloudSQLInstanceInfo/internalIp": internal_ip +"/networkmanagement:v1beta1/CloudSQLInstanceInfo/networkUri": network_uri +"/networkmanagement:v1beta1/CloudSQLInstanceInfo/region": region +"/networkmanagement:v1beta1/CloudSQLInstanceInfo/uri": uri "/networkmanagement:v1beta1/ConnectivityTest": connectivity_test "/networkmanagement:v1beta1/ConnectivityTest/createTime": create_time "/networkmanagement:v1beta1/ConnectivityTest/description": description @@ -111002,6 +111032,8 @@ "/networkmanagement:v1beta1/DropInfo/resourceUri": resource_uri "/networkmanagement:v1beta1/Empty": empty "/networkmanagement:v1beta1/Endpoint": endpoint +"/networkmanagement:v1beta1/Endpoint/cloudSqlInstance": cloud_sql_instance +"/networkmanagement:v1beta1/Endpoint/gkeMasterCluster": gke_master_cluster "/networkmanagement:v1beta1/Endpoint/instance": instance "/networkmanagement:v1beta1/Endpoint/ipAddress": ip_address "/networkmanagement:v1beta1/Endpoint/network": network @@ -111043,6 +111075,11 @@ "/networkmanagement:v1beta1/ForwardingRuleInfo/target": target "/networkmanagement:v1beta1/ForwardingRuleInfo/uri": uri "/networkmanagement:v1beta1/ForwardingRuleInfo/vip": vip +"/networkmanagement:v1beta1/GKEMasterInfo": gke_master_info +"/networkmanagement:v1beta1/GKEMasterInfo/clusterNetworkUri": cluster_network_uri +"/networkmanagement:v1beta1/GKEMasterInfo/clusterUri": cluster_uri +"/networkmanagement:v1beta1/GKEMasterInfo/externalIp": external_ip +"/networkmanagement:v1beta1/GKEMasterInfo/internalIp": internal_ip "/networkmanagement:v1beta1/InstanceInfo": instance_info "/networkmanagement:v1beta1/InstanceInfo/displayName": display_name "/networkmanagement:v1beta1/InstanceInfo/externalIp": external_ip @@ -111147,6 +111184,7 @@ "/networkmanagement:v1beta1/Step": step "/networkmanagement:v1beta1/Step/abort": abort "/networkmanagement:v1beta1/Step/causesDrop": causes_drop +"/networkmanagement:v1beta1/Step/cloudSqlInstance": cloud_sql_instance "/networkmanagement:v1beta1/Step/deliver": deliver "/networkmanagement:v1beta1/Step/description": description "/networkmanagement:v1beta1/Step/drop": drop @@ -111154,6 +111192,7 @@ "/networkmanagement:v1beta1/Step/firewall": firewall "/networkmanagement:v1beta1/Step/forward": forward "/networkmanagement:v1beta1/Step/forwardingRule": forwarding_rule +"/networkmanagement:v1beta1/Step/gkeMaster": gke_master "/networkmanagement:v1beta1/Step/instance": instance "/networkmanagement:v1beta1/Step/loadBalancer": load_balancer "/networkmanagement:v1beta1/Step/network": network @@ -117880,6 +117919,9 @@ "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse": google_devtools_remotebuildexecution_admin_v1alpha_list_worker_pools_response "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse/workerPools": worker_pools "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse/workerPools/worker_pool": worker_pool +"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig": google_devtools_remotebuildexecution_admin_v1alpha_sole_tenancy_config +"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig/nodeType": node_type +"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig/nodesZone": nodes_zone "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_update_instance_request "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest/instance": instance "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest/loggingEnabled": logging_enabled @@ -117899,6 +117941,7 @@ "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/minCpuPlatform": min_cpu_platform "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/networkAccess": network_access "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/reserved": reserved +"/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/soleTenancy": sole_tenancy "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/vmImage": vm_image "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool": google_devtools_remotebuildexecution_admin_v1alpha_worker_pool "/remotebuildexecution:v1/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool/autoscale": autoscale @@ -118301,6 +118344,9 @@ "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse": google_devtools_remotebuildexecution_admin_v1alpha_list_worker_pools_response "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse/workerPools": worker_pools "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse/workerPools/worker_pool": worker_pool +"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig": google_devtools_remotebuildexecution_admin_v1alpha_sole_tenancy_config +"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig/nodeType": node_type +"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig/nodesZone": nodes_zone "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_update_instance_request "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest/instance": instance "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest/loggingEnabled": logging_enabled @@ -118320,6 +118366,7 @@ "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/minCpuPlatform": min_cpu_platform "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/networkAccess": network_access "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/reserved": reserved +"/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/soleTenancy": sole_tenancy "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/vmImage": vm_image "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool": google_devtools_remotebuildexecution_admin_v1alpha_worker_pool "/remotebuildexecution:v1alpha/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool/autoscale": autoscale @@ -118789,6 +118836,9 @@ "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse": google_devtools_remotebuildexecution_admin_v1alpha_list_worker_pools_response "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse/workerPools": worker_pools "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse/workerPools/worker_pool": worker_pool +"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig": google_devtools_remotebuildexecution_admin_v1alpha_sole_tenancy_config +"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig/nodeType": node_type +"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig/nodesZone": nodes_zone "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest": google_devtools_remotebuildexecution_admin_v1alpha_update_instance_request "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest/instance": instance "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest/loggingEnabled": logging_enabled @@ -118808,6 +118858,7 @@ "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/minCpuPlatform": min_cpu_platform "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/networkAccess": network_access "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/reserved": reserved +"/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/soleTenancy": sole_tenancy "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig/vmImage": vm_image "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool": google_devtools_remotebuildexecution_admin_v1alpha_worker_pool "/remotebuildexecution:v2/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool/autoscale": autoscale @@ -123412,6 +123463,233 @@ "/securitycenter:v1beta1/securitycenter.organizations.updateOrganizationSettings": update_organization_organization_settings "/securitycenter:v1beta1/securitycenter.organizations.updateOrganizationSettings/name": name "/securitycenter:v1beta1/securitycenter.organizations.updateOrganizationSettings/updateMask": update_mask +"/securitycenter:v1beta2/Config": config +"/securitycenter:v1beta2/Config/moduleEnablementState": module_enablement_state +"/securitycenter:v1beta2/Config/value": value +"/securitycenter:v1beta2/Config/value/value": value +"/securitycenter:v1beta2/ContainerThreatDetectionSettings": container_threat_detection_settings +"/securitycenter:v1beta2/ContainerThreatDetectionSettings/modules": modules +"/securitycenter:v1beta2/ContainerThreatDetectionSettings/modules/module": module +"/securitycenter:v1beta2/ContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/ContainerThreatDetectionSettings/serviceAccount": service_account +"/securitycenter:v1beta2/ContainerThreatDetectionSettings/serviceEnablementState": service_enablement_state +"/securitycenter:v1beta2/ContainerThreatDetectionSettings/updateTime": update_time +"/securitycenter:v1beta2/Details": details +"/securitycenter:v1beta2/Details/endTime": end_time +"/securitycenter:v1beta2/Details/startTime": start_time +"/securitycenter:v1beta2/Details/type": type +"/securitycenter:v1beta2/EventThreatDetectionSettings": event_threat_detection_settings +"/securitycenter:v1beta2/EventThreatDetectionSettings/modules": modules +"/securitycenter:v1beta2/EventThreatDetectionSettings/modules/module": module +"/securitycenter:v1beta2/EventThreatDetectionSettings/name": name +"/securitycenter:v1beta2/EventThreatDetectionSettings/serviceEnablementState": service_enablement_state +"/securitycenter:v1beta2/EventThreatDetectionSettings/updateTime": update_time +"/securitycenter:v1beta2/Finding": finding +"/securitycenter:v1beta2/Finding/category": category +"/securitycenter:v1beta2/Finding/createTime": create_time +"/securitycenter:v1beta2/Finding/eventTime": event_time +"/securitycenter:v1beta2/Finding/externalUri": external_uri +"/securitycenter:v1beta2/Finding/name": name +"/securitycenter:v1beta2/Finding/parent": parent +"/securitycenter:v1beta2/Finding/resourceName": resource_name +"/securitycenter:v1beta2/Finding/securityMarks": security_marks +"/securitycenter:v1beta2/Finding/sourceProperties": source_properties +"/securitycenter:v1beta2/Finding/sourceProperties/source_property": source_property +"/securitycenter:v1beta2/Finding/state": state +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage": google_cloud_securitycenter_v1_notification_message +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage/finding": finding +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage/notificationConfigName": notification_config_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage/resource": resource +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource": google_cloud_securitycenter_v1_resource +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/name": name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/parent": parent +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/parentDisplayName": parent_display_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/project": project +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/projectDisplayName": project_display_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse": google_cloud_securitycenter_v1_run_asset_discovery_response +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse/duration": duration +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse/state": state +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse": google_cloud_securitycenter_v1beta1_run_asset_discovery_response +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse/duration": duration +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse/state": state +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset": google_cloud_securitycenter_v1p1beta1_asset +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/createTime": create_time +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/iamPolicy": iam_policy +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/name": name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/resourceProperties": resource_properties +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/resourceProperties/resource_property": resource_property +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/securityCenterProperties": security_center_properties +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/securityMarks": security_marks +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Asset/updateTime": update_time +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding": google_cloud_securitycenter_v1p1beta1_finding +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/category": category +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/createTime": create_time +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/eventTime": event_time +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/externalUri": external_uri +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/name": name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/parent": parent +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/resourceName": resource_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/securityMarks": security_marks +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/severity": severity +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties": source_properties +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties/source_property": source_property +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/state": state +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1IamPolicy": google_cloud_securitycenter_v1p1beta1_iam_policy +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1IamPolicy/policyBlob": policy_blob +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage": google_cloud_securitycenter_v1p1beta1_notification_message +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage/finding": finding +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage/notificationConfigName": notification_config_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage/resource": resource +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage/temporalAsset": temporal_asset +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource": google_cloud_securitycenter_v1p1beta1_resource +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/name": name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/parent": parent +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/parentDisplayName": parent_display_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/project": project +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/projectDisplayName": project_display_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse": google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse/duration": duration +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse/state": state +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties": google_cloud_securitycenter_v1p1beta1_security_center_properties +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceDisplayName": resource_display_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceName": resource_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceOwners": resource_owners +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceOwners/resource_owner": resource_owner +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceParent": resource_parent +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceParentDisplayName": resource_parent_display_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceProject": resource_project +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceProjectDisplayName": resource_project_display_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties/resourceType": resource_type +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityMarks": google_cloud_securitycenter_v1p1beta1_security_marks +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityMarks/marks": marks +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityMarks/marks/mark": mark +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1SecurityMarks/name": name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1TemporalAsset": google_cloud_securitycenter_v1p1beta1_temporal_asset +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1TemporalAsset/asset": asset +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1TemporalAsset/changeType": change_type +"/securitycenter:v1beta2/SecurityCenterSettings": security_center_settings +"/securitycenter:v1beta2/SecurityCenterSettings/logSinkProject": log_sink_project +"/securitycenter:v1beta2/SecurityCenterSettings/name": name +"/securitycenter:v1beta2/SecurityCenterSettings/orgServiceAccount": org_service_account +"/securitycenter:v1beta2/SecurityHealthAnalyticsSettings": security_health_analytics_settings +"/securitycenter:v1beta2/SecurityHealthAnalyticsSettings/modules": modules +"/securitycenter:v1beta2/SecurityHealthAnalyticsSettings/modules/module": module +"/securitycenter:v1beta2/SecurityHealthAnalyticsSettings/name": name +"/securitycenter:v1beta2/SecurityHealthAnalyticsSettings/serviceAccount": service_account +"/securitycenter:v1beta2/SecurityHealthAnalyticsSettings/serviceEnablementState": service_enablement_state +"/securitycenter:v1beta2/SecurityHealthAnalyticsSettings/updateTime": update_time +"/securitycenter:v1beta2/SecurityMarks": security_marks +"/securitycenter:v1beta2/SecurityMarks/marks": marks +"/securitycenter:v1beta2/SecurityMarks/marks/mark": mark +"/securitycenter:v1beta2/SecurityMarks/name": name +"/securitycenter:v1beta2/Subscription": subscription +"/securitycenter:v1beta2/Subscription/details": details +"/securitycenter:v1beta2/Subscription/name": name +"/securitycenter:v1beta2/Subscription/tier": tier +"/securitycenter:v1beta2/WebSecurityScannerSettings": web_security_scanner_settings +"/securitycenter:v1beta2/WebSecurityScannerSettings/modules": modules +"/securitycenter:v1beta2/WebSecurityScannerSettings/modules/module": module +"/securitycenter:v1beta2/WebSecurityScannerSettings/name": name +"/securitycenter:v1beta2/WebSecurityScannerSettings/serviceEnablementState": service_enablement_state +"/securitycenter:v1beta2/WebSecurityScannerSettings/updateTime": update_time +"/securitycenter:v1beta2/fields": fields +"/securitycenter:v1beta2/key": key +"/securitycenter:v1beta2/quotaUser": quota_user +"/securitycenter:v1beta2/securitycenter.folders.containerThreatDetectionSettings.calculate": calculate_folder_container_threat_detection_setting +"/securitycenter:v1beta2/securitycenter.folders.containerThreatDetectionSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.folders.eventThreatDetectionSettings.calculate": calculate_folder_event_threat_detection_setting +"/securitycenter:v1beta2/securitycenter.folders.eventThreatDetectionSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.folders.getContainerThreatDetectionSettings": get_folder_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.folders.getContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.getEventThreatDetectionSettings": get_folder_event_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.folders.getEventThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.getSecurityHealthAnalyticsSettings": get_folder_security_health_analytics_settings +"/securitycenter:v1beta2/securitycenter.folders.getSecurityHealthAnalyticsSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.getWebSecurityScannerSettings": get_folder_web_security_scanner_settings +"/securitycenter:v1beta2/securitycenter.folders.getWebSecurityScannerSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.securityHealthAnalyticsSettings.calculate": calculate_folder_security_health_analytics_setting +"/securitycenter:v1beta2/securitycenter.folders.securityHealthAnalyticsSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.folders.updateContainerThreatDetectionSettings": update_folder_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.folders.updateContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.updateContainerThreatDetectionSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.folders.updateEventThreatDetectionSettings": update_folder_event_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.folders.updateEventThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.updateEventThreatDetectionSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.folders.updateSecurityHealthAnalyticsSettings": update_folder_security_health_analytics_settings +"/securitycenter:v1beta2/securitycenter.folders.updateSecurityHealthAnalyticsSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.updateSecurityHealthAnalyticsSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.folders.updateWebSecurityScannerSettings": update_folder_web_security_scanner_settings +"/securitycenter:v1beta2/securitycenter.folders.updateWebSecurityScannerSettings/name": name +"/securitycenter:v1beta2/securitycenter.folders.updateWebSecurityScannerSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.folders.webSecurityScannerSettings.calculate": calculate_folder_web_security_scanner_setting +"/securitycenter:v1beta2/securitycenter.folders.webSecurityScannerSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.organizations.containerThreatDetectionSettings.calculate": calculate_organization_container_threat_detection_setting +"/securitycenter:v1beta2/securitycenter.organizations.containerThreatDetectionSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.organizations.eventThreatDetectionSettings.calculate": calculate_organization_event_threat_detection_setting +"/securitycenter:v1beta2/securitycenter.organizations.eventThreatDetectionSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.organizations.getContainerThreatDetectionSettings": get_organization_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.organizations.getContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.getEventThreatDetectionSettings": get_organization_event_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.organizations.getEventThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.getSecurityCenterSettings": get_organization_security_center_settings +"/securitycenter:v1beta2/securitycenter.organizations.getSecurityCenterSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.getSecurityHealthAnalyticsSettings": get_organization_security_health_analytics_settings +"/securitycenter:v1beta2/securitycenter.organizations.getSecurityHealthAnalyticsSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.getSubscription": get_organization_subscription +"/securitycenter:v1beta2/securitycenter.organizations.getSubscription/name": name +"/securitycenter:v1beta2/securitycenter.organizations.getWebSecurityScannerSettings": get_organization_web_security_scanner_settings +"/securitycenter:v1beta2/securitycenter.organizations.getWebSecurityScannerSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.securityHealthAnalyticsSettings.calculate": calculate_organization_security_health_analytics_setting +"/securitycenter:v1beta2/securitycenter.organizations.securityHealthAnalyticsSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.organizations.updateContainerThreatDetectionSettings": update_organization_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.organizations.updateContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.updateContainerThreatDetectionSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.organizations.updateEventThreatDetectionSettings": update_organization_event_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.organizations.updateEventThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.updateEventThreatDetectionSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.organizations.updateSecurityHealthAnalyticsSettings": update_organization_security_health_analytics_settings +"/securitycenter:v1beta2/securitycenter.organizations.updateSecurityHealthAnalyticsSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.updateSecurityHealthAnalyticsSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.organizations.updateWebSecurityScannerSettings": update_organization_web_security_scanner_settings +"/securitycenter:v1beta2/securitycenter.organizations.updateWebSecurityScannerSettings/name": name +"/securitycenter:v1beta2/securitycenter.organizations.updateWebSecurityScannerSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.organizations.webSecurityScannerSettings.calculate": calculate_organization_web_security_scanner_setting +"/securitycenter:v1beta2/securitycenter.organizations.webSecurityScannerSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.projects.containerThreatDetectionSettings.calculate": calculate_project_container_threat_detection_setting +"/securitycenter:v1beta2/securitycenter.projects.containerThreatDetectionSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.projects.eventThreatDetectionSettings.calculate": calculate_project_event_threat_detection_setting +"/securitycenter:v1beta2/securitycenter.projects.eventThreatDetectionSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.projects.getContainerThreatDetectionSettings": get_project_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.projects.getContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.getEventThreatDetectionSettings": get_project_event_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.projects.getEventThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.getSecurityHealthAnalyticsSettings": get_project_security_health_analytics_settings +"/securitycenter:v1beta2/securitycenter.projects.getSecurityHealthAnalyticsSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.getWebSecurityScannerSettings": get_project_web_security_scanner_settings +"/securitycenter:v1beta2/securitycenter.projects.getWebSecurityScannerSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.locations.clusters.containerThreatDetectionSettings.calculate": calculate_project_location_cluster_container_threat_detection_setting +"/securitycenter:v1beta2/securitycenter.projects.locations.clusters.containerThreatDetectionSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.projects.locations.clusters.getContainerThreatDetectionSettings": get_project_location_cluster_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.projects.locations.clusters.getContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.locations.clusters.updateContainerThreatDetectionSettings": update_project_location_cluster_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.projects.locations.clusters.updateContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.locations.clusters.updateContainerThreatDetectionSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.projects.securityHealthAnalyticsSettings.calculate": calculate_project_security_health_analytics_setting +"/securitycenter:v1beta2/securitycenter.projects.securityHealthAnalyticsSettings.calculate/name": name +"/securitycenter:v1beta2/securitycenter.projects.updateContainerThreatDetectionSettings": update_project_container_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.projects.updateContainerThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.updateContainerThreatDetectionSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.projects.updateEventThreatDetectionSettings": update_project_event_threat_detection_settings +"/securitycenter:v1beta2/securitycenter.projects.updateEventThreatDetectionSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.updateEventThreatDetectionSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.projects.updateSecurityHealthAnalyticsSettings": update_project_security_health_analytics_settings +"/securitycenter:v1beta2/securitycenter.projects.updateSecurityHealthAnalyticsSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.updateSecurityHealthAnalyticsSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.projects.updateWebSecurityScannerSettings": update_project_web_security_scanner_settings +"/securitycenter:v1beta2/securitycenter.projects.updateWebSecurityScannerSettings/name": name +"/securitycenter:v1beta2/securitycenter.projects.updateWebSecurityScannerSettings/updateMask": update_mask +"/securitycenter:v1beta2/securitycenter.projects.webSecurityScannerSettings.calculate": calculate_project_web_security_scanner_setting +"/securitycenter:v1beta2/securitycenter.projects.webSecurityScannerSettings.calculate/name": name "/securitycenter:v1p1alpha1/Empty": empty "/securitycenter:v1p1alpha1/Finding": finding "/securitycenter:v1p1alpha1/Finding/category": category @@ -126812,6 +127090,9 @@ "/servicenetworking:v1/ListOperationsResponse/nextPageToken": next_page_token "/servicenetworking:v1/ListOperationsResponse/operations": operations "/servicenetworking:v1/ListOperationsResponse/operations/operation": operation +"/servicenetworking:v1/ListPeeredDnsDomainsResponse": list_peered_dns_domains_response +"/servicenetworking:v1/ListPeeredDnsDomainsResponse/peeredDnsDomains": peered_dns_domains +"/servicenetworking:v1/ListPeeredDnsDomainsResponse/peeredDnsDomains/peered_dns_domain": peered_dns_domain "/servicenetworking:v1/LogDescriptor": log_descriptor "/servicenetworking:v1/LogDescriptor/description": description "/servicenetworking:v1/LogDescriptor/displayName": display_name @@ -127094,6 +127375,8 @@ "/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.create/parent": parent "/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.delete": delete_service_project_global_network_peered_dns_domain "/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.delete/name": name +"/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.list": list_service_project_global_network_peered_dns_domains +"/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.list/parent": parent "/servicenetworking:v1/servicenetworking.services.roles.add": add_roles "/servicenetworking:v1/servicenetworking.services.roles.add/parent": parent "/servicenetworking:v1/servicenetworking.services.searchRange": search_service_range @@ -127772,6 +128055,9 @@ "/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/documentation": documentation "/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/endpoints": endpoints "/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/endpoints/endpoint": endpoint +"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/monitoredResources": monitored_resources +"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/monitoredResources/monitored_resource": monitored_resource +"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/monitoring": monitoring "/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/name": name "/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/quota": quota "/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/title": title @@ -128317,6 +128603,9 @@ "/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/documentation": documentation "/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/endpoints": endpoints "/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/endpoints/endpoint": endpoint +"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/monitoredResources": monitored_resources +"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/monitoredResources/monitored_resource": monitored_resource +"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/monitoring": monitoring "/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/name": name "/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/quota": quota "/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/title": title @@ -128550,6 +128839,9 @@ "/serviceusage:v1beta1/ServiceConfig/documentation": documentation "/serviceusage:v1beta1/ServiceConfig/endpoints": endpoints "/serviceusage:v1beta1/ServiceConfig/endpoints/endpoint": endpoint +"/serviceusage:v1beta1/ServiceConfig/monitoredResources": monitored_resources +"/serviceusage:v1beta1/ServiceConfig/monitoredResources/monitored_resource": monitored_resource +"/serviceusage:v1beta1/ServiceConfig/monitoring": monitoring "/serviceusage:v1beta1/ServiceConfig/name": name "/serviceusage:v1beta1/ServiceConfig/quota": quota "/serviceusage:v1beta1/ServiceConfig/title": title @@ -136883,6 +137175,7 @@ "/toolresults:v1beta3/FailedToInstall": failed_to_install "/toolresults:v1beta3/FailureDetail": failure_detail "/toolresults:v1beta3/FailureDetail/crashed": crashed +"/toolresults:v1beta3/FailureDetail/deviceOutOfMemory": device_out_of_memory "/toolresults:v1beta3/FailureDetail/failedRoboscript": failed_roboscript "/toolresults:v1beta3/FailureDetail/notInstalled": not_installed "/toolresults:v1beta3/FailureDetail/otherNativeCrash": other_native_crash @@ -138194,6 +138487,186 @@ "/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/pageSize": page_size "/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/pageToken": page_token "/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/parent": parent +"/trafficdirector:v2/Address": address +"/trafficdirector:v2/Address/pipe": pipe +"/trafficdirector:v2/Address/socketAddress": socket_address +"/trafficdirector:v2/BuildVersion": build_version +"/trafficdirector:v2/BuildVersion/metadata": metadata +"/trafficdirector:v2/BuildVersion/metadata/metadatum": metadatum +"/trafficdirector:v2/BuildVersion/version": version +"/trafficdirector:v2/ClientConfig": client_config +"/trafficdirector:v2/ClientConfig/node": node +"/trafficdirector:v2/ClientConfig/xdsConfig": xds_config +"/trafficdirector:v2/ClientConfig/xdsConfig/xds_config": xds_config +"/trafficdirector:v2/ClientStatusRequest": client_status_request +"/trafficdirector:v2/ClientStatusRequest/nodeMatchers": node_matchers +"/trafficdirector:v2/ClientStatusRequest/nodeMatchers/node_matcher": node_matcher +"/trafficdirector:v2/ClientStatusResponse": client_status_response +"/trafficdirector:v2/ClientStatusResponse/config": config +"/trafficdirector:v2/ClientStatusResponse/config/config": config +"/trafficdirector:v2/ClustersConfigDump": clusters_config_dump +"/trafficdirector:v2/ClustersConfigDump/dynamicActiveClusters": dynamic_active_clusters +"/trafficdirector:v2/ClustersConfigDump/dynamicActiveClusters/dynamic_active_cluster": dynamic_active_cluster +"/trafficdirector:v2/ClustersConfigDump/dynamicWarmingClusters": dynamic_warming_clusters +"/trafficdirector:v2/ClustersConfigDump/dynamicWarmingClusters/dynamic_warming_cluster": dynamic_warming_cluster +"/trafficdirector:v2/ClustersConfigDump/staticClusters": static_clusters +"/trafficdirector:v2/ClustersConfigDump/staticClusters/static_cluster": static_cluster +"/trafficdirector:v2/ClustersConfigDump/versionInfo": version_info +"/trafficdirector:v2/DoubleMatcher": double_matcher +"/trafficdirector:v2/DoubleMatcher/exact": exact +"/trafficdirector:v2/DoubleMatcher/range": range +"/trafficdirector:v2/DoubleRange": double_range +"/trafficdirector:v2/DoubleRange/end": end +"/trafficdirector:v2/DoubleRange/start": start +"/trafficdirector:v2/DynamicCluster": dynamic_cluster +"/trafficdirector:v2/DynamicCluster/cluster": cluster +"/trafficdirector:v2/DynamicCluster/cluster/cluster": cluster +"/trafficdirector:v2/DynamicCluster/lastUpdated": last_updated +"/trafficdirector:v2/DynamicCluster/versionInfo": version_info +"/trafficdirector:v2/DynamicListener": dynamic_listener +"/trafficdirector:v2/DynamicListener/activeState": active_state +"/trafficdirector:v2/DynamicListener/drainingState": draining_state +"/trafficdirector:v2/DynamicListener/errorState": error_state +"/trafficdirector:v2/DynamicListener/name": name +"/trafficdirector:v2/DynamicListener/warmingState": warming_state +"/trafficdirector:v2/DynamicListenerState": dynamic_listener_state +"/trafficdirector:v2/DynamicListenerState/lastUpdated": last_updated +"/trafficdirector:v2/DynamicListenerState/listener": listener +"/trafficdirector:v2/DynamicListenerState/listener/listener": listener +"/trafficdirector:v2/DynamicListenerState/versionInfo": version_info +"/trafficdirector:v2/DynamicRouteConfig": dynamic_route_config +"/trafficdirector:v2/DynamicRouteConfig/lastUpdated": last_updated +"/trafficdirector:v2/DynamicRouteConfig/routeConfig": route_config +"/trafficdirector:v2/DynamicRouteConfig/routeConfig/route_config": route_config +"/trafficdirector:v2/DynamicRouteConfig/versionInfo": version_info +"/trafficdirector:v2/DynamicScopedRouteConfigs": dynamic_scoped_route_configs +"/trafficdirector:v2/DynamicScopedRouteConfigs/lastUpdated": last_updated +"/trafficdirector:v2/DynamicScopedRouteConfigs/name": name +"/trafficdirector:v2/DynamicScopedRouteConfigs/scopedRouteConfigs": scoped_route_configs +"/trafficdirector:v2/DynamicScopedRouteConfigs/scopedRouteConfigs/scoped_route_config": scoped_route_config +"/trafficdirector:v2/DynamicScopedRouteConfigs/scopedRouteConfigs/scoped_route_config/scoped_route_config": scoped_route_config +"/trafficdirector:v2/DynamicScopedRouteConfigs/versionInfo": version_info +"/trafficdirector:v2/Extension": extension +"/trafficdirector:v2/Extension/category": category +"/trafficdirector:v2/Extension/disabled": disabled +"/trafficdirector:v2/Extension/name": name +"/trafficdirector:v2/Extension/typeDescriptor": type_descriptor +"/trafficdirector:v2/Extension/version": version +"/trafficdirector:v2/GoogleRE2": google_re2 +"/trafficdirector:v2/GoogleRE2/maxProgramSize": max_program_size +"/trafficdirector:v2/InlineScopedRouteConfigs": inline_scoped_route_configs +"/trafficdirector:v2/InlineScopedRouteConfigs/lastUpdated": last_updated +"/trafficdirector:v2/InlineScopedRouteConfigs/name": name +"/trafficdirector:v2/InlineScopedRouteConfigs/scopedRouteConfigs": scoped_route_configs +"/trafficdirector:v2/InlineScopedRouteConfigs/scopedRouteConfigs/scoped_route_config": scoped_route_config +"/trafficdirector:v2/InlineScopedRouteConfigs/scopedRouteConfigs/scoped_route_config/scoped_route_config": scoped_route_config +"/trafficdirector:v2/ListMatcher": list_matcher +"/trafficdirector:v2/ListMatcher/oneOf": one_of +"/trafficdirector:v2/ListenersConfigDump": listeners_config_dump +"/trafficdirector:v2/ListenersConfigDump/dynamicListeners": dynamic_listeners +"/trafficdirector:v2/ListenersConfigDump/dynamicListeners/dynamic_listener": dynamic_listener +"/trafficdirector:v2/ListenersConfigDump/staticListeners": static_listeners +"/trafficdirector:v2/ListenersConfigDump/staticListeners/static_listener": static_listener +"/trafficdirector:v2/ListenersConfigDump/versionInfo": version_info +"/trafficdirector:v2/Locality": locality +"/trafficdirector:v2/Locality/region": region +"/trafficdirector:v2/Locality/subZone": sub_zone +"/trafficdirector:v2/Locality/zone": zone +"/trafficdirector:v2/Node": node +"/trafficdirector:v2/Node/buildVersion": build_version +"/trafficdirector:v2/Node/clientFeatures": client_features +"/trafficdirector:v2/Node/clientFeatures/client_feature": client_feature +"/trafficdirector:v2/Node/cluster": cluster +"/trafficdirector:v2/Node/extensions": extensions +"/trafficdirector:v2/Node/extensions/extension": extension +"/trafficdirector:v2/Node/id": id +"/trafficdirector:v2/Node/listeningAddresses": listening_addresses +"/trafficdirector:v2/Node/listeningAddresses/listening_address": listening_address +"/trafficdirector:v2/Node/locality": locality +"/trafficdirector:v2/Node/metadata": metadata +"/trafficdirector:v2/Node/metadata/metadatum": metadatum +"/trafficdirector:v2/Node/userAgentBuildVersion": user_agent_build_version +"/trafficdirector:v2/Node/userAgentName": user_agent_name +"/trafficdirector:v2/Node/userAgentVersion": user_agent_version +"/trafficdirector:v2/NodeMatcher": node_matcher +"/trafficdirector:v2/NodeMatcher/nodeId": node_id +"/trafficdirector:v2/NodeMatcher/nodeMetadatas": node_metadatas +"/trafficdirector:v2/NodeMatcher/nodeMetadatas/node_metadata": node_metadata +"/trafficdirector:v2/NullMatch": null_match +"/trafficdirector:v2/PathSegment": path_segment +"/trafficdirector:v2/PathSegment/key": key +"/trafficdirector:v2/PerXdsConfig": per_xds_config +"/trafficdirector:v2/PerXdsConfig/clusterConfig": cluster_config +"/trafficdirector:v2/PerXdsConfig/listenerConfig": listener_config +"/trafficdirector:v2/PerXdsConfig/routeConfig": route_config +"/trafficdirector:v2/PerXdsConfig/scopedRouteConfig": scoped_route_config +"/trafficdirector:v2/PerXdsConfig/status": status +"/trafficdirector:v2/Pipe": pipe +"/trafficdirector:v2/Pipe/mode": mode +"/trafficdirector:v2/Pipe/path": path +"/trafficdirector:v2/RegexMatcher": regex_matcher +"/trafficdirector:v2/RegexMatcher/googleRe2": google_re2 +"/trafficdirector:v2/RegexMatcher/regex": regex +"/trafficdirector:v2/RoutesConfigDump": routes_config_dump +"/trafficdirector:v2/RoutesConfigDump/dynamicRouteConfigs": dynamic_route_configs +"/trafficdirector:v2/RoutesConfigDump/dynamicRouteConfigs/dynamic_route_config": dynamic_route_config +"/trafficdirector:v2/RoutesConfigDump/staticRouteConfigs": static_route_configs +"/trafficdirector:v2/RoutesConfigDump/staticRouteConfigs/static_route_config": static_route_config +"/trafficdirector:v2/ScopedRoutesConfigDump": scoped_routes_config_dump +"/trafficdirector:v2/ScopedRoutesConfigDump/dynamicScopedRouteConfigs": dynamic_scoped_route_configs +"/trafficdirector:v2/ScopedRoutesConfigDump/dynamicScopedRouteConfigs/dynamic_scoped_route_config": dynamic_scoped_route_config +"/trafficdirector:v2/ScopedRoutesConfigDump/inlineScopedRouteConfigs": inline_scoped_route_configs +"/trafficdirector:v2/ScopedRoutesConfigDump/inlineScopedRouteConfigs/inline_scoped_route_config": inline_scoped_route_config +"/trafficdirector:v2/SemanticVersion": semantic_version +"/trafficdirector:v2/SemanticVersion/majorNumber": major_number +"/trafficdirector:v2/SemanticVersion/minorNumber": minor_number +"/trafficdirector:v2/SemanticVersion/patch": patch +"/trafficdirector:v2/SocketAddress": socket_address +"/trafficdirector:v2/SocketAddress/address": address +"/trafficdirector:v2/SocketAddress/ipv4Compat": ipv4_compat +"/trafficdirector:v2/SocketAddress/namedPort": named_port +"/trafficdirector:v2/SocketAddress/portValue": port_value +"/trafficdirector:v2/SocketAddress/protocol": protocol +"/trafficdirector:v2/SocketAddress/resolverName": resolver_name +"/trafficdirector:v2/StaticCluster": static_cluster +"/trafficdirector:v2/StaticCluster/cluster": cluster +"/trafficdirector:v2/StaticCluster/cluster/cluster": cluster +"/trafficdirector:v2/StaticCluster/lastUpdated": last_updated +"/trafficdirector:v2/StaticListener": static_listener +"/trafficdirector:v2/StaticListener/lastUpdated": last_updated +"/trafficdirector:v2/StaticListener/listener": listener +"/trafficdirector:v2/StaticListener/listener/listener": listener +"/trafficdirector:v2/StaticRouteConfig": static_route_config +"/trafficdirector:v2/StaticRouteConfig/lastUpdated": last_updated +"/trafficdirector:v2/StaticRouteConfig/routeConfig": route_config +"/trafficdirector:v2/StaticRouteConfig/routeConfig/route_config": route_config +"/trafficdirector:v2/StringMatcher": string_matcher +"/trafficdirector:v2/StringMatcher/exact": exact +"/trafficdirector:v2/StringMatcher/ignoreCase": ignore_case +"/trafficdirector:v2/StringMatcher/prefix": prefix +"/trafficdirector:v2/StringMatcher/regex": regex +"/trafficdirector:v2/StringMatcher/safeRegex": safe_regex +"/trafficdirector:v2/StringMatcher/suffix": suffix +"/trafficdirector:v2/StructMatcher": struct_matcher +"/trafficdirector:v2/StructMatcher/path": path +"/trafficdirector:v2/StructMatcher/path/path": path +"/trafficdirector:v2/StructMatcher/value": value +"/trafficdirector:v2/UpdateFailureState": update_failure_state +"/trafficdirector:v2/UpdateFailureState/details": details +"/trafficdirector:v2/UpdateFailureState/failedConfiguration": failed_configuration +"/trafficdirector:v2/UpdateFailureState/failedConfiguration/failed_configuration": failed_configuration +"/trafficdirector:v2/UpdateFailureState/lastUpdateAttempt": last_update_attempt +"/trafficdirector:v2/ValueMatcher": value_matcher +"/trafficdirector:v2/ValueMatcher/boolMatch": bool_match +"/trafficdirector:v2/ValueMatcher/doubleMatch": double_match +"/trafficdirector:v2/ValueMatcher/listMatch": list_match +"/trafficdirector:v2/ValueMatcher/nullMatch": null_match +"/trafficdirector:v2/ValueMatcher/presentMatch": present_match +"/trafficdirector:v2/ValueMatcher/stringMatch": string_match +"/trafficdirector:v2/fields": fields +"/trafficdirector:v2/key": key +"/trafficdirector:v2/quotaUser": quota_user +"/trafficdirector:v2/trafficdirector.discovery.client_status": client_discovery_status "/translate:v2/DetectLanguageRequest": detect_language_request "/translate:v2/DetectLanguageRequest/q": q "/translate:v2/DetectLanguageRequest/q/q": q @@ -150378,6 +150851,9 @@ "/youtube:v3/ChannelConversionPings": channel_conversion_pings "/youtube:v3/ChannelConversionPings/pings": pings "/youtube:v3/ChannelConversionPings/pings/ping": ping +"/youtube:v3/ChannelElement": channel_element +"/youtube:v3/ChannelElement/channelId": channel_id +"/youtube:v3/ChannelElement/customMessage": custom_message "/youtube:v3/ChannelListResponse": list_channels_response "/youtube:v3/ChannelListResponse/etag": etag "/youtube:v3/ChannelListResponse/eventId": event_id @@ -150613,6 +151089,31 @@ "/youtube:v3/ContentRating/smsaRating": smsa_rating "/youtube:v3/ContentRating/tvpgRating": tvpg_rating "/youtube:v3/ContentRating/ytRating": yt_rating +"/youtube:v3/Endscreen": endscreen +"/youtube:v3/Endscreen/elements": elements +"/youtube:v3/Endscreen/elements/element": element +"/youtube:v3/Endscreen/startOffset": start_offset +"/youtube:v3/EndscreenElement": endscreen_element +"/youtube:v3/EndscreenElement/etag": etag +"/youtube:v3/EndscreenElement/id": id +"/youtube:v3/EndscreenElement/kind": kind +"/youtube:v3/EndscreenElement/snippet": snippet +"/youtube:v3/EndscreenElementSnippet": endscreen_element_snippet +"/youtube:v3/EndscreenElementSnippet/channelElement": channel_element +"/youtube:v3/EndscreenElementSnippet/duration": duration +"/youtube:v3/EndscreenElementSnippet/left": left +"/youtube:v3/EndscreenElementSnippet/linkElement": link_element +"/youtube:v3/EndscreenElementSnippet/merchandiseElement": merchandise_element +"/youtube:v3/EndscreenElementSnippet/playlistElement": playlist_element +"/youtube:v3/EndscreenElementSnippet/startOffset": start_offset +"/youtube:v3/EndscreenElementSnippet/subscribeElement": subscribe_element +"/youtube:v3/EndscreenElementSnippet/top": top +"/youtube:v3/EndscreenElementSnippet/videoElement": video_element +"/youtube:v3/EndscreenElementSnippet/width": width +"/youtube:v3/EndscreenGetResponse": endscreen_get_response +"/youtube:v3/EndscreenGetResponse/etag": etag +"/youtube:v3/EndscreenGetResponse/kind": kind +"/youtube:v3/EndscreenGetResponse/resource": resource "/youtube:v3/Entity": entity "/youtube:v3/Entity/id": id "/youtube:v3/Entity/typeId": type_id @@ -150776,6 +151277,16 @@ "/youtube:v3/LinkCardUploadedImage": link_card_uploaded_image "/youtube:v3/LinkCardUploadedImage/imageFile": image_file "/youtube:v3/LinkCardUploadedImage/version": version +"/youtube:v3/LinkElement": link_element +"/youtube:v3/LinkElement/callToActionType": call_to_action_type +"/youtube:v3/LinkElement/customLinkText": custom_link_text +"/youtube:v3/LinkElement/externalImageUrl": external_image_url +"/youtube:v3/LinkElement/targetUrl": target_url +"/youtube:v3/LinkElement/uploadedImage": uploaded_image +"/youtube:v3/LinkElement/websiteType": website_type +"/youtube:v3/LinkElementUploadedImage": link_element_uploaded_image +"/youtube:v3/LinkElementUploadedImage/imageFile": image_file +"/youtube:v3/LinkElementUploadedImage/version": version "/youtube:v3/LiveBroadcast": live_broadcast "/youtube:v3/LiveBroadcast/contentDetails": content_details "/youtube:v3/LiveBroadcast/etag": etag @@ -151062,6 +151573,7 @@ "/youtube:v3/MembershipsLevelSnippet": memberships_level_snippet "/youtube:v3/MembershipsLevelSnippet/creatorChannelId": creator_channel_id "/youtube:v3/MembershipsLevelSnippet/levelDetails": level_details +"/youtube:v3/MerchandiseElement": merchandise_element "/youtube:v3/MonitorStreamInfo": monitor_stream_info "/youtube:v3/MonitorStreamInfo/broadcastStreamDelayMs": broadcast_stream_delay_ms "/youtube:v3/MonitorStreamInfo/embedHtml": embed_html @@ -151090,6 +151602,8 @@ "/youtube:v3/PlaylistCard/startVideoId": start_video_id "/youtube:v3/PlaylistContentDetails": playlist_content_details "/youtube:v3/PlaylistContentDetails/itemCount": item_count +"/youtube:v3/PlaylistElement": playlist_element +"/youtube:v3/PlaylistElement/playlistId": playlist_id "/youtube:v3/PlaylistItem": playlist_item "/youtube:v3/PlaylistItem/contentDetails": content_details "/youtube:v3/PlaylistItem/etag": etag @@ -151220,6 +151734,7 @@ "/youtube:v3/SponsorSnippet/cumulativeDurationMonths": cumulative_duration_months "/youtube:v3/SponsorSnippet/sponsorDetails": sponsor_details "/youtube:v3/SponsorSnippet/sponsorSince": sponsor_since +"/youtube:v3/SubscribeElement": subscribe_element "/youtube:v3/Subscription": subscription "/youtube:v3/Subscription/contentDetails": content_details "/youtube:v3/Subscription/etag": etag @@ -151411,6 +151926,10 @@ "/youtube:v3/VideoContentDetailsRegionRestriction/allowed/allowed": allowed "/youtube:v3/VideoContentDetailsRegionRestriction/blocked": blocked "/youtube:v3/VideoContentDetailsRegionRestriction/blocked/blocked": blocked +"/youtube:v3/VideoElement": video_element +"/youtube:v3/VideoElement/playbackStartOffset": playback_start_offset +"/youtube:v3/VideoElement/videoId": video_id +"/youtube:v3/VideoElement/videoType": video_type "/youtube:v3/VideoFileDetails": video_file_details "/youtube:v3/VideoFileDetails/audioStreams": audio_streams "/youtube:v3/VideoFileDetails/audioStreams/audio_stream": audio_stream @@ -151673,6 +152192,14 @@ "/youtube:v3/youtube.comments.setModerationStatus/moderationStatus": moderation_status "/youtube:v3/youtube.comments.update": update_comment "/youtube:v3/youtube.comments.update/part": part +"/youtube:v3/youtube.endscreens.get": get_endscreen +"/youtube:v3/youtube.endscreens.get/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtube:v3/youtube.endscreens.get/part": part +"/youtube:v3/youtube.endscreens.get/videoId": video_id +"/youtube:v3/youtube.endscreens.update": update_endscreen +"/youtube:v3/youtube.endscreens.update/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtube:v3/youtube.endscreens.update/part": part +"/youtube:v3/youtube.endscreens.update/videoId": video_id "/youtube:v3/youtube.fanFundingEvents.list": list_fan_funding_events "/youtube:v3/youtube.fanFundingEvents.list/hl": hl "/youtube:v3/youtube.fanFundingEvents.list/maxResults": max_results diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index 8de77ddbf..616268669 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20200803' + REVISION = '20200822' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb index cd564f716..dd53ea494 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb @@ -1724,8 +1724,18 @@ module Google # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] attr_accessor :bid_count - # The ID of the detail. The associated value can be looked up in the dictionary - # file corresponding to the DetailType in the response message. + # The ID of the detail, can be numeric or text. The associated value can be + # looked up in the dictionary file corresponding to the DetailType in the + # response message. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # Note: this field will be deprecated, use "detail" field instead. When "detail" + # field represents an integer value, this field is populated as the same integer + # value "detail" field represents, otherwise this field will be 0. The ID of the + # detail. The associated value can be looked up in the dictionary file + # corresponding to the DetailType in the response message. # Corresponds to the JSON property `detailId` # @return [Fixnum] attr_accessor :detail_id @@ -1743,6 +1753,7 @@ module Google # Update properties of this object def update!(**args) @bid_count = args[:bid_count] if args.key?(:bid_count) + @detail = args[:detail] if args.key?(:detail) @detail_id = args[:detail_id] if args.key?(:detail_id) @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) end @@ -3350,9 +3361,9 @@ module Google # Note: this resource requires whitelisting for access. Please contact your # account manager for access to Marketplace resources. Represents a publisher - # profile (https://support.google.com/admanager/answer/6035806?hl=en) in - # Marketplace. All fields are read only. All string fields are free-form text - # entered by the publisher unless noted otherwise. + # profile (https://support.google.com/admanager/answer/6035806) in Marketplace. + # All fields are read only. All string fields are free-form text entered by the + # publisher unless noted otherwise. class PublisherProfile include Google::Apis::Core::Hashable @@ -3398,7 +3409,7 @@ module Google # have only one parent publisher profile, and can have multiple child profiles. # Publisher profiles for the same seller will have same value of field google. # ads.adexchange.buyer.v2beta1.PublisherProfile.seller. See https://support. - # google.com/admanager/answer/6035806?hl=en for details. + # google.com/admanager/answer/6035806 for details. # Corresponds to the JSON property `isParent` # @return [Boolean] attr_accessor :is_parent diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb index 435738145..ebe541292 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb @@ -1099,6 +1099,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + property :detail, as: 'detail' property :detail_id, as: 'detailId' property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation diff --git a/generated/google/apis/adexperiencereport_v1.rb b/generated/google/apis/adexperiencereport_v1.rb index cd5e93abd..b5d88678d 100644 --- a/generated/google/apis/adexperiencereport_v1.rb +++ b/generated/google/apis/adexperiencereport_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-experience-report/ module AdexperiencereportV1 VERSION = 'V1' - REVISION = '20200803' + REVISION = '20200823' end end end diff --git a/generated/google/apis/admob_v1.rb b/generated/google/apis/admob_v1.rb index fc3cf41f0..3a7552ef0 100644 --- a/generated/google/apis/admob_v1.rb +++ b/generated/google/apis/admob_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/admob/api/ module AdmobV1 VERSION = 'V1' - REVISION = '20200801' + REVISION = '20200822' end end end diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index 04ca802cc..31b17b873 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20200807' + REVISION = '20200817' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/androidmanagement_v1/classes.rb b/generated/google/apis/androidmanagement_v1/classes.rb index 400b0496f..eeb3452c5 100644 --- a/generated/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google/apis/androidmanagement_v1/classes.rb @@ -1048,7 +1048,13 @@ module Google # @return [String] attr_accessor :additional_data - # Controls personal usage on devices provisioned using this enrollment token. + # Controls whether personal usage is allowed on a device provisioned with this + # enrollment token.For company-owned devices: Enabling personal usage allows the + # user to set up a work profile on the device. Disabling personal usage requires + # the user provision the device as a fully managed device.For personally-owned + # devices: Enabling personal usage allows the user to set up a work profile on + # the device. Disabling personal usage will prevent the device from provisioning. + # Personal usage cannot be disabled on personally-owned device. # Corresponds to the JSON property `allowPersonalUsage` # @return [String] attr_accessor :allow_personal_usage @@ -2220,8 +2226,8 @@ module Google end end - # Policies for apps on the personal profile of a Corporate Owned Personally - # Enabled device. + # Policies for apps on the personal profile of a company-owned device with a + # work profile. class PersonalApplicationPolicy include Google::Apis::Core::Hashable @@ -2246,8 +2252,8 @@ module Google end end - # Policies controlling personal usage on a Corporate Owned Personally Enabled - # device. + # Policies controlling personal usage on a company-owned device with a work + # profile. class PersonalUsagePolicies include Google::Apis::Core::Hashable @@ -2636,8 +2642,8 @@ module Google # @return [Array] attr_accessor :persistent_preferred_activities - # Policies controlling personal usage on a Corporate Owned Personally Enabled - # device. + # Policies controlling personal usage on a company-owned device with a work + # profile. # Corresponds to the JSON property `personalUsagePolicies` # @return [Google::Apis::AndroidmanagementV1::PersonalUsagePolicies] attr_accessor :personal_usage_policies @@ -3227,6 +3233,11 @@ module Google # @return [String] attr_accessor :security_patch_level + # Information about a potential pending system update. + # Corresponds to the JSON property `systemUpdateInfo` + # @return [Google::Apis::AndroidmanagementV1::SystemUpdateInfo] + attr_accessor :system_update_info + def initialize(**args) update!(**args) end @@ -3243,6 +3254,7 @@ module Google @device_kernel_version = args[:device_kernel_version] if args.key?(:device_kernel_version) @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) @security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level) + @system_update_info = args[:system_update_info] if args.key?(:system_update_info) end end @@ -3417,6 +3429,33 @@ module Google end end + # Information about a potential pending system update. + class SystemUpdateInfo + include Google::Apis::Core::Hashable + + # The time when the update was first available. A zero value indicates that this + # field is not set. This field is set only if an update is available (that is, + # updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE). + # Corresponds to the JSON property `updateReceivedTime` + # @return [String] + attr_accessor :update_received_time + + # The status of an update: whether an update exists and what type it is. + # Corresponds to the JSON property `updateStatus` + # @return [String] + attr_accessor :update_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_received_time = args[:update_received_time] if args.key?(:update_received_time) + @update_status = args[:update_status] if args.key?(:update_status) + end + end + # A terms and conditions page to be accepted during provisioning. class TermsAndConditions include Google::Apis::Core::Hashable diff --git a/generated/google/apis/androidmanagement_v1/representations.rb b/generated/google/apis/androidmanagement_v1/representations.rb index f12334699..e40d5f37e 100644 --- a/generated/google/apis/androidmanagement_v1/representations.rb +++ b/generated/google/apis/androidmanagement_v1/representations.rb @@ -382,6 +382,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SystemUpdateInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TermsAndConditions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1173,6 +1179,8 @@ module Google property :device_kernel_version, as: 'deviceKernelVersion' property :primary_language_code, as: 'primaryLanguageCode' property :security_patch_level, as: 'securityPatchLevel' + property :system_update_info, as: 'systemUpdateInfo', class: Google::Apis::AndroidmanagementV1::SystemUpdateInfo, decorator: Google::Apis::AndroidmanagementV1::SystemUpdateInfo::Representation + end end @@ -1213,6 +1221,14 @@ module Google end end + class SystemUpdateInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_received_time, as: 'updateReceivedTime' + property :update_status, as: 'updateStatus' + end + end + class TermsAndConditions # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index 85c346b1e..af62e06d3 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/apigee-api-management/ module ApigeeV1 VERSION = 'V1' - REVISION = '20200813' + REVISION = '20200821' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/apigee_v1/classes.rb b/generated/google/apis/apigee_v1/classes.rb index 65bdb31cd..d60ad7253 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -226,14 +226,14 @@ module Google class GoogleCloudApigeeV1AliasRevisionConfig include Google::Apis::Core::Hashable - # The location of the alias file, e.g. a GCS URI. + # Location of the alias file. For example, a Google Cloud Storage URI. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # The name of the alias revision included in the keystore. Must be of the form: ' + # Name of the alias revision included in the keystore in the following format: ` # organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias`/ - # revisions/`rev`'. + # revisions/`rev`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -344,6 +344,13 @@ module Google # @return [String] attr_accessor :name + # The OperationGroup contains a list of configuration details associated with + # Apigee proxies or Remote services. Remote services are non-Apigee Edge proxies. + # eg, Istio-Envoy. + # Corresponds to the JSON property `operationGroup` + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup] + attr_accessor :operation_group + # A comma-separated list of API proxy names to which this API product is bound. # By specifying API proxies, you can associate resources in the API product with # specific API proxies, preventing developers from accessing those resources @@ -395,6 +402,7 @@ module Google @environments = args[:environments] if args.key?(:environments) @last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at) @name = args[:name] if args.key?(:name) + @operation_group = args[:operation_group] if args.key?(:operation_group) @proxies = args[:proxies] if args.key?(:proxies) @quota = args[:quota] if args.key?(:quota) @quota_interval = args[:quota_interval] if args.key?(:quota_interval) @@ -1263,17 +1271,17 @@ module Google end end - # A DataCollector and its configuration. + # Data collector and its configuration. class GoogleCloudApigeeV1DataCollectorConfig include Google::Apis::Core::Hashable - # The name of the data collector. Must be of the form 'organizations/`org`/ - # datacollectors/`dc`'. + # Name of the data collector in the following format: `organizations/`org`/ + # datacollectors/`datacollector`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The data type this DataCollector accepts. + # Data type accepted by the data collector. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1840,35 +1848,34 @@ module Google class GoogleCloudApigeeV1DeploymentConfig include Google::Apis::Core::Hashable - # Additional key-value metadata about the deployment. + # Additional key-value metadata for the deployment. # Corresponds to the JSON property `attributes` # @return [Hash] attr_accessor :attributes - # Base path where the application needs to be hosted. Default value is assumed - # to be "/". + # Base path where the application will be hosted. Defaults to "/". # Corresponds to the JSON property `basePath` # @return [String] attr_accessor :base_path - # The location of the proxy bundle, as a uri. + # Location of the API proxy bundle as a URI. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # The name of the API or shared flow revision to be deployed. Must be of the - # form 'organizations/`org`/apis/`api`/revisions/`rev`' or 'organizations/`org`/ - # sharedflows/`sf`/revisions/`rev`'. + # Name of the API or shared flow revision to be deployed in the following format: + # `organizations/`org`/apis/`api`/revisions/`rev`` or `organizations/`org`/ + # sharedflows/`sharedflow`/revisions/`rev`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The uid of the proxy revision. + # Unique ID of the API proxy revision. # Corresponds to the JSON property `proxyUid` # @return [String] attr_accessor :proxy_uid - # A unique id that will only change if the deployment is deleted and recreated. + # Unique ID. The ID will only change if the deployment is deleted and recreated. # Corresponds to the JSON property `uid` # @return [String] attr_accessor :uid @@ -2264,12 +2271,12 @@ module Google class GoogleCloudApigeeV1EnvironmentConfig include Google::Apis::Core::Hashable - # The time at which this environment config was created. + # Time that the environment configuration was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # The list of Data Collectors used by deployments in the environment. + # List of data collectors used by the deployments in the environment. # Corresponds to the JSON property `dataCollectors` # @return [Array] attr_accessor :data_collectors @@ -2279,72 +2286,71 @@ module Google # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask] attr_accessor :debug_mask - # A list of deployments in the environment + # List of deployments in the environment. # Corresponds to the JSON property `deployments` # @return [Array] attr_accessor :deployments - # Feature flags inherited from the org and environment parents. + # Feature flags inherited from the organization and environment. # Corresponds to the JSON property `featureFlags` # @return [Hash] attr_accessor :feature_flags - # A list of flow hooks in the environment. + # List of flow hooks in the environment. # Corresponds to the JSON property `flowhooks` # @return [Array] attr_accessor :flowhooks - # A list of keystores in the environment. + # List of keystores in the environment. # Corresponds to the JSON property `keystores` # @return [Array] attr_accessor :keystores - # The name of the environment config. Must be of the form 'organizations/`org`/ - # environments/`env`/configs/`config_id` + # Name of the environment configuration in the following format: `organizations/` + # org`/environments/`env`/configs/`config`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # This field can be used by the control plane to add some context information - # about itself. This information could help detect the source of the document - # during diagnostics and debugging. + # Used by the Control plane to add context information to help detect the source + # of the document during diagnostics and debugging. # Corresponds to the JSON property `provider` # @return [String] attr_accessor :provider - # Name of the pubsub topic for this environment. + # Name of the PubSub topic for the environment. # Corresponds to the JSON property `pubsubTopic` # @return [String] attr_accessor :pubsub_topic - # A list of resource references in the environment. + # List of resource references in the environment. # Corresponds to the JSON property `resourceReferences` # @return [Array] attr_accessor :resource_references - # A list of resource versions in the environment. + # List of resource versions in the environment. # Corresponds to the JSON property `resources` # @return [Array] attr_accessor :resources - # Revision id that defines the ordering on the environment config. The higher - # the revision, the more recently the configuration was deployed. + # Revision ID of the environment configuration. The higher the value, the more + # recently the configuration was deployed. # Corresponds to the JSON property `revisionId` # @return [Fixnum] attr_accessor :revision_id - # DEPRECATED: use revision_id + # DEPRECATED: Use revision_id. # Corresponds to the JSON property `sequenceNumber` # @return [Fixnum] attr_accessor :sequence_number - # A list of target servers in the environment. Disabled target servers are not - # included. + # List of target servers in the environment. Disabled target servers are not + # displayed. # Corresponds to the JSON property `targets` # @return [Array] attr_accessor :targets - # A unique id for the environment config that will only change if the + # Unique ID for the environment configuration. The ID will only change if the # environment is deleted and recreated. # Corresponds to the JSON property `uid` # @return [String] @@ -2667,22 +2673,23 @@ module Google class GoogleCloudApigeeV1FlowHookConfig include Google::Apis::Core::Hashable - # Should the flow abort after an error in the flow hook. Should default to true - # if unset. + # Flag that specifies whether the flow should abort after an error in the flow + # hook. Defaults to `true` (continue on error). # Corresponds to the JSON property `continueOnError` # @return [Boolean] attr_accessor :continue_on_error alias_method :continue_on_error?, :continue_on_error - # The name of the flow hook. Must be of the form 'organizations/`org`/ - # environments/`env`/flowhooks/`point`'. Known points are PreProxyFlowHook, - # PostProxyFlowHook, PreTargetFlowHook, and PostTargetFlowHook + # Name of the flow hook in the following format: `organizations/`org`/ + # environments/`env`/flowhooks/`point``. Valid `point` values include: ` + # PreProxyFlowHook`, `PostProxyFlowHook`, `PreTargetFlowHook`, and ` + # PostTargetFlowHook` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The name of the shared flow to invoke. Must be of the form 'organizations/`org` - # /sharedflows/`sharedflow`'. + # Name of the shared flow to invoke in the following format: `organizations/`org` + # /sharedflows/`sharedflow`` # Corresponds to the JSON property `sharedFlowName` # @return [String] attr_accessor :shared_flow_name @@ -2959,13 +2966,13 @@ module Google class GoogleCloudApigeeV1KeyAliasReference include Google::Apis::Core::Hashable - # The alias id. Must exist in the keystore referred to by reference. + # Alias ID. Must exist in the keystore referred to by the reference. # Corresponds to the JSON property `aliasId` # @return [String] attr_accessor :alias_id - # The reference name. Must be of the form: organizations/`org`/environments/`env` - # /references/`ref`. + # Reference name in the following format: `organizations/`org`/environments/`env` + # /references/`reference`` # Corresponds to the JSON property `reference` # @return [String] attr_accessor :reference @@ -3042,8 +3049,8 @@ module Google # @return [Array] attr_accessor :aliases - # The resource name. Must be of the form: 'organizations/`org`/environments/`env` - # /keystores/`keystore`'. + # Resource name in the following format: `organizations/`org`/environments/`env`/ + # keystores/`keystore`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3513,6 +3520,88 @@ module Google end end + # OperationConfig binds the resources in a proxy or remote service with the + # allowed REST methods and its associated quota enforcement. + class GoogleCloudApigeeV1OperationConfig + include Google::Apis::Core::Hashable + + # Required. api_source represents either a proxy or remote service name for + # which the resources, methods and quota are associated with. + # Corresponds to the JSON property `apiSource` + # @return [String] + attr_accessor :api_source + + # custom attribute associated with the operation. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + # methods refers to the REST verbs as in https://www.w3.org/Protocols/rfc2616/ + # rfc2616-sec9.html. When none specified, all verb types are allowed. + # Corresponds to the JSON property `methods` + # @return [Array] + attr_accessor :methods_prop + + # Quota contains the essential parameters needed that can be applied on a proxy/ + # remote service, resources and methods combination associated with this API + # product. While setting of Quota is optional, setting it prevents requests from + # exceeding the provisioned parameters. + # Corresponds to the JSON property `quota` + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Quota] + attr_accessor :quota + + # Required. resources represents a list of REST resource path associated with + # the proxy/remote service. + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_source = args[:api_source] if args.key?(:api_source) + @attributes = args[:attributes] if args.key?(:attributes) + @methods_prop = args[:methods_prop] if args.key?(:methods_prop) + @quota = args[:quota] if args.key?(:quota) + @resources = args[:resources] if args.key?(:resources) + end + end + + # The OperationGroup contains a list of configuration details associated with + # Apigee proxies or Remote services. Remote services are non-Apigee Edge proxies. + # eg, Istio-Envoy. + class GoogleCloudApigeeV1OperationGroup + include Google::Apis::Core::Hashable + + # Identfies whether the configuration is for Apigee proxy or a remote service. + # Possible values are "proxy" and "remote_service". If none specified, the + # default is "proxy". "proxy" is used when Apigee proxies are associated with + # the API product. "remote_service" is used when non-Apigee proxy like Envoy is + # used, and is associated with the API product. + # Corresponds to the JSON property `operationConfigType` + # @return [String] + attr_accessor :operation_config_type + + # Required. A list of OperationConfig for either Apigee proxies or other other + # remote services, that are associated with this API product. + # Corresponds to the JSON property `operationConfigs` + # @return [Array] + attr_accessor :operation_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_config_type = args[:operation_config_type] if args.key?(:operation_config_type) + @operation_configs = args[:operation_configs] if args.key?(:operation_configs) + end + end + # Metadata describing an Operation. class GoogleCloudApigeeV1OperationMetadata include Google::Apis::Core::Hashable @@ -4117,6 +4206,44 @@ module Google end end + # Quota contains the essential parameters needed that can be applied on a proxy/ + # remote service, resources and methods combination associated with this API + # product. While setting of Quota is optional, setting it prevents requests from + # exceeding the provisioned parameters. + class GoogleCloudApigeeV1Quota + include Google::Apis::Core::Hashable + + # Required. The time interval over which the number of request messages is + # calculated. + # Corresponds to the JSON property `interval` + # @return [String] + attr_accessor :interval + + # Required. Limit represents the upper bound count allowed for the time interval + # and time unit specified. Requests exceeding this limit will get rejected. + # Corresponds to the JSON property `limit` + # @return [String] + attr_accessor :limit + + # The time unit defined for the `interval`. Valid values include minute, hour, + # day, or month. The default value is empty. If limit and interval are valid, + # the default value is "hour". + # Corresponds to the JSON property `timeUnit` + # @return [String] + attr_accessor :time_unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @interval = args[:interval] if args.key?(:interval) + @limit = args[:limit] if args.key?(:limit) + @time_unit = args[:time_unit] if args.key?(:time_unit) + end + end + # A Reference configuration. References must refer to a keystore that also # exists in the parent environment. class GoogleCloudApigeeV1Reference @@ -4163,15 +4290,15 @@ module Google class GoogleCloudApigeeV1ReferenceConfig include Google::Apis::Core::Hashable - # The name of the reference. Must be of the form 'organizations/`org`/ - # environments/`env`/references/`ref`'. + # Name of the reference in the following format: `organizations/`org`/ + # environments/`env`/references/`reference`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The name of the referred resource. Only references to keystore resources are - # supported. Must be of the form 'organizations/`org`/environments/`env`/ - # keystores/`ks`'. + # Name of the referenced resource in the following format: `organizations/`org`/ + # environments/`env`/keystores/`keystore`` Only references to keystore resources + # are supported. # Corresponds to the JSON property `resourceName` # @return [String] attr_accessor :resource_name @@ -4263,14 +4390,14 @@ module Google class GoogleCloudApigeeV1ResourceConfig include Google::Apis::Core::Hashable - # The location of the resource as a URI. + # Location of the resource as a URI. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # The resource name. Only environment-scoped resource files are supported. Must - # be of the form 'organizations/`org`/environments/`env`/resourcefiles/`type`/` - # file`/revisions/`rev`'. + # Resource name in the following format: `organizations/`org`/environments/`env`/ + # resourcefiles/`type`/`file`/revisions/`rev`` Only environment-scoped resource + # files are supported. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4994,23 +5121,23 @@ module Google class GoogleCloudApigeeV1TargetServerConfig include Google::Apis::Core::Hashable - # Target host name. + # Host name of the target server. # Corresponds to the JSON property `host` # @return [String] attr_accessor :host - # The target server revision name. Must be of the form 'organizations/`org`/ - # environments/`env`/targetservers/`ts_id`/revisions/`rev`'. + # Target server revision name in the following format: `organizations/`org`/ + # environments/`env`/targetservers/`targetserver`/revisions/`rev`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Target port. + # Port number for the target server. # Corresponds to the JSON property `port` # @return [Fixnum] attr_accessor :port - # TLS settings for the target. + # TLS settings for the target server. # Corresponds to the JSON property `tlsInfo` # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoConfig] attr_accessor :tls_info @@ -5162,54 +5289,57 @@ module Google class GoogleCloudApigeeV1TlsInfoConfig include Google::Apis::Core::Hashable - # Whitelist of supported ciphers. + # List of ciphers that are granted access. # Corresponds to the JSON property `ciphers` # @return [Array] attr_accessor :ciphers - # Indicates if client auth is enabled for the target. Enables two-way TLS. + # Flag that specifies whether client-side authentication is enabled for the + # target server. Enables two-way TLS. # Corresponds to the JSON property `clientAuthEnabled` # @return [Boolean] attr_accessor :client_auth_enabled alias_method :client_auth_enabled?, :client_auth_enabled - # Common name to validate the target against. + # Common name to validate the target server against. # Corresponds to the JSON property `commonName` # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1CommonNameConfig] attr_accessor :common_name - # Enables one-way TLS. + # Flag that specifies whether one-way TLS is enabled. Set to `true` to enable + # one-way TLS. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled - # If true, ignore TLS certificate validation errors. + # Flag that specifies whether to ignore TLS certificate validation errors. Set + # to `true` to ignore errors. # Corresponds to the JSON property `ignoreValidationErrors` # @return [Boolean] attr_accessor :ignore_validation_errors alias_method :ignore_validation_errors?, :ignore_validation_errors - # The name of the Alias used for client side auth. It must be of the form: - # organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias` + # Name of the alias used for client-side authentication in the following format: + # `organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias`` # Corresponds to the JSON property `keyAlias` # @return [String] attr_accessor :key_alias - # A pair of reference name and alias to use for client side auth. + # Reference name and alias pair to use for client-side authentication. # Corresponds to the JSON property `keyAliasReference` # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1KeyAliasReference] attr_accessor :key_alias_reference - # Whitelist of supported TLS protocols. + # List of TLS protocols that are granted access. # Corresponds to the JSON property `protocols` # @return [Array] attr_accessor :protocols - # The name of the Keystore or keystore reference containing trusted certificates - # for the server. It must be of either the form organizations/`org`/environments/ - # `env`/keystores/`keystore` or organizations/`org`/environments/`env`/ - # references/`reference`. + # Name of the keystore or keystore reference containing trusted certificates for + # the server in the following format: `organizations/`org`/environments/`env`/ + # keystores/`keystore`` or `organizations/`org`/environments/`env`/references/` + # reference`` # Corresponds to the JSON property `trustStore` # @return [String] attr_accessor :trust_store diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index 46584b7a9..ea694ef3c 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -520,6 +520,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1OperationConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudApigeeV1OperationGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -598,6 +610,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1Quota + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1Reference class Representation < Google::Apis::Core::JsonRepresentation; end @@ -940,6 +958,8 @@ module Google collection :environments, as: 'environments' property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt' property :name, as: 'name' + property :operation_group, as: 'operationGroup', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup::Representation + collection :proxies, as: 'proxies' property :quota, as: 'quota' property :quota_interval, as: 'quotaInterval' @@ -1792,6 +1812,28 @@ module Google end end + class GoogleCloudApigeeV1OperationConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_source, as: 'apiSource' + collection :attributes, as: 'attributes', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute::Representation + + collection :methods_prop, as: 'methods' + property :quota, as: 'quota', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Quota, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Quota::Representation + + collection :resources, as: 'resources' + end + end + + class GoogleCloudApigeeV1OperationGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_config_type, as: 'operationConfigType' + collection :operation_configs, as: 'operationConfigs', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationConfig::Representation + + end + end + class GoogleCloudApigeeV1OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1939,6 +1981,15 @@ module Google end end + class GoogleCloudApigeeV1Quota + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :interval, as: 'interval' + property :limit, as: 'limit' + property :time_unit, as: 'timeUnit' + end + end + class GoogleCloudApigeeV1Reference # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/apigee_v1/service.rb b/generated/google/apis/apigee_v1/service.rb index 1c432749b..62407c01d 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -3591,9 +3591,6 @@ module Google # @param [String] name # Required. Name of the API proxy revision deployment in the following format: ` # organizations/`org`/environments/`env`/apis/`api`/revisions/`rev`` - # @param [String] basepath - # Base path where the API proxy revision should be deployed. Defaults to '/' if - # not provided. # @param [Boolean] override # Flag that specifies whether the new deployment replaces other deployed # revisions of the API proxy in the environment. Set override to true to replace @@ -3628,12 +3625,11 @@ 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 deploy_organization_environment_api_revision(name, basepath: nil, override: nil, sequenced_rollout: nil, fields: nil, quota_user: nil, options: nil, &block) + def deploy_organization_environment_api_revision(name, override: nil, sequenced_rollout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}/deployments', options) command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment::Representation command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment command.params['name'] = name unless name.nil? - command.query['basepath'] = basepath unless basepath.nil? command.query['override'] = override unless override.nil? command.query['sequencedRollout'] = sequenced_rollout unless sequenced_rollout.nil? command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/civicinfo_v2.rb b/generated/google/apis/civicinfo_v2.rb index 42eff2dfa..7bab2a5cd 100644 --- a/generated/google/apis/civicinfo_v2.rb +++ b/generated/google/apis/civicinfo_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/civic-information/ module CivicinfoV2 VERSION = 'V2' - REVISION = '20200804' + REVISION = '20200824' end end end diff --git a/generated/google/apis/cloudbilling_v1.rb b/generated/google/apis/cloudbilling_v1.rb index f603f2b09..c44883000 100644 --- a/generated/google/apis/cloudbilling_v1.rb +++ b/generated/google/apis/cloudbilling_v1.rb @@ -26,7 +26,13 @@ module Google # @see https://cloud.google.com/billing/ module CloudbillingV1 VERSION = 'V1' - REVISION = '20200817' + REVISION = '20200821' + + # View and manage your Google Cloud Platform billing accounts + AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing' + + # View your Google Cloud Platform billing accounts + AUTH_CLOUD_BILLING_READONLY = 'https://www.googleapis.com/auth/cloud-billing.readonly' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudbuild_v1alpha1.rb b/generated/google/apis/cloudbuild_v1alpha1.rb index 8800cfa41..179cdd8c7 100644 --- a/generated/google/apis/cloudbuild_v1alpha1.rb +++ b/generated/google/apis/cloudbuild_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200817' + REVISION = '20200824' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudbuild_v1alpha2.rb b/generated/google/apis/cloudbuild_v1alpha2.rb index 1318ace46..28108cfad 100644 --- a/generated/google/apis/cloudbuild_v1alpha2.rb +++ b/generated/google/apis/cloudbuild_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/cloud-build/docs/ module CloudbuildV1alpha2 VERSION = 'V1alpha2' - REVISION = '20200817' + REVISION = '20200824' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/networkmanagement_v1.rb b/generated/google/apis/networkmanagement_v1.rb index d2893b803..58b428479 100644 --- a/generated/google/apis/networkmanagement_v1.rb +++ b/generated/google/apis/networkmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module NetworkmanagementV1 VERSION = 'V1' - REVISION = '20200615' + REVISION = '20200820' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/networkmanagement_v1/classes.rb b/generated/google/apis/networkmanagement_v1/classes.rb index 38b2f63a3..b92fb1fe8 100644 --- a/generated/google/apis/networkmanagement_v1/classes.rb +++ b/generated/google/apis/networkmanagement_v1/classes.rb @@ -47,53 +47,21 @@ module Google end end - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -102,9 +70,9 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -120,28 +88,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -167,69 +122,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # 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: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # 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: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::NetworkmanagementV1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -268,8 +211,8 @@ module Google # @return [String] attr_accessor :create_time - # The user-supplied description of the Connectivity Test. - # Maximum of 512 characters. + # The user-supplied description of the Connectivity Test. Maximum of 512 + # characters. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -289,8 +232,8 @@ module Google # @return [Hash] attr_accessor :labels - # Required. Unique name of the resource using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. Unique name of the resource using the form: `projects/`project_id`/ + # locations/global/connectivityTests/`test_id`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -305,8 +248,8 @@ module Google # @return [Google::Apis::NetworkmanagementV1::ReachabilityDetails] attr_accessor :reachability_details - # Other projects that may be relevant for reachability analysis. - # This is applicable to scenarios where a test can cross project boundaries. + # Other projects that may be relevant for reachability analysis. This is + # applicable to scenarios where a test can cross project boundaries. # Corresponds to the JSON property `relatedProjects` # @return [Array] attr_accessor :related_projects @@ -391,13 +334,11 @@ module Google 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 ````. + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -419,9 +360,9 @@ module Google # @return [String] attr_accessor :instance - # The IP address of the endpoint, which can be an external or internal IP. - # An IPv6 address is only allowed when the test's destination is a - # [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + # The IP address of the endpoint, which can be an external or internal IP. An + # IPv6 address is only allowed when the test's destination is a [global load + # balancer VIP](/load-balancing/docs/load-balancing-overview). # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address @@ -431,28 +372,25 @@ module Google # @return [String] attr_accessor :network - # Type of the network where the endpoint is located. - # Applicable only to source endpoint, as destination network type can be - # inferred from the source. + # Type of the network where the endpoint is located. Applicable only to source + # endpoint, as destination network type can be inferred from the source. # Corresponds to the JSON property `networkType` # @return [String] attr_accessor :network_type - # The IP protocol port of the endpoint. - # Only applicable when protocol is TCP or UDP. + # The IP protocol port of the endpoint. Only applicable when protocol is TCP or + # UDP. # Corresponds to the JSON property `port` # @return [Fixnum] attr_accessor :port - # Project ID where the endpoint is located. - # The Project ID can be derived from the URI if you provide a VM instance or - # network URI. - # The following are two cases where you must provide the project ID: - # 1. Only the IP address is specified, and the IP address is within a GCP + # Project ID where the endpoint is located. The Project ID can be derived from + # the URI if you provide a VM instance or network URI. The following are two + # cases where you must provide the project ID: 1. Only the IP address is + # specified, and the IP address is within a GCP project. 2. When you are using + # Shared VPC and the IP address that you provide is from the service project. In + # this case, the network that the IP address resides in is defined in the host # project. - # 2. When you are using Shared VPC and the IP address that you provide is - # from the service project. In this case, the network that the IP address - # resides in is defined in the host project. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -473,8 +411,8 @@ module Google end # 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. + # EndpointInfo is derived from source and destination Endpoint and validated by + # the backend data plane model. class EndpointInfo include Google::Apis::Core::Hashable @@ -529,52 +467,43 @@ module Google end end - # 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: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # 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: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -631,8 +560,7 @@ module Google # @return [Array] attr_accessor :target_tags - # URI of a Compute Engine firewall rule. - # Implied default rule does not have URI. + # URI of a Compute Engine firewall rule. Implied default rule does not have URI. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -966,14 +894,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -989,8 +917,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1045,47 +973,45 @@ module Google class Operation 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. + # 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). + # 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::NetworkmanagementV1::Status] 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. + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. + # 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`. + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -1134,8 +1060,8 @@ module Google # @return [String] attr_accessor :status_detail - # Target of the operation - for example - # projects/project-1/locations/global/connectivityTests/test-1 + # Target of the operation - for example projects/project-1/locations/global/ + # connectivityTests/test-1 # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -1162,66 +1088,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1230,48 +1122,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1293,12 +1181,12 @@ module Google class ReachabilityDetails include Google::Apis::Core::Hashable - # 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). + # 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::NetworkmanagementV1::Status] attr_accessor :error @@ -1308,9 +1196,9 @@ module Google # @return [String] attr_accessor :result - # Result may contain a list of traces if a test has multiple possible - # paths in the network, such as when destination endpoint is a load balancer - # with multiple backends. + # Result may contain a list of traces if a test has multiple possible paths in + # the network, such as when destination endpoint is a load balancer with + # multiple backends. # Corresponds to the JSON property `traces` # @return [Array] attr_accessor :traces @@ -1390,9 +1278,8 @@ module Google # @return [String] attr_accessor :route_type - # URI of a Compute Engine route. - # Dynamic route from cloud router does not have a URI. - # Advertised route from Google Cloud VPC to on-premises network also does + # URI of a Compute Engine route. Dynamic route from cloud router does not have a + # URI. Advertised route from Google Cloud VPC to on-premises network also does # not have a URI. # Corresponds to the JSON property `uri` # @return [String] @@ -1421,74 +1308,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::NetworkmanagementV1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -1504,12 +1356,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1518,15 +1370,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. + # 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 @@ -1543,8 +1395,8 @@ module Google end end - # A simulated forwarding path is composed of multiple steps. - # Each step has a well-defined state and an associated configuration. + # A simulated forwarding path is composed of multiple steps. Each step has a + # well-defined state and an associated configuration. class Step include Google::Apis::Core::Hashable @@ -1575,8 +1427,8 @@ module Google attr_accessor :drop # 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. + # EndpointInfo is derived from source and destination Endpoint and validated by + # the backend data plane model. # Corresponds to the JSON property `endpoint` # @return [Google::Apis::NetworkmanagementV1::EndpointInfo] attr_accessor :endpoint @@ -1666,10 +1518,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1688,8 +1539,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1704,33 +1554,27 @@ module Google end end - # Trace represents one simulated packet forwarding path. - #
    - #
  • Each trace contains multiple ordered steps.
  • - #
  • Each step is in a particular state and has an associated - # configuration.
  • State is categorized as a final or non-final - # state.
  • Each final state has a reason associated with it.
  • - #
  • Each trace must end with a final state (the last step).
  • - #
- #

-      # |---------------------Trace----------------------|
-      # Step1(State) Step2(State) ---  StepN(State(final))
-      # 
+ # Trace represents one simulated packet forwarding path. - Each trace contains + # multiple ordered steps. - Each step is in a particular state and has an + # associated configuration. - State is categorized as a final or non-final state. + # - Each final state has a reason associated with it. - Each trace must end + # with a final state (the last step). |---------------------Trace---------------- + # ------| Step1(State) Step2(State) --- StepN(State(final)) class Trace include Google::Apis::Core::Hashable # 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. + # 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::NetworkmanagementV1::EndpointInfo] attr_accessor :endpoint_info - # A trace of a test contains multiple steps from the initial state to the - # final state (delivered, dropped, forwarded, or aborted). - # The steps are ordered by the processing sequence within the simulated - # network state machine. It is critical to preserve the order of the steps - # and avoid reordering or sorting them. + # A trace of a test contains multiple steps from the initial state to the final + # state (delivered, dropped, forwarded, or aborted). The steps are ordered by + # the processing sequence within the simulated network state machine. It is + # critical to preserve the order of the steps and avoid reordering or sorting + # them. # Corresponds to the JSON property `steps` # @return [Array] attr_accessor :steps @@ -1775,9 +1619,9 @@ module Google # @return [String] attr_accessor :uri - # A VPN tunnel that is associated with this VPN gateway. - # There may be multiple VPN tunnels configured on a VPN gateway, and only - # the one relevant to the test is displayed. + # A VPN tunnel that is associated with this VPN gateway. There may be multiple + # VPN tunnels configured on a VPN gateway, and only the one relevant to the test + # is displayed. # Corresponds to the JSON property `vpnTunnelUri` # @return [String] attr_accessor :vpn_tunnel_uri diff --git a/generated/google/apis/networkmanagement_v1/service.rb b/generated/google/apis/networkmanagement_v1/service.rb index a1ed1d177..d058c47ae 100644 --- a/generated/google/apis/networkmanagement_v1/service.rb +++ b/generated/google/apis/networkmanagement_v1/service.rb @@ -117,29 +117,24 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new Connectivity Test. - # After you create a test, the reachability analysis is performed as part - # of the long running operation, which completes when the analysis completes. - # If the endpoint specifications in `ConnectivityTest` are invalid - # (for example, containing non-existent resources in the network, or you - # don't have read permissions to the network configurations of listed - # projects), then the reachability result returns a value of `UNKNOWN`. - # If the endpoint specifications in `ConnectivityTest` are - # incomplete, the reachability result returns a value of - # AMBIGUOUS. For more information, - # see the Connectivity Test documentation. + # Creates a new Connectivity Test. After you create a test, the reachability + # analysis is performed as part of the long running operation, which completes + # when the analysis completes. If the endpoint specifications in ` + # ConnectivityTest` are invalid (for example, containing non-existent resources + # in the network, or you don't have read permissions to the network + # configurations of listed projects), then the reachability result returns a + # value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are + # incomplete, the reachability result returns a value of AMBIGUOUS. For more + # information, see the Connectivity Test documentation. # @param [String] parent - # Required. The parent resource of the Connectivity Test to create: - # `projects/`project_id`/locations/global` + # Required. The parent resource of the Connectivity Test to create: `projects/` + # project_id`/locations/global` # @param [Google::Apis::NetworkmanagementV1::ConnectivityTest] connectivity_test_object # @param [String] test_id - # Required. The logical name of the Connectivity Test in your project - # with the following restrictions: - # * Must contain only lowercase letters, numbers, and hyphens. - # * Must start with a letter. - # * Must be between 1-40 characters. - # * Must end with a number or a letter. - # * Must be unique within the customer project + # Required. The logical name of the Connectivity Test in your project with the + # following restrictions: * Must contain only lowercase letters, numbers, and + # hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must + # end with a number or a letter. * Must be unique within the customer project # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -172,8 +167,8 @@ module Google # Deletes a specific `ConnectivityTest`. # @param [String] name - # Required. Connectivity Test resource name using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. Connectivity Test resource name using the form: `projects/` + # project_id`/locations/global/connectivityTests/`test_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -203,8 +198,8 @@ module Google # Gets the details of a specific Connectivity Test. # @param [String] name - # Required. `ConnectivityTest` resource name using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. `ConnectivityTest` resource name using the form: `projects/` + # project_id`/locations/global/connectivityTests/`test_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -232,22 +227,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -278,25 +270,18 @@ module Google # Lists all Connectivity Tests owned by a project. # @param [String] parent - # Required. The parent resource of the Connectivity Tests: - # `projects/`project_id`/locations/global` + # Required. The parent resource of the Connectivity Tests: `projects/`project_id` + # /locations/global` # @param [String] filter # Lists the `ConnectivityTests` that match the filter expression. A filter - # expression filters the resources listed in the response. The expression - # must be of the form ` ` where operators: `<`, `>`, - # `<=`, - # `>=`, - # `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is - # roughly synonymous with equality). can refer to a proto or JSON - # field, or a synthetic field. Field names can be camelCase or snake_case. - # Examples: - # - Filter by name: - # name = "projects/proj-1/locations/global/connectivityTests/test-1 - # - Filter by labels: - # - Resources that have a key called `foo` - # labels.foo:* - # - Resources that have a key called `foo` whose value is `bar` - # labels.foo = bar + # expression filters the resources listed in the response. The expression must + # be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are + # supported (colon `:` represents a HAS operator which is roughly synonymous + # with equality). can refer to a proto or JSON field, or a synthetic field. + # Field names can be camelCase or snake_case. Examples: - Filter by name: name = + # "projects/proj-1/locations/global/connectivityTests/test-1 - Filter by labels: + # - Resources that have a key called `foo` labels.foo:* - Resources that have a + # key called `foo` whose value is `bar` labels.foo = bar # @param [String] order_by # Field to use to sort the list. # @param [Fixnum] page_size @@ -334,25 +319,24 @@ module Google execute_or_queue_command(command, &block) end - # Updates the configuration of an existing `ConnectivityTest`. - # After you update a test, the reachability analysis is performed as part - # of the long running operation, which completes when the analysis completes. - # The Reachability state in the test resource is updated with the new result. - # If the endpoint specifications in `ConnectivityTest` are invalid - # (for example, they contain non-existent resources in the network, or the - # user does not have read permissions to the network configurations of - # listed projects), then the reachability result returns a value of - # UNKNOWN. - # If the endpoint specifications in `ConnectivityTest` are incomplete, the - # reachability result returns a value of `AMBIGUOUS`. See the documentation - # in `ConnectivityTest` for for more details. + # Updates the configuration of an existing `ConnectivityTest`. After you update + # a test, the reachability analysis is performed as part of the long running + # operation, which completes when the analysis completes. The Reachability state + # in the test resource is updated with the new result. If the endpoint + # specifications in `ConnectivityTest` are invalid (for example, they contain + # non-existent resources in the network, or the user does not have read + # permissions to the network configurations of listed projects), then the + # reachability result returns a value of UNKNOWN. If the endpoint specifications + # in `ConnectivityTest` are incomplete, the reachability result returns a value + # of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more + # details. # @param [String] name - # Required. Unique name of the resource using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. Unique name of the resource using the form: `projects/`project_id`/ + # locations/global/connectivityTests/`test_id`` # @param [Google::Apis::NetworkmanagementV1::ConnectivityTest] connectivity_test_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. + # Required. Mask of fields to update. At least one path must be supplied in this + # field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -383,19 +367,17 @@ module Google execute_or_queue_command(command, &block) end - # Rerun an existing `ConnectivityTest`. - # After the user triggers the rerun, the reachability analysis is performed - # as part of the long running operation, which completes when the analysis - # completes. - # Even though the test configuration remains the same, the reachability - # result may change due to underlying network configuration changes. - # If the endpoint specifications in `ConnectivityTest` become invalid (for - # example, specified resources are deleted in the network, or you lost - # read permissions to the network configurations of listed projects), then - # the reachability result returns a value of `UNKNOWN`. + # Rerun an existing `ConnectivityTest`. After the user triggers the rerun, the + # reachability analysis is performed as part of the long running operation, + # which completes when the analysis completes. Even though the test + # configuration remains the same, the reachability result may change due to + # underlying network configuration changes. If the endpoint specifications in ` + # ConnectivityTest` become invalid (for example, specified resources are deleted + # in the network, or you lost read permissions to the network configurations of + # listed projects), then the reachability result returns a value of `UNKNOWN`. # @param [String] name - # Required. Connectivity Test resource name using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. Connectivity Test resource name using the form: `projects/` + # project_id`/locations/global/connectivityTests/`test_id`` # @param [Google::Apis::NetworkmanagementV1::RerunConnectivityTestRequest] rerun_connectivity_test_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -427,11 +409,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::NetworkmanagementV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -462,15 +444,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::NetworkmanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -501,15 +482,13 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -543,10 +522,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -576,9 +555,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. + # 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 @@ -608,15 +586,14 @@ module Google 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. + # 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 diff --git a/generated/google/apis/networkmanagement_v1beta1.rb b/generated/google/apis/networkmanagement_v1beta1.rb index e1a1fce84..5697899ba 100644 --- a/generated/google/apis/networkmanagement_v1beta1.rb +++ b/generated/google/apis/networkmanagement_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module NetworkmanagementV1beta1 VERSION = 'V1beta1' - REVISION = '20200615' + REVISION = '20200820' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/networkmanagement_v1beta1/classes.rb b/generated/google/apis/networkmanagement_v1beta1/classes.rb index 803cdf681..9bac29eea 100644 --- a/generated/google/apis/networkmanagement_v1beta1/classes.rb +++ b/generated/google/apis/networkmanagement_v1beta1/classes.rb @@ -47,53 +47,21 @@ module Google end end - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -102,9 +70,9 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -120,28 +88,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -167,69 +122,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # 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: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # 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: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::NetworkmanagementV1beta1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -259,6 +202,56 @@ module Google end end + # For display only. Metadata associated with a Cloud SQL instance. + class CloudSqlInstanceInfo + include Google::Apis::Core::Hashable + + # Name of a Cloud SQL instance. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # External IP address of Cloud SQL instance. + # Corresponds to the JSON property `externalIp` + # @return [String] + attr_accessor :external_ip + + # Internal IP address of Cloud SQL instance. + # Corresponds to the JSON property `internalIp` + # @return [String] + attr_accessor :internal_ip + + # URI of a Cloud SQL instance network or empty string if instance does not have + # one. + # Corresponds to the JSON property `networkUri` + # @return [String] + attr_accessor :network_uri + + # Region in which the Cloud SQL instance is running. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # URI of a Cloud SQL instance. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @external_ip = args[:external_ip] if args.key?(:external_ip) + @internal_ip = args[:internal_ip] if args.key?(:internal_ip) + @network_uri = args[:network_uri] if args.key?(:network_uri) + @region = args[:region] if args.key?(:region) + @uri = args[:uri] if args.key?(:uri) + end + end + # A Connectivity Test for a network reachability analysis. class ConnectivityTest include Google::Apis::Core::Hashable @@ -268,8 +261,8 @@ module Google # @return [String] attr_accessor :create_time - # The user-supplied description of the Connectivity Test. - # Maximum of 512 characters. + # The user-supplied description of the Connectivity Test. Maximum of 512 + # characters. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -289,8 +282,8 @@ module Google # @return [Hash] attr_accessor :labels - # Required. Unique name of the resource using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test`` + # Required. Unique name of the resource using the form: `projects/`project_id`/ + # locations/global/connectivityTests/`test`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -305,8 +298,8 @@ module Google # @return [Google::Apis::NetworkmanagementV1beta1::ReachabilityDetails] attr_accessor :reachability_details - # Other projects that may be relevant for reachability analysis. - # This is applicable to scenarios where a test can cross project boundaries. + # Other projects that may be relevant for reachability analysis. This is + # applicable to scenarios where a test can cross project boundaries. # Corresponds to the JSON property `relatedProjects` # @return [Array] attr_accessor :related_projects @@ -391,13 +384,11 @@ module Google 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 ````. + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -414,14 +405,26 @@ module Google class Endpoint include Google::Apis::Core::Hashable + # A [Cloud SQL](https://cloud.google.com/sql) instance URI. + # Corresponds to the JSON property `cloudSqlInstance` + # @return [String] + attr_accessor :cloud_sql_instance + + # A cluster URI for [Google Kubernetes Engine master](https://cloud.google.com/ + # kubernetes-engine/docs/concepts/cluster-architecture). + # Corresponds to the JSON property `gkeMasterCluster` + # @return [String] + attr_accessor :gke_master_cluster + # A Compute Engine instance URI. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance - # The IP address of the endpoint, which can be an external or internal IP. - # An IPv6 address is only allowed when the test's destination is a - # [global load balancer VIP](/load-balancing/docs/load-balancing-overview). + # The IP address of the endpoint, which can be an external or internal IP. An + # IPv6 address is only allowed when the test's destination is a [global load + # balancer VIP](https://cloud.google.com/load-balancing/docs/load-balancing- + # overview). # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address @@ -431,28 +434,25 @@ module Google # @return [String] attr_accessor :network - # Type of the network where the endpoint is located. - # Applicable only to source endpoint, as destination network type can be - # inferred from the source. + # Type of the network where the endpoint is located. Applicable only to source + # endpoint, as destination network type can be inferred from the source. # Corresponds to the JSON property `networkType` # @return [String] attr_accessor :network_type - # The IP protocol port of the endpoint. - # Only applicable when protocol is TCP or UDP. + # The IP protocol port of the endpoint. Only applicable when protocol is TCP or + # UDP. # Corresponds to the JSON property `port` # @return [Fixnum] attr_accessor :port - # Project ID where the endpoint is located. - # The Project ID can be derived from the URI if you provide a VM instance or - # network URI. - # The following are two cases where you must provide the project ID: - # 1. Only the IP address is specified, and the IP address is within a GCP + # Project ID where the endpoint is located. The Project ID can be derived from + # the URI if you provide a VM instance or network URI. The following are two + # cases where you must provide the project ID: 1. Only the IP address is + # specified, and the IP address is within a GCP project. 2. When you are using + # Shared VPC and the IP address that you provide is from the service project. In + # this case, the network that the IP address resides in is defined in the host # project. - # 2. When you are using Shared VPC and the IP address that you provide is - # from the service project. In this case, the network that the IP address - # resides in is defined in the host project. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id @@ -463,6 +463,8 @@ module Google # Update properties of this object def update!(**args) + @cloud_sql_instance = args[:cloud_sql_instance] if args.key?(:cloud_sql_instance) + @gke_master_cluster = args[:gke_master_cluster] if args.key?(:gke_master_cluster) @instance = args[:instance] if args.key?(:instance) @ip_address = args[:ip_address] if args.key?(:ip_address) @network = args[:network] if args.key?(:network) @@ -473,8 +475,8 @@ module Google end # 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. + # EndpointInfo is derived from source and destination Endpoint and validated by + # the backend data plane model. class EndpointInfo include Google::Apis::Core::Hashable @@ -529,52 +531,43 @@ module Google end end - # 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: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # 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: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -631,8 +624,7 @@ module Google # @return [Array] attr_accessor :target_tags - # URI of a Compute Engine firewall rule. - # Implied default rule does not have URI. + # URI of a Compute Engine firewall rule. Implied default rule does not have URI. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -734,6 +726,44 @@ module Google end end + # For display only. Metadata associated with a Google Kubernetes Engine cluster + # master. + class GkeMasterInfo + include Google::Apis::Core::Hashable + + # URI of a Google Kubernetes Engine cluster network. + # Corresponds to the JSON property `clusterNetworkUri` + # @return [String] + attr_accessor :cluster_network_uri + + # URI of a Google Kubernetes Engine cluster. + # Corresponds to the JSON property `clusterUri` + # @return [String] + attr_accessor :cluster_uri + + # External IP address of a Google Kubernetes Engine cluster master. + # Corresponds to the JSON property `externalIp` + # @return [String] + attr_accessor :external_ip + + # Internal IP address of a Google Kubernetes Engine cluster master. + # Corresponds to the JSON property `internalIp` + # @return [String] + attr_accessor :internal_ip + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_network_uri = args[:cluster_network_uri] if args.key?(:cluster_network_uri) + @cluster_uri = args[:cluster_uri] if args.key?(:cluster_uri) + @external_ip = args[:external_ip] if args.key?(:external_ip) + @internal_ip = args[:internal_ip] if args.key?(:internal_ip) + end + end + # For display only. Metadata associated with a Compute Engine instance. class InstanceInfo include Google::Apis::Core::Hashable @@ -966,14 +996,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -989,8 +1019,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1045,47 +1075,45 @@ module Google class Operation 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. + # 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). + # 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 - # 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. + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. + # 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`. + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -1134,8 +1162,8 @@ module Google # @return [String] attr_accessor :status_detail - # Target of the operation - for example - # projects/project-1/locations/global/connectivityTests/test-1 + # Target of the operation - for example projects/project-1/locations/global/ + # connectivityTests/test-1 # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -1162,66 +1190,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1230,48 +1224,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1293,12 +1283,12 @@ module Google class ReachabilityDetails include Google::Apis::Core::Hashable - # 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). + # 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 @@ -1308,9 +1298,9 @@ module Google # @return [String] attr_accessor :result - # Result may contain a list of traces if a test has multiple possible - # paths in the network, such as when destination endpoint is a load balancer - # with multiple backends. + # Result may contain a list of traces if a test has multiple possible paths in + # the network, such as when destination endpoint is a load balancer with + # multiple backends. # Corresponds to the JSON property `traces` # @return [Array] attr_accessor :traces @@ -1390,9 +1380,8 @@ module Google # @return [String] attr_accessor :route_type - # URI of a Compute Engine route. - # Dynamic route from cloud router does not have a URI. - # Advertised route from Google Cloud VPC to on-premises network also does + # URI of a Compute Engine route. Dynamic route from cloud router does not have a + # URI. Advertised route from Google Cloud VPC to on-premises network also does # not have a URI. # Corresponds to the JSON property `uri` # @return [String] @@ -1421,74 +1410,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::NetworkmanagementV1beta1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -1504,12 +1458,12 @@ module Google 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). + # 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 Status include Google::Apis::Core::Hashable @@ -1518,15 +1472,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. + # 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 @@ -1543,8 +1497,8 @@ module Google end end - # A simulated forwarding path is composed of multiple steps. - # Each step has a well-defined state and an associated configuration. + # A simulated forwarding path is composed of multiple steps. Each step has a + # well-defined state and an associated configuration. class Step include Google::Apis::Core::Hashable @@ -1559,6 +1513,11 @@ module Google attr_accessor :causes_drop alias_method :causes_drop?, :causes_drop + # For display only. Metadata associated with a Cloud SQL instance. + # Corresponds to the JSON property `cloudSqlInstance` + # @return [Google::Apis::NetworkmanagementV1beta1::CloudSqlInstanceInfo] + attr_accessor :cloud_sql_instance + # Details of the final state "deliver" and associated resource. # Corresponds to the JSON property `deliver` # @return [Google::Apis::NetworkmanagementV1beta1::DeliverInfo] @@ -1575,8 +1534,8 @@ module Google attr_accessor :drop # 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. + # EndpointInfo is derived from source and destination Endpoint and validated by + # the backend data plane model. # Corresponds to the JSON property `endpoint` # @return [Google::Apis::NetworkmanagementV1beta1::EndpointInfo] attr_accessor :endpoint @@ -1596,6 +1555,12 @@ module Google # @return [Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo] attr_accessor :forwarding_rule + # For display only. Metadata associated with a Google Kubernetes Engine cluster + # master. + # Corresponds to the JSON property `gkeMaster` + # @return [Google::Apis::NetworkmanagementV1beta1::GkeMasterInfo] + attr_accessor :gke_master + # For display only. Metadata associated with a Compute Engine instance. # Corresponds to the JSON property `instance` # @return [Google::Apis::NetworkmanagementV1beta1::InstanceInfo] @@ -1644,6 +1609,7 @@ module Google def update!(**args) @abort = args[:abort] if args.key?(:abort) @causes_drop = args[:causes_drop] if args.key?(:causes_drop) + @cloud_sql_instance = args[:cloud_sql_instance] if args.key?(:cloud_sql_instance) @deliver = args[:deliver] if args.key?(:deliver) @description = args[:description] if args.key?(:description) @drop = args[:drop] if args.key?(:drop) @@ -1651,6 +1617,7 @@ module Google @firewall = args[:firewall] if args.key?(:firewall) @forward = args[:forward] if args.key?(:forward) @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule) + @gke_master = args[:gke_master] if args.key?(:gke_master) @instance = args[:instance] if args.key?(:instance) @load_balancer = args[:load_balancer] if args.key?(:load_balancer) @network = args[:network] if args.key?(:network) @@ -1666,10 +1633,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1688,8 +1654,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1704,33 +1669,27 @@ module Google end end - # Trace represents one simulated packet forwarding path. - #
    - #
  • Each trace contains multiple ordered steps.
  • - #
  • Each step is in a particular state and has an associated - # configuration.
  • State is categorized as a final or non-final - # state.
  • Each final state has a reason associated with it.
  • - #
  • Each trace must end with a final state (the last step).
  • - #
- #

-      # |---------------------Trace----------------------|
-      # Step1(State) Step2(State) ---  StepN(State(final))
-      # 
+ # Trace represents one simulated packet forwarding path. - Each trace contains + # multiple ordered steps. - Each step is in a particular state and has an + # associated configuration. - State is categorized as a final or non-final state. + # - Each final state has a reason associated with it. - Each trace must end + # with a final state (the last step). |---------------------Trace---------------- + # ------| Step1(State) Step2(State) --- StepN(State(final)) class Trace include Google::Apis::Core::Hashable # 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. + # 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 - # A trace of a test contains multiple steps from the initial state to the - # final state (delivered, dropped, forwarded, or aborted). - # The steps are ordered by the processing sequence within the simulated - # network state machine. It is critical to preserve the order of the steps - # and avoid reordering or sorting them. + # A trace of a test contains multiple steps from the initial state to the final + # state (delivered, dropped, forwarded, or aborted). The steps are ordered by + # the processing sequence within the simulated network state machine. It is + # critical to preserve the order of the steps and avoid reordering or sorting + # them. # Corresponds to the JSON property `steps` # @return [Array] attr_accessor :steps @@ -1775,9 +1734,9 @@ module Google # @return [String] attr_accessor :uri - # A VPN tunnel that is associated with this VPN gateway. - # There may be multiple VPN tunnels configured on a VPN gateway, and only - # the one relevant to the test is displayed. + # A VPN tunnel that is associated with this VPN gateway. There may be multiple + # VPN tunnels configured on a VPN gateway, and only the one relevant to the test + # is displayed. # Corresponds to the JSON property `vpnTunnelUri` # @return [String] attr_accessor :vpn_tunnel_uri diff --git a/generated/google/apis/networkmanagement_v1beta1/representations.rb b/generated/google/apis/networkmanagement_v1beta1/representations.rb index e4f01e9f1..02298c6ef 100644 --- a/generated/google/apis/networkmanagement_v1beta1/representations.rb +++ b/generated/google/apis/networkmanagement_v1beta1/representations.rb @@ -52,6 +52,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CloudSqlInstanceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ConnectivityTest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +118,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GkeMasterInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -285,6 +297,18 @@ module Google end end + class CloudSqlInstanceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :external_ip, as: 'externalIp' + property :internal_ip, as: 'internalIp' + property :network_uri, as: 'networkUri' + property :region, as: 'region' + property :uri, as: 'uri' + end + end + class ConnectivityTest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -330,6 +354,8 @@ module Google class Endpoint # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_sql_instance, as: 'cloudSqlInstance' + property :gke_master_cluster, as: 'gkeMasterCluster' property :instance, as: 'instance' property :ip_address, as: 'ipAddress' property :network, as: 'network' @@ -397,6 +423,16 @@ module Google end end + class GkeMasterInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_network_uri, as: 'clusterNetworkUri' + property :cluster_uri, as: 'clusterUri' + property :external_ip, as: 'externalIp' + property :internal_ip, as: 'internalIp' + end + end + class InstanceInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -576,6 +612,8 @@ module Google property :abort, as: 'abort', class: Google::Apis::NetworkmanagementV1beta1::AbortInfo, decorator: Google::Apis::NetworkmanagementV1beta1::AbortInfo::Representation property :causes_drop, as: 'causesDrop' + property :cloud_sql_instance, as: 'cloudSqlInstance', class: Google::Apis::NetworkmanagementV1beta1::CloudSqlInstanceInfo, decorator: Google::Apis::NetworkmanagementV1beta1::CloudSqlInstanceInfo::Representation + property :deliver, as: 'deliver', class: Google::Apis::NetworkmanagementV1beta1::DeliverInfo, decorator: Google::Apis::NetworkmanagementV1beta1::DeliverInfo::Representation property :description, as: 'description' @@ -589,6 +627,8 @@ module Google property :forwarding_rule, as: 'forwardingRule', class: Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo, decorator: Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo::Representation + property :gke_master, as: 'gkeMaster', class: Google::Apis::NetworkmanagementV1beta1::GkeMasterInfo, decorator: Google::Apis::NetworkmanagementV1beta1::GkeMasterInfo::Representation + property :instance, as: 'instance', class: Google::Apis::NetworkmanagementV1beta1::InstanceInfo, decorator: Google::Apis::NetworkmanagementV1beta1::InstanceInfo::Representation property :load_balancer, as: 'loadBalancer', class: Google::Apis::NetworkmanagementV1beta1::LoadBalancerInfo, decorator: Google::Apis::NetworkmanagementV1beta1::LoadBalancerInfo::Representation diff --git a/generated/google/apis/networkmanagement_v1beta1/service.rb b/generated/google/apis/networkmanagement_v1beta1/service.rb index ad86b60c3..4d79da51d 100644 --- a/generated/google/apis/networkmanagement_v1beta1/service.rb +++ b/generated/google/apis/networkmanagement_v1beta1/service.rb @@ -117,29 +117,24 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new Connectivity Test. - # After you create a test, the reachability analysis is performed as part - # of the long running operation, which completes when the analysis completes. - # If the endpoint specifications in `ConnectivityTest` are invalid - # (for example, containing non-existent resources in the network, or you - # don't have read permissions to the network configurations of listed - # projects), then the reachability result returns a value of `UNKNOWN`. - # If the endpoint specifications in `ConnectivityTest` are - # incomplete, the reachability result returns a value of - # AMBIGUOUS. For more information, - # see the Connectivity Test documentation. + # Creates a new Connectivity Test. After you create a test, the reachability + # analysis is performed as part of the long running operation, which completes + # when the analysis completes. If the endpoint specifications in ` + # ConnectivityTest` are invalid (for example, containing non-existent resources + # in the network, or you don't have read permissions to the network + # configurations of listed projects), then the reachability result returns a + # value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are + # incomplete, the reachability result returns a value of AMBIGUOUS. For more + # information, see the Connectivity Test documentation. # @param [String] parent - # Required. The parent resource of the Connectivity Test to create: - # `projects/`project_id`/locations/global` + # Required. The parent resource of the Connectivity Test to create: `projects/` + # project_id`/locations/global` # @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object # @param [String] test_id - # Required. The logical name of the Connectivity Test in your project - # with the following restrictions: - # * Must contain only lowercase letters, numbers, and hyphens. - # * Must start with a letter. - # * Must be between 1-40 characters. - # * Must end with a number or a letter. - # * Must be unique within the customer project + # Required. The logical name of the Connectivity Test in your project with the + # following restrictions: * Must contain only lowercase letters, numbers, and + # hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must + # end with a number or a letter. * Must be unique within the customer project # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -172,8 +167,8 @@ module Google # Deletes a specific `ConnectivityTest`. # @param [String] name - # Required. Connectivity Test resource name using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. Connectivity Test resource name using the form: `projects/` + # project_id`/locations/global/connectivityTests/`test_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -203,8 +198,8 @@ module Google # Gets the details of a specific Connectivity Test. # @param [String] name - # Required. `ConnectivityTest` resource name using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. `ConnectivityTest` resource name using the form: `projects/` + # project_id`/locations/global/connectivityTests/`test_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -232,22 +227,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -278,25 +270,18 @@ module Google # Lists all Connectivity Tests owned by a project. # @param [String] parent - # Required. The parent resource of the Connectivity Tests: - # `projects/`project_id`/locations/global` + # Required. The parent resource of the Connectivity Tests: `projects/`project_id` + # /locations/global` # @param [String] filter # Lists the `ConnectivityTests` that match the filter expression. A filter - # expression filters the resources listed in the response. The expression - # must be of the form ` ` where operators: `<`, `>`, - # `<=`, - # `>=`, - # `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is - # roughly synonymous with equality). can refer to a proto or JSON - # field, or a synthetic field. Field names can be camelCase or snake_case. - # Examples: - # - Filter by name: - # name = "projects/proj-1/locations/global/connectivityTests/test-1 - # - Filter by labels: - # - Resources that have a key called `foo` - # labels.foo:* - # - Resources that have a key called `foo` whose value is `bar` - # labels.foo = bar + # expression filters the resources listed in the response. The expression must + # be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are + # supported (colon `:` represents a HAS operator which is roughly synonymous + # with equality). can refer to a proto or JSON field, or a synthetic field. + # Field names can be camelCase or snake_case. Examples: - Filter by name: name = + # "projects/proj-1/locations/global/connectivityTests/test-1 - Filter by labels: + # - Resources that have a key called `foo` labels.foo:* - Resources that have a + # key called `foo` whose value is `bar` labels.foo = bar # @param [String] order_by # Field to use to sort the list. # @param [Fixnum] page_size @@ -334,25 +319,24 @@ module Google execute_or_queue_command(command, &block) end - # Updates the configuration of an existing `ConnectivityTest`. - # After you update a test, the reachability analysis is performed as part - # of the long running operation, which completes when the analysis completes. - # The Reachability state in the test resource is updated with the new result. - # If the endpoint specifications in `ConnectivityTest` are invalid - # (for example, they contain non-existent resources in the network, or the - # user does not have read permissions to the network configurations of - # listed projects), then the reachability result returns a value of - # UNKNOWN. - # If the endpoint specifications in `ConnectivityTest` are incomplete, the - # reachability result returns a value of `AMBIGUOUS`. See the documentation - # in `ConnectivityTest` for for more details. + # Updates the configuration of an existing `ConnectivityTest`. After you update + # a test, the reachability analysis is performed as part of the long running + # operation, which completes when the analysis completes. The Reachability state + # in the test resource is updated with the new result. If the endpoint + # specifications in `ConnectivityTest` are invalid (for example, they contain + # non-existent resources in the network, or the user does not have read + # permissions to the network configurations of listed projects), then the + # reachability result returns a value of UNKNOWN. If the endpoint specifications + # in `ConnectivityTest` are incomplete, the reachability result returns a value + # of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more + # details. # @param [String] name - # Required. Unique name of the resource using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test`` + # Required. Unique name of the resource using the form: `projects/`project_id`/ + # locations/global/connectivityTests/`test`` # @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. + # Required. Mask of fields to update. At least one path must be supplied in this + # field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -383,19 +367,17 @@ module Google execute_or_queue_command(command, &block) end - # Rerun an existing `ConnectivityTest`. - # After the user triggers the rerun, the reachability analysis is performed - # as part of the long running operation, which completes when the analysis - # completes. - # Even though the test configuration remains the same, the reachability - # result may change due to underlying network configuration changes. - # If the endpoint specifications in `ConnectivityTest` become invalid (for - # example, specified resources are deleted in the network, or you lost - # read permissions to the network configurations of listed projects), then - # the reachability result returns a value of `UNKNOWN`. + # Rerun an existing `ConnectivityTest`. After the user triggers the rerun, the + # reachability analysis is performed as part of the long running operation, + # which completes when the analysis completes. Even though the test + # configuration remains the same, the reachability result may change due to + # underlying network configuration changes. If the endpoint specifications in ` + # ConnectivityTest` become invalid (for example, specified resources are deleted + # in the network, or you lost read permissions to the network configurations of + # listed projects), then the reachability result returns a value of `UNKNOWN`. # @param [String] name - # Required. Connectivity Test resource name using the form: - # `projects/`project_id`/locations/global/connectivityTests/`test_id`` + # Required. Connectivity Test resource name using the form: `projects/` + # project_id`/locations/global/connectivityTests/`test_id`` # @param [Google::Apis::NetworkmanagementV1beta1::RerunConnectivityTestRequest] rerun_connectivity_test_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -427,11 +409,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::NetworkmanagementV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -462,15 +444,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -501,15 +482,13 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -543,10 +522,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -576,9 +555,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. + # 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 @@ -608,15 +586,14 @@ module Google 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. + # 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 diff --git a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb index 5bf7ce601..1cb1a0715 100644 --- a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +++ b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/spectrum-access-system/ module ProdTtSasportalV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200813' + REVISION = '20200821' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' diff --git a/generated/google/apis/realtimebidding_v1.rb b/generated/google/apis/realtimebidding_v1.rb index 747968847..38aaeee6a 100644 --- a/generated/google/apis/realtimebidding_v1.rb +++ b/generated/google/apis/realtimebidding_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/ module RealtimebiddingV1 VERSION = 'V1' - REVISION = '20200803' + REVISION = '20200822' # See, create, edit, and delete your Authorized Buyers and Open Bidding account entities AUTH_REALTIME_BIDDING = 'https://www.googleapis.com/auth/realtime-bidding' diff --git a/generated/google/apis/remotebuildexecution_v1.rb b/generated/google/apis/remotebuildexecution_v1.rb index f35cd8835..a299592e8 100644 --- a/generated/google/apis/remotebuildexecution_v1.rb +++ b/generated/google/apis/remotebuildexecution_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1 VERSION = 'V1' - REVISION = '20200810' + REVISION = '20200819' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/remotebuildexecution_v1/classes.rb b/generated/google/apis/remotebuildexecution_v1/classes.rb index de2c6c062..e4f5ba4e3 100644 --- a/generated/google/apis/remotebuildexecution_v1/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1/classes.rb @@ -2038,6 +2038,31 @@ module Google end end + # SoleTenancyConfig specifies information required to host a pool on STNs. + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + include Google::Apis::Core::Hashable + + # The sole-tenant node type to host the pool's workers on. + # Corresponds to the JSON property `nodeType` + # @return [String] + attr_accessor :node_type + + # Zone in which STNs are reserved. + # Corresponds to the JSON property `nodesZone` + # @return [String] + attr_accessor :nodes_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_type = args[:node_type] if args.key?(:node_type) + @nodes_zone = args[:nodes_zone] if args.key?(:nodes_zone) + end + end + # The request used for `UpdateInstance`. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest include Google::Apis::Core::Hashable @@ -2117,7 +2142,7 @@ module Google end end - # Defines the configuration to be used for a creating workers in the worker pool. + # Defines the configuration to be used for creating workers in the worker pool. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig include Google::Apis::Core::Hashable @@ -2183,6 +2208,11 @@ module Google attr_accessor :reserved alias_method :reserved?, :reserved + # SoleTenancyConfig specifies information required to host a pool on STNs. + # Corresponds to the JSON property `soleTenancy` + # @return [Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig] + attr_accessor :sole_tenancy + # The name of the image used by each VM. # Corresponds to the JSON property `vmImage` # @return [String] @@ -2203,6 +2233,7 @@ module Google @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_access = args[:network_access] if args.key?(:network_access) @reserved = args[:reserved] if args.key?(:reserved) + @sole_tenancy = args[:sole_tenancy] if args.key?(:sole_tenancy) @vm_image = args[:vm_image] if args.key?(:vm_image) end end @@ -2233,7 +2264,7 @@ module Google # @return [String] attr_accessor :state - # Defines the configuration to be used for a creating workers in the worker pool. + # Defines the configuration to be used for creating workers in the worker pool. # Corresponds to the JSON property `workerConfig` # @return [Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig] attr_accessor :worker_config diff --git a/generated/google/apis/remotebuildexecution_v1/representations.rb b/generated/google/apis/remotebuildexecution_v1/representations.rb index d86dc2c80..02e01a853 100644 --- a/generated/google/apis/remotebuildexecution_v1/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1/representations.rb @@ -280,6 +280,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -866,6 +872,14 @@ module Google end end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_type, as: 'nodeType' + property :nodes_zone, as: 'nodesZone' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -899,6 +913,8 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' property :network_access, as: 'networkAccess' property :reserved, as: 'reserved' + property :sole_tenancy, as: 'soleTenancy', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig::Representation + property :vm_image, as: 'vmImage' end end diff --git a/generated/google/apis/remotebuildexecution_v1alpha.rb b/generated/google/apis/remotebuildexecution_v1alpha.rb index 9bde4251e..fcf81ee56 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1alpha VERSION = 'V1alpha' - REVISION = '20200810' + REVISION = '20200819' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/remotebuildexecution_v1alpha/classes.rb b/generated/google/apis/remotebuildexecution_v1alpha/classes.rb index 326f58826..3a7d14a94 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha/classes.rb @@ -2019,6 +2019,31 @@ module Google end end + # SoleTenancyConfig specifies information required to host a pool on STNs. + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + include Google::Apis::Core::Hashable + + # The sole-tenant node type to host the pool's workers on. + # Corresponds to the JSON property `nodeType` + # @return [String] + attr_accessor :node_type + + # Zone in which STNs are reserved. + # Corresponds to the JSON property `nodesZone` + # @return [String] + attr_accessor :nodes_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_type = args[:node_type] if args.key?(:node_type) + @nodes_zone = args[:nodes_zone] if args.key?(:nodes_zone) + end + end + # The request used for `UpdateInstance`. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest include Google::Apis::Core::Hashable @@ -2098,7 +2123,7 @@ module Google end end - # Defines the configuration to be used for a creating workers in the worker pool. + # Defines the configuration to be used for creating workers in the worker pool. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig include Google::Apis::Core::Hashable @@ -2164,6 +2189,11 @@ module Google attr_accessor :reserved alias_method :reserved?, :reserved + # SoleTenancyConfig specifies information required to host a pool on STNs. + # Corresponds to the JSON property `soleTenancy` + # @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig] + attr_accessor :sole_tenancy + # The name of the image used by each VM. # Corresponds to the JSON property `vmImage` # @return [String] @@ -2184,6 +2214,7 @@ module Google @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_access = args[:network_access] if args.key?(:network_access) @reserved = args[:reserved] if args.key?(:reserved) + @sole_tenancy = args[:sole_tenancy] if args.key?(:sole_tenancy) @vm_image = args[:vm_image] if args.key?(:vm_image) end end @@ -2214,7 +2245,7 @@ module Google # @return [String] attr_accessor :state - # Defines the configuration to be used for a creating workers in the worker pool. + # Defines the configuration to be used for creating workers in the worker pool. # Corresponds to the JSON property `workerConfig` # @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig] attr_accessor :worker_config diff --git a/generated/google/apis/remotebuildexecution_v1alpha/representations.rb b/generated/google/apis/remotebuildexecution_v1alpha/representations.rb index a94c69464..8e2749e5b 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha/representations.rb @@ -274,6 +274,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -835,6 +841,14 @@ module Google end end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_type, as: 'nodeType' + property :nodes_zone, as: 'nodesZone' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -868,6 +882,8 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' property :network_access, as: 'networkAccess' property :reserved, as: 'reserved' + property :sole_tenancy, as: 'soleTenancy', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig::Representation + property :vm_image, as: 'vmImage' end end diff --git a/generated/google/apis/remotebuildexecution_v2.rb b/generated/google/apis/remotebuildexecution_v2.rb index 28040acce..5cbd96845 100644 --- a/generated/google/apis/remotebuildexecution_v2.rb +++ b/generated/google/apis/remotebuildexecution_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV2 VERSION = 'V2' - REVISION = '20200810' + REVISION = '20200819' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/remotebuildexecution_v2/classes.rb b/generated/google/apis/remotebuildexecution_v2/classes.rb index 2f9aac3f9..8e160daa0 100644 --- a/generated/google/apis/remotebuildexecution_v2/classes.rb +++ b/generated/google/apis/remotebuildexecution_v2/classes.rb @@ -2692,6 +2692,31 @@ module Google end end + # SoleTenancyConfig specifies information required to host a pool on STNs. + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + include Google::Apis::Core::Hashable + + # The sole-tenant node type to host the pool's workers on. + # Corresponds to the JSON property `nodeType` + # @return [String] + attr_accessor :node_type + + # Zone in which STNs are reserved. + # Corresponds to the JSON property `nodesZone` + # @return [String] + attr_accessor :nodes_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_type = args[:node_type] if args.key?(:node_type) + @nodes_zone = args[:nodes_zone] if args.key?(:nodes_zone) + end + end + # The request used for `UpdateInstance`. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest include Google::Apis::Core::Hashable @@ -2771,7 +2796,7 @@ module Google end end - # Defines the configuration to be used for a creating workers in the worker pool. + # Defines the configuration to be used for creating workers in the worker pool. class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig include Google::Apis::Core::Hashable @@ -2837,6 +2862,11 @@ module Google attr_accessor :reserved alias_method :reserved?, :reserved + # SoleTenancyConfig specifies information required to host a pool on STNs. + # Corresponds to the JSON property `soleTenancy` + # @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig] + attr_accessor :sole_tenancy + # The name of the image used by each VM. # Corresponds to the JSON property `vmImage` # @return [String] @@ -2857,6 +2887,7 @@ module Google @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_access = args[:network_access] if args.key?(:network_access) @reserved = args[:reserved] if args.key?(:reserved) + @sole_tenancy = args[:sole_tenancy] if args.key?(:sole_tenancy) @vm_image = args[:vm_image] if args.key?(:vm_image) end end @@ -2887,7 +2918,7 @@ module Google # @return [String] attr_accessor :state - # Defines the configuration to be used for a creating workers in the worker pool. + # Defines the configuration to be used for creating workers in the worker pool. # Corresponds to the JSON property `workerConfig` # @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig] attr_accessor :worker_config diff --git a/generated/google/apis/remotebuildexecution_v2/representations.rb b/generated/google/apis/remotebuildexecution_v2/representations.rb index 02f9564cb..4e7907868 100644 --- a/generated/google/apis/remotebuildexecution_v2/representations.rb +++ b/generated/google/apis/remotebuildexecution_v2/representations.rb @@ -400,6 +400,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1154,6 +1160,14 @@ module Google end end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_type, as: 'nodeType' + property :nodes_zone, as: 'nodesZone' + end + end + class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1187,6 +1201,8 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' property :network_access, as: 'networkAccess' property :reserved, as: 'reserved' + property :sole_tenancy, as: 'soleTenancy', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig::Representation + property :vm_image, as: 'vmImage' end end diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index bd6bb4f8d..07afd8368 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20200806' + REVISION = '20200820' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 6177cd580..9090eaddf 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -348,9 +348,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time @@ -685,9 +687,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index 620c27038..e751ac2b4 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20200806' + REVISION = '20200820' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index 341814cf4..cab5aea97 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -353,9 +353,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time @@ -597,9 +599,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time @@ -821,9 +825,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time diff --git a/generated/google/apis/securitycenter_v1beta2.rb b/generated/google/apis/securitycenter_v1beta2.rb new file mode 100644 index 000000000..54fc6b09f --- /dev/null +++ b/generated/google/apis/securitycenter_v1beta2.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/securitycenter_v1beta2/service.rb' +require 'google/apis/securitycenter_v1beta2/classes.rb' +require 'google/apis/securitycenter_v1beta2/representations.rb' + +module Google + module Apis + # Security Command Center API + # + # Security Command Center API provides access to temporal views of assets and + # findings within an organization. + # + # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview + module SecuritycenterV1beta2 + VERSION = 'V1beta2' + REVISION = '20200820' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/securitycenter_v1beta2/classes.rb b/generated/google/apis/securitycenter_v1beta2/classes.rb new file mode 100644 index 000000000..7151eb2c4 --- /dev/null +++ b/generated/google/apis/securitycenter_v1beta2/classes.rb @@ -0,0 +1,1037 @@ +# 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 SecuritycenterV1beta2 + + # Configuration of a module. + class Config + include Google::Apis::Core::Hashable + + # The state of enablement for the module at its level of the resource hierarchy. + # Corresponds to the JSON property `moduleEnablementState` + # @return [String] + attr_accessor :module_enablement_state + + # The configuration value for the module. The absence of this field implies its + # inheritance from the parent. + # Corresponds to the JSON property `value` + # @return [Hash] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @module_enablement_state = args[:module_enablement_state] if args.key?(:module_enablement_state) + @value = args[:value] if args.key?(:value) + end + end + + # Resource capturing the settings for the Container Threat Detection service. + class ContainerThreatDetectionSettings + include Google::Apis::Core::Hashable + + # The configurations including the state of enablement for the service's + # different modules. The absence of a module in the map implies its + # configuration is inherited from its parent's. + # Corresponds to the JSON property `modules` + # @return [Hash] + attr_accessor :modules + + # The resource name of the ContainerThreatDetectionSettings. Formats: * + # organizations/`organization`/containerThreatDetectionSettings * folders/` + # folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The service account used by Container Threat Detection for + # scanning. Service accounts are scoped at the project level meaning this field + # will be empty at any level above a project. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + + # The state of enablement for the service at its level of the resource hierarchy. + # A DISABLED state will override all module enablement_states to DISABLED. + # Corresponds to the JSON property `serviceEnablementState` + # @return [String] + attr_accessor :service_enablement_state + + # Output only. The time the settings were last updated. + # 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) + @modules = args[:modules] if args.key?(:modules) + @name = args[:name] if args.key?(:name) + @service_account = args[:service_account] if args.key?(:service_account) + @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Details of a subscription. + class Details + include Google::Apis::Core::Hashable + + # The time the subscription has or will end. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The time the subscription has or will start. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The type of subscription + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + @type = args[:type] if args.key?(:type) + end + end + + # Resource capturing the settings for the Event Threat Detection service. + class EventThreatDetectionSettings + include Google::Apis::Core::Hashable + + # The configurations including the state of enablement for the service's + # different modules. The absence of a module in the map implies its + # configuration is inherited from its parent's. + # Corresponds to the JSON property `modules` + # @return [Hash] + attr_accessor :modules + + # The resource name of the EventThreatDetectionSettings. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The state of enablement for the service at its level of the resource hierarchy. + # A DISABLED state will override all module enablement_states to DISABLED. + # Corresponds to the JSON property `serviceEnablementState` + # @return [String] + attr_accessor :service_enablement_state + + # Output only. The time the settings were last updated. + # 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) + @modules = args[:modules] if args.key?(:modules) + @name = args[:name] if args.key?(:name) + @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Security Command Center finding. A finding is a record of assessment data like + # security, risk, health, or privacy, that is ingested into Security Command + # Center for presentation, notification, analysis, policy testing, and + # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App + # Engine application is a finding. + class Finding + include Google::Apis::Core::Hashable + + # The additional taxonomy group within findings from a given source. This field + # is immutable after creation time. Example: "XSS_FLASH_INJECTION" + # Corresponds to the JSON property `category` + # @return [String] + attr_accessor :category + + # The time at which the finding was created in Security Command Center. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. + # Corresponds to the JSON property `eventTime` + # @return [String] + attr_accessor :event_time + + # The URI that, if available, points to a web page outside of Security Command + # Center where additional information about the finding can be found. This field + # is guaranteed to be either empty or a well formed URL. + # Corresponds to the JSON property `externalUri` + # @return [String] + attr_accessor :external_uri + + # The relative resource name of this finding. See: https://cloud.google.com/apis/ + # design/resource_names#relative_resource_name Example: "organizations/` + # organization_id`/sources/`source_id`/findings/`finding_id`" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The relative resource name of the source the finding belongs to. See: https:// + # cloud.google.com/apis/design/resource_names#relative_resource_name This field + # is immutable after creation time. For example: "organizations/`organization_id` + # /sources/`source_id`" + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # For findings on Google Cloud resources, the full resource name of the Google + # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/ + # resource_names#full_resource_name When the finding is for a non-Google Cloud + # resource, the resourceName can be a customer or partner defined string. This + # field is immutable after creation time. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # User specified security marks that are attached to the parent Security Command + # Center resource. Security marks are scoped within a Security Command Center + # organization -- they can be modified and viewed by all users who have proper + # permissions on the organization. + # Corresponds to the JSON property `securityMarks` + # @return [Google::Apis::SecuritycenterV1beta2::SecurityMarks] + attr_accessor :security_marks + + # Source specific properties. These properties are managed by the source that + # writes the finding. The key names in the source_properties map must be between + # 1 and 255 characters, and must start with a letter and contain alphanumeric + # characters or underscores only. + # Corresponds to the JSON property `sourceProperties` + # @return [Hash] + attr_accessor :source_properties + + # The state of the finding. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @category = args[:category] if args.key?(:category) + @create_time = args[:create_time] if args.key?(:create_time) + @event_time = args[:event_time] if args.key?(:event_time) + @external_uri = args[:external_uri] if args.key?(:external_uri) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @security_marks = args[:security_marks] if args.key?(:security_marks) + @source_properties = args[:source_properties] if args.key?(:source_properties) + @state = args[:state] if args.key?(:state) + end + end + + # Cloud SCC's Notification + class GoogleCloudSecuritycenterV1NotificationMessage + include Google::Apis::Core::Hashable + + # Security Command Center finding. A finding is a record of assessment data like + # security, risk, health, or privacy, that is ingested into Security Command + # Center for presentation, notification, analysis, policy testing, and + # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App + # Engine application is a finding. + # Corresponds to the JSON property `finding` + # @return [Google::Apis::SecuritycenterV1beta2::Finding] + attr_accessor :finding + + # Name of the notification config that generated current notification. + # Corresponds to the JSON property `notificationConfigName` + # @return [String] + attr_accessor :notification_config_name + + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @finding = args[:finding] if args.key?(:finding) + @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) + end + end + + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: https://cloud.google.com/apis/ + # design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) + end + end + + # Response of asset discovery run + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse + include Google::Apis::Core::Hashable + + # The duration between asset discovery run start and end + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # The state of an asset discovery run. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @state = args[:state] if args.key?(:state) + end + end + + # Response of asset discovery run + class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse + include Google::Apis::Core::Hashable + + # The duration between asset discovery run start and end + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # The state of an asset discovery run. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @state = args[:state] if args.key?(:state) + end + end + + # Security Command Center representation of a Google Cloud resource. The Asset + # is a Security Command Center resource that captures information about a single + # Google Cloud resource. All modifications to an Asset are only within the + # context of Security Command Center and don't affect the referenced Google + # Cloud resource. + class GoogleCloudSecuritycenterV1p1beta1Asset + include Google::Apis::Core::Hashable + + # The time at which the asset was created in Security Command Center. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Cloud IAM Policy information associated with the Google Cloud resource + # described by the Security Command Center asset. This information is managed + # and defined by the Google Cloud resource and cannot be modified by the user. + # Corresponds to the JSON property `iamPolicy` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy] + attr_accessor :iam_policy + + # The relative resource name of this asset. See: https://cloud.google.com/apis/ + # design/resource_names#relative_resource_name Example: "organizations/` + # organization_id`/assets/`asset_id`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Resource managed properties. These properties are managed and defined by the + # Google Cloud resource and cannot be modified by the user. + # Corresponds to the JSON property `resourceProperties` + # @return [Hash] + attr_accessor :resource_properties + + # Security Command Center managed properties. These properties are managed by + # Security Command Center and cannot be modified by the user. + # Corresponds to the JSON property `securityCenterProperties` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties] + attr_accessor :security_center_properties + + # User specified security marks that are attached to the parent Security Command + # Center resource. Security marks are scoped within a Security Command Center + # organization -- they can be modified and viewed by all users who have proper + # permissions on the organization. + # Corresponds to the JSON property `securityMarks` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] + attr_accessor :security_marks + + # The time at which the asset was last updated, added, or deleted in Cloud SCC. + # 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) + @create_time = args[:create_time] if args.key?(:create_time) + @iam_policy = args[:iam_policy] if args.key?(:iam_policy) + @name = args[:name] if args.key?(:name) + @resource_properties = args[:resource_properties] if args.key?(:resource_properties) + @security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties) + @security_marks = args[:security_marks] if args.key?(:security_marks) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Security Command Center finding. A finding is a record of assessment data ( + # security, risk, health or privacy) ingested into Security Command Center for + # presentation, notification, analysis, policy testing, and enforcement. For + # example, an XSS vulnerability in an App Engine application is a finding. + class GoogleCloudSecuritycenterV1p1beta1Finding + include Google::Apis::Core::Hashable + + # The additional taxonomy group within findings from a given source. This field + # is immutable after creation time. Example: "XSS_FLASH_INJECTION" + # Corresponds to the JSON property `category` + # @return [String] + attr_accessor :category + + # The time at which the finding was created in Security Command Center. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. + # Corresponds to the JSON property `eventTime` + # @return [String] + attr_accessor :event_time + + # The URI that, if available, points to a web page outside of Security Command + # Center where additional information about the finding can be found. This field + # is guaranteed to be either empty or a well formed URL. + # Corresponds to the JSON property `externalUri` + # @return [String] + attr_accessor :external_uri + + # The relative resource name of this finding. See: https://cloud.google.com/apis/ + # design/resource_names#relative_resource_name Example: "organizations/` + # organization_id`/sources/`source_id`/findings/`finding_id`" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The relative resource name of the source the finding belongs to. See: https:// + # cloud.google.com/apis/design/resource_names#relative_resource_name This field + # is immutable after creation time. For example: "organizations/`organization_id` + # /sources/`source_id`" + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # For findings on Google Cloud resources, the full resource name of the Google + # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/ + # resource_names#full_resource_name When the finding is for a non-Google Cloud + # resource, the resourceName can be a customer or partner defined string. This + # field is immutable after creation time. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # User specified security marks that are attached to the parent Security Command + # Center resource. Security marks are scoped within a Security Command Center + # organization -- they can be modified and viewed by all users who have proper + # permissions on the organization. + # Corresponds to the JSON property `securityMarks` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] + attr_accessor :security_marks + + # The severity of the finding. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Source specific properties. These properties are managed by the source that + # writes the finding. The key names in the source_properties map must be between + # 1 and 255 characters, and must start with a letter and contain alphanumeric + # characters or underscores only. + # Corresponds to the JSON property `sourceProperties` + # @return [Hash] + attr_accessor :source_properties + + # The state of the finding. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @category = args[:category] if args.key?(:category) + @create_time = args[:create_time] if args.key?(:create_time) + @event_time = args[:event_time] if args.key?(:event_time) + @external_uri = args[:external_uri] if args.key?(:external_uri) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @security_marks = args[:security_marks] if args.key?(:security_marks) + @severity = args[:severity] if args.key?(:severity) + @source_properties = args[:source_properties] if args.key?(:source_properties) + @state = args[:state] if args.key?(:state) + end + end + + # Cloud IAM Policy information associated with the Google Cloud resource + # described by the Security Command Center asset. This information is managed + # and defined by the Google Cloud resource and cannot be modified by the user. + class GoogleCloudSecuritycenterV1p1beta1IamPolicy + include Google::Apis::Core::Hashable + + # The JSON representation of the Policy associated with the asset. See https:// + # cloud.google.com/iam/docs/reference/rest/v1/Policy for format details. + # Corresponds to the JSON property `policyBlob` + # @return [String] + attr_accessor :policy_blob + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy_blob = args[:policy_blob] if args.key?(:policy_blob) + end + end + + # Security Command Center's Notification + class GoogleCloudSecuritycenterV1p1beta1NotificationMessage + include Google::Apis::Core::Hashable + + # Security Command Center finding. A finding is a record of assessment data ( + # security, risk, health or privacy) ingested into Security Command Center for + # presentation, notification, analysis, policy testing, and enforcement. For + # example, an XSS vulnerability in an App Engine application is a finding. + # Corresponds to the JSON property `finding` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding] + attr_accessor :finding + + # Name of the notification config that generated current notification. + # Corresponds to the JSON property `notificationConfigName` + # @return [String] + attr_accessor :notification_config_name + + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource] + attr_accessor :resource + + # Wrapper over asset object that also captures the state change for the asset e. + # g. if it was a newly created asset vs updated or deleted asset. + # Corresponds to the JSON property `temporalAsset` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset] + attr_accessor :temporal_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @finding = args[:finding] if args.key?(:finding) + @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) + @temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset) + end + end + + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1p1beta1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: https://cloud.google.com/apis/ + # design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) + end + end + + # Response of asset discovery run + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse + include Google::Apis::Core::Hashable + + # The duration between asset discovery run start and end + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # The state of an asset discovery run. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @state = args[:state] if args.key?(:state) + end + end + + # Security Command Center managed properties. These properties are managed by + # Security Command Center and cannot be modified by the user. + class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties + include Google::Apis::Core::Hashable + + # The user defined display name for this resource. + # Corresponds to the JSON property `resourceDisplayName` + # @return [String] + attr_accessor :resource_display_name + + # The full resource name of the Google Cloud resource this asset represents. + # This field is immutable after create time. See: https://cloud.google.com/apis/ + # design/resource_names#full_resource_name + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # Owners of the Google Cloud resource. + # Corresponds to the JSON property `resourceOwners` + # @return [Array] + attr_accessor :resource_owners + + # The full resource name of the immediate parent of the resource. See: https:// + # cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `resourceParent` + # @return [String] + attr_accessor :resource_parent + + # The user defined display name for the parent of this resource. + # Corresponds to the JSON property `resourceParentDisplayName` + # @return [String] + attr_accessor :resource_parent_display_name + + # The full resource name of the project the resource belongs to. See: https:// + # cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `resourceProject` + # @return [String] + attr_accessor :resource_project + + # The user defined display name for the project of this resource. + # Corresponds to the JSON property `resourceProjectDisplayName` + # @return [String] + attr_accessor :resource_project_display_name + + # The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, + # and ORGANIZATION. This is a case insensitive field defined by Security Command + # Center and/or the producer of the resource and is immutable after create time. + # 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_display_name = args[:resource_display_name] if args.key?(:resource_display_name) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @resource_owners = args[:resource_owners] if args.key?(:resource_owners) + @resource_parent = args[:resource_parent] if args.key?(:resource_parent) + @resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name) + @resource_project = args[:resource_project] if args.key?(:resource_project) + @resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name) + @resource_type = args[:resource_type] if args.key?(:resource_type) + end + end + + # User specified security marks that are attached to the parent Security Command + # Center resource. Security marks are scoped within a Security Command Center + # organization -- they can be modified and viewed by all users who have proper + # permissions on the organization. + class GoogleCloudSecuritycenterV1p1beta1SecurityMarks + include Google::Apis::Core::Hashable + + # Mutable user specified security marks belonging to the parent resource. + # Constraints are as follows: * Keys and values are treated as case insensitive * + # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, + # numbers, underscores, or dashes * Values have leading and trailing whitespace + # trimmed, remaining characters must be between 1 - 4096 characters (inclusive) + # Corresponds to the JSON property `marks` + # @return [Hash] + attr_accessor :marks + + # The relative resource name of the SecurityMarks. See: https://cloud.google.com/ + # apis/design/resource_names#relative_resource_name Examples: "organizations/` + # organization_id`/assets/`asset_id`/securityMarks" "organizations/` + # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @marks = args[:marks] if args.key?(:marks) + @name = args[:name] if args.key?(:name) + end + end + + # Wrapper over asset object that also captures the state change for the asset e. + # g. if it was a newly created asset vs updated or deleted asset. + class GoogleCloudSecuritycenterV1p1beta1TemporalAsset + include Google::Apis::Core::Hashable + + # Security Command Center representation of a Google Cloud resource. The Asset + # is a Security Command Center resource that captures information about a single + # Google Cloud resource. All modifications to an Asset are only within the + # context of Security Command Center and don't affect the referenced Google + # Cloud resource. + # Corresponds to the JSON property `asset` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset] + attr_accessor :asset + + # Represents if the asset was created/updated/deleted. + # Corresponds to the JSON property `changeType` + # @return [String] + attr_accessor :change_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset = args[:asset] if args.key?(:asset) + @change_type = args[:change_type] if args.key?(:change_type) + end + end + + # Resource capturing the settings for Security Center. + class SecurityCenterSettings + include Google::Apis::Core::Hashable + + # The resource name of the project to send logs to. This project must be part of + # the organization this resource resides in. The format is `projects/`project_id` + # `. An empty value disables logging. This value is only referenced by services + # that support log sink. Please refer to the documentation for an updated list + # of compatible services. + # Corresponds to the JSON property `logSinkProject` + # @return [String] + attr_accessor :log_sink_project + + # The resource name of the SecurityCenterSettings. Format: organizations/` + # organization`/securityCenterSettings + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The organization level service account to be used for security center + # components. + # Corresponds to the JSON property `orgServiceAccount` + # @return [String] + attr_accessor :org_service_account + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_sink_project = args[:log_sink_project] if args.key?(:log_sink_project) + @name = args[:name] if args.key?(:name) + @org_service_account = args[:org_service_account] if args.key?(:org_service_account) + end + end + + # Resource capturing the settings for the Security Health Analytics service. + class SecurityHealthAnalyticsSettings + include Google::Apis::Core::Hashable + + # The configurations including the state of enablement for the service's + # different modules. The absence of a module in the map implies its + # configuration is inherited from its parent's. + # Corresponds to the JSON property `modules` + # @return [Hash] + attr_accessor :modules + + # The resource name of the SecurityHealthAnalyticsSettings. Formats: * + # organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder` + # /securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The service account used by Security Health Analytics detectors. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + + # The state of enablement for the service at its level of the resource hierarchy. + # A DISABLED state will override all module enablement_states to DISABLED. + # Corresponds to the JSON property `serviceEnablementState` + # @return [String] + attr_accessor :service_enablement_state + + # Output only. The time the settings were last updated. + # 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) + @modules = args[:modules] if args.key?(:modules) + @name = args[:name] if args.key?(:name) + @service_account = args[:service_account] if args.key?(:service_account) + @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # User specified security marks that are attached to the parent Security Command + # Center resource. Security marks are scoped within a Security Command Center + # organization -- they can be modified and viewed by all users who have proper + # permissions on the organization. + class SecurityMarks + include Google::Apis::Core::Hashable + + # Mutable user specified security marks belonging to the parent resource. + # Constraints are as follows: * Keys and values are treated as case insensitive * + # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, + # numbers, underscores, or dashes * Values have leading and trailing whitespace + # trimmed, remaining characters must be between 1 - 4096 characters (inclusive) + # Corresponds to the JSON property `marks` + # @return [Hash] + attr_accessor :marks + + # The relative resource name of the SecurityMarks. See: https://cloud.google.com/ + # apis/design/resource_names#relative_resource_name Examples: "organizations/` + # organization_id`/assets/`asset_id`/securityMarks" "organizations/` + # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @marks = args[:marks] if args.key?(:marks) + @name = args[:name] if args.key?(:name) + end + end + + # Resource capturing the state of an organization's subscription. + class Subscription + include Google::Apis::Core::Hashable + + # Details of a subscription. + # Corresponds to the JSON property `details` + # @return [Google::Apis::SecuritycenterV1beta2::Details] + attr_accessor :details + + # The resource name of the subscription. Format: organizations/`organization`/ + # subscription + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The tier of SCC features this organization currently has access to. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @details = args[:details] if args.key?(:details) + @name = args[:name] if args.key?(:name) + @tier = args[:tier] if args.key?(:tier) + end + end + + # Resource capturing the settings for the Web Security Scanner service. + class WebSecurityScannerSettings + include Google::Apis::Core::Hashable + + # The configurations including the state of enablement for the service's + # different modules. The absence of a module in the map implies its + # configuration is inherited from its parent's. + # Corresponds to the JSON property `modules` + # @return [Hash] + attr_accessor :modules + + # The resource name of the WebSecurityScannerSettings. Formats: * organizations/` + # organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The state of enablement for the service at its level of the resource hierarchy. + # A DISABLED state will override all module enablement_states to DISABLED. + # Corresponds to the JSON property `serviceEnablementState` + # @return [String] + attr_accessor :service_enablement_state + + # Output only. The time the settings were last updated. + # 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) + @modules = args[:modules] if args.key?(:modules) + @name = args[:name] if args.key?(:name) + @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + end + end +end diff --git a/generated/google/apis/securitycenter_v1beta2/representations.rb b/generated/google/apis/securitycenter_v1beta2/representations.rb new file mode 100644 index 000000000..37e68d2f4 --- /dev/null +++ b/generated/google/apis/securitycenter_v1beta2/representations.rb @@ -0,0 +1,413 @@ +# 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 SecuritycenterV1beta2 + + class Config + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContainerThreatDetectionSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Details + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EventThreatDetectionSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Finding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1NotificationMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1Asset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1Finding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1IamPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1NotificationMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1SecurityMarks + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV1p1beta1TemporalAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SecurityCenterSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SecurityHealthAnalyticsSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SecurityMarks + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Subscription + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WebSecurityScannerSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Config + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :module_enablement_state, as: 'moduleEnablementState' + hash :value, as: 'value' + end + end + + class ContainerThreatDetectionSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation + + property :name, as: 'name' + property :service_account, as: 'serviceAccount' + property :service_enablement_state, as: 'serviceEnablementState' + property :update_time, as: 'updateTime' + end + end + + class Details + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + property :type, as: 'type' + end + end + + class EventThreatDetectionSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation + + property :name, as: 'name' + property :service_enablement_state, as: 'serviceEnablementState' + property :update_time, as: 'updateTime' + end + end + + class Finding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :category, as: 'category' + property :create_time, as: 'createTime' + property :event_time, as: 'eventTime' + property :external_uri, as: 'externalUri' + property :name, as: 'name' + property :parent, as: 'parent' + property :resource_name, as: 'resourceName' + property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::SecurityMarks::Representation + + hash :source_properties, as: 'sourceProperties' + property :state, as: 'state' + end + end + + class GoogleCloudSecuritycenterV1NotificationMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta2::Finding, decorator: Google::Apis::SecuritycenterV1beta2::Finding::Representation + + property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource::Representation + + end + end + + class GoogleCloudSecuritycenterV1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' + end + end + + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :state, as: 'state' + end + end + + class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :state, as: 'state' + end + end + + class GoogleCloudSecuritycenterV1p1beta1Asset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation + + property :name, as: 'name' + hash :resource_properties, as: 'resourceProperties' + property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation + + property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation + + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudSecuritycenterV1p1beta1Finding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :category, as: 'category' + property :create_time, as: 'createTime' + property :event_time, as: 'eventTime' + property :external_uri, as: 'externalUri' + property :name, as: 'name' + property :parent, as: 'parent' + property :resource_name, as: 'resourceName' + property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation + + property :severity, as: 'severity' + hash :source_properties, as: 'sourceProperties' + property :state, as: 'state' + end + end + + class GoogleCloudSecuritycenterV1p1beta1IamPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy_blob, as: 'policyBlob' + end + end + + class GoogleCloudSecuritycenterV1p1beta1NotificationMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding::Representation + + property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource::Representation + + property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation + + end + end + + class GoogleCloudSecuritycenterV1p1beta1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' + end + end + + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :state, as: 'state' + end + end + + class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource_display_name, as: 'resourceDisplayName' + property :resource_name, as: 'resourceName' + collection :resource_owners, as: 'resourceOwners' + property :resource_parent, as: 'resourceParent' + property :resource_parent_display_name, as: 'resourceParentDisplayName' + property :resource_project, as: 'resourceProject' + property :resource_project_display_name, as: 'resourceProjectDisplayName' + property :resource_type, as: 'resourceType' + end + end + + class GoogleCloudSecuritycenterV1p1beta1SecurityMarks + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :marks, as: 'marks' + property :name, as: 'name' + end + end + + class GoogleCloudSecuritycenterV1p1beta1TemporalAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset::Representation + + property :change_type, as: 'changeType' + end + end + + class SecurityCenterSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :log_sink_project, as: 'logSinkProject' + property :name, as: 'name' + property :org_service_account, as: 'orgServiceAccount' + end + end + + class SecurityHealthAnalyticsSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation + + property :name, as: 'name' + property :service_account, as: 'serviceAccount' + property :service_enablement_state, as: 'serviceEnablementState' + property :update_time, as: 'updateTime' + end + end + + class SecurityMarks + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :marks, as: 'marks' + property :name, as: 'name' + end + end + + class Subscription + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :details, as: 'details', class: Google::Apis::SecuritycenterV1beta2::Details, decorator: Google::Apis::SecuritycenterV1beta2::Details::Representation + + property :name, as: 'name' + property :tier, as: 'tier' + end + end + + class WebSecurityScannerSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation + + property :name, as: 'name' + property :service_enablement_state, as: 'serviceEnablementState' + property :update_time, as: 'updateTime' + end + end + end + end +end diff --git a/generated/google/apis/securitycenter_v1beta2/service.rb b/generated/google/apis/securitycenter_v1beta2/service.rb new file mode 100644 index 000000000..b7c3b17ed --- /dev/null +++ b/generated/google/apis/securitycenter_v1beta2/service.rb @@ -0,0 +1,1494 @@ +# 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 SecuritycenterV1beta2 + # Security Command Center API + # + # Security Command Center API provides access to temporal views of assets and + # findings within an organization. + # + # @example + # require 'google/apis/securitycenter_v1beta2' + # + # Securitycenter = Google::Apis::SecuritycenterV1beta2 # Alias the module + # service = Securitycenter::SecurityCommandCenterService.new + # + # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview + class SecurityCommandCenterService < 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://securitycenter.googleapis.com/', '') + @batch_path = 'batch' + end + + # Get the ContainerThreatDetectionSettings resource. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to retrieve. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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_folder_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Get the EventThreatDetectionSettings resource. + # @param [String] name + # Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @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_folder_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Get the SecurityHealthAnalyticsSettings resource. + # @param [String] name + # Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: + # * organizations/`organization`/securityHealthAnalyticsSettings * folders/` + # folder`/securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @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_folder_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Get the WebSecurityScannerSettings resource. + # @param [String] name + # Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * + # organizations/`organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @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_folder_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Update the ContainerThreatDetectionSettings resource. + # @param [String] name + # The resource name of the ContainerThreatDetectionSettings. Formats: * + # organizations/`organization`/containerThreatDetectionSettings * folders/` + # folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_folder_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.request_object = container_threat_detection_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Update the EventThreatDetectionSettings resource. + # @param [String] name + # The resource name of the EventThreatDetectionSettings. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_folder_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.request_object = event_threat_detection_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Update the SecurityHealthAnalyticsSettings resource. + # @param [String] name + # The resource name of the SecurityHealthAnalyticsSettings. Formats: * + # organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder` + # /securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_folder_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.request_object = security_health_analytics_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Update the WebSecurityScannerSettings resource. + # @param [String] name + # The resource name of the WebSecurityScannerSettings. Formats: * organizations/` + # organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_folder_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.request_object = web_security_scanner_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Calculates the effective ContainerThreatDetectionSettings based on its level + # in the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to calculate. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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 calculate_folder_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Calculates the effective EventThreatDetectionSettings based on its level in + # the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the EventThreatDetectionSettings to calculate. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @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 calculate_folder_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Calculates the effective SecurityHealthAnalyticsSettings based on its level in + # the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the SecurityHealthAnalyticsSettings to calculate. + # Formats: * organizations/`organization`/securityHealthAnalyticsSettings * + # folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @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 calculate_folder_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Calculates the effective WebSecurityScannerSettings based on its level in the + # resource hierarchy and its settings. + # @param [String] name + # Required. The name of the WebSecurityScannerSettings to calculate. Formats: * + # organizations/`organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @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 calculate_folder_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Get the ContainerThreatDetectionSettings resource. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to retrieve. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Get the EventThreatDetectionSettings resource. + # @param [String] name + # Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @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_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Get the SecurityCenterSettings resource. + # @param [String] name + # Required. The name of the SecurityCenterSettings to retrieve. Format: + # organizations/`organization`/securityCenterSettings + # @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::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] + # + # @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_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings + 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 + + # Get the SecurityHealthAnalyticsSettings resource. + # @param [String] name + # Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: + # * organizations/`organization`/securityHealthAnalyticsSettings * folders/` + # folder`/securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @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_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Get the Subscription resource. + # @param [String] name + # Required. The name of the subscription to retrieve. Format: organizations/` + # organization`/subscription + # @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::SecuritycenterV1beta2::Subscription] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::Subscription] + # + # @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_subscription(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::Subscription::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::Subscription + 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 + + # Get the WebSecurityScannerSettings resource. + # @param [String] name + # Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * + # organizations/`organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @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_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Update the ContainerThreatDetectionSettings resource. + # @param [String] name + # The resource name of the ContainerThreatDetectionSettings. Formats: * + # organizations/`organization`/containerThreatDetectionSettings * folders/` + # folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_organization_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.request_object = container_threat_detection_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Update the EventThreatDetectionSettings resource. + # @param [String] name + # The resource name of the EventThreatDetectionSettings. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_organization_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.request_object = event_threat_detection_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Update the SecurityHealthAnalyticsSettings resource. + # @param [String] name + # The resource name of the SecurityHealthAnalyticsSettings. Formats: * + # organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder` + # /securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_organization_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.request_object = security_health_analytics_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Update the WebSecurityScannerSettings resource. + # @param [String] name + # The resource name of the WebSecurityScannerSettings. Formats: * organizations/` + # organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_organization_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.request_object = web_security_scanner_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Calculates the effective ContainerThreatDetectionSettings based on its level + # in the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to calculate. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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 calculate_organization_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Calculates the effective EventThreatDetectionSettings based on its level in + # the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the EventThreatDetectionSettings to calculate. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @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 calculate_organization_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Calculates the effective SecurityHealthAnalyticsSettings based on its level in + # the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the SecurityHealthAnalyticsSettings to calculate. + # Formats: * organizations/`organization`/securityHealthAnalyticsSettings * + # folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @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 calculate_organization_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Calculates the effective WebSecurityScannerSettings based on its level in the + # resource hierarchy and its settings. + # @param [String] name + # Required. The name of the WebSecurityScannerSettings to calculate. Formats: * + # organizations/`organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @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 calculate_organization_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Get the ContainerThreatDetectionSettings resource. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to retrieve. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Get the EventThreatDetectionSettings resource. + # @param [String] name + # Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @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_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Get the SecurityHealthAnalyticsSettings resource. + # @param [String] name + # Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: + # * organizations/`organization`/securityHealthAnalyticsSettings * folders/` + # folder`/securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @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_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Get the WebSecurityScannerSettings resource. + # @param [String] name + # Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * + # organizations/`organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @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_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Update the ContainerThreatDetectionSettings resource. + # @param [String] name + # The resource name of the ContainerThreatDetectionSettings. Formats: * + # organizations/`organization`/containerThreatDetectionSettings * folders/` + # folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.request_object = container_threat_detection_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Update the EventThreatDetectionSettings resource. + # @param [String] name + # The resource name of the EventThreatDetectionSettings. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.request_object = event_threat_detection_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Update the SecurityHealthAnalyticsSettings resource. + # @param [String] name + # The resource name of the SecurityHealthAnalyticsSettings. Formats: * + # organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder` + # /securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.request_object = security_health_analytics_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Update the WebSecurityScannerSettings resource. + # @param [String] name + # The resource name of the WebSecurityScannerSettings. Formats: * organizations/` + # organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.request_object = web_security_scanner_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + # Calculates the effective ContainerThreatDetectionSettings based on its level + # in the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to calculate. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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 calculate_project_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Calculates the effective EventThreatDetectionSettings based on its level in + # the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the EventThreatDetectionSettings to calculate. Formats: * + # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/ + # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings + # @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::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] + # + # @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 calculate_project_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings + 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 + + # Get the ContainerThreatDetectionSettings resource. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to retrieve. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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_cluster_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Update the ContainerThreatDetectionSettings resource. + # @param [String] name + # The resource name of the ContainerThreatDetectionSettings. Formats: * + # organizations/`organization`/containerThreatDetectionSettings * folders/` + # folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object + # @param [String] update_mask + # 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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_location_cluster_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.request_object = container_threat_detection_settings_object + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Calculates the effective ContainerThreatDetectionSettings based on its level + # in the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the ContainerThreatDetectionSettings to calculate. + # Formats: * organizations/`organization`/containerThreatDetectionSettings * + # folders/`folder`/containerThreatDetectionSettings * projects/`project`/ + # containerThreatDetectionSettings * projects/`project`/locations/`location`/ + # clusters/`cluster`/containerThreatDetectionSettings + # @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::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] + # + # @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 calculate_project_location_cluster_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings + 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 + + # Calculates the effective SecurityHealthAnalyticsSettings based on its level in + # the resource hierarchy and its settings. + # @param [String] name + # Required. The name of the SecurityHealthAnalyticsSettings to calculate. + # Formats: * organizations/`organization`/securityHealthAnalyticsSettings * + # folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/ + # securityHealthAnalyticsSettings + # @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::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] + # + # @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 calculate_project_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings + 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 + + # Calculates the effective WebSecurityScannerSettings based on its level in the + # resource hierarchy and its settings. + # @param [String] name + # Required. The name of the WebSecurityScannerSettings to calculate. Formats: * + # organizations/`organization`/webSecurityScannerSettings * folders/`folder`/ + # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings + # @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::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] + # + # @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 calculate_project_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings + 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 + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/securitycenter_v1p1alpha1.rb b/generated/google/apis/securitycenter_v1p1alpha1.rb index 22f8a54c9..cad985b07 100644 --- a/generated/google/apis/securitycenter_v1p1alpha1.rb +++ b/generated/google/apis/securitycenter_v1p1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1p1alpha1 VERSION = 'V1p1alpha1' - REVISION = '20200806' + REVISION = '20200820' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1p1alpha1/classes.rb b/generated/google/apis/securitycenter_v1p1alpha1/classes.rb index 8fb284c18..481e9c348 100644 --- a/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +++ b/generated/google/apis/securitycenter_v1p1alpha1/classes.rb @@ -58,9 +58,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time @@ -351,9 +353,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time diff --git a/generated/google/apis/securitycenter_v1p1beta1.rb b/generated/google/apis/securitycenter_v1p1beta1.rb index 1485f74dc..d9d697c16 100644 --- a/generated/google/apis/securitycenter_v1p1beta1.rb +++ b/generated/google/apis/securitycenter_v1p1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20200813' + REVISION = '20200820' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1p1beta1/classes.rb b/generated/google/apis/securitycenter_v1p1beta1/classes.rb index 96f4253cc..fbed3aeec 100644 --- a/generated/google/apis/securitycenter_v1p1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1p1beta1/classes.rb @@ -279,9 +279,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time @@ -616,9 +618,11 @@ module Google # @return [String] attr_accessor :create_time - # The time at which the event took place. For example, if the finding represents - # an open firewall it would capture the time the detector believes the firewall - # became open. The accuracy is determined by the detector. + # The time at which the event took place, or when an update to the finding + # occurred. For example, if the finding represents an open firewall it would + # capture the time the detector believes the firewall became open. The accuracy + # is determined by the detector. If the finding were to be resolved afterward, + # this time would reflect when the finding was resolved. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index b60cab57e..7c674337f 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20200819' + REVISION = '20200822' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index 7e411bdd2..9ea005e1d 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -1880,6 +1880,25 @@ module Google end end + # Response to list peered DNS domains for a given connection. + class ListPeeredDnsDomainsResponse + include Google::Apis::Core::Hashable + + # The list of peered DNS domains. + # Corresponds to the JSON property `peeredDnsDomains` + # @return [Array] + attr_accessor :peered_dns_domains + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @peered_dns_domains = args[:peered_dns_domains] if args.key?(:peered_dns_domains) + end + end + # A description of a log type. Example in YAML format: - name: library. # googleapis.com/activity_history description: The history of borrowing and # returning library items. display_name: Activity labels: - key: /customer_id diff --git a/generated/google/apis/servicenetworking_v1/representations.rb b/generated/google/apis/servicenetworking_v1/representations.rb index db944dfa0..72209098b 100644 --- a/generated/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google/apis/servicenetworking_v1/representations.rb @@ -298,6 +298,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListPeeredDnsDomainsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogDescriptor class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1017,6 +1023,14 @@ module Google end end + class ListPeeredDnsDomainsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :peered_dns_domains, as: 'peeredDnsDomains', class: Google::Apis::ServicenetworkingV1::PeeredDnsDomain, decorator: Google::Apis::ServicenetworkingV1::PeeredDnsDomain::Representation + + end + end + class LogDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/servicenetworking_v1/service.rb b/generated/google/apis/servicenetworking_v1/service.rb index f72d3d7f2..401f3b3c6 100644 --- a/generated/google/apis/servicenetworking_v1/service.rb +++ b/generated/google/apis/servicenetworking_v1/service.rb @@ -777,6 +777,43 @@ module Google execute_or_queue_command(command, &block) end + # Lists peered DNS domains for a connection. + # @param [String] parent + # Required. Parent resource identifying the connection which owns this + # collection of peered DNS domains in the format: `services/`service`/projects/` + # project`/global/networks/`network``. `service` is the peering service that is + # managing connectivity for the service producer's organization. For Google + # services that support this functionality, this value is `servicenetworking. + # googleapis.com`. `project` is a project number e.g. `12345` that contains the + # service consumer's VPC network. `network` is the name of the service consumer' + # s VPC network. + # @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::ServicenetworkingV1::ListPeeredDnsDomainsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicenetworkingV1::ListPeeredDnsDomainsResponse] + # + # @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_service_project_global_network_peered_dns_domains(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/peeredDnsDomains', options) + command.response_representation = Google::Apis::ServicenetworkingV1::ListPeeredDnsDomainsResponse::Representation + command.response_class = Google::Apis::ServicenetworkingV1::ListPeeredDnsDomainsResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Service producers can use this method to add roles in the shared VPC host # project. Each role is bound to the provided member. Each role must be selected # from within a whitelisted set of roles. Each role is applied at only the diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 77cc2ad51..f19364e07 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200818' + REVISION = '20200821' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index e29176dff..40a1b8fdc 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -1786,6 +1786,38 @@ module Google # @return [Array] attr_accessor :endpoints + # Defines the monitored resources used by this service. This is required by the + # Service.monitoring and Service.logging configurations. + # Corresponds to the JSON property `monitoredResources` + # @return [Array] + attr_accessor :monitored_resources + + # Monitoring configuration of the service. The example below shows how to + # configure monitored resources and metrics for monitoring. In the example, a + # monitored resource and two metrics are defined. The `library.googleapis.com/ + # book/returned_count` metric is sent to both producer and consumer projects, + # whereas the `library.googleapis.com/book/num_overdue` metric is only sent to + # the consumer project. monitored_resources: - type: library.googleapis.com/ + # Branch display_name: "Library Branch" description: "A branch of a library." + # launch_stage: GA labels: - key: resource_container description: "The Cloud + # container (ie. project id) for the Branch." - key: location description: "The + # location of the library branch." - key: branch_id description: "The id of the + # branch." metrics: - name: library.googleapis.com/book/returned_count + # display_name: "Books Returned" description: "The count of books that have been + # returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1" + # labels: - key: customer_id description: "The id of the customer." - name: + # library.googleapis.com/book/num_overdue display_name: "Books Overdue" + # description: "The current number of overdue books." launch_stage: GA + # metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id + # description: "The id of the customer." monitoring: producer_destinations: - + # monitored_resource: library.googleapis.com/Branch metrics: - library. + # googleapis.com/book/returned_count consumer_destinations: - monitored_resource: + # library.googleapis.com/Branch metrics: - library.googleapis.com/book/ + # returned_count - library.googleapis.com/book/num_overdue + # Corresponds to the JSON property `monitoring` + # @return [Google::Apis::ServiceusageV1::Monitoring] + attr_accessor :monitoring + # The DNS address at which this service is available. An example DNS address # would be: `calendar.googleapis.com`. # Corresponds to the JSON property `name` @@ -1835,6 +1867,8 @@ module Google @authentication = args[:authentication] if args.key?(:authentication) @documentation = args[:documentation] if args.key?(:documentation) @endpoints = args[:endpoints] if args.key?(:endpoints) + @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources) + @monitoring = args[:monitoring] if args.key?(:monitoring) @name = args[:name] if args.key?(:name) @quota = args[:quota] if args.key?(:quota) @title = args[:title] if args.key?(:title) diff --git a/generated/google/apis/serviceusage_v1/representations.rb b/generated/google/apis/serviceusage_v1/representations.rb index 76e5d129f..fa147584b 100644 --- a/generated/google/apis/serviceusage_v1/representations.rb +++ b/generated/google/apis/serviceusage_v1/representations.rb @@ -931,6 +931,10 @@ module Google collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceusageV1::Endpoint, decorator: Google::Apis::ServiceusageV1::Endpoint::Representation + collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceusageV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceusageV1::MonitoredResourceDescriptor::Representation + + property :monitoring, as: 'monitoring', class: Google::Apis::ServiceusageV1::Monitoring, decorator: Google::Apis::ServiceusageV1::Monitoring::Representation + property :name, as: 'name' property :quota, as: 'quota', class: Google::Apis::ServiceusageV1::Quota, decorator: Google::Apis::ServiceusageV1::Quota::Representation diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 67c5c4ea4..0db4deaa9 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200818' + REVISION = '20200821' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index c8997b44d..b7c96aff7 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -1847,6 +1847,38 @@ module Google # @return [Array] attr_accessor :endpoints + # Defines the monitored resources used by this service. This is required by the + # Service.monitoring and Service.logging configurations. + # Corresponds to the JSON property `monitoredResources` + # @return [Array] + attr_accessor :monitored_resources + + # Monitoring configuration of the service. The example below shows how to + # configure monitored resources and metrics for monitoring. In the example, a + # monitored resource and two metrics are defined. The `library.googleapis.com/ + # book/returned_count` metric is sent to both producer and consumer projects, + # whereas the `library.googleapis.com/book/num_overdue` metric is only sent to + # the consumer project. monitored_resources: - type: library.googleapis.com/ + # Branch display_name: "Library Branch" description: "A branch of a library." + # launch_stage: GA labels: - key: resource_container description: "The Cloud + # container (ie. project id) for the Branch." - key: location description: "The + # location of the library branch." - key: branch_id description: "The id of the + # branch." metrics: - name: library.googleapis.com/book/returned_count + # display_name: "Books Returned" description: "The count of books that have been + # returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1" + # labels: - key: customer_id description: "The id of the customer." - name: + # library.googleapis.com/book/num_overdue display_name: "Books Overdue" + # description: "The current number of overdue books." launch_stage: GA + # metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id + # description: "The id of the customer." monitoring: producer_destinations: - + # monitored_resource: library.googleapis.com/Branch metrics: - library. + # googleapis.com/book/returned_count consumer_destinations: - monitored_resource: + # library.googleapis.com/Branch metrics: - library.googleapis.com/book/ + # returned_count - library.googleapis.com/book/num_overdue + # Corresponds to the JSON property `monitoring` + # @return [Google::Apis::ServiceusageV1beta1::Monitoring] + attr_accessor :monitoring + # The DNS address at which this service is available. An example DNS address # would be: `calendar.googleapis.com`. # Corresponds to the JSON property `name` @@ -1896,6 +1928,8 @@ module Google @authentication = args[:authentication] if args.key?(:authentication) @documentation = args[:documentation] if args.key?(:documentation) @endpoints = args[:endpoints] if args.key?(:endpoints) + @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources) + @monitoring = args[:monitoring] if args.key?(:monitoring) @name = args[:name] if args.key?(:name) @quota = args[:quota] if args.key?(:quota) @title = args[:title] if args.key?(:title) @@ -3653,6 +3687,38 @@ module Google # @return [Array] attr_accessor :endpoints + # Defines the monitored resources used by this service. This is required by the + # Service.monitoring and Service.logging configurations. + # Corresponds to the JSON property `monitoredResources` + # @return [Array] + attr_accessor :monitored_resources + + # Monitoring configuration of the service. The example below shows how to + # configure monitored resources and metrics for monitoring. In the example, a + # monitored resource and two metrics are defined. The `library.googleapis.com/ + # book/returned_count` metric is sent to both producer and consumer projects, + # whereas the `library.googleapis.com/book/num_overdue` metric is only sent to + # the consumer project. monitored_resources: - type: library.googleapis.com/ + # Branch display_name: "Library Branch" description: "A branch of a library." + # launch_stage: GA labels: - key: resource_container description: "The Cloud + # container (ie. project id) for the Branch." - key: location description: "The + # location of the library branch." - key: branch_id description: "The id of the + # branch." metrics: - name: library.googleapis.com/book/returned_count + # display_name: "Books Returned" description: "The count of books that have been + # returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1" + # labels: - key: customer_id description: "The id of the customer." - name: + # library.googleapis.com/book/num_overdue display_name: "Books Overdue" + # description: "The current number of overdue books." launch_stage: GA + # metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id + # description: "The id of the customer." monitoring: producer_destinations: - + # monitored_resource: library.googleapis.com/Branch metrics: - library. + # googleapis.com/book/returned_count consumer_destinations: - monitored_resource: + # library.googleapis.com/Branch metrics: - library.googleapis.com/book/ + # returned_count - library.googleapis.com/book/num_overdue + # Corresponds to the JSON property `monitoring` + # @return [Google::Apis::ServiceusageV1beta1::Monitoring] + attr_accessor :monitoring + # The DNS address at which this service is available. An example DNS address # would be: `calendar.googleapis.com`. # Corresponds to the JSON property `name` @@ -3702,6 +3768,8 @@ module Google @authentication = args[:authentication] if args.key?(:authentication) @documentation = args[:documentation] if args.key?(:documentation) @endpoints = args[:endpoints] if args.key?(:endpoints) + @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources) + @monitoring = args[:monitoring] if args.key?(:monitoring) @name = args[:name] if args.key?(:name) @quota = args[:quota] if args.key?(:quota) @title = args[:title] if args.key?(:title) diff --git a/generated/google/apis/serviceusage_v1beta1/representations.rb b/generated/google/apis/serviceusage_v1beta1/representations.rb index 428c4509c..89bbb8f28 100644 --- a/generated/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google/apis/serviceusage_v1beta1/representations.rb @@ -988,6 +988,10 @@ module Google collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceusageV1beta1::Endpoint, decorator: Google::Apis::ServiceusageV1beta1::Endpoint::Representation + collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor::Representation + + property :monitoring, as: 'monitoring', class: Google::Apis::ServiceusageV1beta1::Monitoring, decorator: Google::Apis::ServiceusageV1beta1::Monitoring::Representation + property :name, as: 'name' property :quota, as: 'quota', class: Google::Apis::ServiceusageV1beta1::Quota, decorator: Google::Apis::ServiceusageV1beta1::Quota::Representation @@ -1383,6 +1387,10 @@ module Google collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceusageV1beta1::Endpoint, decorator: Google::Apis::ServiceusageV1beta1::Endpoint::Representation + collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor::Representation + + property :monitoring, as: 'monitoring', class: Google::Apis::ServiceusageV1beta1::Monitoring, decorator: Google::Apis::ServiceusageV1beta1::Monitoring::Representation + property :name, as: 'name' property :quota, as: 'quota', class: Google::Apis::ServiceusageV1beta1::Quota, decorator: Google::Apis::ServiceusageV1beta1::Quota::Representation diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 68311ed1c..27a9a1fe9 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '20200803' + REVISION = '20200824' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/toolresults_v1beta3/classes.rb b/generated/google/apis/toolresults_v1beta3/classes.rb index 741588909..e2fcf0c36 100644 --- a/generated/google/apis/toolresults_v1beta3/classes.rb +++ b/generated/google/apis/toolresults_v1beta3/classes.rb @@ -830,6 +830,12 @@ module Google attr_accessor :crashed alias_method :crashed?, :crashed + # If the device ran out of memory during a test, causing the test to crash. + # Corresponds to the JSON property `deviceOutOfMemory` + # @return [Boolean] + attr_accessor :device_out_of_memory + alias_method :device_out_of_memory?, :device_out_of_memory + # If the Roboscript failed to complete successfully, e.g., because a Roboscript # action or assertion failed or a Roboscript action could not be matched during # the entire crawl. @@ -870,6 +876,7 @@ module Google # Update properties of this object def update!(**args) @crashed = args[:crashed] if args.key?(:crashed) + @device_out_of_memory = args[:device_out_of_memory] if args.key?(:device_out_of_memory) @failed_roboscript = args[:failed_roboscript] if args.key?(:failed_roboscript) @not_installed = args[:not_installed] if args.key?(:not_installed) @other_native_crash = args[:other_native_crash] if args.key?(:other_native_crash) diff --git a/generated/google/apis/toolresults_v1beta3/representations.rb b/generated/google/apis/toolresults_v1beta3/representations.rb index 9783f9b69..b3b9a0663 100644 --- a/generated/google/apis/toolresults_v1beta3/representations.rb +++ b/generated/google/apis/toolresults_v1beta3/representations.rb @@ -887,6 +887,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :crashed, as: 'crashed' + property :device_out_of_memory, as: 'deviceOutOfMemory' property :failed_roboscript, as: 'failedRoboscript' property :not_installed, as: 'notInstalled' property :other_native_crash, as: 'otherNativeCrash' diff --git a/generated/google/apis/trafficdirector_v2.rb b/generated/google/apis/trafficdirector_v2.rb new file mode 100644 index 000000000..19e213cd1 --- /dev/null +++ b/generated/google/apis/trafficdirector_v2.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/trafficdirector_v2/service.rb' +require 'google/apis/trafficdirector_v2/classes.rb' +require 'google/apis/trafficdirector_v2/representations.rb' + +module Google + module Apis + # Traffic Director API + # + # + # + # @see https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#management-server + module TrafficdirectorV2 + VERSION = 'V2' + REVISION = '20200816' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/trafficdirector_v2/classes.rb b/generated/google/apis/trafficdirector_v2/classes.rb new file mode 100644 index 000000000..8089c41ae --- /dev/null +++ b/generated/google/apis/trafficdirector_v2/classes.rb @@ -0,0 +1,1347 @@ +# 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 TrafficdirectorV2 + + # Addresses specify either a logical or physical address and port, which are + # used to tell Envoy where to bind/listen, connect to upstream and find + # management servers. + class Address + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `pipe` + # @return [Google::Apis::TrafficdirectorV2::Pipe] + attr_accessor :pipe + + # [#next-free-field: 7] + # Corresponds to the JSON property `socketAddress` + # @return [Google::Apis::TrafficdirectorV2::SocketAddress] + attr_accessor :socket_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pipe = args[:pipe] if args.key?(:pipe) + @socket_address = args[:socket_address] if args.key?(:socket_address) + end + end + + # BuildVersion combines SemVer version of extension with free-form build + # information (i.e. 'alpha', 'private-build') as a set of strings. + class BuildVersion + include Google::Apis::Core::Hashable + + # Free-form build information. Envoy defines several well known keys in the + # source/common/version/version.h file + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Envoy uses SemVer (https://semver.org/). Major/minor versions indicate + # expected behaviors and APIs, the patch version field is used only for security + # fixes and can be generally ignored. + # Corresponds to the JSON property `version` + # @return [Google::Apis::TrafficdirectorV2::SemanticVersion] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @version = args[:version] if args.key?(:version) + end + end + + # All xds configs for a particular client. + class ClientConfig + include Google::Apis::Core::Hashable + + # Identifies a specific Envoy instance. The node identifier is presented to the + # management server, which may use this identifier to distinguish per Envoy + # configuration for serving. [#next-free-field: 12] + # Corresponds to the JSON property `node` + # @return [Google::Apis::TrafficdirectorV2::Node] + attr_accessor :node + + # + # Corresponds to the JSON property `xdsConfig` + # @return [Array] + attr_accessor :xds_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node = args[:node] if args.key?(:node) + @xds_config = args[:xds_config] if args.key?(:xds_config) + end + end + + # Request for client status of clients identified by a list of NodeMatchers. + class ClientStatusRequest + include Google::Apis::Core::Hashable + + # Management server can use these match criteria to identify clients. The match + # follows OR semantics. + # Corresponds to the JSON property `nodeMatchers` + # @return [Array] + attr_accessor :node_matchers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_matchers = args[:node_matchers] if args.key?(:node_matchers) + end + end + + # + class ClientStatusResponse + include Google::Apis::Core::Hashable + + # Client configs for the clients specified in the ClientStatusRequest. + # Corresponds to the JSON property `config` + # @return [Array] + attr_accessor :config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + end + end + + # Envoy's cluster manager fills this message with all currently known clusters. + # Cluster configuration information can be used to recreate an Envoy + # configuration by populating all clusters as static clusters or by returning + # them in a CDS response. + class ClustersConfigDump + include Google::Apis::Core::Hashable + + # The dynamically loaded active clusters. These are clusters that are available + # to service data plane traffic. + # Corresponds to the JSON property `dynamicActiveClusters` + # @return [Array] + attr_accessor :dynamic_active_clusters + + # The dynamically loaded warming clusters. These are clusters that are currently + # undergoing warming in preparation to service data plane traffic. Note that if + # attempting to recreate an Envoy configuration from a configuration dump, the + # warming clusters should generally be discarded. + # Corresponds to the JSON property `dynamicWarmingClusters` + # @return [Array] + attr_accessor :dynamic_warming_clusters + + # The statically loaded cluster configs. + # Corresponds to the JSON property `staticClusters` + # @return [Array] + attr_accessor :static_clusters + + # This is the :ref:`version_info ` in the last processed CDS discovery response. + # If there are only static bootstrap clusters, this field will be "". + # Corresponds to the JSON property `versionInfo` + # @return [String] + attr_accessor :version_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_active_clusters = args[:dynamic_active_clusters] if args.key?(:dynamic_active_clusters) + @dynamic_warming_clusters = args[:dynamic_warming_clusters] if args.key?(:dynamic_warming_clusters) + @static_clusters = args[:static_clusters] if args.key?(:static_clusters) + @version_info = args[:version_info] if args.key?(:version_info) + end + end + + # Specifies the way to match a double value. + class DoubleMatcher + include Google::Apis::Core::Hashable + + # If specified, the input double value must be equal to the value specified here. + # Corresponds to the JSON property `exact` + # @return [Float] + attr_accessor :exact + + # Specifies the double start and end of the range using half-open interval + # semantics [start, end). + # Corresponds to the JSON property `range` + # @return [Google::Apis::TrafficdirectorV2::DoubleRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exact = args[:exact] if args.key?(:exact) + @range = args[:range] if args.key?(:range) + end + end + + # Specifies the double start and end of the range using half-open interval + # semantics [start, end). + class DoubleRange + include Google::Apis::Core::Hashable + + # end of the range (exclusive) + # Corresponds to the JSON property `end` + # @return [Float] + attr_accessor :end + + # start of the range (inclusive) + # Corresponds to the JSON property `start` + # @return [Float] + attr_accessor :start + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end = args[:end] if args.key?(:end) + @start = args[:start] if args.key?(:start) + end + end + + # Describes a dynamically loaded cluster via the CDS API. + class DynamicCluster + include Google::Apis::Core::Hashable + + # The cluster config. + # Corresponds to the JSON property `cluster` + # @return [Hash] + attr_accessor :cluster + + # The timestamp when the Cluster was last updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + # This is the per-resource version information. This version is currently taken + # from the :ref:`version_info ` field at the time that the cluster was loaded. + # In the future, discrete per-cluster versions may be supported by the API. + # Corresponds to the JSON property `versionInfo` + # @return [String] + attr_accessor :version_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster = args[:cluster] if args.key?(:cluster) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @version_info = args[:version_info] if args.key?(:version_info) + end + end + + # Describes a dynamically loaded listener via the LDS API. [#next-free-field: 6] + class DynamicListener + include Google::Apis::Core::Hashable + + # The listener state for any active listener by this name. These are listeners + # that are available to service data plane traffic. + # Corresponds to the JSON property `activeState` + # @return [Google::Apis::TrafficdirectorV2::DynamicListenerState] + attr_accessor :active_state + + # The listener state for any draining listener by this name. These are listeners + # that are currently undergoing draining in preparation to stop servicing data + # plane traffic. Note that if attempting to recreate an Envoy configuration from + # a configuration dump, the draining listeners should generally be discarded. + # Corresponds to the JSON property `drainingState` + # @return [Google::Apis::TrafficdirectorV2::DynamicListenerState] + attr_accessor :draining_state + + # Set if the last update failed, cleared after the next successful update. + # Corresponds to the JSON property `errorState` + # @return [Google::Apis::TrafficdirectorV2::UpdateFailureState] + attr_accessor :error_state + + # The name or unique id of this listener, pulled from the DynamicListenerState + # config. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The listener state for any warming listener by this name. These are listeners + # that are currently undergoing warming in preparation to service data plane + # traffic. Note that if attempting to recreate an Envoy configuration from a + # configuration dump, the warming listeners should generally be discarded. + # Corresponds to the JSON property `warmingState` + # @return [Google::Apis::TrafficdirectorV2::DynamicListenerState] + attr_accessor :warming_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_state = args[:active_state] if args.key?(:active_state) + @draining_state = args[:draining_state] if args.key?(:draining_state) + @error_state = args[:error_state] if args.key?(:error_state) + @name = args[:name] if args.key?(:name) + @warming_state = args[:warming_state] if args.key?(:warming_state) + end + end + + # + class DynamicListenerState + include Google::Apis::Core::Hashable + + # The timestamp when the Listener was last successfully updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + # The listener config. + # Corresponds to the JSON property `listener` + # @return [Hash] + attr_accessor :listener + + # This is the per-resource version information. This version is currently taken + # from the :ref:`version_info ` field at the time that the listener was loaded. + # In the future, discrete per-listener versions may be supported by the API. + # Corresponds to the JSON property `versionInfo` + # @return [String] + attr_accessor :version_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @listener = args[:listener] if args.key?(:listener) + @version_info = args[:version_info] if args.key?(:version_info) + end + end + + # + class DynamicRouteConfig + include Google::Apis::Core::Hashable + + # The timestamp when the Route was last updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + # The route config. + # Corresponds to the JSON property `routeConfig` + # @return [Hash] + attr_accessor :route_config + + # This is the per-resource version information. This version is currently taken + # from the :ref:`version_info ` field at the time that the route configuration + # was loaded. + # Corresponds to the JSON property `versionInfo` + # @return [String] + attr_accessor :version_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @route_config = args[:route_config] if args.key?(:route_config) + @version_info = args[:version_info] if args.key?(:version_info) + end + end + + # + class DynamicScopedRouteConfigs + include Google::Apis::Core::Hashable + + # The timestamp when the scoped route config set was last updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + # The name assigned to the scoped route configurations. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The scoped route configurations. + # Corresponds to the JSON property `scopedRouteConfigs` + # @return [Array>] + attr_accessor :scoped_route_configs + + # This is the per-resource version information. This version is currently taken + # from the :ref:`version_info ` field at the time that the scoped routes + # configuration was loaded. + # Corresponds to the JSON property `versionInfo` + # @return [String] + attr_accessor :version_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @name = args[:name] if args.key?(:name) + @scoped_route_configs = args[:scoped_route_configs] if args.key?(:scoped_route_configs) + @version_info = args[:version_info] if args.key?(:version_info) + end + end + + # Version and identification for an Envoy extension. [#next-free-field: 6] + class Extension + include Google::Apis::Core::Hashable + + # Category of the extension. Extension category names use reverse DNS notation. + # For instance "envoy.filters.listener" for Envoy's built-in listener filters or + # "com.acme.filters.http" for HTTP filters from acme.com vendor. [#comment: + # Corresponds to the JSON property `category` + # @return [String] + attr_accessor :category + + # Indicates that the extension is present but was disabled via dynamic + # configuration. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + # This is the name of the Envoy filter as specified in the Envoy configuration, + # e.g. envoy.filters.http.router, com.acme.widget. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [#not-implemented-hide:] Type descriptor of extension configuration proto. [# + # comment: + # Corresponds to the JSON property `typeDescriptor` + # @return [String] + attr_accessor :type_descriptor + + # BuildVersion combines SemVer version of extension with free-form build + # information (i.e. 'alpha', 'private-build') as a set of strings. + # Corresponds to the JSON property `version` + # @return [Google::Apis::TrafficdirectorV2::BuildVersion] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @category = args[:category] if args.key?(:category) + @disabled = args[:disabled] if args.key?(:disabled) + @name = args[:name] if args.key?(:name) + @type_descriptor = args[:type_descriptor] if args.key?(:type_descriptor) + @version = args[:version] if args.key?(:version) + end + end + + # Google's `RE2 `_ regex engine. The regex string must adhere to the documented ` + # syntax `_. The engine is designed to complete execution in linear time as well + # as limit the amount of memory used. Envoy supports program size checking via + # runtime. The runtime keys `re2.max_program_size.error_level` and `re2. + # max_program_size.warn_level` can be set to integers as the maximum program + # size or complexity that a compiled regex can have before an exception is + # thrown or a warning is logged, respectively. `re2.max_program_size.error_level` + # defaults to 100, and `re2.max_program_size.warn_level` has no default if + # unset (will not check/log a warning). Envoy emits two stats for tracking the + # program size of regexes: the histogram `re2.program_size`, which records the + # program size, and the counter `re2.exceeded_warn_level`, which is incremented + # each time the program size exceeds the warn level threshold. + class GoogleRe2 + include Google::Apis::Core::Hashable + + # This field controls the RE2 "program size" which is a rough estimate of how + # complex a compiled regex is to evaluate. A regex that has a program size + # greater than the configured value will fail to compile. In this case, the + # configured max program size can be increased or the regex can be simplified. + # If not specified, the default is 100. This field is deprecated; regexp + # validation should be performed on the management server instead of being done + # by each individual client. + # Corresponds to the JSON property `maxProgramSize` + # @return [Fixnum] + attr_accessor :max_program_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_program_size = args[:max_program_size] if args.key?(:max_program_size) + end + end + + # + class InlineScopedRouteConfigs + include Google::Apis::Core::Hashable + + # The timestamp when the scoped route config set was last updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + # The name assigned to the scoped route configurations. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The scoped route configurations. + # Corresponds to the JSON property `scopedRouteConfigs` + # @return [Array>] + attr_accessor :scoped_route_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @name = args[:name] if args.key?(:name) + @scoped_route_configs = args[:scoped_route_configs] if args.key?(:scoped_route_configs) + end + end + + # Specifies the way to match a list value. + class ListMatcher + include Google::Apis::Core::Hashable + + # Specifies the way to match a ProtobufWkt::Value. Primitive values and + # ListValue are supported. StructValue is not supported and is always not + # matched. [#next-free-field: 7] + # Corresponds to the JSON property `oneOf` + # @return [Google::Apis::TrafficdirectorV2::ValueMatcher] + attr_accessor :one_of + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @one_of = args[:one_of] if args.key?(:one_of) + end + end + + # Envoy's listener manager fills this message with all currently known listeners. + # Listener configuration information can be used to recreate an Envoy + # configuration by populating all listeners as static listeners or by returning + # them in a LDS response. + class ListenersConfigDump + include Google::Apis::Core::Hashable + + # State for any warming, active, or draining listeners. + # Corresponds to the JSON property `dynamicListeners` + # @return [Array] + attr_accessor :dynamic_listeners + + # The statically loaded listener configs. + # Corresponds to the JSON property `staticListeners` + # @return [Array] + attr_accessor :static_listeners + + # This is the :ref:`version_info ` in the last processed LDS discovery response. + # If there are only static bootstrap listeners, this field will be "". + # Corresponds to the JSON property `versionInfo` + # @return [String] + attr_accessor :version_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_listeners = args[:dynamic_listeners] if args.key?(:dynamic_listeners) + @static_listeners = args[:static_listeners] if args.key?(:static_listeners) + @version_info = args[:version_info] if args.key?(:version_info) + end + end + + # Identifies location of where either Envoy runs or where upstream hosts run. + class Locality + include Google::Apis::Core::Hashable + + # Region this :ref:`zone ` belongs to. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # When used for locality of upstream hosts, this field further splits zone into + # smaller chunks of sub-zones so they can be load balanced independently. + # Corresponds to the JSON property `subZone` + # @return [String] + attr_accessor :sub_zone + + # Defines the local service zone where Envoy is running. Though optional, it + # should be set if discovery service routing is used and the discovery service + # exposes :ref:`zone data `, either in this message or via :option:`--service- + # zone`. The meaning of zone is context dependent, e.g. `Availability Zone (AZ) ` + # _ on AWS, `Zone `_ on GCP, etc. + # 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) + @region = args[:region] if args.key?(:region) + @sub_zone = args[:sub_zone] if args.key?(:sub_zone) + @zone = args[:zone] if args.key?(:zone) + end + end + + # Identifies a specific Envoy instance. The node identifier is presented to the + # management server, which may use this identifier to distinguish per Envoy + # configuration for serving. [#next-free-field: 12] + class Node + include Google::Apis::Core::Hashable + + # This is motivated by informing a management server during canary which version + # of Envoy is being tested in a heterogeneous fleet. This will be set by Envoy + # in management server RPCs. This field is deprecated in favor of the + # user_agent_name and user_agent_version values. + # Corresponds to the JSON property `buildVersion` + # @return [String] + attr_accessor :build_version + + # Client feature support list. These are well known features described in the + # Envoy API repository for a given major version of an API. Client features use + # reverse DNS naming scheme, for example `com.acme.feature`. See :ref:`the list + # of features ` that xDS client may support. + # Corresponds to the JSON property `clientFeatures` + # @return [Array] + attr_accessor :client_features + + # Defines the local service cluster name where Envoy is running. Though optional, + # it should be set if any of the following features are used: :ref:`statsd `, : + # ref:`health check cluster verification `, :ref:`runtime override directory `, : + # ref:`user agent addition `, :ref:`HTTP global rate limiting `, :ref:`CDS `, + # and :ref:`HTTP tracing `, either in this message or via :option:`--service- + # cluster`. + # Corresponds to the JSON property `cluster` + # @return [String] + attr_accessor :cluster + + # List of extensions and their versions supported by the node. + # Corresponds to the JSON property `extensions` + # @return [Array] + attr_accessor :extensions + + # An opaque node identifier for the Envoy node. This also provides the local + # service node name. It should be set if any of the following features are used: + # :ref:`statsd `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this message + # or via :option:`--service-node`. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Known listening ports on the node as a generic hint to the management server + # for filtering :ref:`listeners ` to be returned. For example, if there is a + # listener bound to port 80, the list can optionally contain the SocketAddress `( + # 0.0.0.0,80)`. The field is optional and just a hint. + # Corresponds to the JSON property `listeningAddresses` + # @return [Array] + attr_accessor :listening_addresses + + # Identifies location of where either Envoy runs or where upstream hosts run. + # Corresponds to the JSON property `locality` + # @return [Google::Apis::TrafficdirectorV2::Locality] + attr_accessor :locality + + # Opaque metadata extending the node identifier. Envoy will pass this directly + # to the management server. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # BuildVersion combines SemVer version of extension with free-form build + # information (i.e. 'alpha', 'private-build') as a set of strings. + # Corresponds to the JSON property `userAgentBuildVersion` + # @return [Google::Apis::TrafficdirectorV2::BuildVersion] + attr_accessor :user_agent_build_version + + # Free-form string that identifies the entity requesting config. E.g. "envoy" or + # "grpc" + # Corresponds to the JSON property `userAgentName` + # @return [String] + attr_accessor :user_agent_name + + # Free-form string that identifies the version of the entity requesting config. + # E.g. "1.12.2" or "abcd1234", or "SpecialEnvoyBuild" + # Corresponds to the JSON property `userAgentVersion` + # @return [String] + attr_accessor :user_agent_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @build_version = args[:build_version] if args.key?(:build_version) + @client_features = args[:client_features] if args.key?(:client_features) + @cluster = args[:cluster] if args.key?(:cluster) + @extensions = args[:extensions] if args.key?(:extensions) + @id = args[:id] if args.key?(:id) + @listening_addresses = args[:listening_addresses] if args.key?(:listening_addresses) + @locality = args[:locality] if args.key?(:locality) + @metadata = args[:metadata] if args.key?(:metadata) + @user_agent_build_version = args[:user_agent_build_version] if args.key?(:user_agent_build_version) + @user_agent_name = args[:user_agent_name] if args.key?(:user_agent_name) + @user_agent_version = args[:user_agent_version] if args.key?(:user_agent_version) + end + end + + # Specifies the way to match a Node. The match follows AND semantics. + class NodeMatcher + include Google::Apis::Core::Hashable + + # Specifies the way to match a string. [#next-free-field: 7] + # Corresponds to the JSON property `nodeId` + # @return [Google::Apis::TrafficdirectorV2::StringMatcher] + attr_accessor :node_id + + # Specifies match criteria on the node metadata. + # Corresponds to the JSON property `nodeMetadatas` + # @return [Array] + attr_accessor :node_metadatas + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_id = args[:node_id] if args.key?(:node_id) + @node_metadatas = args[:node_metadatas] if args.key?(:node_metadatas) + end + end + + # NullMatch is an empty message to specify a null value. + class NullMatch + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Specifies the segment in a path to retrieve value from Struct. + class PathSegment + include Google::Apis::Core::Hashable + + # If specified, use the key to retrieve the value in a Struct. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + end + end + + # Detailed config (per xDS) with status. [#next-free-field: 6] + class PerXdsConfig + include Google::Apis::Core::Hashable + + # Envoy's cluster manager fills this message with all currently known clusters. + # Cluster configuration information can be used to recreate an Envoy + # configuration by populating all clusters as static clusters or by returning + # them in a CDS response. + # Corresponds to the JSON property `clusterConfig` + # @return [Google::Apis::TrafficdirectorV2::ClustersConfigDump] + attr_accessor :cluster_config + + # Envoy's listener manager fills this message with all currently known listeners. + # Listener configuration information can be used to recreate an Envoy + # configuration by populating all listeners as static listeners or by returning + # them in a LDS response. + # Corresponds to the JSON property `listenerConfig` + # @return [Google::Apis::TrafficdirectorV2::ListenersConfigDump] + attr_accessor :listener_config + + # Envoy's RDS implementation fills this message with all currently loaded routes, + # as described by their RouteConfiguration objects. Static routes that are + # either defined in the bootstrap configuration or defined inline while + # configuring listeners are separated from those configured dynamically via RDS. + # Route configuration information can be used to recreate an Envoy configuration + # by populating all routes as static routes or by returning them in RDS + # responses. + # Corresponds to the JSON property `routeConfig` + # @return [Google::Apis::TrafficdirectorV2::RoutesConfigDump] + attr_accessor :route_config + + # Envoy's scoped RDS implementation fills this message with all currently loaded + # route configuration scopes (defined via ScopedRouteConfigurationsSet protos). + # This message lists both the scopes defined inline with the higher order object + # (i.e., the HttpConnectionManager) and the dynamically obtained scopes via the + # SRDS API. + # Corresponds to the JSON property `scopedRouteConfig` + # @return [Google::Apis::TrafficdirectorV2::ScopedRoutesConfigDump] + attr_accessor :scoped_route_config + + # + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_config = args[:cluster_config] if args.key?(:cluster_config) + @listener_config = args[:listener_config] if args.key?(:listener_config) + @route_config = args[:route_config] if args.key?(:route_config) + @scoped_route_config = args[:scoped_route_config] if args.key?(:scoped_route_config) + @status = args[:status] if args.key?(:status) + end + end + + # + class Pipe + include Google::Apis::Core::Hashable + + # The mode for the Pipe. Not applicable for abstract sockets. + # Corresponds to the JSON property `mode` + # @return [Fixnum] + attr_accessor :mode + + # Unix Domain Socket path. On Linux, paths starting with '@' will use the + # abstract namespace. The starting '@' is replaced by a null byte by Envoy. + # Paths starting with '@' will result in an error in environments other than + # Linux. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mode = args[:mode] if args.key?(:mode) + @path = args[:path] if args.key?(:path) + end + end + + # A regex matcher designed for safety when used with untrusted input. + class RegexMatcher + include Google::Apis::Core::Hashable + + # Google's `RE2 `_ regex engine. The regex string must adhere to the documented ` + # syntax `_. The engine is designed to complete execution in linear time as well + # as limit the amount of memory used. Envoy supports program size checking via + # runtime. The runtime keys `re2.max_program_size.error_level` and `re2. + # max_program_size.warn_level` can be set to integers as the maximum program + # size or complexity that a compiled regex can have before an exception is + # thrown or a warning is logged, respectively. `re2.max_program_size.error_level` + # defaults to 100, and `re2.max_program_size.warn_level` has no default if + # unset (will not check/log a warning). Envoy emits two stats for tracking the + # program size of regexes: the histogram `re2.program_size`, which records the + # program size, and the counter `re2.exceeded_warn_level`, which is incremented + # each time the program size exceeds the warn level threshold. + # Corresponds to the JSON property `googleRe2` + # @return [Google::Apis::TrafficdirectorV2::GoogleRe2] + attr_accessor :google_re2 + + # The regex match string. The string must be supported by the configured engine. + # Corresponds to the JSON property `regex` + # @return [String] + attr_accessor :regex + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_re2 = args[:google_re2] if args.key?(:google_re2) + @regex = args[:regex] if args.key?(:regex) + end + end + + # Envoy's RDS implementation fills this message with all currently loaded routes, + # as described by their RouteConfiguration objects. Static routes that are + # either defined in the bootstrap configuration or defined inline while + # configuring listeners are separated from those configured dynamically via RDS. + # Route configuration information can be used to recreate an Envoy configuration + # by populating all routes as static routes or by returning them in RDS + # responses. + class RoutesConfigDump + include Google::Apis::Core::Hashable + + # The dynamically loaded route configs. + # Corresponds to the JSON property `dynamicRouteConfigs` + # @return [Array] + attr_accessor :dynamic_route_configs + + # The statically loaded route configs. + # Corresponds to the JSON property `staticRouteConfigs` + # @return [Array] + attr_accessor :static_route_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_route_configs = args[:dynamic_route_configs] if args.key?(:dynamic_route_configs) + @static_route_configs = args[:static_route_configs] if args.key?(:static_route_configs) + end + end + + # Envoy's scoped RDS implementation fills this message with all currently loaded + # route configuration scopes (defined via ScopedRouteConfigurationsSet protos). + # This message lists both the scopes defined inline with the higher order object + # (i.e., the HttpConnectionManager) and the dynamically obtained scopes via the + # SRDS API. + class ScopedRoutesConfigDump + include Google::Apis::Core::Hashable + + # The dynamically loaded scoped route configs. + # Corresponds to the JSON property `dynamicScopedRouteConfigs` + # @return [Array] + attr_accessor :dynamic_scoped_route_configs + + # The statically loaded scoped route configs. + # Corresponds to the JSON property `inlineScopedRouteConfigs` + # @return [Array] + attr_accessor :inline_scoped_route_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_scoped_route_configs = args[:dynamic_scoped_route_configs] if args.key?(:dynamic_scoped_route_configs) + @inline_scoped_route_configs = args[:inline_scoped_route_configs] if args.key?(:inline_scoped_route_configs) + end + end + + # Envoy uses SemVer (https://semver.org/). Major/minor versions indicate + # expected behaviors and APIs, the patch version field is used only for security + # fixes and can be generally ignored. + class SemanticVersion + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `majorNumber` + # @return [Fixnum] + attr_accessor :major_number + + # + # Corresponds to the JSON property `minorNumber` + # @return [Fixnum] + attr_accessor :minor_number + + # + # Corresponds to the JSON property `patch` + # @return [Fixnum] + attr_accessor :patch + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @major_number = args[:major_number] if args.key?(:major_number) + @minor_number = args[:minor_number] if args.key?(:minor_number) + @patch = args[:patch] if args.key?(:patch) + end + end + + # [#next-free-field: 7] + class SocketAddress + include Google::Apis::Core::Hashable + + # The address for this socket. :ref:`Listeners ` will bind to the address. An + # empty address is not allowed. Specify ``0.0.0.0`` or ``::`` to bind to any + # address. [#comment:TODO(zuercher) reinstate when implemented: It is possible + # to distinguish a Listener address via the prefix/suffix matching in :ref:` + # FilterChainMatch `.] When used within an upstream :ref:`BindConfig `, the + # address controls the source address of outbound connections. For :ref:` + # clusters `, the cluster type determines whether the address must be an IP (* + # STATIC* or *EDS* clusters) or a hostname resolved by DNS (*STRICT_DNS* or * + # LOGICAL_DNS* clusters). Address resolution can be customized via :ref:` + # resolver_name `. + # Corresponds to the JSON property `address` + # @return [String] + attr_accessor :address + + # When binding to an IPv6 address above, this enables `IPv4 compatibility `_. + # Binding to ``::`` will allow both IPv4 and IPv6 connections, with peer IPv4 + # addresses mapped into IPv6 space as ``::FFFF:``. + # Corresponds to the JSON property `ipv4Compat` + # @return [Boolean] + attr_accessor :ipv4_compat + alias_method :ipv4_compat?, :ipv4_compat + + # This is only valid if :ref:`resolver_name ` is specified below and the named + # resolver is capable of named port resolution. + # Corresponds to the JSON property `namedPort` + # @return [String] + attr_accessor :named_port + + # + # Corresponds to the JSON property `portValue` + # @return [Fixnum] + attr_accessor :port_value + + # + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + + # The name of the custom resolver. This must have been registered with Envoy. If + # this is empty, a context dependent default applies. If the address is a + # concrete IP address, no resolution will occur. If address is a hostname this + # should be set for resolution other than DNS. Specifying a custom resolver with + # *STRICT_DNS* or *LOGICAL_DNS* will generate an error at runtime. + # Corresponds to the JSON property `resolverName` + # @return [String] + attr_accessor :resolver_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] if args.key?(:address) + @ipv4_compat = args[:ipv4_compat] if args.key?(:ipv4_compat) + @named_port = args[:named_port] if args.key?(:named_port) + @port_value = args[:port_value] if args.key?(:port_value) + @protocol = args[:protocol] if args.key?(:protocol) + @resolver_name = args[:resolver_name] if args.key?(:resolver_name) + end + end + + # Describes a statically loaded cluster. + class StaticCluster + include Google::Apis::Core::Hashable + + # The cluster config. + # Corresponds to the JSON property `cluster` + # @return [Hash] + attr_accessor :cluster + + # The timestamp when the Cluster was last updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster = args[:cluster] if args.key?(:cluster) + @last_updated = args[:last_updated] if args.key?(:last_updated) + end + end + + # Describes a statically loaded listener. + class StaticListener + include Google::Apis::Core::Hashable + + # The timestamp when the Listener was last successfully updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + # The listener config. + # Corresponds to the JSON property `listener` + # @return [Hash] + attr_accessor :listener + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @listener = args[:listener] if args.key?(:listener) + end + end + + # + class StaticRouteConfig + include Google::Apis::Core::Hashable + + # The timestamp when the Route was last updated. + # Corresponds to the JSON property `lastUpdated` + # @return [String] + attr_accessor :last_updated + + # The route config. + # Corresponds to the JSON property `routeConfig` + # @return [Hash] + attr_accessor :route_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @route_config = args[:route_config] if args.key?(:route_config) + end + end + + # Specifies the way to match a string. [#next-free-field: 7] + class StringMatcher + include Google::Apis::Core::Hashable + + # The input string must match exactly the string specified here. Examples: * * + # abc* only matches the value *abc*. + # Corresponds to the JSON property `exact` + # @return [String] + attr_accessor :exact + + # If true, indicates the exact/prefix/suffix matching should be case insensitive. + # This has no effect for the safe_regex match. For example, the matcher *data* + # will match both input string *Data* and *data* if set to true. + # Corresponds to the JSON property `ignoreCase` + # @return [Boolean] + attr_accessor :ignore_case + alias_method :ignore_case?, :ignore_case + + # The input string must have the prefix specified here. Note: empty prefix is + # not allowed, please use regex instead. Examples: * *abc* matches the value * + # abc.xyz* + # Corresponds to the JSON property `prefix` + # @return [String] + attr_accessor :prefix + + # The input string must match the regular expression specified here. The regex + # grammar is defined `here `_. Examples: * The regex ``\d`3``` matches the value + # *123* * The regex ``\d`3``` does not match the value *1234* * The regex ``\d`3` + # `` does not match the value *123.456* .. attention:: This field has been + # deprecated in favor of `safe_regex` as it is not safe for use with untrusted + # input in all cases. + # Corresponds to the JSON property `regex` + # @return [String] + attr_accessor :regex + + # A regex matcher designed for safety when used with untrusted input. + # Corresponds to the JSON property `safeRegex` + # @return [Google::Apis::TrafficdirectorV2::RegexMatcher] + attr_accessor :safe_regex + + # The input string must have the suffix specified here. Note: empty prefix is + # not allowed, please use regex instead. Examples: * *abc* matches the value * + # xyz.abc* + # Corresponds to the JSON property `suffix` + # @return [String] + attr_accessor :suffix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exact = args[:exact] if args.key?(:exact) + @ignore_case = args[:ignore_case] if args.key?(:ignore_case) + @prefix = args[:prefix] if args.key?(:prefix) + @regex = args[:regex] if args.key?(:regex) + @safe_regex = args[:safe_regex] if args.key?(:safe_regex) + @suffix = args[:suffix] if args.key?(:suffix) + end + end + + # StructMatcher provides a general interface to check if a given value is + # matched in google.protobuf.Struct. It uses `path` to retrieve the value from + # the struct and then check if it's matched to the specified value. For example, + # for the following Struct: .. code-block:: yaml fields: a: struct_value: fields: + # b: struct_value: fields: c: string_value: pro t: list_value: values: - + # string_value: m - string_value: n The following MetadataMatcher is matched as + # the path [a, b, c] will retrieve a string value "pro" from the Metadata which + # is matched to the specified prefix match. .. code-block:: yaml path: - key: a - + # key: b - key: c value: string_match: prefix: pr The following StructMatcher + # is matched as the code will match one of the string values in the list at the + # path [a, t]. .. code-block:: yaml path: - key: a - key: t value: list_match: + # one_of: string_match: exact: m An example use of StructMatcher is to match + # metadata in envoy.v*.core.Node. + class StructMatcher + include Google::Apis::Core::Hashable + + # The path to retrieve the Value from the Struct. + # Corresponds to the JSON property `path` + # @return [Array] + attr_accessor :path + + # Specifies the way to match a ProtobufWkt::Value. Primitive values and + # ListValue are supported. StructValue is not supported and is always not + # matched. [#next-free-field: 7] + # Corresponds to the JSON property `value` + # @return [Google::Apis::TrafficdirectorV2::ValueMatcher] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path = args[:path] if args.key?(:path) + @value = args[:value] if args.key?(:value) + end + end + + # + class UpdateFailureState + include Google::Apis::Core::Hashable + + # Details about the last failed update attempt. + # Corresponds to the JSON property `details` + # @return [String] + attr_accessor :details + + # What the component configuration would have been if the update had succeeded. + # Corresponds to the JSON property `failedConfiguration` + # @return [Hash] + attr_accessor :failed_configuration + + # Time of the latest failed update attempt. + # Corresponds to the JSON property `lastUpdateAttempt` + # @return [String] + attr_accessor :last_update_attempt + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @details = args[:details] if args.key?(:details) + @failed_configuration = args[:failed_configuration] if args.key?(:failed_configuration) + @last_update_attempt = args[:last_update_attempt] if args.key?(:last_update_attempt) + end + end + + # Specifies the way to match a ProtobufWkt::Value. Primitive values and + # ListValue are supported. StructValue is not supported and is always not + # matched. [#next-free-field: 7] + class ValueMatcher + include Google::Apis::Core::Hashable + + # If specified, a match occurs if and only if the target value is a bool value + # and is equal to this field. + # Corresponds to the JSON property `boolMatch` + # @return [Boolean] + attr_accessor :bool_match + alias_method :bool_match?, :bool_match + + # Specifies the way to match a double value. + # Corresponds to the JSON property `doubleMatch` + # @return [Google::Apis::TrafficdirectorV2::DoubleMatcher] + attr_accessor :double_match + + # Specifies the way to match a list value. + # Corresponds to the JSON property `listMatch` + # @return [Google::Apis::TrafficdirectorV2::ListMatcher] + attr_accessor :list_match + + # NullMatch is an empty message to specify a null value. + # Corresponds to the JSON property `nullMatch` + # @return [Google::Apis::TrafficdirectorV2::NullMatch] + attr_accessor :null_match + + # If specified, value match will be performed based on whether the path is + # referring to a valid primitive value in the metadata. If the path is referring + # to a non-primitive value, the result is always not matched. + # Corresponds to the JSON property `presentMatch` + # @return [Boolean] + attr_accessor :present_match + alias_method :present_match?, :present_match + + # Specifies the way to match a string. [#next-free-field: 7] + # Corresponds to the JSON property `stringMatch` + # @return [Google::Apis::TrafficdirectorV2::StringMatcher] + attr_accessor :string_match + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bool_match = args[:bool_match] if args.key?(:bool_match) + @double_match = args[:double_match] if args.key?(:double_match) + @list_match = args[:list_match] if args.key?(:list_match) + @null_match = args[:null_match] if args.key?(:null_match) + @present_match = args[:present_match] if args.key?(:present_match) + @string_match = args[:string_match] if args.key?(:string_match) + end + end + end + end +end diff --git a/generated/google/apis/trafficdirector_v2/representations.rb b/generated/google/apis/trafficdirector_v2/representations.rb new file mode 100644 index 000000000..c0185be35 --- /dev/null +++ b/generated/google/apis/trafficdirector_v2/representations.rb @@ -0,0 +1,620 @@ +# 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 TrafficdirectorV2 + + class Address + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BuildVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClientConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClientStatusRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClientStatusResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClustersConfigDump + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DoubleMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DoubleRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicCluster + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicListener + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicListenerState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicRouteConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicScopedRouteConfigs + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Extension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleRe2 + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InlineScopedRouteConfigs + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListenersConfigDump + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Locality + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Node + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NullMatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PathSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PerXdsConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Pipe + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegexMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RoutesConfigDump + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ScopedRoutesConfigDump + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SemanticVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SocketAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StaticCluster + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StaticListener + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StaticRouteConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StringMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StructMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateFailureState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValueMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Address + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pipe, as: 'pipe', class: Google::Apis::TrafficdirectorV2::Pipe, decorator: Google::Apis::TrafficdirectorV2::Pipe::Representation + + property :socket_address, as: 'socketAddress', class: Google::Apis::TrafficdirectorV2::SocketAddress, decorator: Google::Apis::TrafficdirectorV2::SocketAddress::Representation + + end + end + + class BuildVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metadata, as: 'metadata' + property :version, as: 'version', class: Google::Apis::TrafficdirectorV2::SemanticVersion, decorator: Google::Apis::TrafficdirectorV2::SemanticVersion::Representation + + end + end + + class ClientConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node, as: 'node', class: Google::Apis::TrafficdirectorV2::Node, decorator: Google::Apis::TrafficdirectorV2::Node::Representation + + collection :xds_config, as: 'xdsConfig', class: Google::Apis::TrafficdirectorV2::PerXdsConfig, decorator: Google::Apis::TrafficdirectorV2::PerXdsConfig::Representation + + end + end + + class ClientStatusRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_matchers, as: 'nodeMatchers', class: Google::Apis::TrafficdirectorV2::NodeMatcher, decorator: Google::Apis::TrafficdirectorV2::NodeMatcher::Representation + + end + end + + class ClientStatusResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :config, as: 'config', class: Google::Apis::TrafficdirectorV2::ClientConfig, decorator: Google::Apis::TrafficdirectorV2::ClientConfig::Representation + + end + end + + class ClustersConfigDump + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dynamic_active_clusters, as: 'dynamicActiveClusters', class: Google::Apis::TrafficdirectorV2::DynamicCluster, decorator: Google::Apis::TrafficdirectorV2::DynamicCluster::Representation + + collection :dynamic_warming_clusters, as: 'dynamicWarmingClusters', class: Google::Apis::TrafficdirectorV2::DynamicCluster, decorator: Google::Apis::TrafficdirectorV2::DynamicCluster::Representation + + collection :static_clusters, as: 'staticClusters', class: Google::Apis::TrafficdirectorV2::StaticCluster, decorator: Google::Apis::TrafficdirectorV2::StaticCluster::Representation + + property :version_info, as: 'versionInfo' + end + end + + class DoubleMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exact, as: 'exact' + property :range, as: 'range', class: Google::Apis::TrafficdirectorV2::DoubleRange, decorator: Google::Apis::TrafficdirectorV2::DoubleRange::Representation + + end + end + + class DoubleRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end, as: 'end' + property :start, as: 'start' + end + end + + class DynamicCluster + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :cluster, as: 'cluster' + property :last_updated, as: 'lastUpdated' + property :version_info, as: 'versionInfo' + end + end + + class DynamicListener + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active_state, as: 'activeState', class: Google::Apis::TrafficdirectorV2::DynamicListenerState, decorator: Google::Apis::TrafficdirectorV2::DynamicListenerState::Representation + + property :draining_state, as: 'drainingState', class: Google::Apis::TrafficdirectorV2::DynamicListenerState, decorator: Google::Apis::TrafficdirectorV2::DynamicListenerState::Representation + + property :error_state, as: 'errorState', class: Google::Apis::TrafficdirectorV2::UpdateFailureState, decorator: Google::Apis::TrafficdirectorV2::UpdateFailureState::Representation + + property :name, as: 'name' + property :warming_state, as: 'warmingState', class: Google::Apis::TrafficdirectorV2::DynamicListenerState, decorator: Google::Apis::TrafficdirectorV2::DynamicListenerState::Representation + + end + end + + class DynamicListenerState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated, as: 'lastUpdated' + hash :listener, as: 'listener' + property :version_info, as: 'versionInfo' + end + end + + class DynamicRouteConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated, as: 'lastUpdated' + hash :route_config, as: 'routeConfig' + property :version_info, as: 'versionInfo' + end + end + + class DynamicScopedRouteConfigs + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated, as: 'lastUpdated' + property :name, as: 'name' + collection :scoped_route_configs, as: 'scopedRouteConfigs' + property :version_info, as: 'versionInfo' + end + end + + class Extension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :category, as: 'category' + property :disabled, as: 'disabled' + property :name, as: 'name' + property :type_descriptor, as: 'typeDescriptor' + property :version, as: 'version', class: Google::Apis::TrafficdirectorV2::BuildVersion, decorator: Google::Apis::TrafficdirectorV2::BuildVersion::Representation + + end + end + + class GoogleRe2 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_program_size, as: 'maxProgramSize' + end + end + + class InlineScopedRouteConfigs + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated, as: 'lastUpdated' + property :name, as: 'name' + collection :scoped_route_configs, as: 'scopedRouteConfigs' + end + end + + class ListMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :one_of, as: 'oneOf', class: Google::Apis::TrafficdirectorV2::ValueMatcher, decorator: Google::Apis::TrafficdirectorV2::ValueMatcher::Representation + + end + end + + class ListenersConfigDump + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dynamic_listeners, as: 'dynamicListeners', class: Google::Apis::TrafficdirectorV2::DynamicListener, decorator: Google::Apis::TrafficdirectorV2::DynamicListener::Representation + + collection :static_listeners, as: 'staticListeners', class: Google::Apis::TrafficdirectorV2::StaticListener, decorator: Google::Apis::TrafficdirectorV2::StaticListener::Representation + + property :version_info, as: 'versionInfo' + end + end + + class Locality + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :region, as: 'region' + property :sub_zone, as: 'subZone' + property :zone, as: 'zone' + end + end + + class Node + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :build_version, as: 'buildVersion' + collection :client_features, as: 'clientFeatures' + property :cluster, as: 'cluster' + collection :extensions, as: 'extensions', class: Google::Apis::TrafficdirectorV2::Extension, decorator: Google::Apis::TrafficdirectorV2::Extension::Representation + + property :id, as: 'id' + collection :listening_addresses, as: 'listeningAddresses', class: Google::Apis::TrafficdirectorV2::Address, decorator: Google::Apis::TrafficdirectorV2::Address::Representation + + property :locality, as: 'locality', class: Google::Apis::TrafficdirectorV2::Locality, decorator: Google::Apis::TrafficdirectorV2::Locality::Representation + + hash :metadata, as: 'metadata' + property :user_agent_build_version, as: 'userAgentBuildVersion', class: Google::Apis::TrafficdirectorV2::BuildVersion, decorator: Google::Apis::TrafficdirectorV2::BuildVersion::Representation + + property :user_agent_name, as: 'userAgentName' + property :user_agent_version, as: 'userAgentVersion' + end + end + + class NodeMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_id, as: 'nodeId', class: Google::Apis::TrafficdirectorV2::StringMatcher, decorator: Google::Apis::TrafficdirectorV2::StringMatcher::Representation + + collection :node_metadatas, as: 'nodeMetadatas', class: Google::Apis::TrafficdirectorV2::StructMatcher, decorator: Google::Apis::TrafficdirectorV2::StructMatcher::Representation + + end + end + + class NullMatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class PathSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + end + end + + class PerXdsConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_config, as: 'clusterConfig', class: Google::Apis::TrafficdirectorV2::ClustersConfigDump, decorator: Google::Apis::TrafficdirectorV2::ClustersConfigDump::Representation + + property :listener_config, as: 'listenerConfig', class: Google::Apis::TrafficdirectorV2::ListenersConfigDump, decorator: Google::Apis::TrafficdirectorV2::ListenersConfigDump::Representation + + property :route_config, as: 'routeConfig', class: Google::Apis::TrafficdirectorV2::RoutesConfigDump, decorator: Google::Apis::TrafficdirectorV2::RoutesConfigDump::Representation + + property :scoped_route_config, as: 'scopedRouteConfig', class: Google::Apis::TrafficdirectorV2::ScopedRoutesConfigDump, decorator: Google::Apis::TrafficdirectorV2::ScopedRoutesConfigDump::Representation + + property :status, as: 'status' + end + end + + class Pipe + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :mode, as: 'mode' + property :path, as: 'path' + end + end + + class RegexMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :google_re2, as: 'googleRe2', class: Google::Apis::TrafficdirectorV2::GoogleRe2, decorator: Google::Apis::TrafficdirectorV2::GoogleRe2::Representation + + property :regex, as: 'regex' + end + end + + class RoutesConfigDump + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dynamic_route_configs, as: 'dynamicRouteConfigs', class: Google::Apis::TrafficdirectorV2::DynamicRouteConfig, decorator: Google::Apis::TrafficdirectorV2::DynamicRouteConfig::Representation + + collection :static_route_configs, as: 'staticRouteConfigs', class: Google::Apis::TrafficdirectorV2::StaticRouteConfig, decorator: Google::Apis::TrafficdirectorV2::StaticRouteConfig::Representation + + end + end + + class ScopedRoutesConfigDump + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dynamic_scoped_route_configs, as: 'dynamicScopedRouteConfigs', class: Google::Apis::TrafficdirectorV2::DynamicScopedRouteConfigs, decorator: Google::Apis::TrafficdirectorV2::DynamicScopedRouteConfigs::Representation + + collection :inline_scoped_route_configs, as: 'inlineScopedRouteConfigs', class: Google::Apis::TrafficdirectorV2::InlineScopedRouteConfigs, decorator: Google::Apis::TrafficdirectorV2::InlineScopedRouteConfigs::Representation + + end + end + + class SemanticVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :major_number, as: 'majorNumber' + property :minor_number, as: 'minorNumber' + property :patch, as: 'patch' + end + end + + class SocketAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address' + property :ipv4_compat, as: 'ipv4Compat' + property :named_port, as: 'namedPort' + property :port_value, as: 'portValue' + property :protocol, as: 'protocol' + property :resolver_name, as: 'resolverName' + end + end + + class StaticCluster + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :cluster, as: 'cluster' + property :last_updated, as: 'lastUpdated' + end + end + + class StaticListener + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated, as: 'lastUpdated' + hash :listener, as: 'listener' + end + end + + class StaticRouteConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated, as: 'lastUpdated' + hash :route_config, as: 'routeConfig' + end + end + + class StringMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exact, as: 'exact' + property :ignore_case, as: 'ignoreCase' + property :prefix, as: 'prefix' + property :regex, as: 'regex' + property :safe_regex, as: 'safeRegex', class: Google::Apis::TrafficdirectorV2::RegexMatcher, decorator: Google::Apis::TrafficdirectorV2::RegexMatcher::Representation + + property :suffix, as: 'suffix' + end + end + + class StructMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :path, as: 'path', class: Google::Apis::TrafficdirectorV2::PathSegment, decorator: Google::Apis::TrafficdirectorV2::PathSegment::Representation + + property :value, as: 'value', class: Google::Apis::TrafficdirectorV2::ValueMatcher, decorator: Google::Apis::TrafficdirectorV2::ValueMatcher::Representation + + end + end + + class UpdateFailureState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :details, as: 'details' + hash :failed_configuration, as: 'failedConfiguration' + property :last_update_attempt, as: 'lastUpdateAttempt' + end + end + + class ValueMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bool_match, as: 'boolMatch' + property :double_match, as: 'doubleMatch', class: Google::Apis::TrafficdirectorV2::DoubleMatcher, decorator: Google::Apis::TrafficdirectorV2::DoubleMatcher::Representation + + property :list_match, as: 'listMatch', class: Google::Apis::TrafficdirectorV2::ListMatcher, decorator: Google::Apis::TrafficdirectorV2::ListMatcher::Representation + + property :null_match, as: 'nullMatch', class: Google::Apis::TrafficdirectorV2::NullMatch, decorator: Google::Apis::TrafficdirectorV2::NullMatch::Representation + + property :present_match, as: 'presentMatch' + property :string_match, as: 'stringMatch', class: Google::Apis::TrafficdirectorV2::StringMatcher, decorator: Google::Apis::TrafficdirectorV2::StringMatcher::Representation + + end + end + end + end +end diff --git a/generated/google/apis/trafficdirector_v2/service.rb b/generated/google/apis/trafficdirector_v2/service.rb new file mode 100644 index 000000000..d0d1a5f8c --- /dev/null +++ b/generated/google/apis/trafficdirector_v2/service.rb @@ -0,0 +1,89 @@ +# 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 TrafficdirectorV2 + # Traffic Director API + # + # + # + # @example + # require 'google/apis/trafficdirector_v2' + # + # Trafficdirector = Google::Apis::TrafficdirectorV2 # Alias the module + # service = Trafficdirector::TrafficDirectorServiceService.new + # + # @see https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#management-server + class TrafficDirectorServiceService < 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://trafficdirector.googleapis.com/', '') + @batch_path = 'batch' + end + + # + # @param [Google::Apis::TrafficdirectorV2::ClientStatusRequest] client_status_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TrafficdirectorV2::ClientStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TrafficdirectorV2::ClientStatusResponse] + # + # @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 client_discovery_status(client_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/discovery:client_status', options) + command.request_representation = Google::Apis::TrafficdirectorV2::ClientStatusRequest::Representation + command.request_object = client_status_request_object + command.response_representation = Google::Apis::TrafficdirectorV2::ClientStatusResponse::Representation + command.response_class = Google::Apis::TrafficdirectorV2::ClientStatusResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index a43d7b18f..44441c5df 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/ module YoutubeV3 VERSION = 'V3' - REVISION = '20200806' + REVISION = '20200823' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 8fe28be5f..67fcae4c0 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -1320,6 +1320,31 @@ module Google end end + # + class ChannelElement + include Google::Apis::Core::Hashable + + # External channel ID. Required. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + # Customized message for the element. Required. + # Corresponds to the JSON property `customMessage` + # @return [String] + attr_accessor :custom_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @custom_message = args[:custom_message] if args.key?(:custom_message) + end + end + # class ListChannelsResponse include Google::Apis::Core::Hashable @@ -2893,6 +2918,178 @@ module Google end end + # + class Endscreen + include Google::Apis::Core::Hashable + + # A list of endscreen elements. + # Corresponds to the JSON property `elements` + # @return [Array] + attr_accessor :elements + + # The time we start the endscreen in milliseconds. + # Corresponds to the JSON property `startOffset` + # @return [String] + attr_accessor :start_offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @elements = args[:elements] if args.key?(:elements) + @start_offset = args[:start_offset] if args.key?(:start_offset) + end + end + + # + class EndscreenElement + include Google::Apis::Core::Hashable + + # Etag of this resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # UUID for this element. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies what kind of resource this is. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The snippet object contains basic details about the element. + # Corresponds to the JSON property `snippet` + # @return [Google::Apis::YoutubeV3::EndscreenElementSnippet] + attr_accessor :snippet + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) + end + end + + # + class EndscreenElementSnippet + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `channelElement` + # @return [Google::Apis::YoutubeV3::ChannelElement] + attr_accessor :channel_element + + # Duration of the element in milliseconds. Required. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Fraction of video width. + # Corresponds to the JSON property `left` + # @return [Float] + attr_accessor :left + + # + # Corresponds to the JSON property `linkElement` + # @return [Google::Apis::YoutubeV3::LinkElement] + attr_accessor :link_element + + # + # Corresponds to the JSON property `merchandiseElement` + # @return [Google::Apis::YoutubeV3::MerchandiseElement] + attr_accessor :merchandise_element + + # + # Corresponds to the JSON property `playlistElement` + # @return [Google::Apis::YoutubeV3::PlaylistElement] + attr_accessor :playlist_element + + # Start of the element in milliseconds. Required. + # Corresponds to the JSON property `startOffset` + # @return [String] + attr_accessor :start_offset + + # + # Corresponds to the JSON property `subscribeElement` + # @return [Google::Apis::YoutubeV3::SubscribeElement] + attr_accessor :subscribe_element + + # Fraction of video height. + # Corresponds to the JSON property `top` + # @return [Float] + attr_accessor :top + + # + # Corresponds to the JSON property `videoElement` + # @return [Google::Apis::YoutubeV3::VideoElement] + attr_accessor :video_element + + # Fraction of video width. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_element = args[:channel_element] if args.key?(:channel_element) + @duration = args[:duration] if args.key?(:duration) + @left = args[:left] if args.key?(:left) + @link_element = args[:link_element] if args.key?(:link_element) + @merchandise_element = args[:merchandise_element] if args.key?(:merchandise_element) + @playlist_element = args[:playlist_element] if args.key?(:playlist_element) + @start_offset = args[:start_offset] if args.key?(:start_offset) + @subscribe_element = args[:subscribe_element] if args.key?(:subscribe_element) + @top = args[:top] if args.key?(:top) + @video_element = args[:video_element] if args.key?(:video_element) + @width = args[:width] if args.key?(:width) + end + end + + # + class EndscreenGetResponse + include Google::Apis::Core::Hashable + + # Etag of this resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Identifies what kind of resource this is. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Endscreen resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::YoutubeV3::Endscreen] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @resource = args[:resource] if args.key?(:resource) + end + end + # class Entity include Google::Apis::Core::Hashable @@ -3934,6 +4131,80 @@ module Google end end + # + class LinkElement + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `callToActionType` + # @return [String] + attr_accessor :call_to_action_type + + # Custom text to show as the website link. + # Corresponds to the JSON property `customLinkText` + # @return [String] + attr_accessor :custom_link_text + + # URL to an externally hosted image. + # Corresponds to the JSON property `externalImageUrl` + # @return [String] + attr_accessor :external_image_url + + # The URL to which this card points. Required. + # Corresponds to the JSON property `targetUrl` + # @return [String] + attr_accessor :target_url + + # Previously uploaded image. + # Corresponds to the JSON property `uploadedImage` + # @return [Google::Apis::YoutubeV3::LinkElementUploadedImage] + attr_accessor :uploaded_image + + # + # Corresponds to the JSON property `websiteType` + # @return [String] + attr_accessor :website_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @call_to_action_type = args[:call_to_action_type] if args.key?(:call_to_action_type) + @custom_link_text = args[:custom_link_text] if args.key?(:custom_link_text) + @external_image_url = args[:external_image_url] if args.key?(:external_image_url) + @target_url = args[:target_url] if args.key?(:target_url) + @uploaded_image = args[:uploaded_image] if args.key?(:uploaded_image) + @website_type = args[:website_type] if args.key?(:website_type) + end + end + + # + class LinkElementUploadedImage + include Google::Apis::Core::Hashable + + # Image reference on the thumbnail service. + # Corresponds to the JSON property `imageFile` + # @return [String] + attr_accessor :image_file + + # The version in the thumbnail service. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_file = args[:image_file] if args.key?(:image_file) + @version = args[:version] if args.key?(:version) + end + end + # A *liveBroadcast* resource represents an event that will be streamed, via live # video, on YouTube. class LiveBroadcast @@ -5808,6 +6079,19 @@ module Google end end + # + class MerchandiseElement + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Settings and Info of the monitor stream class MonitorStreamInfo include Google::Apis::Core::Hashable @@ -5999,6 +6283,25 @@ module Google end end + # + class PlaylistElement + include Google::Apis::Core::Hashable + + # External playlist ID. Required. + # Corresponds to the JSON property `playlistId` + # @return [String] + attr_accessor :playlist_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @playlist_id = args[:playlist_id] if args.key?(:playlist_id) + end + end + # A *playlistItem* resource identifies another resource, such as a video, that # is included in a playlist. In addition, the playlistItem resource contains # details about the included resource that pertain specifically to how that @@ -6968,6 +7271,19 @@ module Google end end + # + class SubscribeElement + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A *subscription* resource contains information about a YouTube user # subscription. A subscription notifies a user when new videos are added to a # channel or when another user takes one of several actions on YouTube, such as @@ -8343,6 +8659,37 @@ module Google end end + # + class VideoElement + include Google::Apis::Core::Hashable + + # Playback start time offset in milliseconds. Optional. + # Corresponds to the JSON property `playbackStartOffset` + # @return [String] + attr_accessor :playback_start_offset + + # Encrypted Video ID. Required. + # Corresponds to the JSON property `videoId` + # @return [String] + attr_accessor :video_id + + # + # Corresponds to the JSON property `videoType` + # @return [String] + attr_accessor :video_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @playback_start_offset = args[:playback_start_offset] if args.key?(:playback_start_offset) + @video_id = args[:video_id] if args.key?(:video_id) + @video_type = args[:video_type] if args.key?(:video_type) + end + end + # Describes original video file properties, including technical details about # audio and video streams, but also metadata information like content length, # digitization time, or geotagging information. diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 8d564eacd..8d202cc60 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -214,6 +214,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ChannelElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListChannelsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -358,6 +364,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Endscreen + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EndscreenElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EndscreenElementSnippet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EndscreenGetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Entity class Representation < Google::Apis::Core::JsonRepresentation; end @@ -514,6 +544,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LinkElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LinkElementUploadedImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LiveBroadcast class Representation < Google::Apis::Core::JsonRepresentation; end @@ -754,6 +796,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MerchandiseElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MonitorStreamInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -784,6 +832,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PlaylistElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PlaylistItem class Representation < Google::Apis::Core::JsonRepresentation; end @@ -910,6 +964,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SubscribeElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Subscription class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1096,6 +1156,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VideoElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VideoFileDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1596,6 +1662,14 @@ module Google end end + class ChannelElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + property :custom_message, as: 'customMessage' + end + end + class ListChannelsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1958,6 +2032,59 @@ module Google end end + class Endscreen + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :elements, as: 'elements', class: Google::Apis::YoutubeV3::EndscreenElement, decorator: Google::Apis::YoutubeV3::EndscreenElement::Representation + + property :start_offset, as: 'startOffset' + end + end + + class EndscreenElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + property :kind, as: 'kind' + property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::EndscreenElementSnippet, decorator: Google::Apis::YoutubeV3::EndscreenElementSnippet::Representation + + end + end + + class EndscreenElementSnippet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_element, as: 'channelElement', class: Google::Apis::YoutubeV3::ChannelElement, decorator: Google::Apis::YoutubeV3::ChannelElement::Representation + + property :duration, as: 'duration' + property :left, as: 'left' + property :link_element, as: 'linkElement', class: Google::Apis::YoutubeV3::LinkElement, decorator: Google::Apis::YoutubeV3::LinkElement::Representation + + property :merchandise_element, as: 'merchandiseElement', class: Google::Apis::YoutubeV3::MerchandiseElement, decorator: Google::Apis::YoutubeV3::MerchandiseElement::Representation + + property :playlist_element, as: 'playlistElement', class: Google::Apis::YoutubeV3::PlaylistElement, decorator: Google::Apis::YoutubeV3::PlaylistElement::Representation + + property :start_offset, as: 'startOffset' + property :subscribe_element, as: 'subscribeElement', class: Google::Apis::YoutubeV3::SubscribeElement, decorator: Google::Apis::YoutubeV3::SubscribeElement::Representation + + property :top, as: 'top' + property :video_element, as: 'videoElement', class: Google::Apis::YoutubeV3::VideoElement, decorator: Google::Apis::YoutubeV3::VideoElement::Representation + + property :width, as: 'width' + end + end + + class EndscreenGetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :kind, as: 'kind' + property :resource, as: 'resource', class: Google::Apis::YoutubeV3::Endscreen, decorator: Google::Apis::YoutubeV3::Endscreen::Representation + + end + end + class Entity # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2249,6 +2376,27 @@ module Google end end + class LinkElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :call_to_action_type, as: 'callToActionType' + property :custom_link_text, as: 'customLinkText' + property :external_image_url, as: 'externalImageUrl' + property :target_url, as: 'targetUrl' + property :uploaded_image, as: 'uploadedImage', class: Google::Apis::YoutubeV3::LinkElementUploadedImage, decorator: Google::Apis::YoutubeV3::LinkElementUploadedImage::Representation + + property :website_type, as: 'websiteType' + end + end + + class LinkElementUploadedImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_file, as: 'imageFile' + property :version, :numeric_string => true, as: 'version' + end + end + class LiveBroadcast # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2742,6 +2890,12 @@ module Google end end + class MerchandiseElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class MonitorStreamInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2794,6 +2948,13 @@ module Google end end + class PlaylistElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :playlist_id, as: 'playlistId' + end + end + class PlaylistItem # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3050,6 +3211,12 @@ module Google end end + class SubscribeElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Subscription # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3434,6 +3601,15 @@ module Google end end + class VideoElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :playback_start_offset, as: 'playbackStartOffset' + property :video_id, as: 'videoId' + property :video_type, as: 'videoType' + end + end + class VideoFileDetails # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index f2f607d0f..bb35df79f 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -1178,6 +1178,84 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves endscreen for a given video. + # @param [String] video_id + # Encrypted id of the video. + # @param [Array, String] part + # The properties to return. + # @param [String] on_behalf_of_content_owner + # Content owner of the video. + # @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::YoutubeV3::EndscreenGetResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubeV3::EndscreenGetResponse] + # + # @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_endscreen(video_id, part, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'youtube/v3/endscreen', options) + command.response_representation = Google::Apis::YoutubeV3::EndscreenGetResponse::Representation + command.response_class = Google::Apis::YoutubeV3::EndscreenGetResponse + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['part'] = part unless part.nil? + command.query['videoId'] = video_id unless video_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates endscreen for a given video. Note: * If the element id is not provided, + # a new element will be created. * If the element id is provided, that element + # will be updated. * Existing elements will be discarded if they're not included + # in the request. + # @param [String] video_id + # Encrypted id of the video this endscreen corresponds to. + # @param [Array, String] part + # The properties to return. + # @param [Google::Apis::YoutubeV3::Endscreen] endscreen_object + # @param [String] on_behalf_of_content_owner + # Content owner of the video. + # @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::YoutubeV3::Endscreen] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubeV3::Endscreen] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_endscreen(video_id, part, endscreen_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'youtube/v3/endscreen', options) + command.request_representation = Google::Apis::YoutubeV3::Endscreen::Representation + command.request_object = endscreen_object + command.response_representation = Google::Apis::YoutubeV3::Endscreen::Representation + command.response_class = Google::Apis::YoutubeV3::Endscreen + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['part'] = part unless part.nil? + command.query['videoId'] = video_id unless video_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 + # Retrieves a list of guide categories. # @param [Array, String] part # The *part* parameter specifies the guideCategory resource properties that the