Autogenerated update (2020-08-04)

Update:
- abusiveexperiencereport_v1
- adexchangebuyer2_v2beta1
- adexperiencereport_v1
- admob_v1
- androiddeviceprovisioning_v1
- androidpublisher_v3
- billingbudgets_v1beta1
- blogger_v2
- blogger_v3
- customsearch_v1
- domainsrdap_v1
- factchecktools_v1alpha1
- firebasehosting_v1
- firebasehosting_v1beta1
- gmailpostmastertools_v1beta1
- language_v1
- language_v1beta1
- language_v1beta2
- libraryagent_v1
- managedidentities_v1
- managedidentities_v1alpha1
- managedidentities_v1beta1
- playcustomapp_v1
- prod_tt_sasportal_v1alpha1
- realtimebidding_v1
- sasportal_v1alpha1
- securitycenter_v1
- securitycenter_v1beta1
- securitycenter_v1p1alpha1
- securitycenter_v1p1beta1
- serviceconsumermanagement_v1
- serviceconsumermanagement_v1beta1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- toolresults_v1beta3
- translate_v3
- translate_v3beta1
- websecurityscanner_v1
- websecurityscanner_v1alpha
- websecurityscanner_v1beta
- youtube_analytics_v2
- youtube_partner_v1
- youtube_v3
- youtubereporting_v1
This commit is contained in:
Google APIs 2020-08-04 00:38:33 +00:00
parent 039cf0957c
commit 2ebdf41813
139 changed files with 20858 additions and 26288 deletions

View File

@ -58718,6 +58718,178 @@
"/dataflow:v1b3/fields": fields
"/dataflow:v1b3/key": key
"/dataflow:v1b3/quotaUser": quota_user
"/datafusion:v1/Accelerator": accelerator
"/datafusion:v1/Accelerator/acceleratorType": accelerator_type
"/datafusion:v1/AuditConfig": audit_config
"/datafusion:v1/AuditConfig/auditLogConfigs": audit_log_configs
"/datafusion:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
"/datafusion:v1/AuditConfig/service": service
"/datafusion:v1/AuditLogConfig": audit_log_config
"/datafusion:v1/AuditLogConfig/exemptedMembers": exempted_members
"/datafusion:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
"/datafusion:v1/AuditLogConfig/logType": log_type
"/datafusion:v1/Binding": binding
"/datafusion:v1/Binding/condition": condition
"/datafusion:v1/Binding/members": members
"/datafusion:v1/Binding/members/member": member
"/datafusion:v1/Binding/role": role
"/datafusion:v1/CancelOperationRequest": cancel_operation_request
"/datafusion:v1/Empty": empty
"/datafusion:v1/Expr": expr
"/datafusion:v1/Expr/description": description
"/datafusion:v1/Expr/expression": expression
"/datafusion:v1/Expr/location": location
"/datafusion:v1/Expr/title": title
"/datafusion:v1/Instance": instance
"/datafusion:v1/Instance/accelerators": accelerators
"/datafusion:v1/Instance/accelerators/accelerator": accelerator
"/datafusion:v1/Instance/apiEndpoint": api_endpoint
"/datafusion:v1/Instance/availableVersion": available_version
"/datafusion:v1/Instance/availableVersion/available_version": available_version
"/datafusion:v1/Instance/createTime": create_time
"/datafusion:v1/Instance/description": description
"/datafusion:v1/Instance/displayName": display_name
"/datafusion:v1/Instance/enableStackdriverLogging": enable_stackdriver_logging
"/datafusion:v1/Instance/enableStackdriverMonitoring": enable_stackdriver_monitoring
"/datafusion:v1/Instance/gcsBucket": gcs_bucket
"/datafusion:v1/Instance/labels": labels
"/datafusion:v1/Instance/labels/label": label
"/datafusion:v1/Instance/name": name
"/datafusion:v1/Instance/networkConfig": network_config
"/datafusion:v1/Instance/options": options
"/datafusion:v1/Instance/options/option": option
"/datafusion:v1/Instance/privateInstance": private_instance
"/datafusion:v1/Instance/serviceAccount": service_account
"/datafusion:v1/Instance/serviceEndpoint": service_endpoint
"/datafusion:v1/Instance/state": state
"/datafusion:v1/Instance/stateMessage": state_message
"/datafusion:v1/Instance/type": type
"/datafusion:v1/Instance/updateTime": update_time
"/datafusion:v1/Instance/version": version
"/datafusion:v1/Instance/zone": zone
"/datafusion:v1/ListAvailableVersionsResponse": list_available_versions_response
"/datafusion:v1/ListAvailableVersionsResponse/availableVersions": available_versions
"/datafusion:v1/ListAvailableVersionsResponse/availableVersions/available_version": available_version
"/datafusion:v1/ListAvailableVersionsResponse/nextPageToken": next_page_token
"/datafusion:v1/ListInstancesResponse": list_instances_response
"/datafusion:v1/ListInstancesResponse/instances": instances
"/datafusion:v1/ListInstancesResponse/instances/instance": instance
"/datafusion:v1/ListInstancesResponse/nextPageToken": next_page_token
"/datafusion:v1/ListInstancesResponse/unreachable": unreachable
"/datafusion:v1/ListInstancesResponse/unreachable/unreachable": unreachable
"/datafusion:v1/ListLocationsResponse": list_locations_response
"/datafusion:v1/ListLocationsResponse/locations": locations
"/datafusion:v1/ListLocationsResponse/locations/location": location
"/datafusion:v1/ListLocationsResponse/nextPageToken": next_page_token
"/datafusion:v1/ListOperationsResponse": list_operations_response
"/datafusion:v1/ListOperationsResponse/nextPageToken": next_page_token
"/datafusion:v1/ListOperationsResponse/operations": operations
"/datafusion:v1/ListOperationsResponse/operations/operation": operation
"/datafusion:v1/Location": location
"/datafusion:v1/Location/displayName": display_name
"/datafusion:v1/Location/labels": labels
"/datafusion:v1/Location/labels/label": label
"/datafusion:v1/Location/locationId": location_id
"/datafusion:v1/Location/metadata": metadata
"/datafusion:v1/Location/metadata/metadatum": metadatum
"/datafusion:v1/Location/name": name
"/datafusion:v1/NetworkConfig": network_config
"/datafusion:v1/NetworkConfig/ipAllocation": ip_allocation
"/datafusion:v1/NetworkConfig/network": network
"/datafusion:v1/Operation": operation
"/datafusion:v1/Operation/done": done
"/datafusion:v1/Operation/error": error
"/datafusion:v1/Operation/metadata": metadata
"/datafusion:v1/Operation/metadata/metadatum": metadatum
"/datafusion:v1/Operation/name": name
"/datafusion:v1/Operation/response": response
"/datafusion:v1/Operation/response/response": response
"/datafusion:v1/OperationMetadata": operation_metadata
"/datafusion:v1/OperationMetadata/apiVersion": api_version
"/datafusion:v1/OperationMetadata/createTime": create_time
"/datafusion:v1/OperationMetadata/endTime": end_time
"/datafusion:v1/OperationMetadata/requestedCancellation": requested_cancellation
"/datafusion:v1/OperationMetadata/statusDetail": status_detail
"/datafusion:v1/OperationMetadata/target": target
"/datafusion:v1/OperationMetadata/verb": verb
"/datafusion:v1/Policy": policy
"/datafusion:v1/Policy/auditConfigs": audit_configs
"/datafusion:v1/Policy/auditConfigs/audit_config": audit_config
"/datafusion:v1/Policy/bindings": bindings
"/datafusion:v1/Policy/bindings/binding": binding
"/datafusion:v1/Policy/etag": etag
"/datafusion:v1/Policy/version": version
"/datafusion:v1/RestartInstanceRequest": restart_instance_request
"/datafusion:v1/SetIamPolicyRequest": set_iam_policy_request
"/datafusion:v1/SetIamPolicyRequest/policy": policy
"/datafusion:v1/SetIamPolicyRequest/updateMask": update_mask
"/datafusion:v1/Status": status
"/datafusion:v1/Status/code": code
"/datafusion:v1/Status/details": details
"/datafusion:v1/Status/details/detail": detail
"/datafusion:v1/Status/details/detail/detail": detail
"/datafusion:v1/Status/message": message
"/datafusion:v1/TestIamPermissionsRequest": test_iam_permissions_request
"/datafusion:v1/TestIamPermissionsRequest/permissions": permissions
"/datafusion:v1/TestIamPermissionsRequest/permissions/permission": permission
"/datafusion:v1/TestIamPermissionsResponse": test_iam_permissions_response
"/datafusion:v1/TestIamPermissionsResponse/permissions": permissions
"/datafusion:v1/TestIamPermissionsResponse/permissions/permission": permission
"/datafusion:v1/Version": version
"/datafusion:v1/Version/defaultVersion": default_version
"/datafusion:v1/Version/versionNumber": version_number
"/datafusion:v1/datafusion.projects.locations.get": get_project_location
"/datafusion:v1/datafusion.projects.locations.get/name": name
"/datafusion:v1/datafusion.projects.locations.instances.create": create_project_location_instance
"/datafusion:v1/datafusion.projects.locations.instances.create/instanceId": instance_id
"/datafusion:v1/datafusion.projects.locations.instances.create/parent": parent
"/datafusion:v1/datafusion.projects.locations.instances.delete": delete_project_location_instance
"/datafusion:v1/datafusion.projects.locations.instances.delete/name": name
"/datafusion:v1/datafusion.projects.locations.instances.get": get_project_location_instance
"/datafusion:v1/datafusion.projects.locations.instances.get/name": name
"/datafusion:v1/datafusion.projects.locations.instances.getIamPolicy": get_project_location_instance_iam_policy
"/datafusion:v1/datafusion.projects.locations.instances.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
"/datafusion:v1/datafusion.projects.locations.instances.getIamPolicy/resource": resource
"/datafusion:v1/datafusion.projects.locations.instances.list": list_project_location_instances
"/datafusion:v1/datafusion.projects.locations.instances.list/filter": filter
"/datafusion:v1/datafusion.projects.locations.instances.list/orderBy": order_by
"/datafusion:v1/datafusion.projects.locations.instances.list/pageSize": page_size
"/datafusion:v1/datafusion.projects.locations.instances.list/pageToken": page_token
"/datafusion:v1/datafusion.projects.locations.instances.list/parent": parent
"/datafusion:v1/datafusion.projects.locations.instances.patch": patch_project_location_instance
"/datafusion:v1/datafusion.projects.locations.instances.patch/name": name
"/datafusion:v1/datafusion.projects.locations.instances.patch/updateMask": update_mask
"/datafusion:v1/datafusion.projects.locations.instances.restart": restart_instance
"/datafusion:v1/datafusion.projects.locations.instances.restart/name": name
"/datafusion:v1/datafusion.projects.locations.instances.setIamPolicy": set_instance_iam_policy
"/datafusion:v1/datafusion.projects.locations.instances.setIamPolicy/resource": resource
"/datafusion:v1/datafusion.projects.locations.instances.testIamPermissions": test_instance_iam_permissions
"/datafusion:v1/datafusion.projects.locations.instances.testIamPermissions/resource": resource
"/datafusion:v1/datafusion.projects.locations.list": list_project_locations
"/datafusion:v1/datafusion.projects.locations.list/filter": filter
"/datafusion:v1/datafusion.projects.locations.list/includeUnrevealedLocations": include_unrevealed_locations
"/datafusion:v1/datafusion.projects.locations.list/name": name
"/datafusion:v1/datafusion.projects.locations.list/pageSize": page_size
"/datafusion:v1/datafusion.projects.locations.list/pageToken": page_token
"/datafusion:v1/datafusion.projects.locations.operations.cancel": cancel_operation
"/datafusion:v1/datafusion.projects.locations.operations.cancel/name": name
"/datafusion:v1/datafusion.projects.locations.operations.delete": delete_project_location_operation
"/datafusion:v1/datafusion.projects.locations.operations.delete/name": name
"/datafusion:v1/datafusion.projects.locations.operations.get": get_project_location_operation
"/datafusion:v1/datafusion.projects.locations.operations.get/name": name
"/datafusion:v1/datafusion.projects.locations.operations.list": list_project_location_operations
"/datafusion:v1/datafusion.projects.locations.operations.list/filter": filter
"/datafusion:v1/datafusion.projects.locations.operations.list/name": name
"/datafusion:v1/datafusion.projects.locations.operations.list/pageSize": page_size
"/datafusion:v1/datafusion.projects.locations.operations.list/pageToken": page_token
"/datafusion:v1/datafusion.projects.locations.versions.list": list_project_location_versions
"/datafusion:v1/datafusion.projects.locations.versions.list/latestPatchOnly": latest_patch_only
"/datafusion:v1/datafusion.projects.locations.versions.list/pageSize": page_size
"/datafusion:v1/datafusion.projects.locations.versions.list/pageToken": page_token
"/datafusion:v1/datafusion.projects.locations.versions.list/parent": parent
"/datafusion:v1/fields": fields
"/datafusion:v1/key": key
"/datafusion:v1/quotaUser": quota_user
"/datafusion:v1beta1/Accelerator": accelerator
"/datafusion:v1beta1/Accelerator/acceleratorType": accelerator_type
"/datafusion:v1beta1/AuditConfig": audit_config

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/abusive-experience-report/
module AbusiveexperiencereportV1
VERSION = 'V1'
REVISION = '20200210'
REVISION = '20200803'
end
end
end

View File

@ -31,18 +31,15 @@ module Google
# @return [String]
attr_accessor :abusive_status
# The time at which
# [enforcement](https://support.google.com/webtools/answer/7538608) against
# the site began or will begin.
# Not set when the
# filter_status
# The time at which [enforcement](https://support.google.com/webtools/answer/
# 7538608) against the site began or will begin. Not set when the filter_status
# is OFF.
# Corresponds to the JSON property `enforcementTime`
# @return [String]
attr_accessor :enforcement_time
# The site's [enforcement
# status](https://support.google.com/webtools/answer/7538608).
# The site's [enforcement status](https://support.google.com/webtools/answer/
# 7538608).
# Corresponds to the JSON property `filterStatus`
# @return [String]
attr_accessor :filter_status
@ -52,12 +49,10 @@ module Google
# @return [String]
attr_accessor :last_change_time
# A link to the full Abusive Experience Report for the site.
# Not set in
# ViolatingSitesResponse.
# Note that you must complete the [Search Console verification
# process](https://support.google.com/webmasters/answer/9008080) for the site
# before you can access the full report.
# A link to the full Abusive Experience Report for the site. Not set in
# ViolatingSitesResponse. Note that you must complete the [Search Console
# verification process](https://support.google.com/webmasters/answer/9008080)
# for the site before you can access the full report.
# Corresponds to the JSON property `reportUrl`
# @return [String]
attr_accessor :report_url

View File

@ -50,9 +50,8 @@ module Google
# Gets a site's Abusive Experience Report summary.
# @param [String] name
# Required. The name of the site whose summary to get, e.g.
# `sites/http%3A%2F%2Fwww.google.com%2F`.
# Format: `sites/`site``
# Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%
# 2Fwww.google.com%2F`. Format: `sites/`site``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20200520'
REVISION = '20200803'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-experience-report/
module AdexperiencereportV1
VERSION = 'V1'
REVISION = '20200210'
REVISION = '20200803'
end
end
end

View File

@ -31,19 +31,15 @@ module Google
# @return [String]
attr_accessor :better_ads_status
# The time at which
# [enforcement](https://support.google.com/webtools/answer/7308033) against
# the site began or will begin on this platform.
# Not set when the
# filter_status
# is OFF.
# The time at which [enforcement](https://support.google.com/webtools/answer/
# 7308033) against the site began or will begin on this platform. Not set when
# the filter_status is OFF.
# Corresponds to the JSON property `enforcementTime`
# @return [String]
attr_accessor :enforcement_time
# The site's [enforcement
# status](https://support.google.com/webtools/answer/7308033) on this
# platform.
# The site's [enforcement status](https://support.google.com/webtools/answer/
# 7308033) on this platform.
# Corresponds to the JSON property `filterStatus`
# @return [String]
attr_accessor :filter_status
@ -53,19 +49,16 @@ module Google
# @return [String]
attr_accessor :last_change_time
# The site's regions on this platform.
# No longer populated, because there is no longer any semantic difference
# between sites in different regions.
# The site's regions on this platform. No longer populated, because there is no
# longer any semantic difference between sites in different regions.
# Corresponds to the JSON property `region`
# @return [Array<String>]
attr_accessor :region
# A link to the full Ad Experience Report for the site on this platform..
# Not set in
# ViolatingSitesResponse.
# Note that you must complete the [Search Console verification
# process](https://support.google.com/webmasters/answer/9008080) for the site
# before you can access the full report.
# A link to the full Ad Experience Report for the site on this platform.. Not
# set in ViolatingSitesResponse. Note that you must complete the [Search Console
# verification process](https://support.google.com/webmasters/answer/9008080)
# for the site before you can access the full report.
# Corresponds to the JSON property `reportUrl`
# @return [String]
attr_accessor :report_url

View File

@ -50,9 +50,8 @@ module Google
# Gets a site's Ad Experience Report summary.
# @param [String] name
# Required. The name of the site whose summary to get, e.g.
# `sites/http%3A%2F%2Fwww.google.com%2F`.
# Format: `sites/`site``
# Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%
# 2Fwww.google.com%2F`. Format: `sites/`site``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admob/api/
module AdmobV1
VERSION = 'V1'
REVISION = '20200722'
REVISION = '20200801'
end
end
end

View File

@ -24,30 +24,29 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
# date, with non-zero year, month and day values * A month and day value, with a
# zero year, e.g. an anniversary * A year on its own, with zero month and day
# values * A year and month value, with a zero day, e.g. a credit card
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
# Timestamp`.
class Date
include Google::Apis::Core::Hashable
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year by itself or a year and month where the day is not
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# Corresponds to the JSON property `day`
# @return [Fixnum]
attr_accessor :day
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a
# month and day.
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year.
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# Corresponds to the JSON property `year`
# @return [Fixnum]
attr_accessor :year
@ -70,24 +69,24 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
# date, with non-zero year, month and day values * A month and day value, with a
# zero year, e.g. an anniversary * A year on its own, with zero month and day
# values * A year and month value, with a zero day, e.g. a credit card
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
# Timestamp`.
# Corresponds to the JSON property `endDate`
# @return [Google::Apis::AdmobV1::Date]
attr_accessor :end_date
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
# date, with non-zero year, month and day values * A month and day value, with a
# zero year, e.g. an anniversary * A year on its own, with zero month and day
# values * A year and month value, with a zero day, e.g. a credit card
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
# Timestamp`.
# Corresponds to the JSON property `startDate`
# @return [Google::Apis::AdmobV1::Date]
attr_accessor :start_date
@ -107,38 +106,19 @@ module Google
class GenerateMediationReportRequest
include Google::Apis::Core::Hashable
# The specification for generating an AdMob Mediation report.
# For example, the specification to get observed ECPM sliced by ad source and
# app for the 'US' and 'CN' countries can look like the following example:
# `
# "date_range": `
# "start_date": `"year": 2018, "month": 9, "day": 1`,
# "end_date": `"year": 2018, "month": 9, "day": 30`
# `,
# "dimensions": ["AD_SOURCE", "APP", "COUNTRY"],
# "metrics": ["OBSERVED_ECPM"],
# "dimension_filters": [
# `
# "dimension": "COUNTRY",
# "matches_any": `"values": [`"value": "US", "value": "CN"`]`
# `
# ],
# "sort_conditions": [
# `"dimension":"APP", order: "ASCENDING"`
# ],
# "localization_settings": `
# "currency_code": "USD",
# "language_code": "en-US"
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM
# FROM MEDIATION_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY AD_SOURCE, APP, COUNTRY
# ORDER BY APP ASC;
# The specification for generating an AdMob Mediation report. For example, the
# specification to get observed ECPM sliced by ad source and app for the 'US'
# and 'CN' countries can look like the following example: ` "date_range": ` "
# start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year": 2018, "
# month": 9, "day": 30` `, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "
# metrics": ["OBSERVED_ECPM"], "dimension_filters": [ ` "dimension": "COUNTRY", "
# matches_any": `"values": [`"value": "US", "value": "CN"`]` ` ], "
# sort_conditions": [ `"dimension":"APP", order: "ASCENDING"` ], "
# localization_settings": ` "currency_code": "USD", "language_code": "en-US" ` `
# For a better understanding, you can treat the preceding specification like the
# following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM
# MEDIATION_REPORT WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30' AND
# COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
# Corresponds to the JSON property `reportSpec`
# @return [Google::Apis::AdmobV1::MediationReportSpec]
attr_accessor :report_spec
@ -153,39 +133,16 @@ module Google
end
end
# The streaming response for the AdMob Mediation report where the first
# response contains the report header, then a stream of row responses, and
# finally a footer as the last response message.
# For example:
# [`
# "header": `
# "date_range": `
# "start_date": `"year": 2018, "month": 9, "day": 1`,
# "end_date": `"year": 2018, "month": 9, "day": 1`
# `,
# "localization_settings": `
# "currency_code": "USD",
# "language_code": "en-US"
# `
# `
# `,
# `
# "row": `
# "dimension_values": `
# "DATE": `"value": "20180918"`,
# "APP": `
# "value": "ca-app-pub-8123415297019784~1001342552",
# "display_label": "My app name!"
# `
# `,
# "metric_values": `
# "ESTIMATED_EARNINGS": `"decimal_value": "1324746"`
# `
# `
# `,
# `
# "footer": `"matching_row_count": 1`
# `]
# The streaming response for the AdMob Mediation report where the first response
# contains the report header, then a stream of row responses, and finally a
# footer as the last response message. For example: [` "header": ` "date_range":
# ` "start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year":
# 2018, "month": 9, "day": 1` `, "localization_settings": ` "currency_code": "
# USD", "language_code": "en-US" ` ` `, ` "row": ` "dimension_values": ` "DATE":
# `"value": "20180918"`, "APP": ` "value": "ca-app-pub-8123415297019784~
# 1001342552", "display_label": "My app name!" ` `, "metric_values": ` "
# ESTIMATED_EARNINGS": `"decimal_value": "1324746"` ` ` `, ` "footer": `"
# matching_row_count": 1` `]
class GenerateMediationReportResponse
include Google::Apis::Core::Hashable
@ -222,39 +179,20 @@ module Google
class GenerateNetworkReportRequest
include Google::Apis::Core::Hashable
# The specification for generating an AdMob Network report.
# For example, the specification to get clicks and estimated earnings for only
# the 'US' and 'CN' countries can look like the following example:
# `
# 'date_range': `
# 'start_date': `'year': 2018, 'month': 9, 'day': 1`,
# 'end_date': `'year': 2018, 'month': 9, 'day': 30`
# `,
# 'dimensions': ['DATE', 'APP', 'COUNTRY'],
# 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'],
# 'dimension_filters': [
# `
# 'dimension': 'COUNTRY',
# 'matches_any': `'values': [`'value': 'US', 'value': 'CN'`]`
# `
# ],
# 'sort_conditions': [
# `'dimension':'APP', order: 'ASCENDING'`,
# `'metric':'CLICKS', order: 'DESCENDING'`
# ],
# 'localization_settings': `
# 'currency_code': 'USD',
# 'language_code': 'en-US'
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS
# FROM NETWORK_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY DATE, APP, COUNTRY
# ORDER BY APP ASC, CLICKS DESC;
# The specification for generating an AdMob Network report. For example, the
# specification to get clicks and estimated earnings for only the 'US' and 'CN'
# countries can look like the following example: ` 'date_range': ` 'start_date':
# `'year': 2018, 'month': 9, 'day': 1`, 'end_date': `'year': 2018, 'month': 9, '
# day': 30` `, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', '
# ESTIMATED_EARNINGS'], 'dimension_filters': [ ` 'dimension': 'COUNTRY', '
# matches_any': `'values': [`'value': 'US', 'value': 'CN'`]` ` ], '
# sort_conditions': [ `'dimension':'APP', order: 'ASCENDING'`, `'metric':'CLICKS'
# , order: 'DESCENDING'` ], 'localization_settings': ` 'currency_code': 'USD', '
# language_code': 'en-US' ` ` For a better understanding, you can treat the
# preceding specification like the following pseudo SQL: SELECT DATE, APP,
# COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE >= '2018-09-
# 01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP,
# COUNTRY ORDER BY APP ASC, CLICKS DESC;
# Corresponds to the JSON property `reportSpec`
# @return [Google::Apis::AdmobV1::NetworkReportSpec]
attr_accessor :report_spec
@ -271,37 +209,13 @@ module Google
# The streaming response for the AdMob Network report where the first response
# contains the report header, then a stream of row responses, and finally a
# footer as the last response message.
# For example:
# [`
# "header": `
# "dateRange": `
# "startDate": `"year": 2018, "month": 9, "day": 1`,
# "endDate": `"year": 2018, "month": 9, "day": 1`
# `,
# "localizationSettings": `
# "currencyCode": "USD",
# "languageCode": "en-US"
# `
# `
# `,
# `
# "row": `
# "dimensionValues": `
# "DATE": `"value": "20180918"`,
# "APP": `
# "value": "ca-app-pub-8123415297019784~1001342552",
# displayLabel: "My app name!"
# `
# `,
# "metricValues": `
# "ESTIMATED_EARNINGS": `"microsValue": 6500000`
# `
# `
# `,
# `
# "footer": `"matchingRowCount": 1`
# `]
# footer as the last response message. For example: [` "header": ` "dateRange": `
# "startDate": `"year": 2018, "month": 9, "day": 1`, "endDate": `"year": 2018, "
# month": 9, "day": 1` `, "localizationSettings": ` "currencyCode": "USD", "
# languageCode": "en-US" ` ` `, ` "row": ` "dimensionValues": ` "DATE": `"value":
# "20180918"`, "APP": ` "value": "ca-app-pub-8123415297019784~1001342552",
# displayLabel: "My app name!" ` `, "metricValues": ` "ESTIMATED_EARNINGS": `"
# microsValue": 6500000` ` ` `, ` "footer": `"matchingRowCount": 1` `]
class GenerateNetworkReportResponse
include Google::Apis::Core::Hashable
@ -343,8 +257,8 @@ module Google
# @return [Array<Google::Apis::AdmobV1::PublisherAccount>]
attr_accessor :account
# If not empty, indicates that there might be more accounts for the request;
# you must pass this value in a new `ListPublisherAccountsRequest`.
# If not empty, indicates that there might be more accounts for the request; you
# must pass this value in a new `ListPublisherAccountsRequest`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -390,38 +304,19 @@ module Google
end
end
# The specification for generating an AdMob Mediation report.
# For example, the specification to get observed ECPM sliced by ad source and
# app for the 'US' and 'CN' countries can look like the following example:
# `
# "date_range": `
# "start_date": `"year": 2018, "month": 9, "day": 1`,
# "end_date": `"year": 2018, "month": 9, "day": 30`
# `,
# "dimensions": ["AD_SOURCE", "APP", "COUNTRY"],
# "metrics": ["OBSERVED_ECPM"],
# "dimension_filters": [
# `
# "dimension": "COUNTRY",
# "matches_any": `"values": [`"value": "US", "value": "CN"`]`
# `
# ],
# "sort_conditions": [
# `"dimension":"APP", order: "ASCENDING"`
# ],
# "localization_settings": `
# "currency_code": "USD",
# "language_code": "en-US"
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM
# FROM MEDIATION_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY AD_SOURCE, APP, COUNTRY
# ORDER BY APP ASC;
# The specification for generating an AdMob Mediation report. For example, the
# specification to get observed ECPM sliced by ad source and app for the 'US'
# and 'CN' countries can look like the following example: ` "date_range": ` "
# start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year": 2018, "
# month": 9, "day": 30` `, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "
# metrics": ["OBSERVED_ECPM"], "dimension_filters": [ ` "dimension": "COUNTRY", "
# matches_any": `"values": [`"value": "US", "value": "CN"`]` ` ], "
# sort_conditions": [ `"dimension":"APP", order: "ASCENDING"` ], "
# localization_settings": ` "currency_code": "USD", "language_code": "en-US" ` `
# For a better understanding, you can treat the preceding specification like the
# following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM
# MEDIATION_REPORT WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30' AND
# COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
class MediationReportSpec
include Google::Apis::Core::Hashable
@ -436,8 +331,8 @@ module Google
attr_accessor :dimension_filters
# List of dimensions of the report. The value combination of these dimensions
# determines the row of the report. If no dimensions are specified, the
# report returns a single row of requested metrics for the entire account.
# determines the row of the report. If no dimensions are specified, the report
# returns a single row of requested metrics for the entire account.
# Corresponds to the JSON property `dimensions`
# @return [Array<String>]
attr_accessor :dimensions
@ -448,9 +343,9 @@ module Google
# @return [Google::Apis::AdmobV1::LocalizationSettings]
attr_accessor :localization_settings
# Maximum number of report data rows to return. If the value is not set, the
# API returns as many rows as possible, up to 100000. Acceptable values are
# 1-100000, inclusive. Any other values are treated as 100000.
# Maximum number of report data rows to return. If the value is not set, the API
# returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
# inclusive. Any other values are treated as 100000.
# Corresponds to the JSON property `maxReportRows`
# @return [Fixnum]
attr_accessor :max_report_rows
@ -460,19 +355,17 @@ module Google
# @return [Array<String>]
attr_accessor :metrics
# Describes the sorting of report rows. The order of the condition in the
# list defines its precedence; the earlier the condition, the higher its
# precedence. If no sort conditions are specified, the row ordering is
# undefined.
# Describes the sorting of report rows. The order of the condition in the list
# defines its precedence; the earlier the condition, the higher its precedence.
# If no sort conditions are specified, the row ordering is undefined.
# Corresponds to the JSON property `sortConditions`
# @return [Array<Google::Apis::AdmobV1::MediationReportSpecSortCondition>]
attr_accessor :sort_conditions
# A report time zone. Accepts an IANA TZ name values, such as
# "America/Los_Angeles." If no time zone is defined, the account default
# takes effect. Check default value by the get account action.
# **Warning:** The "America/Los_Angeles" is the only supported value at
# the moment.
# A report time zone. Accepts an IANA TZ name values, such as "America/
# Los_Angeles." If no time zone is defined, the account default takes effect.
# Check default value by the get account action. **Warning:** The "America/
# Los_Angeles" is the only supported value at the moment.
# Corresponds to the JSON property `timeZone`
# @return [String]
attr_accessor :time_zone
@ -550,39 +443,20 @@ module Google
end
end
# The specification for generating an AdMob Network report.
# For example, the specification to get clicks and estimated earnings for only
# the 'US' and 'CN' countries can look like the following example:
# `
# 'date_range': `
# 'start_date': `'year': 2018, 'month': 9, 'day': 1`,
# 'end_date': `'year': 2018, 'month': 9, 'day': 30`
# `,
# 'dimensions': ['DATE', 'APP', 'COUNTRY'],
# 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'],
# 'dimension_filters': [
# `
# 'dimension': 'COUNTRY',
# 'matches_any': `'values': [`'value': 'US', 'value': 'CN'`]`
# `
# ],
# 'sort_conditions': [
# `'dimension':'APP', order: 'ASCENDING'`,
# `'metric':'CLICKS', order: 'DESCENDING'`
# ],
# 'localization_settings': `
# 'currency_code': 'USD',
# 'language_code': 'en-US'
# `
# `
# For a better understanding, you can treat the preceding specification like
# the following pseudo SQL:
# SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS
# FROM NETWORK_REPORT
# WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
# AND COUNTRY IN ('US', 'CN')
# GROUP BY DATE, APP, COUNTRY
# ORDER BY APP ASC, CLICKS DESC;
# The specification for generating an AdMob Network report. For example, the
# specification to get clicks and estimated earnings for only the 'US' and 'CN'
# countries can look like the following example: ` 'date_range': ` 'start_date':
# `'year': 2018, 'month': 9, 'day': 1`, 'end_date': `'year': 2018, 'month': 9, '
# day': 30` `, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', '
# ESTIMATED_EARNINGS'], 'dimension_filters': [ ` 'dimension': 'COUNTRY', '
# matches_any': `'values': [`'value': 'US', 'value': 'CN'`]` ` ], '
# sort_conditions': [ `'dimension':'APP', order: 'ASCENDING'`, `'metric':'CLICKS'
# , order: 'DESCENDING'` ], 'localization_settings': ` 'currency_code': 'USD', '
# language_code': 'en-US' ` ` For a better understanding, you can treat the
# preceding specification like the following pseudo SQL: SELECT DATE, APP,
# COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE >= '2018-09-
# 01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP,
# COUNTRY ORDER BY APP ASC, CLICKS DESC;
class NetworkReportSpec
include Google::Apis::Core::Hashable
@ -597,8 +471,8 @@ module Google
attr_accessor :dimension_filters
# List of dimensions of the report. The value combination of these dimensions
# determines the row of the report. If no dimensions are specified, the
# report returns a single row of requested metrics for the entire account.
# determines the row of the report. If no dimensions are specified, the report
# returns a single row of requested metrics for the entire account.
# Corresponds to the JSON property `dimensions`
# @return [Array<String>]
attr_accessor :dimensions
@ -609,9 +483,9 @@ module Google
# @return [Google::Apis::AdmobV1::LocalizationSettings]
attr_accessor :localization_settings
# Maximum number of report data rows to return. If the value is not set, the
# API returns as many rows as possible, up to 100000. Acceptable values are
# 1-100000, inclusive. Any other values are treated as 100000.
# Maximum number of report data rows to return. If the value is not set, the API
# returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
# inclusive. Any other values are treated as 100000.
# Corresponds to the JSON property `maxReportRows`
# @return [Fixnum]
attr_accessor :max_report_rows
@ -621,19 +495,17 @@ module Google
# @return [Array<String>]
attr_accessor :metrics
# Describes the sorting of report rows. The order of the condition in the
# list defines its precedence; the earlier the condition, the higher its
# precedence. If no sort conditions are specified, the row ordering is
# undefined.
# Describes the sorting of report rows. The order of the condition in the list
# defines its precedence; the earlier the condition, the higher its precedence.
# If no sort conditions are specified, the row ordering is undefined.
# Corresponds to the JSON property `sortConditions`
# @return [Array<Google::Apis::AdmobV1::NetworkReportSpecSortCondition>]
attr_accessor :sort_conditions
# A report time zone. Accepts an IANA TZ name values, such as
# "America/Los_Angeles." If no time zone is defined, the account default
# takes effect. Check default value by the get account action.
# **Warning:** The "America/Los_Angeles" is the only supported value at
# the moment.
# A report time zone. Accepts an IANA TZ name values, such as "America/
# Los_Angeles." If no time zone is defined, the account default takes effect.
# Check default value by the get account action. **Warning:** The "America/
# Los_Angeles" is the only supported value at the moment.
# Corresponds to the JSON property `timeZone`
# @return [String]
attr_accessor :time_zone
@ -711,8 +583,8 @@ module Google
end
end
# A publisher account contains information relevant to the use of this API,
# such as the time zone used for the reports.
# A publisher account contains information relevant to the use of this API, such
# as the time zone used for the reports.
class PublisherAccount
include Google::Apis::Core::Hashable
@ -723,21 +595,20 @@ module Google
# @return [String]
attr_accessor :currency_code
# Resource name of this account.
# Format is accounts/`publisher_id`.
# Resource name of this account. Format is accounts/`publisher_id`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The unique ID by which this publisher account can be identified
# in the API requests (for example, pub-1234567890).
# The unique ID by which this publisher account can be identified in the API
# requests (for example, pub-1234567890).
# Corresponds to the JSON property `publisherId`
# @return [String]
attr_accessor :publisher_id
# The time zone that is used in reports that are generated for this account.
# The value is a time-zone ID as specified by the CLDR project,
# for example, "America/Los_Angeles".
# The time zone that is used in reports that are generated for this account. The
# value is a time-zone ID as specified by the CLDR project, for example, "
# America/Los_Angeles".
# Corresponds to the JSON property `reportingTimeZone`
# @return [String]
attr_accessor :reporting_time_zone
@ -760,9 +631,9 @@ module Google
class ReportFooter
include Google::Apis::Core::Hashable
# Total number of rows that matched the request.
# Warning: This count does NOT always match the number of rows in the
# response. Do not make that assumption when processing the response.
# Total number of rows that matched the request. Warning: This count does NOT
# always match the number of rows in the response. Do not make that assumption
# when processing the response.
# Corresponds to the JSON property `matchingRowCount`
# @return [Fixnum]
attr_accessor :matching_row_count
@ -826,9 +697,8 @@ module Google
# @return [Hash<String,Google::Apis::AdmobV1::ReportRowDimensionValue>]
attr_accessor :dimension_values
# Map of metric values in a row, with keys as enum name of the metrics. If
# a metric being requested has no value returned, the map will not include
# it.
# Map of metric values in a row, with keys as enum name of the metrics. If a
# metric being requested has no value returned, the map will not include it.
# Corresponds to the JSON property `metricValues`
# @return [Hash<String,Google::Apis::AdmobV1::ReportRowMetricValue>]
attr_accessor :metric_values
@ -848,14 +718,13 @@ module Google
class ReportRowDimensionValue
include Google::Apis::Core::Hashable
# The localized string representation of the value. If unspecified, the
# display label should be derived from the value.
# The localized string representation of the value. If unspecified, the display
# label should be derived from the value.
# Corresponds to the JSON property `displayLabel`
# @return [String]
attr_accessor :display_label
# Dimension value in the format specified in the report's spec Dimension
# enum.
# Dimension value in the format specified in the report's spec Dimension enum.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
@ -885,9 +754,9 @@ module Google
# @return [Fixnum]
attr_accessor :integer_value
# Amount in micros. One million is equivalent to one unit. Currency value
# is in the unit (USD, EUR or other) specified by the request.
# For example, $6.50 whould be represented as 6500000 micros.
# Amount in micros. One million is equivalent to one unit. Currency value is in
# the unit (USD, EUR or other) specified by the request. For example, $6.50
# whould be represented as 6500000 micros.
# Corresponds to the JSON property `microsValue`
# @return [Fixnum]
attr_accessor :micros_value

View File

@ -49,8 +49,8 @@ module Google
# Gets information about the specified AdMob publisher account.
# @param [String] name
# Resource name of the publisher account to retrieve.
# Example: accounts/pub-9876543210987654
# Resource name of the publisher account to retrieve. Example: accounts/pub-
# 9876543210987654
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -83,9 +83,9 @@ module Google
# @param [Fixnum] page_size
# Maximum number of accounts to return.
# @param [String] page_token
# The value returned by the last `ListPublisherAccountsResponse`; indicates
# that this is a continuation of a prior `ListPublisherAccounts` call, and
# that the system should return the next page of data.
# The value returned by the last `ListPublisherAccountsResponse`; indicates that
# this is a continuation of a prior `ListPublisherAccounts` call, and that the
# system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -114,11 +114,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Generates an AdMob Mediation report based on the provided report
# specification.
# Generates an AdMob Mediation report based on the provided report specification.
# @param [String] parent
# Resource name of the account to generate the report for.
# Example: accounts/pub-9876543210987654
# Resource name of the account to generate the report for. Example: accounts/pub-
# 9876543210987654
# @param [Google::Apis::AdmobV1::GenerateMediationReportRequest] generate_mediation_report_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -149,11 +148,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Generates an AdMob Network report based on the provided report
# specification.
# Generates an AdMob Network report based on the provided report specification.
# @param [String] parent
# Resource name of the account to generate the report for.
# Example: accounts/pub-9876543210987654
# Resource name of the account to generate the report for. Example: accounts/pub-
# 9876543210987654
# @param [Google::Apis::AdmobV1::GenerateNetworkReportRequest] generate_network_report_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/zero-touch/
module AndroiddeviceprovisioningV1
VERSION = 'V1'
REVISION = '20200701'
REVISION = '20200801'
end
end
end

View File

@ -31,15 +31,15 @@ module Google
# @return [Fixnum]
attr_accessor :customer_id
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Metadata entries that can be attached to a `Device`. To learn more, read [
# Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@ -71,8 +71,8 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# The resource name of the device in the format
# `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# The resource name of the device in the format `partners/[PARTNER_ID]/devices/[
# DEVICE_ID]`.
# Corresponds to the JSON property `deviceName`
# @return [String]
attr_accessor :device_name
@ -89,8 +89,8 @@ module Google
end
# Request to claim devices asynchronously in batch. Claiming a device adds the
# device to zero-touch enrollment and shows the device in the customer's view
# of the portal.
# device to zero-touch enrollment and shows the device in the customer's view of
# the portal.
class ClaimDevicesRequest
include Google::Apis::Core::Hashable
@ -113,8 +113,8 @@ module Google
class Company
include Google::Apis::Core::Hashable
# Optional. Email address of customer's users in the admin role.
# Each email address must be associated with a Google Account.
# Optional. Email address of customer's users in the admin role. Each email
# address must be associated with a Google Account.
# Corresponds to the JSON property `adminEmails`
# @return [Array<String>]
attr_accessor :admin_emails
@ -130,28 +130,24 @@ module Google
# @return [String]
attr_accessor :company_name
# Output only. The API resource name of the company. The resource name is one
# of the following formats:
# * `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`
# * `partners/[PARTNER_ID]/vendors/[VENDOR_ID]`
# * `partners/[PARTNER_ID]/vendors/[VENDOR_ID]/customers/[CUSTOMER_ID]`
# Assigned by the server.
# Output only. The API resource name of the company. The resource name is one of
# the following formats: * `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]` * `
# partners/[PARTNER_ID]/vendors/[VENDOR_ID]` * `partners/[PARTNER_ID]/vendors/[
# VENDOR_ID]/customers/[CUSTOMER_ID]` Assigned by the server.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Input only. Email address of customer's users in the owner role. At
# least
# one `owner_email` is required. Each email address must be associated with a
# Google Account. Owners share the same access as admins but can also add,
# least one `owner_email` is required. Each email address must be associated
# with a Google Account. Owners share the same access as admins but can also add,
# delete, and edit your organization's portal users.
# Corresponds to the JSON property `ownerEmails`
# @return [Array<String>]
attr_accessor :owner_emails
# Output only. Whether any user from the company has accepted the latest
# Terms of Service (ToS). See
# TermsStatus.
# Output only. Whether any user from the company has accepted the latest Terms
# of Service (ToS). See TermsStatus.
# Corresponds to the JSON property `termsStatus`
# @return [String]
attr_accessor :terms_status
@ -172,13 +168,12 @@ module Google
end
# A configuration collects the provisioning options for Android devices. Each
# configuration combines the following:
# * The EMM device policy controller (DPC) installed on the devices.
# * EMM policies enforced on the devices.
# * Metadata displayed on the device to help users during setup.
# Customers can add as many configurations as they need. However, zero-touch
# enrollment works best when a customer sets a default configuration that's
# applied to any new devices the organization purchases.
# configuration combines the following: * The EMM device policy controller (DPC)
# installed on the devices. * EMM policies enforced on the devices. * Metadata
# displayed on the device to help users during setup. Customers can add as many
# configurations as they need. However, zero-touch enrollment works best when a
# customer sets a default configuration that's applied to any new devices the
# organization purchases.
class Configuration
include Google::Apis::Core::Hashable
@ -193,31 +188,31 @@ module Google
# @return [Fixnum]
attr_accessor :configuration_id
# Required. A short name that describes the configuration's purpose. For
# example, _Sales team_ or _Temporary employees_. The zero-touch enrollment
# portal displays this name to IT admins.
# Required. A short name that describes the configuration's purpose. For example,
# _Sales team_ or _Temporary employees_. The zero-touch enrollment portal
# displays this name to IT admins.
# Corresponds to the JSON property `configurationName`
# @return [String]
attr_accessor :configuration_name
# Required. The email address that device users can contact to get help.
# Zero-touch enrollment shows this email address to device users before
# device provisioning. The value is validated on input.
# Required. The email address that device users can contact to get help. Zero-
# touch enrollment shows this email address to device users before device
# provisioning. The value is validated on input.
# Corresponds to the JSON property `contactEmail`
# @return [String]
attr_accessor :contact_email
# Required. The telephone number that device users can call, using another
# device, to get help. Zero-touch enrollment shows this number to device
# users before device provisioning. Accepts numerals, spaces, the plus sign,
# hyphens, and parentheses.
# device, to get help. Zero-touch enrollment shows this number to device users
# before device provisioning. Accepts numerals, spaces, the plus sign, hyphens,
# and parentheses.
# Corresponds to the JSON property `contactPhone`
# @return [String]
attr_accessor :contact_phone
# A message, containing one or two sentences, to help device users get help
# or give them more details about whats happening to their device.
# Zero-touch enrollment shows this message before the device is provisioned.
# A message, containing one or two sentences, to help device users get help or
# give them more details about whats happening to their device. Zero-touch
# enrollment shows this message before the device is provisioned.
# Corresponds to the JSON property `customMessage`
# @return [String]
attr_accessor :custom_message
@ -227,27 +222,24 @@ module Google
# @return [String]
attr_accessor :dpc_extras
# Required. The resource name of the selected DPC (device policy controller)
# in the format `customers/[CUSTOMER_ID]/dpcs/*`. To list the supported DPCs,
# call
# `customers.dpcs.list`.
# Required. The resource name of the selected DPC (device policy controller) in
# the format `customers/[CUSTOMER_ID]/dpcs/*`. To list the supported DPCs, call `
# customers.dpcs.list`.
# Corresponds to the JSON property `dpcResourcePath`
# @return [String]
attr_accessor :dpc_resource_path
# Required. Whether this is the default configuration that zero-touch
# enrollment applies to any new devices the organization purchases in the
# future. Only one customer configuration can be the default. Setting this
# value to `true`, changes the previous default configuration's `isDefault`
# value to `false`.
# Required. Whether this is the default configuration that zero-touch enrollment
# applies to any new devices the organization purchases in the future. Only one
# customer configuration can be the default. Setting this value to `true`,
# changes the previous default configuration's `isDefault` value to `false`.
# Corresponds to the JSON property `isDefault`
# @return [Boolean]
attr_accessor :is_default
alias_method :is_default?, :is_default
# Output only. The API resource name in the format
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by
# the server.
# Output only. The API resource name in the format `customers/[CUSTOMER_ID]/
# configurations/[CONFIGURATION_ID]`. Assigned by the server.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -294,21 +286,19 @@ module Google
class CustomerApplyConfigurationRequest
include Google::Apis::Core::Hashable
# Required. The configuration applied to the device in the format
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
# Required. The configuration applied to the device in the format `customers/[
# CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
# Corresponds to the JSON property `configuration`
# @return [String]
attr_accessor :configuration
# A `DeviceReference` is an API abstraction that lets you supply a _device_
# argument to a method using one of the following identifier types:
# * A numeric API resource ID.
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
# device.
# Methods that operate on devices take a `DeviceReference` as a parameter type
# because it's more flexible for the caller. To learn more about device
# identifiers, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# argument to a method using one of the following identifier types: * A numeric
# API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to
# the manufactured device. Methods that operate on devices take a `
# DeviceReference` as a parameter type because it's more flexible for the caller.
# To learn more about device identifiers, read [Identifiers](https://developers.
# google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `device`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference]
attr_accessor :device
@ -352,8 +342,8 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
attr_accessor :customers
# A token used to access the next page of results. Omitted if no further
# results are available.
# A token used to access the next page of results. Omitted if no further results
# are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -378,8 +368,8 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
attr_accessor :devices
# A token used to access the next page of results. Omitted if no further
# results are available.
# A token used to access the next page of results. Omitted if no further results
# are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -399,8 +389,7 @@ module Google
class CustomerListDpcsResponse
include Google::Apis::Core::Hashable
# The list of DPCs available to the customer that support zero-touch
# enrollment.
# The list of DPCs available to the customer that support zero-touch enrollment.
# Corresponds to the JSON property `dpcs`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Dpc>]
attr_accessor :dpcs
@ -420,14 +409,12 @@ module Google
include Google::Apis::Core::Hashable
# A `DeviceReference` is an API abstraction that lets you supply a _device_
# argument to a method using one of the following identifier types:
# * A numeric API resource ID.
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
# device.
# Methods that operate on devices take a `DeviceReference` as a parameter type
# because it's more flexible for the caller. To learn more about device
# identifiers, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# argument to a method using one of the following identifier types: * A numeric
# API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to
# the manufactured device. Methods that operate on devices take a `
# DeviceReference` as a parameter type because it's more flexible for the caller.
# To learn more about device identifiers, read [Identifiers](https://developers.
# google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `device`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference]
attr_accessor :device
@ -447,14 +434,12 @@ module Google
include Google::Apis::Core::Hashable
# A `DeviceReference` is an API abstraction that lets you supply a _device_
# argument to a method using one of the following identifier types:
# * A numeric API resource ID.
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
# device.
# Methods that operate on devices take a `DeviceReference` as a parameter type
# because it's more flexible for the caller. To learn more about device
# identifiers, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# argument to a method using one of the following identifier types: * A numeric
# API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to
# the manufactured device. Methods that operate on devices take a `
# DeviceReference` as a parameter type because it's more flexible for the caller.
# To learn more about device identifiers, read [Identifiers](https://developers.
# google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `device`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference]
attr_accessor :device
@ -473,13 +458,10 @@ module Google
class Device
include Google::Apis::Core::Hashable
# Output only. The provisioning claims for a device. Devices claimed for
# zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`.
# Call
# `partners.devices.unclaim`
# or
# `partners.devices.unclaimAsync`
# to remove the device from zero-touch enrollment.
# Output only. The provisioning claims for a device. Devices claimed for zero-
# touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `
# partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the
# device from zero-touch enrollment.
# Corresponds to the JSON property `claims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim>]
attr_accessor :claims
@ -494,21 +476,21 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Metadata entries that can be attached to a `Device`. To learn more, read [
# Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
# Output only. The API resource name in the format
# `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
# Output only. The API resource name in the format `partners/[PARTNER_ID]/
# devices/[DEVICE_ID]`. Assigned by the server.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -528,10 +510,10 @@ module Google
end
end
# A record of a device claimed by a reseller for a customer. Devices claimed
# for zero-touch enrollment have a claim with the type
# `SECTION_TYPE_ZERO_TOUCH`. To learn more, read
# [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
# A record of a device claimed by a reseller for a customer. Devices claimed for
# zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To
# learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#
# claim).
class DeviceClaim
include Google::Apis::Core::Hashable
@ -550,8 +532,8 @@ module Google
# @return [String]
attr_accessor :section_type
# The timestamp when the device will exit vacation mode. This value is
# present iff the device is in 'vacation mode'.
# The timestamp when the device will exit vacation mode. This value is present
# iff the device is in 'vacation mode'.
# Corresponds to the JSON property `vacationModeExpireTime`
# @return [String]
attr_accessor :vacation_mode_expire_time
@ -576,9 +558,9 @@ module Google
end
end
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
class DeviceIdentifier
include Google::Apis::Core::Hashable
@ -587,10 +569,9 @@ module Google
# @return [String]
attr_accessor :imei
# The device manufacturers name. Matches the device's built-in
# value returned from `android.os.Build.MANUFACTURER`. Allowed values are
# listed in
# [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
# The device manufacturers name. Matches the device's built-in value returned
# from `android.os.Build.MANUFACTURER`. Allowed values are listed in [
# manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
@ -600,9 +581,9 @@ module Google
# @return [String]
attr_accessor :meid
# The device model's name. Matches the device's built-in value returned from
# `android.os.Build.MODEL`. Allowed values are listed in
# [models](/zero-touch/resources/manufacturer-names#model-names).
# The device model's name. Matches the device's built-in value returned from `
# android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/
# resources/manufacturer-names#model-names).
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
@ -627,8 +608,8 @@ module Google
end
end
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Metadata entries that can be attached to a `Device`. To learn more, read [
# Device metadata](https://developers.google.com/zero-touch/guides/metadata).
class DeviceMetadata
include Google::Apis::Core::Hashable
@ -648,14 +629,12 @@ module Google
end
# A `DeviceReference` is an API abstraction that lets you supply a _device_
# argument to a method using one of the following identifier types:
# * A numeric API resource ID.
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
# device.
# Methods that operate on devices take a `DeviceReference` as a parameter type
# because it's more flexible for the caller. To learn more about device
# identifiers, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# argument to a method using one of the following identifier types: * A numeric
# API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to
# the manufactured device. Methods that operate on devices take a `
# DeviceReference` as a parameter type because it's more flexible for the caller.
# To learn more about device identifiers, read [Identifiers](https://developers.
# google.com/zero-touch/guides/identifiers).
class DeviceReference
include Google::Apis::Core::Hashable
@ -664,9 +643,9 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -682,15 +661,15 @@ module Google
end
end
# Tracks the status of a long-running operation to asynchronously update a
# batch of reseller metadata attached to devices. To learn more, read
# [Longrunning batch operations](/zero-touch/guides/how-it-works#operations).
# Tracks the status of a long-running operation to asynchronously update a batch
# of reseller metadata attached to devices. To learn more, read [Longrunning
# batch operations](/zero-touch/guides/how-it-works#operations).
class DevicesLongRunningOperationMetadata
include Google::Apis::Core::Hashable
# The number of metadata updates in the operation. This might be different
# from the number of updates in the request if the API can't parse some of
# the updates.
# The number of metadata updates in the operation. This might be different from
# the number of updates in the request if the API can't parse some of the
# updates.
# Corresponds to the JSON property `devicesCount`
# @return [Fixnum]
attr_accessor :devices_count
@ -700,9 +679,9 @@ module Google
# @return [String]
attr_accessor :processing_status
# The processing progress of the operation. Measured as a number from 0 to
# 100. A value of 10O doesnt always mean the operation completed—check for
# the inclusion of a `done` field.
# The processing progress of the operation. Measured as a number from 0 to 100.
# A value of 10O doesnt always mean the operation completed—check for the
# inclusion of a `done` field.
# Corresponds to the JSON property `progress`
# @return [Fixnum]
attr_accessor :progress
@ -720,20 +699,19 @@ module Google
end
# Tracks the status of a long-running operation to claim, unclaim, or attach
# metadata to devices. To learn more, read
# [Longrunning batch operations](/zero-touch/guides/how-it-works#operations).
# metadata to devices. To learn more, read [Longrunning batch operations](/zero-
# touch/guides/how-it-works#operations).
class DevicesLongRunningOperationResponse
include Google::Apis::Core::Hashable
# The processing status for each device in the operation.
# One `PerDeviceStatus` per device. The list order matches the items in the
# original request.
# The processing status for each device in the operation. One `PerDeviceStatus`
# per device. The list order matches the items in the original request.
# Corresponds to the JSON property `perDeviceStatus`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice>]
attr_accessor :per_device_status
# A summary of how many items in the operation the server processed
# successfully. Updated as the operation progresses.
# A summary of how many items in the operation the server processed successfully.
# Updated as the operation progresses.
# Corresponds to the JSON property `successCount`
# @return [Fixnum]
attr_accessor :success_count
@ -749,11 +727,11 @@ module Google
end
end
# An EMM's DPC ([device policy
# controller](http://developer.android.com/work/dpc/build-dpc.html)).
# Zero-touch enrollment installs a DPC (listed in the `Configuration`) on a
# device to maintain the customer's mobile policies. All the DPCs listed by the
# API support zero-touch enrollment and are available in Google Play.
# An EMM's DPC ([device policy controller](http://developer.android.com/work/dpc/
# build-dpc.html)). Zero-touch enrollment installs a DPC (listed in the `
# Configuration`) on a device to maintain the customer's mobile policies. All
# the DPCs listed by the API support zero-touch enrollment and are available in
# Google Play.
class Dpc
include Google::Apis::Core::Hashable
@ -763,17 +741,16 @@ module Google
# @return [String]
attr_accessor :dpc_name
# Output only. The API resource name in the format
# `customers/[CUSTOMER_ID]/dpcs/[DPC_ID]`. Assigned by
# the server. To maintain a reference to a DPC across customer accounts,
# persist and match the last path component (`DPC_ID`).
# Output only. The API resource name in the format `customers/[CUSTOMER_ID]/dpcs/
# [DPC_ID]`. Assigned by the server. To maintain a reference to a DPC across
# customer accounts, persist and match the last path component (`DPC_ID`).
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The DPC's Android application ID that looks like a Java
# package name. Zero-touch enrollment installs the DPC app onto a device
# using this identifier.
# Output only. The DPC's Android application ID that looks like a Java package
# name. Zero-touch enrollment installs the DPC app onto a device using this
# identifier.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
@ -790,13 +767,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
@ -813,15 +788,15 @@ module Google
class FindDevicesByDeviceIdentifierRequest
include Google::Apis::Core::Hashable
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# Required. The maximum number of devices to show in a page of results. Must
# be between 1 and 100 inclusive.
# Required. The maximum number of devices to show in a page of results. Must be
# between 1 and 100 inclusive.
# Corresponds to the JSON property `limit`
# @return [Fixnum]
attr_accessor :limit
@ -852,8 +827,8 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
attr_accessor :devices
# A token used to access the next page of results. Omitted if no further
# results are available.
# A token used to access the next page of results. Omitted if no further results
# are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -884,8 +859,8 @@ module Google
# @return [Array<Fixnum>]
attr_accessor :customer_id
# Required. The maximum number of devices to show in a page of results. Must
# be between 1 and 100 inclusive.
# Required. The maximum number of devices to show in a page of results. Must be
# between 1 and 100 inclusive.
# Corresponds to the JSON property `limit`
# @return [Fixnum]
attr_accessor :limit
@ -922,8 +897,8 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
attr_accessor :devices
# A token used to access the next page of results.
# Omitted if no further results are available.
# A token used to access the next page of results. Omitted if no further results
# are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -1024,8 +999,8 @@ module Google
# @return [Fixnum]
attr_accessor :total_size
# List of vendors of the reseller partner. Fields `name`, `companyId` and
# `companyName` are populated to the Company object.
# List of vendors of the reseller partner. Fields `name`, `companyId` and `
# companyName` are populated to the Company object.
# Corresponds to the JSON property `vendors`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
attr_accessor :vendors
@ -1047,20 +1022,19 @@ 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::AndroiddeviceprovisioningV1::Status]
attr_accessor :error
@ -1072,8 +1046,8 @@ module Google
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
@ -1098,8 +1072,8 @@ module Google
end
end
# A task for each device in the operation. Corresponds to each device
# change in the request.
# A task for each device in the operation. Corresponds to each device change in
# the request.
class OperationPerDevice
include Google::Apis::Core::Hashable
@ -1145,15 +1119,15 @@ module Google
# @return [Fixnum]
attr_accessor :customer_id
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Metadata entries that can be attached to a `Device`. To learn more, read [
# Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@ -1185,9 +1159,9 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -1198,8 +1172,7 @@ module Google
attr_accessor :section_type
# Optional. The duration of the vacation unlock starting from when the request
# is
# processed. (1 day is treated as 24 hours)
# is processed. (1 day is treated as 24 hours)
# Corresponds to the JSON property `vacationModeDays`
# @return [Fixnum]
attr_accessor :vacation_mode_days
@ -1260,12 +1233,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
@ -1274,15 +1247,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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
@ -1308,9 +1281,9 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -1387,8 +1360,8 @@ module Google
class UpdateDeviceMetadataRequest
include Google::Apis::Core::Hashable
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Metadata entries that can be attached to a `Device`. To learn more, read [
# Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@ -1412,15 +1385,15 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device.
# To understand requirements on identifier sets, read
# [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
# Encapsulates hardware and product IDs to identify a manufactured device. To
# understand requirements on identifier sets, read [Identifiers](https://
# developers.google.com/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Metadata entries that can be attached to a `Device`. To learn more, read [
# Device metadata](https://developers.google.com/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata

View File

@ -50,8 +50,8 @@ module Google
# Lists the user's customer accounts.
# @param [Fixnum] page_size
# The maximum number of customers to show in a page of results.
# A number between 1 and 100 (inclusive).
# The maximum number of customers to show in a page of results. A number between
# 1 and 100 (inclusive).
# @param [String] page_token
# A token specifying which result page to return.
# @param [String] fields
@ -85,8 +85,8 @@ module Google
# Creates a new configuration. Once created, a customer can apply the
# configuration to devices.
# @param [String] parent
# Required. The customer that manages the configuration. An API resource name
# in the format `customers/[CUSTOMER_ID]`.
# Required. The customer that manages the configuration. An API resource name in
# the format `customers/[CUSTOMER_ID]`.
# @param [Google::Apis::AndroiddeviceprovisioningV1::Configuration] configuration_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -120,8 +120,8 @@ module Google
# Deletes an unused configuration. The API call fails if the customer has
# devices with the configuration applied.
# @param [String] name
# Required. The configuration to delete. An API resource name in the format
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. If the
# Required. The configuration to delete. An API resource name in the format `
# customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. If the
# configuration is applied to any devices, the API call fails.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -152,8 +152,8 @@ module Google
# Gets the details of a configuration.
# @param [String] name
# Required. The configuration to get. An API resource name in the format
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
# Required. The configuration to get. An API resource name in the format `
# customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -183,8 +183,8 @@ module Google
# Lists a customer's configurations.
# @param [String] parent
# Required. The customer that manages the listed configurations. An API
# resource name in the format `customers/[CUSTOMER_ID]`.
# Required. The customer that manages the listed configurations. An API resource
# name in the format `customers/[CUSTOMER_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -214,15 +214,14 @@ module Google
# Updates a configuration's field values.
# @param [String] name
# Output only. The API resource name in the format
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by
# the server.
# Output only. The API resource name in the format `customers/[CUSTOMER_ID]/
# configurations/[CONFIGURATION_ID]`. Assigned by the server.
# @param [Google::Apis::AndroiddeviceprovisioningV1::Configuration] configuration_object
# @param [String] update_mask
# Required. The field mask applied to the target `Configuration` before
# updating the fields. To learn more about using field masks, read
# [FieldMask](/protocol-buffers/docs/reference/google.protobuf#fieldmask) in
# the Protocol Buffers documentation.
# Required. The field mask applied to the target `Configuration` before updating
# the fields. To learn more about using field masks, read [FieldMask](/protocol-
# buffers/docs/reference/google.protobuf#fieldmask) in the Protocol Buffers
# documentation.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -257,8 +256,8 @@ module Google
# enrollment. After applying a configuration to a device, the device
# automatically provisions itself on first boot, or next factory reset.
# @param [String] parent
# Required. The customer managing the device. An API resource name in the
# format `customers/[CUSTOMER_ID]`.
# Required. The customer managing the device. An API resource name in the format
# `customers/[CUSTOMER_ID]`.
# @param [Google::Apis::AndroiddeviceprovisioningV1::CustomerApplyConfigurationRequest] customer_apply_configuration_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -291,8 +290,8 @@ module Google
# Gets the details of a device.
# @param [String] name
# Required. The device to get. An API resource name in the format
# `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`.
# Required. The device to get. An API resource name in the format `customers/[
# CUSTOMER_ID]/devices/[DEVICE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -325,8 +324,8 @@ module Google
# Required. The customer managing the devices. An API resource name in the
# format `customers/[CUSTOMER_ID]`.
# @param [Fixnum] page_size
# The maximum number of devices to show in a page of results.
# Must be between 1 and 100 inclusive.
# The maximum number of devices to show in a page of results. Must be between 1
# and 100 inclusive.
# @param [String] page_token
# A token specifying which result page to return.
# @param [String] fields
@ -360,8 +359,8 @@ module Google
# Removes a configuration from device.
# @param [String] parent
# Required. The customer managing the device in the format
# `customers/[CUSTOMER_ID]`.
# Required. The customer managing the device in the format `customers/[
# CUSTOMER_ID]`.
# @param [Google::Apis::AndroiddeviceprovisioningV1::CustomerRemoveConfigurationRequest] customer_remove_configuration_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -392,13 +391,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Unclaims a device from a customer and removes it from zero-touch
# enrollment.
# Unclaims a device from a customer and removes it from zero-touch enrollment.
# After removing a device, a customer must contact their reseller to register
# the device into zero-touch enrollment again.
# @param [String] parent
# Required. The customer managing the device. An API resource name in the
# format `customers/[CUSTOMER_ID]`.
# Required. The customer managing the device. An API resource name in the format
# `customers/[CUSTOMER_ID]`.
# @param [Google::Apis::AndroiddeviceprovisioningV1::CustomerUnclaimDeviceRequest] customer_unclaim_device_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -429,8 +427,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the DPCs (device policy controllers) that support zero-touch
# enrollment.
# Lists the DPCs (device policy controllers) that support zero-touch enrollment.
# @param [String] parent
# Required. The customer that can use the DPCs in configurations. An API
# resource name in the format `customers/[CUSTOMER_ID]`.
@ -461,9 +458,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
@ -494,10 +490,10 @@ module Google
end
# Creates a customer for zero-touch enrollment. After the method returns
# successfully, admin and owner roles can manage devices and EMM configs
# by calling API methods or using their zero-touch enrollment portal.
# The customer receives an email that welcomes them to zero-touch enrollment
# and explains how to sign into the portal.
# successfully, admin and owner roles can manage devices and EMM configs by
# calling API methods or using their zero-touch enrollment portal. The customer
# receives an email that welcomes them to zero-touch enrollment and explains how
# to sign into the portal.
# @param [String] parent
# Required. The parent resource ID in the format `partners/[PARTNER_ID]` that
# identifies the reseller.
@ -531,14 +527,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the customers that are enrolled to the reseller identified by the
# `partnerId` argument. This list includes customers that the reseller
# created and customers that enrolled themselves using the portal.
# Lists the customers that are enrolled to the reseller identified by the `
# partnerId` argument. This list includes customers that the reseller created
# and customers that enrolled themselves using the portal.
# @param [Fixnum] partner_id
# Required. The ID of the reseller partner.
# @param [Fixnum] page_size
# The maximum number of results to be returned. If not specified or 0, all
# the records are returned.
# The maximum number of results to be returned. If not specified or 0, all the
# records are returned.
# @param [String] page_token
# A token identifying a page of results returned by the server.
# @param [String] fields
@ -604,9 +600,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Claims a batch of devices for a customer asynchronously. Adds the devices
# to zero-touch enrollment. To learn more, read [Longrunning batch
# operations](/zero-touch/guides/how-it-works#operations).
# Claims a batch of devices for a customer asynchronously. Adds the devices to
# zero-touch enrollment. To learn more, read [Longrunning batch operations](/
# zero-touch/guides/how-it-works#operations).
# @param [Fixnum] partner_id
# Required. The ID of the reseller partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest] claim_devices_request_object
@ -673,9 +669,8 @@ module Google
end
# Finds devices claimed for customers. The results only contain devices
# registered to the reseller that's identified by the `partnerId` argument.
# The customer's devices purchased from other resellers don't appear in the
# results.
# registered to the reseller that's identified by the `partnerId` argument. The
# customer's devices purchased from other resellers don't appear in the results.
# @param [Fixnum] partner_id
# Required. The ID of the reseller partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest] find_devices_by_owner_request_object
@ -710,8 +705,8 @@ module Google
# Gets a device.
# @param [String] name
# Required. The device API resource name in the format
# `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# Required. The device API resource name in the format `partners/[PARTNER_ID]/
# devices/[DEVICE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -775,8 +770,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Unclaims a device from a customer and removes it from zero-touch
# enrollment.
# Unclaims a device from a customer and removes it from zero-touch enrollment.
# @param [Fixnum] partner_id
# Required. The ID of the reseller partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest] unclaim_device_request_object
@ -809,9 +803,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Unclaims a batch of devices for a customer asynchronously. Removes the
# devices from zero-touch enrollment. To learn more, read [Longrunning batch
# operations](/zero-touch/guides/how-it-works#operations).
# Unclaims a batch of devices for a customer asynchronously. Removes the devices
# from zero-touch enrollment. To learn more, read [Longrunning batch operations]
# (/zero-touch/guides/how-it-works#operations).
# @param [Fixnum] partner_id
# Required. The reseller partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest] unclaim_devices_request_object
@ -845,9 +839,9 @@ module Google
end
# Updates the reseller metadata attached to a batch of devices. This method
# updates devices asynchronously and returns an `Operation` that can be used
# to track progress. Read [Longrunning batch
# operations](/zero-touch/guides/how-it-works#operations).
# updates devices asynchronously and returns an `Operation` that can be used to
# track progress. Read [Longrunning batch operations](/zero-touch/guides/how-it-
# works#operations).
# @param [Fixnum] partner_id
# Required. The reseller partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest] update_device_metadata_in_batch_request_object
@ -918,8 +912,8 @@ module Google
# Lists the customers of the vendor.
# @param [String] parent
# Required. The resource name in the format
# `partners/[PARTNER_ID]/vendors/[VENDOR_ID]`.
# Required. The resource name in the format `partners/[PARTNER_ID]/vendors/[
# VENDOR_ID]`.
# @param [Fixnum] page_size
# The maximum number of results to be returned.
# @param [String] page_token

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV3
VERSION = 'V3'
REVISION = '20200701'
REVISION = '20200801'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

File diff suppressed because it is too large Load Diff

View File

@ -212,8 +212,8 @@ module Google
# Creates a new APK without uploading the APK itself to Google Play, instead
# hosting the APK at a specified URL. This function is only available to
# organizations using Managed Play whose application is configured to
# restrict distribution to the organizations.
# organizations using Managed Play whose application is configured to restrict
# distribution to the organizations.
# @param [String] package_name
# Package name of the app.
# @param [String] edit_id
@ -358,22 +358,19 @@ module Google
execute_or_queue_command(command, &block)
end
# Uploads a new Android App Bundle to this edit.
# If you are using the Google API client libraries, please increase the
# timeout of the http request before calling this endpoint
# (a timeout of 2 minutes is recommended).
# See [Timeouts and
# Errors](https://developers.google.com/api-client-library/java/google-api-java-
# client/errors)
# for an example in java.
# Uploads a new Android App Bundle to this edit. If you are using the Google API
# client libraries, please increase the timeout of the http request before
# calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts
# and Errors](https://developers.google.com/api-client-library/java/google-api-
# java-client/errors) for an example in java.
# @param [String] package_name
# Package name of the app.
# @param [String] edit_id
# Identifier of the edit.
# @param [Boolean] ack_bundle_installation_warning
# Must be set to true if the bundle installation may trigger a warning on
# user devices (for example, if installation size may be over a threshold,
# typically 100 MB).
# Must be set to true if the bundle installation may trigger a warning on user
# devices (for example, if installation size may be over a threshold, typically
# 100 MB).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -419,8 +416,7 @@ module Google
# @param [String] edit_id
# Unique identifier for this edit.
# @param [Fixnum] apk_version_code
# The version code of the APK whose Deobfuscation File is being
# uploaded.
# The version code of the APK whose Deobfuscation File is being uploaded.
# @param [String] deobfuscation_file_type
# The type of the deobfuscation file.
# @param [String] fields
@ -574,8 +570,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [Fixnum] apk_version_code
# The version code of the APK whose expansion file configuration is being
# read or modified.
# The version code of the APK whose expansion file configuration is being read
# or modified.
# @param [String] expansion_file_type
# The file type of the file configuration which is being read or modified.
# @param [String] fields
@ -609,15 +605,14 @@ module Google
end
# Patches the APK's expansion file configuration to reference another APK's
# expansion file.
# To add a new expansion file use the Upload method.
# expansion file. To add a new expansion file use the Upload method.
# @param [String] package_name
# Package name of the app.
# @param [String] edit_id
# Identifier of the edit.
# @param [Fixnum] apk_version_code
# The version code of the APK whose expansion file configuration is being
# read or modified.
# The version code of the APK whose expansion file configuration is being read
# or modified.
# @param [String] expansion_file_type
# The file type of the expansion file configuration which is being updated.
# @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object
@ -654,15 +649,14 @@ module Google
end
# Updates the APK's expansion file configuration to reference another APK's
# expansion file.
# To add a new expansion file use the Upload method.
# expansion file. To add a new expansion file use the Upload method.
# @param [String] package_name
# Package name of the app.
# @param [String] edit_id
# Identifier of the edit.
# @param [Fixnum] apk_version_code
# The version code of the APK whose expansion file configuration is being
# read or modified.
# The version code of the APK whose expansion file configuration is being read
# or modified.
# @param [String] expansion_file_type
# The file type of the file configuration which is being read or modified.
# @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object
@ -704,8 +698,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [Fixnum] apk_version_code
# The version code of the APK whose expansion file configuration is being
# read or modified.
# The version code of the APK whose expansion file configuration is being read
# or modified.
# @param [String] expansion_file_type
# The file type of the expansion file configuration which is being updated.
# @param [String] fields
@ -754,8 +748,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German).
# @param [String] image_type
# Type of the Image.
# @param [String] image_id
@ -789,19 +783,18 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes all images for the specified language and image type.
# Returns an empty response if no images are found.
# Deletes all images for the specified language and image type. Returns an empty
# response if no images are found.
# @param [String] package_name
# Package name of the app.
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# Providing a language that is not supported by the App is a no-op.
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German). Providing a language that is not supported by the App is a
# no-op.
# @param [String] image_type
# Type of the Image.
# Providing an image type that refers to no images is a no-op.
# Type of the Image. Providing an image type that refers to no images is a no-op.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -838,9 +831,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# There must be a store listing for the specified language.
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German). There must be a store listing for the specified language.
# @param [String] image_type
# Type of the Image. Providing an image type that refers to no images will
# return an empty response.
@ -881,9 +873,9 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# Providing a language that is not supported by the App is a no-op.
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German). Providing a language that is not supported by the App is a
# no-op.
# @param [String] image_type
# Type of the Image.
# @param [String] fields
@ -932,8 +924,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -998,8 +990,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1068,8 +1060,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German).
# @param [Google::Apis::AndroidpublisherV3::Listing] listing_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1108,8 +1100,8 @@ module Google
# @param [String] edit_id
# Identifier of the edit.
# @param [String] language
# Language localization code (a BCP-47 language tag; for example, "de-AT"
# for Austrian German).
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German).
# @param [Google::Apis::AndroidpublisherV3::Listing] listing_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1472,9 +1464,9 @@ module Google
# Package name of the app.
# @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
# @param [Boolean] auto_convert_missing_prices
# If true the prices for all regions targeted by the parent app that don't
# have a price specified for this in-app product will be auto converted to
# the target currency based on the default price. Defaults to false.
# If true the prices for all regions targeted by the parent app that don't have
# a price specified for this in-app product will be auto converted to the target
# currency based on the default price. Defaults to false.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1551,9 +1543,9 @@ module Google
# Unique identifier for the in-app product.
# @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
# @param [Boolean] auto_convert_missing_prices
# If true the prices for all regions targeted by the parent app that don't
# have a price specified for this in-app product will be auto converted to
# the target currency based on the default price. Defaults to false.
# If true the prices for all regions targeted by the parent app that don't have
# a price specified for this in-app product will be auto converted to the target
# currency based on the default price. Defaults to false.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1592,9 +1584,9 @@ module Google
# Unique identifier for the in-app product.
# @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
# @param [Boolean] auto_convert_missing_prices
# If true the prices for all regions targeted by the parent app that don't
# have a price specified for this in-app product will be auto converted to
# the target currency based on the default price. Defaults to false.
# If true the prices for all regions targeted by the parent app that don't have
# a price specified for this in-app product will be auto converted to the target
# currency based on the default price. Defaults to false.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1626,14 +1618,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Uploads an APK to internal app sharing.
# If you are using the Google API client libraries, please increase the
# timeout of the http request before calling this endpoint
# (a timeout of 2 minutes is recommended).
# See [Timeouts and
# Errors](https://developers.google.com/api-client-library/java/google-api-java-
# client/errors)
# for an example in java.
# Uploads an APK to internal app sharing. If you are using the Google API client
# libraries, please increase the timeout of the http request before calling this
# endpoint (a timeout of 2 minutes is recommended). See [Timeouts and Errors](
# https://developers.google.com/api-client-library/java/google-api-java-client/
# errors) for an example in java.
# @param [String] package_name
# Package name of the app.
# @param [String] fields
@ -1673,14 +1662,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Uploads an app bundle to internal app sharing.
# If you are using the Google API client libraries, please increase the
# timeout of the http request before calling this endpoint
# (a timeout of 2 minutes is recommended).
# See [Timeouts and
# Errors](https://developers.google.com/api-client-library/java/google-api-java-
# client/errors)
# for an example in java.
# Uploads an app bundle to internal app sharing. If you are using the Google API
# client libraries, please increase the timeout of the http request before
# calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts
# and Errors](https://developers.google.com/api-client-library/java/google-api-
# java-client/errors) for an example in java.
# @param [String] package_name
# Package name of the app.
# @param [String] fields
@ -1722,16 +1708,16 @@ module Google
# Refund a user's subscription or in-app purchase order.
# @param [String] package_name
# The package name of the application for which this subscription or in-app
# item was purchased (for example, 'com.some.thing').
# The package name of the application for which this subscription or in-app item
# was purchased (for example, 'com.some.thing').
# @param [String] order_id
# The order ID provided to the user when the subscription or in-app order was
# purchased.
# @param [Boolean] revoke
# Whether to revoke the purchased item. If set to true, access to the
# subscription or in-app item will be terminated immediately. If the item is
# a recurring subscription, all future payments will also be terminated.
# Consumed in-app items need to be handled by developer's app. (optional).
# subscription or in-app item will be terminated immediately. If the item is a
# recurring subscription, all future payments will also be terminated. Consumed
# in-app items need to be handled by developer's app. (optional).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1761,13 +1747,12 @@ module Google
# Acknowledges a purchase of an inapp item.
# @param [String] package_name
# The package name of the application the inapp product was sold in (for
# example, 'com.some.thing').
# The package name of the application the inapp product was sold in (for example,
# 'com.some.thing').
# @param [String] product_id
# The inapp product SKU (for example, 'com.some.thing.inapp1').
# @param [String] token
# The token provided to the user's device when the inapp product was
# purchased.
# The token provided to the user's device when the inapp product was purchased.
# @param [Google::Apis::AndroidpublisherV3::ProductPurchasesAcknowledgeRequest] product_purchases_acknowledge_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1800,13 +1785,12 @@ module Google
# Checks the purchase and consumption status of an inapp item.
# @param [String] package_name
# The package name of the application the inapp product was sold in (for
# example, 'com.some.thing').
# The package name of the application the inapp product was sold in (for example,
# 'com.some.thing').
# @param [String] product_id
# The inapp product SKU (for example, 'com.some.thing.inapp1').
# @param [String] token
# The token provided to the user's device when the inapp product was
# purchased.
# The token provided to the user's device when the inapp product was purchased.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1838,13 +1822,12 @@ module Google
# Acknowledges a subscription purchase.
# @param [String] package_name
# The package name of the application for which this subscription was
# purchased (for example, 'com.some.thing').
# The package name of the application for which this subscription was purchased (
# for example, 'com.some.thing').
# @param [String] subscription_id
# The purchased subscription ID (for example, 'monthly001').
# @param [String] token
# The token provided to the user's device when the subscription was
# purchased.
# The token provided to the user's device when the subscription was purchased.
# @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesAcknowledgeRequest] subscription_purchases_acknowledge_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1875,16 +1858,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Cancels a user's subscription purchase. The subscription remains valid
# until its expiration time.
# Cancels a user's subscription purchase. The subscription remains valid until
# its expiration time.
# @param [String] package_name
# The package name of the application for which this subscription was
# purchased (for example, 'com.some.thing').
# The package name of the application for which this subscription was purchased (
# for example, 'com.some.thing').
# @param [String] subscription_id
# The purchased subscription ID (for example, 'monthly001').
# @param [String] token
# The token provided to the user's device when the subscription was
# purchased.
# The token provided to the user's device when the subscription was purchased.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1912,16 +1894,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Defers a user's subscription purchase until a specified future expiration
# time.
# Defers a user's subscription purchase until a specified future expiration time.
# @param [String] package_name
# The package name of the application for which this subscription was
# purchased (for example, 'com.some.thing').
# The package name of the application for which this subscription was purchased (
# for example, 'com.some.thing').
# @param [String] subscription_id
# The purchased subscription ID (for example, 'monthly001').
# @param [String] token
# The token provided to the user's device when the subscription was
# purchased.
# The token provided to the user's device when the subscription was purchased.
# @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest] subscription_purchases_defer_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1954,16 +1934,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Checks whether a user's subscription purchase is valid and returns its
# expiry time.
# Checks whether a user's subscription purchase is valid and returns its expiry
# time.
# @param [String] package_name
# The package name of the application for which this subscription was
# purchased (for example, 'com.some.thing').
# The package name of the application for which this subscription was purchased (
# for example, 'com.some.thing').
# @param [String] subscription_id
# The purchased subscription ID (for example, 'monthly001').
# @param [String] token
# The token provided to the user's device when the subscription was
# purchased.
# The token provided to the user's device when the subscription was purchased.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1996,13 +1975,12 @@ module Google
# Refunds a user's subscription purchase, but the subscription remains valid
# until its expiration time and it will continue to recur.
# @param [String] package_name
# The package name of the application for which this subscription was
# purchased (for example, 'com.some.thing').
# The package name of the application for which this subscription was purchased (
# for example, 'com.some.thing').
# @param [String] subscription_id
# "The purchased subscription ID (for example, 'monthly001').
# @param [String] token
# The token provided to the user's device when the subscription was
# purchased.
# The token provided to the user's device when the subscription was purchased.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2030,16 +2008,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Refunds and immediately revokes a user's subscription purchase. Access to
# the subscription will be terminated immediately and it will stop recurring.
# Refunds and immediately revokes a user's subscription purchase. Access to the
# subscription will be terminated immediately and it will stop recurring.
# @param [String] package_name
# The package name of the application for which this subscription was
# purchased (for example, 'com.some.thing').
# The package name of the application for which this subscription was purchased (
# for example, 'com.some.thing').
# @param [String] subscription_id
# The purchased subscription ID (for example, 'monthly001').
# @param [String] token
# The token provided to the user's device when the subscription was
# purchased.
# The token provided to the user's device when the subscription was purchased.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2072,43 +2049,38 @@ module Google
# The package name of the application for which voided purchases need to be
# returned (for example, 'com.some.thing').
# @param [Fixnum] end_time
# The time, in milliseconds since the Epoch, of the newest voided purchase
# that you want to see in the response. The value of this parameter cannot
# be greater than the current time and is ignored if a pagination token is
# set. Default value is current time.
# Note: This filter is applied on the time at which the record is seen as
# voided by our systems and not the actual voided time returned in the
# response.
# The time, in milliseconds since the Epoch, of the newest voided purchase that
# you want to see in the response. The value of this parameter cannot be greater
# than the current time and is ignored if a pagination token is set. Default
# value is current time. Note: This filter is applied on the time at which the
# record is seen as voided by our systems and not the actual voided time
# returned in the response.
# @param [Fixnum] max_results
# Defines how many results the list operation should return.
# The default number depends on the resource collection.
# Defines how many results the list operation should return. The default number
# depends on the resource collection.
# @param [Fixnum] start_index
# Defines the index of the first element to return.
# This can only be used if indexed paging is enabled.
# Defines the index of the first element to return. This can only be used if
# indexed paging is enabled.
# @param [Fixnum] start_time
# The time, in milliseconds since the Epoch, of the oldest voided purchase
# that you want to see in the response. The value of this parameter cannot
# be older than 30 days and is ignored if a pagination token is set.
# Default value is current time minus 30 days.
# Note: This filter is applied on the time at which the record is seen as
# voided by our systems and not the actual voided time returned in the
# response.
# The time, in milliseconds since the Epoch, of the oldest voided purchase that
# you want to see in the response. The value of this parameter cannot be older
# than 30 days and is ignored if a pagination token is set. Default value is
# current time minus 30 days. Note: This filter is applied on the time at which
# the record is seen as voided by our systems and not the actual voided time
# returned in the response.
# @param [String] token
# Defines the token of the page to return, usually taken from
# TokenPagination.
# Defines the token of the page to return, usually taken from TokenPagination.
# This can only be used if token paging is enabled.
# @param [Fixnum] type
# The type of voided purchases that you want to see in the response.
# Possible values are:
# 0. Only voided in-app product purchases will be returned in the
# response. This is the default value.
# 1. Both voided in-app purchases and voided subscription purchases
# will be returned in the response.
# Note: Before requesting to receive voided subscription purchases, you
# must switch to use orderId in the response which uniquely identifies
# one-time purchases and subscriptions. Otherwise, you will receive multiple
# subscription orders with the same PurchaseToken, because subscription
# renewal orders share the same PurchaseToken.
# The type of voided purchases that you want to see in the response. Possible
# values are: 0. Only voided in-app product purchases will be returned in the
# response. This is the default value. 1. Both voided in-app purchases and
# voided subscription purchases will be returned in the response. Note: Before
# requesting to receive voided subscription purchases, you must switch to use
# orderId in the response which uniquely identifies one-time purchases and
# subscriptions. Otherwise, you will receive multiple subscription orders with
# the same PurchaseToken, because subscription renewal orders share the same
# PurchaseToken.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2293,8 +2265,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Downloads a previously created system APK which is suitable for inclusion
# in a system image.
# Downloads a previously created system APK which is suitable for inclusion in a
# system image.
# @param [String] package_name
# Unique identifier of the Android app.
# @param [Fixnum] version_code

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
module BillingbudgetsV1beta1
VERSION = 'V1beta1'
REVISION = '20200711'
REVISION = '20200801'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,45 +22,38 @@ module Google
module Apis
module BillingbudgetsV1beta1
# AllUpdatesRule defines notifications that are sent based on budget spend
# and thresholds.
# AllUpdatesRule defines notifications that are sent based on budget spend and
# thresholds.
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
include Google::Apis::Core::Hashable
# Optional. Targets to send notifications to when a threshold is exceeded. This
# is in
# addition to default recipients who have billing account roles.
# The value is the full REST resource name of a monitoring notification
# channel with the form
# `projects/`project_id`/notificationChannels/`channel_id``. A maximum of 5
# channels are allowed. See
# https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients
# for more details.
# is in addition to default recipients who have billing account roles. The value
# is the full REST resource name of a monitoring notification channel with the
# form `projects/`project_id`/notificationChannels/`channel_id``. A maximum of 5
# channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-
# notification-recipients for more details.
# Corresponds to the JSON property `monitoringNotificationChannels`
# @return [Array<String>]
attr_accessor :monitoring_notification_channels
# Required. The name of the Cloud Pub/Sub topic where budget related messages
# will be
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates
# are sent at regular intervals to the topic.
# The topic needs to be created before the budget is created; see
# https://cloud.google.com/billing/docs/how-to/budgets#manage-notifications
# for more details.
# Caller is expected to have
# `pubsub.topics.setIamPolicy` permission on the topic when it's set for a
# budget, otherwise, the API call will fail with PERMISSION_DENIED. See
# https://cloud.google.com/billing/docs/how-to/budgets-programmatic-
# notifications
# for more details on Pub/Sub roles and permissions.
# Optional. The name of the Pub/Sub topic where budget related messages will be
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates are
# sent at regular intervals to the topic. The topic needs to be created before
# the budget is created; see https://cloud.google.com/billing/docs/how-to/
# budgets#manage-notifications for more details. Caller is expected to have `
# pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget,
# otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud.
# google.com/billing/docs/how-to/budgets-programmatic-notifications for more
# details on Pub/Sub roles and permissions.
# Corresponds to the JSON property `pubsubTopic`
# @return [String]
attr_accessor :pubsub_topic
# Required. The schema version of the notification sent to `pubsub_topic`.
# Only "1.0" is accepted. It represents the JSON schema as defined in
# https://cloud.google.com/billing/docs/how-to/budgets-programmatic-
# notifications#notification_format
# Optional. The schema version of the notification sent to `pubsub_topic`. Only "
# 1.0" is accepted. It represents the JSON schema as defined in https://cloud.
# google.com/billing/docs/how-to/budgets-programmatic-notifications#
# notification_format
# Corresponds to the JSON property `schemaVersion`
# @return [String]
attr_accessor :schema_version
@ -77,16 +70,16 @@ module Google
end
end
# A budget is a plan that describes what you expect to spend on Cloud
# projects, plus the rules to execute as spend is tracked against that plan,
# (for example, send an alert when 90% of the target spend is met).
# Currently all plans are monthly budgets so the usage period(s) tracked are
# implied (calendar months of usage back-to-back).
# A budget is a plan that describes what you expect to spend on Cloud projects,
# plus the rules to execute as spend is tracked against that plan, (for example,
# send an alert when 90% of the target spend is met). Currently all plans are
# monthly budgets so the usage period(s) tracked are implied (calendar months of
# usage back-to-back).
class GoogleCloudBillingBudgetsV1beta1Budget
include Google::Apis::Core::Hashable
# AllUpdatesRule defines notifications that are sent based on budget spend
# and thresholds.
# AllUpdatesRule defines notifications that are sent based on budget spend and
# thresholds.
# Corresponds to the JSON property `allUpdatesRule`
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule]
attr_accessor :all_updates_rule
@ -101,28 +94,26 @@ module Google
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Filter]
attr_accessor :budget_filter
# User data for display name in UI.
# Validation: <= 60 chars.
# User data for display name in UI. Validation: <= 60 chars.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Optional. Etag to validate that the object is unchanged for a
# read-modify-write operation.
# An empty etag will cause an update to overwrite other changes.
# Optional. Etag to validate that the object is unchanged for a read-modify-
# write operation. An empty etag will cause an update to overwrite other changes.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Output only. Resource name of the budget.
# The resource name implies the scope of a budget. Values are of the form
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
# Output only. Resource name of the budget. The resource name implies the scope
# of a budget. Values are of the form `billingAccounts/`billingAccountId`/
# budgets/`budgetId``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Optional. Rules that trigger alerts (notifications of thresholds
# being crossed) when spend exceeds the specified percentages of the budget.
# Optional. Rules that trigger alerts (notifications of thresholds being crossed)
# when spend exceeds the specified percentages of the budget.
# Corresponds to the JSON property `thresholdRules`
# @return [Array<Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ThresholdRule>]
attr_accessor :threshold_rules
@ -147,11 +138,10 @@ module Google
class GoogleCloudBillingBudgetsV1beta1BudgetAmount
include Google::Apis::Core::Hashable
# Describes a budget amount targeted to last period's spend.
# At this time, the amount is automatically 100% of last period's spend;
# that is, there are no other options yet.
# Future configuration will be described here (for example, configuring a
# percentage of last period's spend).
# Describes a budget amount targeted to last period's spend. At this time, the
# amount is automatically 100% of last period's spend; that is, there are no
# other options yet. Future configuration will be described here (for example,
# configuring a percentage of last period's spend).
# Corresponds to the JSON property `lastPeriodAmount`
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1LastPeriodAmount]
attr_accessor :last_period_amount
@ -176,11 +166,11 @@ module Google
class GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
include Google::Apis::Core::Hashable
# A budget is a plan that describes what you expect to spend on Cloud
# projects, plus the rules to execute as spend is tracked against that plan,
# (for example, send an alert when 90% of the target spend is met).
# Currently all plans are monthly budgets so the usage period(s) tracked are
# implied (calendar months of usage back-to-back).
# A budget is a plan that describes what you expect to spend on Cloud projects,
# plus the rules to execute as spend is tracked against that plan, (for example,
# send an alert when 90% of the target spend is met). Currently all plans are
# monthly budgets so the usage period(s) tracked are implied (calendar months of
# usage back-to-back).
# Corresponds to the JSON property `budget`
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
attr_accessor :budget
@ -205,40 +195,36 @@ module Google
attr_accessor :credit_types_treatment
# Optional. A single label and value pair specifying that usage from only this
# set of
# labeled resources should be included in the budget. Currently, multiple
# entries or multiple values per entry are not allowed. If omitted, the
# report will include all labeled and unlabeled usage.
# set of labeled resources should be included in the budget. Currently, multiple
# entries or multiple values per entry are not allowed. If omitted, the report
# will include all labeled and unlabeled usage.
# Corresponds to the JSON property `labels`
# @return [Hash<String,Array<Object>>]
attr_accessor :labels
# Optional. A set of projects of the form `projects/`project``,
# specifying that usage from only this set of projects should be
# included in the budget. If omitted, the report will include all usage for
# the billing account, regardless of which project the usage occurred on.
# Only zero or one project can be specified currently.
# Optional. A set of projects of the form `projects/`project``, specifying that
# usage from only this set of projects should be included in the budget. If
# omitted, the report will include all usage for the billing account, regardless
# of which project the usage occurred on. Only zero or one project can be
# specified currently.
# Corresponds to the JSON property `projects`
# @return [Array<String>]
attr_accessor :projects
# Optional. A set of services of the form `services/`service_id``,
# specifying that usage from only this set of services should be
# included in the budget. If omitted, the report will include usage for
# all the services.
# The service names are available through the Catalog API:
# https://cloud.google.com/billing/v1/how-tos/catalog-api.
# Optional. A set of services of the form `services/`service_id``, specifying
# that usage from only this set of services should be included in the budget. If
# omitted, the report will include usage for all the services. The service names
# are available through the Catalog API: https://cloud.google.com/billing/v1/how-
# tos/catalog-api.
# Corresponds to the JSON property `services`
# @return [Array<String>]
attr_accessor :services
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
# specifying
# that usage from only this set of subaccounts should be included in the
# budget. If a subaccount is set to the name of the parent account,
# usage from the parent account will be included. If omitted, the
# report will include usage from the parent account and all
# subaccounts, if they exist.
# specifying that usage from only this set of subaccounts should be included in
# the budget. If a subaccount is set to the name of the parent account, usage
# from the parent account will be included. If omitted, the report will include
# usage from the parent account and all subaccounts, if they exist.
# Corresponds to the JSON property `subaccounts`
# @return [Array<String>]
attr_accessor :subaccounts
@ -257,11 +243,10 @@ module Google
end
end
# Describes a budget amount targeted to last period's spend.
# At this time, the amount is automatically 100% of last period's spend;
# that is, there are no other options yet.
# Future configuration will be described here (for example, configuring a
# percentage of last period's spend).
# Describes a budget amount targeted to last period's spend. At this time, the
# amount is automatically 100% of last period's spend; that is, there are no
# other options yet. Future configuration will be described here (for example,
# configuring a percentage of last period's spend).
class GoogleCloudBillingBudgetsV1beta1LastPeriodAmount
include Google::Apis::Core::Hashable
@ -283,8 +268,8 @@ module Google
# @return [Array<Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget>]
attr_accessor :budgets
# If not empty, indicates that there may be more budgets that match the
# request; this value should be passed in a new `ListBudgetsRequest`.
# If not empty, indicates that there may be more budgets that match the request;
# this value should be passed in a new `ListBudgetsRequest`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -300,13 +285,12 @@ module Google
end
end
# ThresholdRule contains a definition of a threshold which triggers
# an alert (a notification of a threshold being crossed) to be sent when
# spend goes above the specified amount.
# Alerts are automatically e-mailed to users with the Billing Account
# Administrator role or the Billing Account User role.
# The thresholds here have no effect on notifications sent to anything
# configured under `Budget.all_updates_rule`.
# ThresholdRule contains a definition of a threshold which triggers an alert (a
# notification of a threshold being crossed) to be sent when spend goes above
# the specified amount. Alerts are automatically e-mailed to users with the
# Billing Account Administrator role or the Billing Account User role. The
# thresholds here have no effect on notifications sent to anything configured
# under `Budget.all_updates_rule`.
class GoogleCloudBillingBudgetsV1beta1ThresholdRule
include Google::Apis::Core::Hashable
@ -316,9 +300,8 @@ module Google
# @return [String]
attr_accessor :spend_basis
# Required. Send an alert when this threshold is exceeded.
# This is a 1.0-based percentage, so 0.5 = 50%.
# Validation: non-negative number.
# Required. Send an alert when this threshold is exceeded. This is a 1.0-based
# percentage, so 0.5 = 50%. Validation: non-negative number.
# Corresponds to the JSON property `thresholdPercent`
# @return [Float]
attr_accessor :threshold_percent
@ -338,21 +321,20 @@ module Google
class GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
include Google::Apis::Core::Hashable
# A budget is a plan that describes what you expect to spend on Cloud
# projects, plus the rules to execute as spend is tracked against that plan,
# (for example, send an alert when 90% of the target spend is met).
# Currently all plans are monthly budgets so the usage period(s) tracked are
# implied (calendar months of usage back-to-back).
# A budget is a plan that describes what you expect to spend on Cloud projects,
# plus the rules to execute as spend is tracked against that plan, (for example,
# send an alert when 90% of the target spend is met). Currently all plans are
# monthly budgets so the usage period(s) tracked are implied (calendar months of
# usage back-to-back).
# Corresponds to the JSON property `budget`
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
attr_accessor :budget
# Optional. Indicates which fields in the provided budget to update.
# Read-only fields (such as `name`) cannot be changed. If this is not
# provided, then only fields with non-default values from the request are
# updated. See
# https://developers.google.com/protocol-buffers/docs/proto3#default for more
# details about default values.
# Optional. Indicates which fields in the provided budget to update. Read-only
# fields (such as `name`) cannot be changed. If this is not provided, then only
# fields with non-default values from the request are updated. See https://
# developers.google.com/protocol-buffers/docs/proto3#default for more details
# about default values.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
@ -368,13 +350,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 GoogleProtobufEmpty
include Google::Apis::Core::Hashable
@ -396,18 +376,17 @@ module Google
# @return [String]
attr_accessor :currency_code
# Number of nano (10^-9) units of the amount.
# The value must be between -999,999,999 and +999,999,999 inclusive.
# If `units` is positive, `nanos` must be positive or zero.
# If `units` is zero, `nanos` can be positive, zero, or negative.
# If `units` is negative, `nanos` must be negative or zero.
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
# negative. If `units` is negative, `nanos` must be negative or zero. For
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
# Corresponds to the JSON property `nanos`
# @return [Fixnum]
attr_accessor :nanos
# The whole units of the amount.
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
# 1 unit is one US dollar.
# Corresponds to the JSON property `units`
# @return [Fixnum]
attr_accessor :units

View File

@ -48,12 +48,11 @@ module Google
@batch_path = 'batch'
end
# Creates a new budget. See
# <a href="https://cloud.google.com/billing/quotas">Quotas and limits</a>
# for more information on the limits of the number of budgets you can create.
# Creates a new budget. See Quotas and limits for more information on the limits
# of the number of budgets you can create.
# @param [String] parent
# Required. The name of the billing account to create the budget in. Values
# are of the form `billingAccounts/`billingAccountId``.
# Required. The name of the billing account to create the budget in. Values are
# of the form `billingAccounts/`billingAccountId``.
# @param [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest] google_cloud_billing_budgets_v1beta1_create_budget_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -86,8 +85,8 @@ module Google
# Deletes a budget. Returns successfully if already deleted.
# @param [String] name
# Required. Name of the budget to delete. Values are of the form
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
# Required. Name of the budget to delete. Values are of the form `
# billingAccounts/`billingAccountId`/budgets/`budgetId``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -115,14 +114,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a budget.
# WARNING: There are some fields exposed on the Google Cloud Console that
# aren't available on this API. When reading from the API, you will not
# see these fields in the return value, though they may have been set
# in the Cloud Console.
# Returns a budget. WARNING: There are some fields exposed on the Google Cloud
# Console that aren't available on this API. When reading from the API, you will
# not see these fields in the return value, though they may have been set in the
# Cloud Console.
# @param [String] name
# Required. Name of budget to get. Values are of the form
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
# Required. Name of budget to get. Values are of the form `billingAccounts/`
# billingAccountId`/budgets/`budgetId``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -150,21 +148,20 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a list of budgets for a billing account.
# WARNING: There are some fields exposed on the Google Cloud Console that
# aren't available on this API. When reading from the API, you will not
# see these fields in the return value, though they may have been set
# in the Cloud Console.
# Returns a list of budgets for a billing account. WARNING: There are some
# fields exposed on the Google Cloud Console that aren't available on this API.
# When reading from the API, you will not see these fields in the return value,
# though they may have been set in the Cloud Console.
# @param [String] parent
# Required. Name of billing account to list budgets under. Values
# are of the form `billingAccounts/`billingAccountId``.
# Required. Name of billing account to list budgets under. Values are of the
# form `billingAccounts/`billingAccountId``.
# @param [Fixnum] page_size
# Optional. The maximum number of budgets to return per page.
# The default and maximum value are 100.
# Optional. The maximum number of budgets to return per page. The default and
# maximum value are 100.
# @param [String] page_token
# Optional. The value returned by the last `ListBudgetsResponse` which
# indicates that this is a continuation of a prior `ListBudgets` call,
# and that the system should return the next page of data.
# Optional. The value returned by the last `ListBudgetsResponse` which indicates
# that this is a continuation of a prior `ListBudgets` call, and that the system
# should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -194,14 +191,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a budget and returns the updated budget.
# WARNING: There are some fields exposed on the Google Cloud Console that
# aren't available on this API. Budget fields that are not exposed in
# this API will not be changed by this method.
# Updates a budget and returns the updated budget. WARNING: There are some
# fields exposed on the Google Cloud Console that aren't available on this API.
# Budget fields that are not exposed in this API will not be changed by this
# method.
# @param [String] name
# Output only. Resource name of the budget.
# The resource name implies the scope of a budget. Values are of the form
# `billingAccounts/`billingAccountId`/budgets/`budgetId``.
# Output only. Resource name of the budget. The resource name implies the scope
# of a budget. Values are of the form `billingAccounts/`billingAccountId`/
# budgets/`budgetId``.
# @param [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest] google_cloud_billing_budgets_v1beta1_update_budget_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Blogger API v3
#
# The Blogger API provides access to posts, comments and pages of a
# Blogger blog.
# The Blogger API provides access to posts, comments and pages of a Blogger blog.
#
# @see https://developers.google.com/blogger/docs/3.0/getting_started
module BloggerV2
VERSION = 'V2'
REVISION = '20200405'
REVISION = '20200801'
# Manage your Blogger account
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'

View File

@ -256,8 +256,7 @@ module Google
# @return [String]
attr_accessor :photos_album_key
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or
# READER).
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER).
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role

View File

@ -22,8 +22,7 @@ module Google
module BloggerV2
# Blogger API v3
#
# The Blogger API provides access to posts, comments and pages of a
# Blogger blog.
# The Blogger API provides access to posts, comments and pages of a Blogger blog.
#
# @example
# require 'google/apis/blogger_v2'

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Blogger API v3
#
# The Blogger API provides access to posts, comments and pages of a
# Blogger blog.
# The Blogger API provides access to posts, comments and pages of a Blogger blog.
#
# @see https://developers.google.com/blogger/docs/3.0/getting_started
module BloggerV3
VERSION = 'V3'
REVISION = '20200711'
REVISION = '20200801'
# Manage your Blogger account
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'

View File

@ -256,8 +256,7 @@ module Google
# @return [String]
attr_accessor :photos_album_key
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or
# READER).
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER).
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role

View File

@ -22,8 +22,7 @@ module Google
module BloggerV3
# Blogger API v3
#
# The Blogger API provides access to posts, comments and pages of a
# Blogger blog.
# The Blogger API provides access to posts, comments and pages of a Blogger blog.
#
# @example
# require 'google/apis/blogger_v3'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/custom-search/v1/introduction
module CustomsearchV1
VERSION = 'V1'
REVISION = '20200723'
REVISION = '20200801'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -47,37 +47,30 @@ module Google
@batch_path = 'batch'
end
# Returns metadata about the search performed, metadata about the
# engine used for the search, and the search results.
# Returns metadata about the search performed, metadata about the engine used
# for the search, and the search results.
# @param [String] c2coff
# Enables or disables [Simplified and Traditional Chinese
# Search](https://developers.google.com/custom-search/docs/xml_results#
# chineseSearch).
# The default value for this parameter is 0 (zero), meaning that the feature
# is enabled. Supported values are:
# * `1`: Disabled
# * `0`: Enabled (default)
# Enables or disables [Simplified and Traditional Chinese Search](https://
# developers.google.com/custom-search/docs/xml_results#chineseSearch). The
# default value for this parameter is 0 (zero), meaning that the feature is
# enabled. Supported values are: * `1`: Disabled * `0`: Enabled (default)
# @param [String] cr
# Restricts search results to documents originating in a particular country.
# You may use [Boolean
# operators](https://developers.google.com/custom-search/docs/
# xml_results_appendices#booleanOperators)
# in the cr parameter's value.
# Google Search determines the country of a document by analyzing:
# * the top-level domain (TLD) of the document's URL
# * the geographic location of the Web server's IP address
# See the [Country Parameter
# Values](https://developers.google.com/custom-search/docs/
# xml_results_appendices#countryCollections)
# page for a list of valid values for this parameter.
# Restricts search results to documents originating in a particular country. You
# may use [Boolean operators](https://developers.google.com/custom-search/docs/
# xml_results_appendices#booleanOperators) in the cr parameter's value. Google
# Search determines the country of a document by analyzing: * the top-level
# domain (TLD) of the document's URL * the geographic location of the Web server'
# s IP address See the [Country Parameter Values](https://developers.google.com/
# custom-search/docs/xml_results_appendices#countryCollections) page for a list
# of valid values for this parameter.
# @param [String] cx
# The Programmable Search Engine ID to use for this request.
# @param [String] date_restrict
# Restricts results to URLs based on date. Supported values include:
# * `d[number]`: requests results from the specified number of past days.
# * `w[number]`: requests results from the specified number of past weeks.
# * `m[number]`: requests results from the specified number of past months.
# * `y[number]`: requests results from the specified number of past years.
# Restricts results to URLs based on date. Supported values include: * `d[number]
# `: requests results from the specified number of past days. * `w[number]`:
# requests results from the specified number of past weeks. * `m[number]`:
# requests results from the specified number of past months. * `y[number]`:
# requests results from the specified number of past years.
# @param [String] exact_terms
# Identifies a phrase that all documents in the search results must contain.
# @param [String] exclude_terms
@ -85,144 +78,80 @@ module Google
# search results.
# @param [String] file_type
# Restricts results to files of a specified extension. A list of file types
# indexable by Google can be found in Search Console [Help
# Center](https://support.google.com/webmasters/answer/35287).
# indexable by Google can be found in Search Console [Help Center](https://
# support.google.com/webmasters/answer/35287).
# @param [String] filter
# Controls turning on or off the duplicate content filter.
# * See [Automatic
# Controls turning on or off the duplicate content filter. * See [Automatic
# Filtering](https://developers.google.com/custom-search/docs/xml_results#
# automaticFiltering)
# for more information about Google's search results filters. Note that host
# crowding filtering applies only to multi-site searches.
# * By default, Google applies filtering to all search results to improve the
# quality of those results.
# Acceptable values are:
# * `0`: Turns off duplicate content filter.
# * `1`: Turns on duplicate content filter.
# automaticFiltering) for more information about Google's search results filters.
# Note that host crowding filtering applies only to multi-site searches. * By
# default, Google applies filtering to all search results to improve the quality
# of those results. Acceptable values are: * `0`: Turns off duplicate content
# filter. * `1`: Turns on duplicate content filter.
# @param [String] gl
# Geolocation of end user.
# * The `gl` parameter value is a two-letter country code. The `gl` parameter
# boosts search results whose country of origin matches the parameter value.
# See the [Country
# Codes](https://developers.google.com/custom-search/docs/xml_results_appendices#
# countryCodes)
# page for a list of valid values.
# * Specifying a `gl` parameter value should lead to more relevant results.
# This is particularly true for international customers and, even more
# Geolocation of end user. * The `gl` parameter value is a two-letter country
# code. The `gl` parameter boosts search results whose country of origin matches
# the parameter value. See the [Country Codes](https://developers.google.com/
# custom-search/docs/xml_results_appendices#countryCodes) page for a list of
# valid values. * Specifying a `gl` parameter value should lead to more relevant
# results. This is particularly true for international customers and, even more
# specifically, for customers in English- speaking countries other than the
# United States.
# @param [String] googlehost
# **Deprecated**. Use the `gl` parameter for a similar effect.
# The local Google domain (for example, google.com, google.de, or
# google.fr) to use to perform the search.
# **Deprecated**. Use the `gl` parameter for a similar effect. The local Google
# domain (for example, google.com, google.de, or google.fr) to use to perform
# the search.
# @param [String] high_range
# Specifies the ending value for a search range.
# * Use `lowRange` and `highRange` to append an inclusive search range of
# `lowRange...highRange` to the query.
# Specifies the ending value for a search range. * Use `lowRange` and `highRange`
# to append an inclusive search range of `lowRange...highRange` to the query.
# @param [String] hl
# Sets the user interface language.
# * Explicitly setting this parameter improves the performance and the
# quality of your search results.
# * See the [Interface
# Sets the user interface language. * Explicitly setting this parameter improves
# the performance and the quality of your search results. * See the [Interface
# Languages](https://developers.google.com/custom-search/docs/xml_results#
# wsInterfaceLanguages)
# section of [Internationalizing Queries and Results
# wsInterfaceLanguages) section of [Internationalizing Queries and Results
# Presentation](https://developers.google.com/custom-search/docs/xml_results#
# wsInternationalizing)
# for more information, and (Supported Interface
# Languages)[https://developers.google.com/custom-search/docs/
# xml_results_appendices#interfaceLanguages]
# for a list of supported languages.
# wsInternationalizing) for more information, and (Supported Interface Languages)
# [https://developers.google.com/custom-search/docs/xml_results_appendices#
# interfaceLanguages] for a list of supported languages.
# @param [String] hq
# Appends the specified query terms to the query, as if they were combined
# with a logical AND operator.
# Appends the specified query terms to the query, as if they were combined with
# a logical AND operator.
# @param [String] img_color_type
# Returns black and white, grayscale, transparent, or color images.
# Acceptable values are:
# * `"color"`
# * `"gray"`
# * `"mono"`: black and white
# * `"trans"`: transparent background
# Returns black and white, grayscale, transparent, or color images. Acceptable
# values are: * `"color"` * `"gray"` * `"mono"`: black and white * `"trans"`:
# transparent background
# @param [String] img_dominant_color
# Returns images of a specific dominant color. Acceptable values are:
# * `"black"`
# * `"blue"`
# * `"brown"`
# * `"gray"`
# * `"green"`
# * `"orange"`
# * `"pink"`
# * `"purple"`
# * `"red"`
# * `"teal"`
# * `"white"`
# * `"yellow"`
# Returns images of a specific dominant color. Acceptable values are: * `"black"`
# * `"blue"` * `"brown"` * `"gray"` * `"green"` * `"orange"` * `"pink"` * `"
# purple"` * `"red"` * `"teal"` * `"white"` * `"yellow"`
# @param [String] img_size
# Returns images of a specified size. Acceptable values are:
# * `"huge"`
# * `"icon"`
# * `"large"`
# * `"medium"`
# * `"small"`
# * `"xlarge"`
# * `"xxlarge"`
# Returns images of a specified size. Acceptable values are: * `"huge"` * `"icon"
# ` * `"large"` * `"medium"` * `"small"` * `"xlarge"` * `"xxlarge"`
# @param [String] img_type
# Returns images of a type. Acceptable values are:
# * `"clipart"`
# * `"face"`
# * `"lineart"`
# * `"stock"`
# * `"photo"`
# * `"animated"`
# Returns images of a type. Acceptable values are: * `"clipart"` * `"face"` * `"
# lineart"` * `"stock"` * `"photo"` * `"animated"`
# @param [String] link_site
# Specifies that all search results should contain a link to a particular
# URL.
# Specifies that all search results should contain a link to a particular URL.
# @param [String] low_range
# Specifies the starting value for a search range. Use `lowRange` and
# `highRange` to append an inclusive search range of `lowRange...highRange`
# to the query.
# Specifies the starting value for a search range. Use `lowRange` and `highRange`
# to append an inclusive search range of `lowRange...highRange` to the query.
# @param [String] lr
# Restricts the search to documents written in a particular language (e.g.,
# `lr=lang_ja`).
# Acceptable values are:
# * `"lang_ar"`: Arabic
# * `"lang_bg"`: Bulgarian
# * `"lang_ca"`: Catalan
# * `"lang_cs"`: Czech
# * `"lang_da"`: Danish
# * `"lang_de"`: German
# * `"lang_el"`: Greek
# * `"lang_en"`: English
# * `"lang_es"`: Spanish
# * `"lang_et"`: Estonian
# * `"lang_fi"`: Finnish
# * `"lang_fr"`: French
# * `"lang_hr"`: Croatian
# * `"lang_hu"`: Hungarian
# * `"lang_id"`: Indonesian
# * `"lang_is"`: Icelandic
# * `"lang_it"`: Italian
# * `"lang_iw"`: Hebrew
# * `"lang_ja"`: Japanese
# * `"lang_ko"`: Korean
# * `"lang_lt"`: Lithuanian
# * `"lang_lv"`: Latvian
# * `"lang_nl"`: Dutch
# * `"lang_no"`: Norwegian
# * `"lang_pl"`: Polish
# * `"lang_pt"`: Portuguese
# * `"lang_ro"`: Romanian
# * `"lang_ru"`: Russian
# * `"lang_sk"`: Slovak
# * `"lang_sl"`: Slovenian
# * `"lang_sr"`: Serbian
# * `"lang_sv"`: Swedish
# * `"lang_tr"`: Turkish
# * `"lang_zh-CN"`: Chinese (Simplified)
# * `"lang_zh-TW"`: Chinese (Traditional)
# Restricts the search to documents written in a particular language (e.g., `lr=
# lang_ja`). Acceptable values are: * `"lang_ar"`: Arabic * `"lang_bg"`:
# Bulgarian * `"lang_ca"`: Catalan * `"lang_cs"`: Czech * `"lang_da"`: Danish * `
# "lang_de"`: German * `"lang_el"`: Greek * `"lang_en"`: English * `"lang_es"`:
# Spanish * `"lang_et"`: Estonian * `"lang_fi"`: Finnish * `"lang_fr"`: French *
# `"lang_hr"`: Croatian * `"lang_hu"`: Hungarian * `"lang_id"`: Indonesian * `"
# lang_is"`: Icelandic * `"lang_it"`: Italian * `"lang_iw"`: Hebrew * `"lang_ja"`
# : Japanese * `"lang_ko"`: Korean * `"lang_lt"`: Lithuanian * `"lang_lv"`:
# Latvian * `"lang_nl"`: Dutch * `"lang_no"`: Norwegian * `"lang_pl"`: Polish * `
# "lang_pt"`: Portuguese * `"lang_ro"`: Romanian * `"lang_ru"`: Russian * `"
# lang_sk"`: Slovak * `"lang_sl"`: Slovenian * `"lang_sr"`: Serbian * `"lang_sv"`
# : Swedish * `"lang_tr"`: Turkish * `"lang_zh-CN"`: Chinese (Simplified) * `"
# lang_zh-TW"`: Chinese (Traditional)
# @param [Fixnum] num
# Number of search results to return.
# * Valid values are integers between 1 and 10, inclusive.
# Number of search results to return. * Valid values are integers between 1 and
# 10, inclusive.
# @param [String] or_terms
# Provides additional search terms to check for in a document, where each
# document in the search results must contain at least one of the additional
@ -233,42 +162,35 @@ module Google
# Specifies that all search results should be pages that are related to the
# specified URL.
# @param [String] rights
# Filters based on licensing. Supported values include: `cc_publicdomain`,
# `cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
# combinations of these. See [typical
# combinations](https://wiki.creativecommons.org/wiki/CC_Search_integration).
# Filters based on licensing. Supported values include: `cc_publicdomain`, `
# cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
# combinations of these. See [typical combinations](https://wiki.creativecommons.
# org/wiki/CC_Search_integration).
# @param [String] safe
# Search safety level. Acceptable values are:
# * `"active"`: Enables SafeSearch filtering.
# * `"off"`: Disables SafeSearch filtering. (default)
# Search safety level. Acceptable values are: * `"active"`: Enables SafeSearch
# filtering. * `"off"`: Disables SafeSearch filtering. (default)
# @param [String] search_type
# Specifies the search type: `image`. If unspecified, results are limited to
# webpages.
# Acceptable values are:
# * `"image"`: custom image search.
# webpages. Acceptable values are: * `"image"`: custom image search.
# @param [String] site_search
# Specifies a given site which should always be included or excluded from
# results (see `siteSearchFilter` parameter, below).
# @param [String] site_search_filter
# Controls whether to include or exclude results from the site named in the
# `siteSearch` parameter.
# Acceptable values are:
# * `"e"`: exclude
# * `"i"`: include
# Controls whether to include or exclude results from the site named in the `
# siteSearch` parameter. Acceptable values are: * `"e"`: exclude * `"i"`:
# include
# @param [String] sort
# The sort expression to apply to the results. The sort parameter specifies
# that the results be sorted according to the specified expression i.e. sort
# by date.
# [Example:
# sort=date](https://developers.google.com/custom-search/docs/structured_search#
# sort-by-attribute).
# The sort expression to apply to the results. The sort parameter specifies that
# the results be sorted according to the specified expression i.e. sort by date.
# [Example: sort=date](https://developers.google.com/custom-search/docs/
# structured_search#sort-by-attribute).
# @param [Fixnum] start
# The index of the first result to return. The default number of results per
# page is 10, so `&start=11` would start at the top of the second page of
# results. **Note**: The JSON API will never return more than 100 results,
# even if more than 100 documents match the query, so setting the sum of
# `start + num` to a number greater than 100 will produce an error. Also note
# that the maximum value for `num` is 10.
# results. **Note**: The JSON API will never return more than 100 results, even
# if more than 100 documents match the query, so setting the sum of `start + num`
# to a number greater than 100 will produce an error. Also note that the
# maximum value for `num` is 10.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -326,38 +248,30 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns metadata about the search performed, metadata about the
# engine used for the search, and the search results. Uses a small set
# of url patterns.
# Returns metadata about the search performed, metadata about the engine used
# for the search, and the search results. Uses a small set of url patterns.
# @param [String] c2coff
# Enables or disables [Simplified and Traditional Chinese
# Search](https://developers.google.com/custom-search/docs/xml_results#
# chineseSearch).
# The default value for this parameter is 0 (zero), meaning that the feature
# is enabled. Supported values are:
# * `1`: Disabled
# * `0`: Enabled (default)
# Enables or disables [Simplified and Traditional Chinese Search](https://
# developers.google.com/custom-search/docs/xml_results#chineseSearch). The
# default value for this parameter is 0 (zero), meaning that the feature is
# enabled. Supported values are: * `1`: Disabled * `0`: Enabled (default)
# @param [String] cr
# Restricts search results to documents originating in a particular country.
# You may use [Boolean
# operators](https://developers.google.com/custom-search/docs/
# xml_results_appendices#booleanOperators)
# in the cr parameter's value.
# Google Search determines the country of a document by analyzing:
# * the top-level domain (TLD) of the document's URL
# * the geographic location of the Web server's IP address
# See the [Country Parameter
# Values](https://developers.google.com/custom-search/docs/
# xml_results_appendices#countryCollections)
# page for a list of valid values for this parameter.
# Restricts search results to documents originating in a particular country. You
# may use [Boolean operators](https://developers.google.com/custom-search/docs/
# xml_results_appendices#booleanOperators) in the cr parameter's value. Google
# Search determines the country of a document by analyzing: * the top-level
# domain (TLD) of the document's URL * the geographic location of the Web server'
# s IP address See the [Country Parameter Values](https://developers.google.com/
# custom-search/docs/xml_results_appendices#countryCollections) page for a list
# of valid values for this parameter.
# @param [String] cx
# The Programmable Search Engine ID to use for this request.
# @param [String] date_restrict
# Restricts results to URLs based on date. Supported values include:
# * `d[number]`: requests results from the specified number of past days.
# * `w[number]`: requests results from the specified number of past weeks.
# * `m[number]`: requests results from the specified number of past months.
# * `y[number]`: requests results from the specified number of past years.
# Restricts results to URLs based on date. Supported values include: * `d[number]
# `: requests results from the specified number of past days. * `w[number]`:
# requests results from the specified number of past weeks. * `m[number]`:
# requests results from the specified number of past months. * `y[number]`:
# requests results from the specified number of past years.
# @param [String] exact_terms
# Identifies a phrase that all documents in the search results must contain.
# @param [String] exclude_terms
@ -365,144 +279,80 @@ module Google
# search results.
# @param [String] file_type
# Restricts results to files of a specified extension. A list of file types
# indexable by Google can be found in Search Console [Help
# Center](https://support.google.com/webmasters/answer/35287).
# indexable by Google can be found in Search Console [Help Center](https://
# support.google.com/webmasters/answer/35287).
# @param [String] filter
# Controls turning on or off the duplicate content filter.
# * See [Automatic
# Controls turning on or off the duplicate content filter. * See [Automatic
# Filtering](https://developers.google.com/custom-search/docs/xml_results#
# automaticFiltering)
# for more information about Google's search results filters. Note that host
# crowding filtering applies only to multi-site searches.
# * By default, Google applies filtering to all search results to improve the
# quality of those results.
# Acceptable values are:
# * `0`: Turns off duplicate content filter.
# * `1`: Turns on duplicate content filter.
# automaticFiltering) for more information about Google's search results filters.
# Note that host crowding filtering applies only to multi-site searches. * By
# default, Google applies filtering to all search results to improve the quality
# of those results. Acceptable values are: * `0`: Turns off duplicate content
# filter. * `1`: Turns on duplicate content filter.
# @param [String] gl
# Geolocation of end user.
# * The `gl` parameter value is a two-letter country code. The `gl` parameter
# boosts search results whose country of origin matches the parameter value.
# See the [Country
# Codes](https://developers.google.com/custom-search/docs/xml_results_appendices#
# countryCodes)
# page for a list of valid values.
# * Specifying a `gl` parameter value should lead to more relevant results.
# This is particularly true for international customers and, even more
# Geolocation of end user. * The `gl` parameter value is a two-letter country
# code. The `gl` parameter boosts search results whose country of origin matches
# the parameter value. See the [Country Codes](https://developers.google.com/
# custom-search/docs/xml_results_appendices#countryCodes) page for a list of
# valid values. * Specifying a `gl` parameter value should lead to more relevant
# results. This is particularly true for international customers and, even more
# specifically, for customers in English- speaking countries other than the
# United States.
# @param [String] googlehost
# **Deprecated**. Use the `gl` parameter for a similar effect.
# The local Google domain (for example, google.com, google.de, or
# google.fr) to use to perform the search.
# **Deprecated**. Use the `gl` parameter for a similar effect. The local Google
# domain (for example, google.com, google.de, or google.fr) to use to perform
# the search.
# @param [String] high_range
# Specifies the ending value for a search range.
# * Use `lowRange` and `highRange` to append an inclusive search range of
# `lowRange...highRange` to the query.
# Specifies the ending value for a search range. * Use `lowRange` and `highRange`
# to append an inclusive search range of `lowRange...highRange` to the query.
# @param [String] hl
# Sets the user interface language.
# * Explicitly setting this parameter improves the performance and the
# quality of your search results.
# * See the [Interface
# Sets the user interface language. * Explicitly setting this parameter improves
# the performance and the quality of your search results. * See the [Interface
# Languages](https://developers.google.com/custom-search/docs/xml_results#
# wsInterfaceLanguages)
# section of [Internationalizing Queries and Results
# wsInterfaceLanguages) section of [Internationalizing Queries and Results
# Presentation](https://developers.google.com/custom-search/docs/xml_results#
# wsInternationalizing)
# for more information, and (Supported Interface
# Languages)[https://developers.google.com/custom-search/docs/
# xml_results_appendices#interfaceLanguages]
# for a list of supported languages.
# wsInternationalizing) for more information, and (Supported Interface Languages)
# [https://developers.google.com/custom-search/docs/xml_results_appendices#
# interfaceLanguages] for a list of supported languages.
# @param [String] hq
# Appends the specified query terms to the query, as if they were combined
# with a logical AND operator.
# Appends the specified query terms to the query, as if they were combined with
# a logical AND operator.
# @param [String] img_color_type
# Returns black and white, grayscale, transparent, or color images.
# Acceptable values are:
# * `"color"`
# * `"gray"`
# * `"mono"`: black and white
# * `"trans"`: transparent background
# Returns black and white, grayscale, transparent, or color images. Acceptable
# values are: * `"color"` * `"gray"` * `"mono"`: black and white * `"trans"`:
# transparent background
# @param [String] img_dominant_color
# Returns images of a specific dominant color. Acceptable values are:
# * `"black"`
# * `"blue"`
# * `"brown"`
# * `"gray"`
# * `"green"`
# * `"orange"`
# * `"pink"`
# * `"purple"`
# * `"red"`
# * `"teal"`
# * `"white"`
# * `"yellow"`
# Returns images of a specific dominant color. Acceptable values are: * `"black"`
# * `"blue"` * `"brown"` * `"gray"` * `"green"` * `"orange"` * `"pink"` * `"
# purple"` * `"red"` * `"teal"` * `"white"` * `"yellow"`
# @param [String] img_size
# Returns images of a specified size. Acceptable values are:
# * `"huge"`
# * `"icon"`
# * `"large"`
# * `"medium"`
# * `"small"`
# * `"xlarge"`
# * `"xxlarge"`
# Returns images of a specified size. Acceptable values are: * `"huge"` * `"icon"
# ` * `"large"` * `"medium"` * `"small"` * `"xlarge"` * `"xxlarge"`
# @param [String] img_type
# Returns images of a type. Acceptable values are:
# * `"clipart"`
# * `"face"`
# * `"lineart"`
# * `"stock"`
# * `"photo"`
# * `"animated"`
# Returns images of a type. Acceptable values are: * `"clipart"` * `"face"` * `"
# lineart"` * `"stock"` * `"photo"` * `"animated"`
# @param [String] link_site
# Specifies that all search results should contain a link to a particular
# URL.
# Specifies that all search results should contain a link to a particular URL.
# @param [String] low_range
# Specifies the starting value for a search range. Use `lowRange` and
# `highRange` to append an inclusive search range of `lowRange...highRange`
# to the query.
# Specifies the starting value for a search range. Use `lowRange` and `highRange`
# to append an inclusive search range of `lowRange...highRange` to the query.
# @param [String] lr
# Restricts the search to documents written in a particular language (e.g.,
# `lr=lang_ja`).
# Acceptable values are:
# * `"lang_ar"`: Arabic
# * `"lang_bg"`: Bulgarian
# * `"lang_ca"`: Catalan
# * `"lang_cs"`: Czech
# * `"lang_da"`: Danish
# * `"lang_de"`: German
# * `"lang_el"`: Greek
# * `"lang_en"`: English
# * `"lang_es"`: Spanish
# * `"lang_et"`: Estonian
# * `"lang_fi"`: Finnish
# * `"lang_fr"`: French
# * `"lang_hr"`: Croatian
# * `"lang_hu"`: Hungarian
# * `"lang_id"`: Indonesian
# * `"lang_is"`: Icelandic
# * `"lang_it"`: Italian
# * `"lang_iw"`: Hebrew
# * `"lang_ja"`: Japanese
# * `"lang_ko"`: Korean
# * `"lang_lt"`: Lithuanian
# * `"lang_lv"`: Latvian
# * `"lang_nl"`: Dutch
# * `"lang_no"`: Norwegian
# * `"lang_pl"`: Polish
# * `"lang_pt"`: Portuguese
# * `"lang_ro"`: Romanian
# * `"lang_ru"`: Russian
# * `"lang_sk"`: Slovak
# * `"lang_sl"`: Slovenian
# * `"lang_sr"`: Serbian
# * `"lang_sv"`: Swedish
# * `"lang_tr"`: Turkish
# * `"lang_zh-CN"`: Chinese (Simplified)
# * `"lang_zh-TW"`: Chinese (Traditional)
# Restricts the search to documents written in a particular language (e.g., `lr=
# lang_ja`). Acceptable values are: * `"lang_ar"`: Arabic * `"lang_bg"`:
# Bulgarian * `"lang_ca"`: Catalan * `"lang_cs"`: Czech * `"lang_da"`: Danish * `
# "lang_de"`: German * `"lang_el"`: Greek * `"lang_en"`: English * `"lang_es"`:
# Spanish * `"lang_et"`: Estonian * `"lang_fi"`: Finnish * `"lang_fr"`: French *
# `"lang_hr"`: Croatian * `"lang_hu"`: Hungarian * `"lang_id"`: Indonesian * `"
# lang_is"`: Icelandic * `"lang_it"`: Italian * `"lang_iw"`: Hebrew * `"lang_ja"`
# : Japanese * `"lang_ko"`: Korean * `"lang_lt"`: Lithuanian * `"lang_lv"`:
# Latvian * `"lang_nl"`: Dutch * `"lang_no"`: Norwegian * `"lang_pl"`: Polish * `
# "lang_pt"`: Portuguese * `"lang_ro"`: Romanian * `"lang_ru"`: Russian * `"
# lang_sk"`: Slovak * `"lang_sl"`: Slovenian * `"lang_sr"`: Serbian * `"lang_sv"`
# : Swedish * `"lang_tr"`: Turkish * `"lang_zh-CN"`: Chinese (Simplified) * `"
# lang_zh-TW"`: Chinese (Traditional)
# @param [Fixnum] num
# Number of search results to return.
# * Valid values are integers between 1 and 10, inclusive.
# Number of search results to return. * Valid values are integers between 1 and
# 10, inclusive.
# @param [String] or_terms
# Provides additional search terms to check for in a document, where each
# document in the search results must contain at least one of the additional
@ -513,42 +363,35 @@ module Google
# Specifies that all search results should be pages that are related to the
# specified URL.
# @param [String] rights
# Filters based on licensing. Supported values include: `cc_publicdomain`,
# `cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
# combinations of these. See [typical
# combinations](https://wiki.creativecommons.org/wiki/CC_Search_integration).
# Filters based on licensing. Supported values include: `cc_publicdomain`, `
# cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
# combinations of these. See [typical combinations](https://wiki.creativecommons.
# org/wiki/CC_Search_integration).
# @param [String] safe
# Search safety level. Acceptable values are:
# * `"active"`: Enables SafeSearch filtering.
# * `"off"`: Disables SafeSearch filtering. (default)
# Search safety level. Acceptable values are: * `"active"`: Enables SafeSearch
# filtering. * `"off"`: Disables SafeSearch filtering. (default)
# @param [String] search_type
# Specifies the search type: `image`. If unspecified, results are limited to
# webpages.
# Acceptable values are:
# * `"image"`: custom image search.
# webpages. Acceptable values are: * `"image"`: custom image search.
# @param [String] site_search
# Specifies a given site which should always be included or excluded from
# results (see `siteSearchFilter` parameter, below).
# @param [String] site_search_filter
# Controls whether to include or exclude results from the site named in the
# `siteSearch` parameter.
# Acceptable values are:
# * `"e"`: exclude
# * `"i"`: include
# Controls whether to include or exclude results from the site named in the `
# siteSearch` parameter. Acceptable values are: * `"e"`: exclude * `"i"`:
# include
# @param [String] sort
# The sort expression to apply to the results. The sort parameter specifies
# that the results be sorted according to the specified expression i.e. sort
# by date.
# [Example:
# sort=date](https://developers.google.com/custom-search/docs/structured_search#
# sort-by-attribute).
# The sort expression to apply to the results. The sort parameter specifies that
# the results be sorted according to the specified expression i.e. sort by date.
# [Example: sort=date](https://developers.google.com/custom-search/docs/
# structured_search#sort-by-attribute).
# @param [Fixnum] start
# The index of the first result to return. The default number of results per
# page is 10, so `&start=11` would start at the top of the second page of
# results. **Note**: The JSON API will never return more than 100 results,
# even if more than 100 documents match the query, so setting the sum of
# `start + num` to a number greater than 100 will produce an error. Also note
# that the maximum value for `num` is 10.
# results. **Note**: The JSON API will never return more than 100 results, even
# if more than 100 documents match the query, so setting the sum of `start + num`
# to a number greater than 100 will produce an error. Also note that the
# maximum value for `num` is 10.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -0,0 +1,43 @@
# 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/datafusion_v1/service.rb'
require 'google/apis/datafusion_v1/classes.rb'
require 'google/apis/datafusion_v1/representations.rb'
module Google
module Apis
# Cloud Data Fusion API
#
# Cloud Data Fusion is a fully-managed, cloud native, enterprise data
# integration service for
# quickly building and managing data pipelines. It provides a graphical
# interface to increase
# time efficiency and reduce complexity, and allows business users,
# developers, and data
# scientists to easily and reliably build scalable data integration
# solutions to cleanse,
# prepare, blend, transfer and transform data without having to wrestle with
# infrastructure.
#
# @see https://cloud.google.com/data-fusion/docs
module DatafusionV1
VERSION = 'V1'
REVISION = '20200609'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,390 @@
# 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 DatafusionV1
class Accelerator
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAvailableVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestartInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Accelerator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :accelerator_type, as: 'acceleratorType'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DatafusionV1::AuditLogConfig, decorator: Google::Apis::DatafusionV1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::DatafusionV1::Expr, decorator: Google::Apis::DatafusionV1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accelerators, as: 'accelerators', class: Google::Apis::DatafusionV1::Accelerator, decorator: Google::Apis::DatafusionV1::Accelerator::Representation
property :api_endpoint, as: 'apiEndpoint'
collection :available_version, as: 'availableVersion', class: Google::Apis::DatafusionV1::Version, decorator: Google::Apis::DatafusionV1::Version::Representation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :enable_stackdriver_logging, as: 'enableStackdriverLogging'
property :enable_stackdriver_monitoring, as: 'enableStackdriverMonitoring'
property :gcs_bucket, as: 'gcsBucket'
hash :labels, as: 'labels'
property :name, as: 'name'
property :network_config, as: 'networkConfig', class: Google::Apis::DatafusionV1::NetworkConfig, decorator: Google::Apis::DatafusionV1::NetworkConfig::Representation
hash :options, as: 'options'
property :private_instance, as: 'privateInstance'
property :service_account, as: 'serviceAccount'
property :service_endpoint, as: 'serviceEndpoint'
property :state, as: 'state'
property :state_message, as: 'stateMessage'
property :type, as: 'type'
property :update_time, as: 'updateTime'
property :version, as: 'version'
property :zone, as: 'zone'
end
end
class ListAvailableVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :available_versions, as: 'availableVersions', class: Google::Apis::DatafusionV1::Version, decorator: Google::Apis::DatafusionV1::Version::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::DatafusionV1::Instance, decorator: Google::Apis::DatafusionV1::Instance::Representation
property :next_page_token, as: 'nextPageToken'
collection :unreachable, as: 'unreachable'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::DatafusionV1::Location, decorator: Google::Apis::DatafusionV1::Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DatafusionV1::Operation, decorator: Google::Apis::DatafusionV1::Operation::Representation
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
property :name, as: 'name'
end
end
class NetworkConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_allocation, as: 'ipAllocation'
property :network, as: 'network'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::DatafusionV1::Status, decorator: Google::Apis::DatafusionV1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :requested_cancellation, as: 'requestedCancellation'
property :status_detail, as: 'statusDetail'
property :target, as: 'target'
property :verb, as: 'verb'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DatafusionV1::AuditConfig, decorator: Google::Apis::DatafusionV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::DatafusionV1::Binding, decorator: Google::Apis::DatafusionV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class RestartInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::DatafusionV1::Policy, decorator: Google::Apis::DatafusionV1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_version, as: 'defaultVersion'
property :version_number, as: 'versionNumber'
end
end
end
end
end

View File

@ -0,0 +1,680 @@
# 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 DatafusionV1
# Cloud Data Fusion API
#
# Cloud Data Fusion is a fully-managed, cloud native, enterprise data
# integration service for
# quickly building and managing data pipelines. It provides a graphical
# interface to increase
# time efficiency and reduce complexity, and allows business users,
# developers, and data
# scientists to easily and reliably build scalable data integration
# solutions to cleanse,
# prepare, blend, transfer and transform data without having to wrestle with
# infrastructure.
#
# @example
# require 'google/apis/datafusion_v1'
#
# Datafusion = Google::Apis::DatafusionV1 # Alias the module
# service = Datafusion::DataFusionService.new
#
# @see https://cloud.google.com/data-fusion/docs
class DataFusionService < 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://datafusion.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets information about a location.
# @param [String] name
# Resource name for the location.
# @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::DatafusionV1::Location] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Location]
#
# @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(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::DatafusionV1::Location::Representation
command.response_class = Google::Apis::DatafusionV1::Location
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists information about the supported locations for this service.
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet
# revealed.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DatafusionV1::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::ListLocationsResponse]
#
# @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_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/locations', options)
command.response_representation = Google::Apis::DatafusionV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::DatafusionV1::ListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new Data Fusion instance in the specified project and location.
# @param [String] parent
# The instance's project and location in the format
# projects/`project`/locations/`location`.
# @param [Google::Apis::DatafusionV1::Instance] instance_object
# @param [String] instance_id
# The name of the instance to create.
# @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::DatafusionV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
command.request_representation = Google::Apis::DatafusionV1::Instance::Representation
command.request_object = instance_object
command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
command.response_class = Google::Apis::DatafusionV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['instanceId'] = instance_id unless instance_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a single Date Fusion instance.
# @param [String] name
# The instance resource name in the format
# projects/`project`/locations/`location`/instances/`instance`
# @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::DatafusionV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
command.response_class = Google::Apis::DatafusionV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details of a single Data Fusion instance.
# @param [String] name
# The instance resource name in the format
# projects/`project`/locations/`location`/instances/`instance`.
# @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::DatafusionV1::Instance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Instance]
#
# @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_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::DatafusionV1::Instance::Representation
command.response_class = Google::Apis::DatafusionV1::Instance
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
# 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.
# @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).
# @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::DatafusionV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Policy]
#
# @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_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::DatafusionV1::Policy::Representation
command.response_class = Google::Apis::DatafusionV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists Data Fusion instances in the specified project and location.
# @param [String] parent
# The project and location for which to retrieve instance information
# in the format projects/`project`/locations/`location`. If the location is
# specified as '-' (wildcard), then all regions available to the project
# are queried, and the results are aggregated.
# @param [String] filter
# List filter.
# @param [String] order_by
# Sort results. Supported values are "name", "name desc", or "" (unsorted).
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value to use if there are additional
# results to retrieve for this list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DatafusionV1::ListInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::ListInstancesResponse]
#
# @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_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
command.response_representation = Google::Apis::DatafusionV1::ListInstancesResponse::Representation
command.response_class = Google::Apis::DatafusionV1::ListInstancesResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a single Data Fusion instance.
# @param [String] name
# Output only. The name of this instance is in the form of
# projects/`project`/locations/`location`/instances/`instance`.
# @param [Google::Apis::DatafusionV1::Instance] instance_object
# @param [String] update_mask
# Field mask is used to specify the fields that the update will overwrite
# in an instance resource. The fields specified in the update_mask are
# relative to the resource, not the full request.
# A field will be overwritten if it is in the mask.
# If the user does not provide a mask, all the supported fields (labels,
# options, and version currently) will be overwritten.
# @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::DatafusionV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::DatafusionV1::Instance::Representation
command.request_object = instance_object
command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
command.response_class = Google::Apis::DatafusionV1::Operation
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
# Restart a single Data Fusion instance.
# At the end of an operation instance is fully restarted.
# @param [String] name
# Name of the Data Fusion instance which need to be restarted in the form of
# projects/`project`/locations/`location`/instances/`instance`
# @param [Google::Apis::DatafusionV1::RestartInstanceRequest] restart_instance_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::DatafusionV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def restart_instance(name, restart_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:restart', options)
command.request_representation = Google::Apis::DatafusionV1::RestartInstanceRequest::Representation
command.request_object = restart_instance_request_object
command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
command.response_class = Google::Apis::DatafusionV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# 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.
# @param [Google::Apis::DatafusionV1::SetIamPolicyRequest] set_iam_policy_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::DatafusionV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DatafusionV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DatafusionV1::Policy::Representation
command.response_class = Google::Apis::DatafusionV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns 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.
# @param [Google::Apis::DatafusionV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DatafusionV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DatafusionV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DatafusionV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DatafusionV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. 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.
# @param [Google::Apis::DatafusionV1::CancelOperationRequest] cancel_operation_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DatafusionV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.request_representation = Google::Apis::DatafusionV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::DatafusionV1::Empty::Representation
command.response_class = Google::Apis::DatafusionV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# 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
# 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::DatafusionV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::DatafusionV1::Empty::Representation
command.response_class = Google::Apis::DatafusionV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DatafusionV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
command.response_class = Google::Apis::DatafusionV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DatafusionV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/operations', options)
command.response_representation = Google::Apis::DatafusionV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::DatafusionV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists possible versions for Data Fusion instances in the specified project
# and location.
# @param [String] parent
# Required. The project and location for which to retrieve instance information
# in the format projects/`project`/locations/`location`.
# @param [Boolean] latest_patch_only
# Whether or not to return the latest patch of every available minor version.
# If true, only the latest patch will be returned. Ex. if allowed versions is
# [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0]
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value to use if there are additional
# results to retrieve for this list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DatafusionV1::ListAvailableVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatafusionV1::ListAvailableVersionsResponse]
#
# @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_project_location_versions(parent, latest_patch_only: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/versions', options)
command.response_representation = Google::Apis::DatafusionV1::ListAvailableVersionsResponse::Representation
command.response_class = Google::Apis::DatafusionV1::ListAvailableVersionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['latestPatchOnly'] = latest_patch_only unless latest_patch_only.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/domains/rdap/
module DomainsrdapV1
VERSION = 'V1'
REVISION = '20200218'
REVISION = '20200803'
end
end
end

View File

@ -23,34 +23,21 @@ module Google
module DomainsrdapV1
# Message that represents an arbitrary HTTP body. It should only be used for
# payload formats that can't be represented as JSON, such as raw binary or
# an HTML page.
# This message can be used both in streaming and non-streaming API methods in
# the request as well as the response.
# It can be used as a top-level request field, which is convenient if one
# wants to extract parameters from either the URL or HTTP template into the
# request fields and also want access to the raw HTTP body.
# Example:
# message GetResourceRequest `
# // A unique request id.
# string request_id = 1;
# // The raw HTTP body is bound to this field.
# google.api.HttpBody http_body = 2;
# `
# service ResourceService `
# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
# rpc UpdateResource(google.api.HttpBody) returns
# (google.protobuf.Empty);
# `
# Example with streaming methods:
# service CaldavService `
# rpc GetCalendar(stream google.api.HttpBody)
# returns (stream google.api.HttpBody);
# rpc UpdateCalendar(stream google.api.HttpBody)
# returns (stream google.api.HttpBody);
# `
# Use of this type only changes how the request and response bodies are
# handled, all other features will continue to work unchanged.
# payload formats that can't be represented as JSON, such as raw binary or an
# HTML page. This message can be used both in streaming and non-streaming API
# methods in the request as well as the response. It can be used as a top-level
# request field, which is convenient if one wants to extract parameters from
# either the URL or HTTP template into the request fields and also want access
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
# only changes how the request and response bodies are handled, all other
# features will continue to work unchanged.
class HttpBody
include Google::Apis::Core::Hashable
@ -65,8 +52,8 @@ module Google
# @return [String]
attr_accessor :data
# Application specific response metadata. Must be set in the first response
# for streaming APIs.
# Application specific response metadata. Must be set in the first response for
# streaming APIs.
# Corresponds to the JSON property `extensions`
# @return [Array<Hash<String,Object>>]
attr_accessor :extensions
@ -83,8 +70,8 @@ module Google
end
end
# Links object defined in [section 4.2 of RFC
# 7483](https://tools.ietf.org/html/rfc7483#section-4.2).
# Links object defined in [section 4.2 of RFC 7483](https://tools.ietf.org/html/
# rfc7483#section-4.2).
class Link
include Google::Apis::Core::Hashable
@ -139,8 +126,8 @@ module Google
end
end
# Notices object defined in [section 4.3 of RFC
# 7483](https://tools.ietf.org/html/rfc7483#section-4.3).
# Notices object defined in [section 4.3 of RFC 7483](https://tools.ietf.org/
# html/rfc7483#section-4.3).
class Notice
include Google::Apis::Core::Hashable
@ -159,11 +146,10 @@ module Google
# @return [String]
attr_accessor :title
# Type values defined in [section 10.2.1 of RFC
# 7483](https://tools.ietf.org/html/rfc7483#section-10.2.1) specific to a
# whole response: "result set truncated due to authorization", "result set
# truncated due to excessive load", "result set truncated due to
# unexplainable reasons".
# Type values defined in [section 10.2.1 of RFC 7483](https://tools.ietf.org/
# html/rfc7483#section-10.2.1) specific to a whole response: "result set
# truncated due to authorization", "result set truncated due to excessive load",
# "result set truncated due to unexplainable reasons".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -196,40 +182,27 @@ module Google
attr_accessor :error_code
# Message that represents an arbitrary HTTP body. It should only be used for
# payload formats that can't be represented as JSON, such as raw binary or
# an HTML page.
# This message can be used both in streaming and non-streaming API methods in
# the request as well as the response.
# It can be used as a top-level request field, which is convenient if one
# wants to extract parameters from either the URL or HTTP template into the
# request fields and also want access to the raw HTTP body.
# Example:
# message GetResourceRequest `
# // A unique request id.
# string request_id = 1;
# // The raw HTTP body is bound to this field.
# google.api.HttpBody http_body = 2;
# `
# service ResourceService `
# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
# rpc UpdateResource(google.api.HttpBody) returns
# (google.protobuf.Empty);
# `
# Example with streaming methods:
# service CaldavService `
# rpc GetCalendar(stream google.api.HttpBody)
# returns (stream google.api.HttpBody);
# rpc UpdateCalendar(stream google.api.HttpBody)
# returns (stream google.api.HttpBody);
# `
# Use of this type only changes how the request and response bodies are
# handled, all other features will continue to work unchanged.
# payload formats that can't be represented as JSON, such as raw binary or an
# HTML page. This message can be used both in streaming and non-streaming API
# methods in the request as well as the response. It can be used as a top-level
# request field, which is convenient if one wants to extract parameters from
# either the URL or HTTP template into the request fields and also want access
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
# only changes how the request and response bodies are handled, all other
# features will continue to work unchanged.
# Corresponds to the JSON property `jsonResponse`
# @return [Google::Apis::DomainsrdapV1::HttpBody]
attr_accessor :json_response
# Error language code. Error response info fields are defined in [section 6
# of RFC 7483](https://tools.ietf.org/html/rfc7483#section-6).
# Error language code. Error response info fields are defined in [section 6 of
# RFC 7483](https://tools.ietf.org/html/rfc7483#section-6).
# Corresponds to the JSON property `lang`
# @return [String]
attr_accessor :lang

View File

@ -47,8 +47,8 @@ module Google
@batch_path = 'batch'
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] autnum_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -107,8 +107,8 @@ module Google
execute_or_queue_command(command, &block)
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] entity_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -137,8 +137,8 @@ module Google
execute_or_queue_command(command, &block)
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] ip_id
# @param [String] ip_id1
# @param [String] fields
@ -169,8 +169,8 @@ module Google
execute_or_queue_command(command, &block)
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] nameserver_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -199,8 +199,8 @@ module Google
execute_or_queue_command(command, &block)
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -227,8 +227,8 @@ module Google
execute_or_queue_command(command, &block)
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -282,8 +282,8 @@ module Google
execute_or_queue_command(command, &block)
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -310,8 +310,8 @@ module Google
execute_or_queue_command(command, &block)
end
# The RDAP API recognizes this command from the RDAP specification but
# does not support it. The response is a formatted 501 error.
# The RDAP API recognizes this command from the RDAP specification but does not
# support it. The response is a formatted 501 error.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/fact-check/tools/api/
module FactchecktoolsV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200215'
REVISION = '20200801'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -73,7 +73,7 @@ module Google
# @return [String]
attr_accessor :job_title
# A person or organization stating the claim. For instance, "John Doe".<br>
# A person or organization stating the claim. For instance, "John Doe".
# Corresponds to `ClaimReview.itemReviewed.author.name`.
# Corresponds to the JSON property `name`
# @return [String]
@ -101,8 +101,7 @@ module Google
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
include Google::Apis::Core::Hashable
# For numeric ratings, the best value possible in the scale from worst to
# best.<br>
# For numeric ratings, the best value possible in the scale from worst to best.
# Corresponds to `ClaimReview.reviewRating.bestRating`.
# Corresponds to the JSON property `bestRating`
# @return [Fixnum]
@ -119,20 +118,18 @@ module Google
attr_accessor :rating_explanation
# A numeric rating of this claim, in the range worstRating — bestRating
# inclusive.<br>
# Corresponds to `ClaimReview.reviewRating.ratingValue`.
# inclusive. Corresponds to `ClaimReview.reviewRating.ratingValue`.
# Corresponds to the JSON property `ratingValue`
# @return [Fixnum]
attr_accessor :rating_value
# The truthfulness rating as a human-readible short word or phrase.<br>
# Corresponds to `ClaimReview.reviewRating.alternateName`.
# The truthfulness rating as a human-readible short word or phrase. Corresponds
# to `ClaimReview.reviewRating.alternateName`.
# Corresponds to the JSON property `textualRating`
# @return [String]
attr_accessor :textual_rating
# For numeric ratings, the worst value possible in the scale from worst to
# best.<br>
# For numeric ratings, the worst value possible in the scale from worst to best.
# Corresponds to `ClaimReview.reviewRating.worstRating`.
# Corresponds to the JSON property `worstRating`
# @return [Fixnum]
@ -211,8 +208,8 @@ module Google
# @return [String]
attr_accessor :image_url
# Name of the organization that is publishing the fact check.<br>
# Corresponds to `ClaimReview.author.name`.
# Name of the organization that is publishing the fact check. Corresponds to `
# ClaimReview.author.name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -228,16 +225,15 @@ module Google
end
end
# Fields for an individual `ClaimReview` element.
# Except for sub-messages that group fields together, each of these fields
# correspond those in https://schema.org/ClaimReview. We list the precise
# mapping for each field.
# Fields for an individual `ClaimReview` element. Except for sub-messages that
# group fields together, each of these fields correspond those in https://schema.
# org/ClaimReview. We list the precise mapping for each field.
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup
include Google::Apis::Core::Hashable
# A list of links to works in which this claim appears, aside from the one
# specified in `claim_first_appearance`.<br>
# Corresponds to `ClaimReview.itemReviewed[@type=Claim].appearance.url`.
# specified in `claim_first_appearance`. Corresponds to `ClaimReview.
# itemReviewed[@type=Claim].appearance.url`.
# Corresponds to the JSON property `claimAppearances`
# @return [Array<String>]
attr_accessor :claim_appearances
@ -247,26 +243,26 @@ module Google
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor]
attr_accessor :claim_author
# The date when the claim was made or entered public discourse.<br>
# Corresponds to `ClaimReview.itemReviewed.datePublished`.
# The date when the claim was made or entered public discourse. Corresponds to `
# ClaimReview.itemReviewed.datePublished`.
# Corresponds to the JSON property `claimDate`
# @return [String]
attr_accessor :claim_date
# A link to a work in which this claim first appears.<br>
# Corresponds to `ClaimReview.itemReviewed[@type=Claim].firstAppearance.url`.
# A link to a work in which this claim first appears. Corresponds to `
# ClaimReview.itemReviewed[@type=Claim].firstAppearance.url`.
# Corresponds to the JSON property `claimFirstAppearance`
# @return [String]
attr_accessor :claim_first_appearance
# The location where this claim was made.<br>
# Corresponds to `ClaimReview.itemReviewed.name`.
# The location where this claim was made. Corresponds to `ClaimReview.
# itemReviewed.name`.
# Corresponds to the JSON property `claimLocation`
# @return [String]
attr_accessor :claim_location
# A short summary of the claim being evaluated.<br>
# Corresponds to `ClaimReview.claimReviewed`.
# A short summary of the claim being evaluated. Corresponds to `ClaimReview.
# claimReviewed`.
# Corresponds to the JSON property `claimReviewed`
# @return [String]
attr_accessor :claim_reviewed
@ -278,7 +274,7 @@ module Google
# This field is optional, and will default to the page URL. We provide this
# field to allow you the override the default value, but the only permitted
# override is the page URL plus an optional anchor link ("page jump").<br>
# override is the page URL plus an optional anchor link ("page jump").
# Corresponds to `ClaimReview.url`
# Corresponds to the JSON property `url`
# @return [String]
@ -310,32 +306,30 @@ module Google
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor]
attr_accessor :claim_review_author
# A list of individual claim reviews for this page.
# Each item in the list corresponds to one `ClaimReview` element.
# A list of individual claim reviews for this page. Each item in the list
# corresponds to one `ClaimReview` element.
# Corresponds to the JSON property `claimReviewMarkups`
# @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup>]
attr_accessor :claim_review_markups
# The name of this `ClaimReview` markup page resource, in the form of
# `pages/`page_id``. Except for update requests, this field is output-only
# and should not be set by the user.
# The name of this `ClaimReview` markup page resource, in the form of `pages/`
# page_id``. Except for update requests, this field is output-only and should
# not be set by the user.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The URL of the page associated with this `ClaimReview` markup.
# While every individual `ClaimReview` has its own URL field, semantically
# this is a page-level field, and each `ClaimReview` on this page will use
# this value unless individually overridden.<br>
# Corresponds to `ClaimReview.url`
# The URL of the page associated with this `ClaimReview` markup. While every
# individual `ClaimReview` has its own URL field, semantically this is a page-
# level field, and each `ClaimReview` on this page will use this value unless
# individually overridden. Corresponds to `ClaimReview.url`
# Corresponds to the JSON property `pageUrl`
# @return [String]
attr_accessor :page_url
# The date when the fact check was published.
# Similar to the URL, semantically this is a page-level field, and each
# `ClaimReview` on this page will contain the same value.<br>
# Corresponds to `ClaimReview.datePublished`
# The date when the fact check was published. Similar to the URL, semantically
# this is a page-level field, and each `ClaimReview` on this page will contain
# the same value. Corresponds to `ClaimReview.datePublished`
# Corresponds to the JSON property `publishDate`
# @return [String]
attr_accessor :publish_date
@ -370,9 +364,8 @@ module Google
# @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim>]
attr_accessor :claims
# The next pagination token in the Search response. It should be used as the
# `page_token` for the following request. An empty value means no more
# results.
# The next pagination token in the Search response. It should be used as the `
# page_token` for the following request. An empty value means no more results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -397,9 +390,8 @@ module Google
# @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>]
attr_accessor :claim_review_markup_pages
# The next pagination token in the Search response. It should be used as the
# `page_token` for the following request. An empty value means no more
# results.
# The next pagination token in the Search response. It should be used as the `
# page_token` for the following request. An empty value means no more results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -424,9 +416,9 @@ module Google
# @return [String]
attr_accessor :name
# Host-level site name, without the protocol or "www" prefix. For instance,
# "awesomefactchecks.com". This value of this field is based purely on the
# claim review URL.
# Host-level site name, without the protocol or "www" prefix. For instance, "
# awesomefactchecks.com". This value of this field is based purely on the claim
# review URL.
# Corresponds to the JSON property `site`
# @return [String]
attr_accessor :site
@ -442,13 +434,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 GoogleProtobufEmpty
include Google::Apis::Core::Hashable

View File

@ -50,23 +50,22 @@ module Google
# Search through fact-checked claims.
# @param [String] language_code
# The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to
# restrict results by language, though we do not currently consider the
# region.
# restrict results by language, though we do not currently consider the region.
# @param [Fixnum] max_age_days
# The maximum age of the returned search results, in days.
# Age is determined by either claim date or review date, whichever is newer.
# The maximum age of the returned search results, in days. Age is determined by
# either claim date or review date, whichever is newer.
# @param [Fixnum] offset
# An integer that specifies the current offset (that is, starting result
# location) in search results. This field is only considered if `page_token`
# is unset. For example, 0 means to return results starting from the first
# matching result, and 10 means to return from the 11th result.
# location) in search results. This field is only considered if `page_token` is
# unset. For example, 0 means to return results starting from the first matching
# result, and 10 means to return from the 11th result.
# @param [Fixnum] page_size
# The pagination size. We will return up to that many results. Defaults to
# 10 if not set.
# The pagination size. We will return up to that many results. Defaults to 10 if
# not set.
# @param [String] page_token
# The pagination token. You may provide the `next_page_token` returned from a
# previous List request, if any, in order to get the next page. All other
# fields must have the same values as in the previous request.
# previous List request, if any, in order to get the next page. All other fields
# must have the same values as in the previous request.
# @param [String] query
# Textual query string. Required unless `review_publisher_site_filter` is
# specified.
@ -195,29 +194,28 @@ module Google
execute_or_queue_command(command, &block)
end
# List the `ClaimReview` markup pages for a specific URL or for an
# organization.
# List the `ClaimReview` markup pages for a specific URL or for an organization.
# @param [Fixnum] offset
# An integer that specifies the current offset (that is, starting result
# location) in search results. This field is only considered if `page_token`
# is unset, and if the request is not for a specific URL. For example, 0
# means to return results starting from the first matching result, and 10
# means to return from the 11th result.
# location) in search results. This field is only considered if `page_token` is
# unset, and if the request is not for a specific URL. For example, 0 means to
# return results starting from the first matching result, and 10 means to return
# from the 11th result.
# @param [String] organization
# The organization for which we want to fetch markups for. For instance,
# "site.com". Cannot be specified along with an URL.
# The organization for which we want to fetch markups for. For instance, "site.
# com". Cannot be specified along with an URL.
# @param [Fixnum] page_size
# The pagination size. We will return up to that many results. Defaults to
# 10 if not set. Has no effect if a URL is requested.
# The pagination size. We will return up to that many results. Defaults to 10 if
# not set. Has no effect if a URL is requested.
# @param [String] page_token
# The pagination token. You may provide the `next_page_token` returned from a
# previous List request, if any, in order to get the next page. All other
# fields must have the same values as in the previous request.
# previous List request, if any, in order to get the next page. All other fields
# must have the same values as in the previous request.
# @param [String] url
# The URL from which to get `ClaimReview` markup. There will be at most one
# result. If markup is associated with a more canonical version of the URL
# provided, we will return that URL instead. Cannot be specified along with
# an organization.
# provided, we will return that URL instead. Cannot be specified along with an
# organization.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -249,15 +247,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Update for all `ClaimReview` markup on a page
# Note that this is a full update. To retain the existing `ClaimReview`
# markup on a page, first perform a Get operation, then modify the returned
# markup, and finally call Update with the entire `ClaimReview` markup as the
# body.
# Update for all `ClaimReview` markup on a page Note that this is a full update.
# To retain the existing `ClaimReview` markup on a page, first perform a Get
# operation, then modify the returned markup, and finally call Update with the
# entire `ClaimReview` markup as the body.
# @param [String] name
# The name of this `ClaimReview` markup page resource, in the form of
# `pages/`page_id``. Except for update requests, this field is output-only
# and should not be set by the user.
# The name of this `ClaimReview` markup page resource, in the form of `pages/`
# page_id``. Except for update requests, this field is output-only and should
# not be set by the user.
# @param [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage] google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -27,7 +27,7 @@ module Google
# @see https://firebase.google.com/docs/hosting/
module FirebasehostingV1
VERSION = 'V1'
REVISION = '20200629'
REVISION = '20200731'
end
end
end

View File

@ -35,13 +35,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
@ -84,47 +82,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::FirebasehostingV1::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<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# 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<String,Object>]
attr_accessor :response
@ -143,12 +139,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
@ -157,15 +153,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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

View File

@ -49,15 +49,13 @@ module Google
@batch_path = 'batch'
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.
@ -91,10 +89,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
@ -124,15 +122,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

View File

@ -27,7 +27,7 @@ module Google
# @see https://firebase.google.com/docs/hosting/
module FirebasehostingV1beta1
VERSION = 'V1beta1'
REVISION = '20200729'
REVISION = '20200731'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,8 +22,8 @@ module Google
module Apis
module FirebasehostingV1beta1
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Contains metadata about the user who performed an action, such as creating a
# release or finalizing a version.
class ActingUser
include Google::Apis::Core::Hashable
@ -32,8 +32,8 @@ module Google
# @return [String]
attr_accessor :email
# A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
# A profile image URL for the user. May not be present if the user has changed
# their email address or deleted their account.
# Corresponds to the JSON property `imageUrl`
# @return [String]
attr_accessor :image_url
@ -58,8 +58,8 @@ module Google
# @return [String]
attr_accessor :domain_name
# The value that must be present as a TXT record on the domain name to
# satisfy the challenge.
# The value that must be present as a TXT record on the domain name to satisfy
# the challenge.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
@ -79,8 +79,8 @@ module Google
class CertHttpChallenge
include Google::Apis::Core::Hashable
# The URL path on which to serve the specified token to satisfy the
# certificate challenge.
# The URL path on which to serve the specified token to satisfy the certificate
# challenge.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
@ -110,8 +110,8 @@ module Google
class CloudRunRewrite
include Google::Apis::Core::Hashable
# Optional. User-provided region where the Cloud Run service is hosted.<br>
# Defaults to `us-central1` if not supplied.
# Optional. User-provided region where the Cloud Run service is hosted. Defaults
# to `us-central1` if not supplied.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@ -141,9 +141,9 @@ module Google
# @return [String]
attr_accessor :domain_name
# Defines the behavior of a domain-level redirect. Domain redirects preserve
# the path of the redirect but replace the requested domain with the one
# specified in the redirect configuration.
# Defines the behavior of a domain-level redirect. Domain redirects preserve the
# path of the redirect but replace the requested domain with the one specified
# in the redirect configuration.
# Corresponds to the JSON property `domainRedirect`
# @return [Google::Apis::FirebasehostingV1beta1::DomainRedirect]
attr_accessor :domain_redirect
@ -203,8 +203,8 @@ module Google
# @return [Google::Apis::FirebasehostingV1beta1::CertHttpChallenge]
attr_accessor :cert_challenge_http
# The certificate provisioning status; updated when Firebase Hosting
# provisions an SSL certificate for the domain.
# The certificate provisioning status; updated when Firebase Hosting provisions
# an SSL certificate for the domain.
# Corresponds to the JSON property `certStatus`
# @return [String]
attr_accessor :cert_status
@ -246,9 +246,9 @@ module Google
end
end
# Defines the behavior of a domain-level redirect. Domain redirects preserve
# the path of the redirect but replace the requested domain with the one
# specified in the redirect configuration.
# Defines the behavior of a domain-level redirect. Domain redirects preserve the
# path of the redirect but replace the requested domain with the one specified
# in the redirect configuration.
class DomainRedirect
include Google::Apis::Core::Hashable
@ -273,13 +273,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
@ -292,15 +290,14 @@ module Google
end
end
# A [`header`](/docs/hosting/full-config#headers) is an object that specifies
# a URL pattern that, if matched to the request URL path, triggers Hosting to
# A [`header`](/docs/hosting/full-config#headers) is an object that specifies a
# URL pattern that, if matched to the request URL path, triggers Hosting to
# apply the specified custom response headers.
class Header
include Google::Apis::Core::Hashable
# The user-supplied
# [glob](/docs/hosting/full-config#glob_pattern_matching) to match
# against the request URL path.
# The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to
# match against the request URL path.
# Corresponds to the JSON property `glob`
# @return [String]
attr_accessor :glob
@ -310,8 +307,7 @@ module Google
# @return [Hash<String,String>]
attr_accessor :headers
# The user-supplied RE2 regular expression to match against the request
# URL path.
# The user-supplied RE2 regular expression to match against the request URL path.
# Corresponds to the JSON property `regex`
# @return [String]
attr_accessor :regex
@ -357,10 +353,9 @@ module Google
class ListReleasesResponse
include Google::Apis::Core::Hashable
# If there are additional releases remaining beyond the ones in this
# response, then supply this token in the next
# [`list`](../sites.versions.files/list) call to continue with the next set
# of releases.
# If there are additional releases remaining beyond the ones in this response,
# then supply this token in the next [`list`](../sites.versions.files/list) call
# to continue with the next set of releases.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -436,47 +431,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::FirebasehostingV1beta1::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<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# 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<String,Object>]
attr_accessor :response
@ -499,10 +492,10 @@ module Google
class PopulateVersionFilesRequest
include Google::Apis::Core::Hashable
# A set of file paths to the hashes corresponding to assets that should be
# added to the version. Note that a file path to an empty hash will remove
# the path from the version. Calculate a hash by Gzipping the file then
# taking the SHA256 hash of the newly compressed file.
# A set of file paths to the hashes corresponding to assets that should be added
# to the version. Note that a file path to an empty hash will remove the path
# from the version. Calculate a hash by Gzipping the file then taking the SHA256
# hash of the newly compressed file.
# Corresponds to the JSON property `files`
# @return [Hash<String,String>]
attr_accessor :files
@ -527,10 +520,9 @@ module Google
# @return [Array<String>]
attr_accessor :upload_required_hashes
# The URL to which the files should be uploaded, in the format:
# <br>"https://upload-firebasehosting.googleapis.com/upload/sites/<var>site-name<
# /var>/versions/<var>versionID</var>/files".
# <br>Perform a multipart `POST` of the Gzipped file contents to the URL
# The URL to which the files should be uploaded, in the format: "https://upload-
# firebasehosting.googleapis.com/upload/sites/site-name /versions/versionID/
# files". Perform a multipart `POST` of the Gzipped file contents to the URL
# using a forward slash and the hash of the file appended to the end.
# Corresponds to the JSON property `uploadUrl`
# @return [String]
@ -547,9 +539,8 @@ module Google
end
end
# Version preview configuration. If active and unexpired,
# this version will be accessible via a custom URL even
# if it is not the currently released version.
# Version preview configuration. If active and unexpired, this version will be
# accessible via a custom URL even if it is not the currently released version.
class PreviewConfig
include Google::Apis::Core::Hashable
@ -559,8 +550,8 @@ module Google
attr_accessor :active
alias_method :active?, :active
# Indicates the expiration time for previewing this
# version; preview URL requests received after this time will 404.
# Indicates the expiration time for previewing this version; preview URL
# requests received after this time will 404.
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expire_time
@ -577,38 +568,33 @@ module Google
end
# A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL
# pattern that, if matched to the request URL path, triggers Hosting to
# respond with a redirect to the specified destination path.
# pattern that, if matched to the request URL path, triggers Hosting to respond
# with a redirect to the specified destination path.
class Redirect
include Google::Apis::Core::Hashable
# The user-supplied
# [glob](/docs/hosting/full-config#glob_pattern_matching) to match
# against the request URL path.
# The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to
# match against the request URL path.
# Corresponds to the JSON property `glob`
# @return [String]
attr_accessor :glob
# Required. The value to put in the HTTP location header of the response.
# <br>The location can contain capture group values from the pattern using
# a `:` prefix to identify the segment and an optional `*` to capture the
# rest of the URL.
# For example:
# <code>"glob": "/:capture*",
# <br>"statusCode": 301,
# <br>"location": "https://example.com/foo/:capture"</code>
# Required. The value to put in the HTTP location header of the response. The
# location can contain capture group values from the pattern using a `:` prefix
# to identify the segment and an optional `*` to capture the rest of the URL.
# For example: "glob": "/:capture*", "statusCode": 301, "location": "https://
# example.com/foo/:capture"
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The user-supplied RE2 regular expression to match against the request
# URL path.
# The user-supplied RE2 regular expression to match against the request URL path.
# Corresponds to the JSON property `regex`
# @return [String]
attr_accessor :regex
# Required. The status HTTP code to return in the response. It must be a
# valid 3xx status code.
# Required. The status HTTP code to return in the response. It must be a valid
# 3xx status code.
# Corresponds to the JSON property `statusCode`
# @return [Fixnum]
attr_accessor :status_code
@ -626,22 +612,20 @@ module Google
end
end
# A `Release` is a particular
# [collection of configurations and files](sites.versions)
# that is set to be public at a particular time.
# A `Release` is a particular [collection of configurations and files](sites.
# versions) that is set to be public at a particular time.
class Release
include Google::Apis::Core::Hashable
# The deploy description when the release was created. The value can be up to
# 512&nbsp;characters.
# 512 characters.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# Output only. The unique identifier for the release, in the format:
# <code>sites/<var>site-name</var>/releases/<var>releaseID</var></code>
# This name is provided in the response body when you call the
# [`CreateRelease`](sites.releases/create) endpoint.
# Output only. The unique identifier for the release, in the format: sites/ site-
# name/releases/releaseID This name is provided in the response body when you
# call the [`CreateRelease`](sites.releases/create) endpoint.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -651,21 +635,20 @@ module Google
# @return [String]
attr_accessor :release_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Contains metadata about the user who performed an action, such as creating a
# release or finalizing a version.
# Corresponds to the JSON property `releaseUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :release_user
# Explains the reason for the release.
# <br>Specify a value for this field only when creating a `SITE_DISABLE`
# type release.
# Explains the reason for the release. Specify a value for this field only when
# creating a `SITE_DISABLE` type release.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
# A `Version` is the collection of configuration and [static files](sites.
# versions.files) that determine how a site is displayed.
# Corresponds to the JSON property `version`
# @return [Google::Apis::FirebasehostingV1beta1::Version]
attr_accessor :version
@ -686,8 +669,8 @@ module Google
end
# A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL
# pattern that, if matched to the request URL path, triggers Hosting to
# respond as if the service were given the specified destination URL.
# pattern that, if matched to the request URL path, triggers Hosting to respond
# as if the service were given the specified destination URL.
class Rewrite
include Google::Apis::Core::Hashable
@ -697,15 +680,14 @@ module Google
attr_accessor :dynamic_links
alias_method :dynamic_links?, :dynamic_links
# The function to proxy requests to. Must match the exported function
# name exactly.
# The function to proxy requests to. Must match the exported function name
# exactly.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
# The user-supplied
# [glob](/docs/hosting/full-config#glob_pattern_matching) to match
# against the request URL path.
# The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to
# match against the request URL path.
# Corresponds to the JSON property `glob`
# @return [String]
attr_accessor :glob
@ -715,8 +697,7 @@ module Google
# @return [String]
attr_accessor :path
# The user-supplied RE2 regular expression to match against the request
# URL path.
# The user-supplied RE2 regular expression to match against the request URL path.
# Corresponds to the JSON property `regex`
# @return [String]
attr_accessor :regex
@ -748,8 +729,8 @@ module Google
# The configuration for how incoming requests to a site should be routed and
# processed before serving content. The URL request paths are matched against
# the specified URL patterns in the configuration, then Hosting applies the
# applicable configuration according to a specific
# [priority order](/docs/hosting/full-config#hosting_priority_order).
# applicable configuration according to a specific [priority order](/docs/
# hosting/full-config#hosting_priority_order).
class ServingConfig
include Google::Apis::Core::Hashable
@ -771,16 +752,16 @@ module Google
# @return [Array<Google::Apis::FirebasehostingV1beta1::Header>]
attr_accessor :headers
# An array of objects (called redirect rules), where each rule specifies a
# URL pattern that, if matched to the request URL path, triggers Hosting to
# respond with a redirect to the specified destination path.
# An array of objects (called redirect rules), where each rule specifies a URL
# pattern that, if matched to the request URL path, triggers Hosting to respond
# with a redirect to the specified destination path.
# Corresponds to the JSON property `redirects`
# @return [Array<Google::Apis::FirebasehostingV1beta1::Redirect>]
attr_accessor :redirects
# An array of objects (called rewrite rules), where each rule specifies a URL
# pattern that, if matched to the request URL path, triggers Hosting to
# respond as if the service were given the specified destination URL.
# pattern that, if matched to the request URL path, triggers Hosting to respond
# as if the service were given the specified destination URL.
# Corresponds to the JSON property `rewrites`
# @return [Array<Google::Apis::FirebasehostingV1beta1::Rewrite>]
attr_accessor :rewrites
@ -805,23 +786,22 @@ module Google
end
end
# A `SiteConfig` contains metadata associated with a specific site that
# controls Firebase Hosting serving behavior
# A `SiteConfig` contains metadata associated with a specific site that controls
# Firebase Hosting serving behavior
class SiteConfig
include Google::Apis::Core::Hashable
# Whether or not web requests made by site visitors are logged via Cloud
# Logging.
# Whether or not web requests made by site visitors are logged via Cloud Logging.
# Corresponds to the JSON property `cloudLoggingEnabled`
# @return [Boolean]
attr_accessor :cloud_logging_enabled
alias_method :cloud_logging_enabled?, :cloud_logging_enabled
# The number of FINALIZED versions that will be held for a site before
# automatic deletion. When a new version is deployed, content for versions
# in storage in excess of this number will be deleted, and will no longer be
# billed for storage usage. Oldest versions will be deleted first; sites are
# created with an unlimited number of max_versions by default.
# The number of FINALIZED versions that will be held for a site before automatic
# deletion. When a new version is deployed, content for versions in storage in
# excess of this number will be deleted, and will no longer be billed for
# storage usage. Oldest versions will be deleted first; sites are created with
# an unlimited number of max_versions by default.
# Corresponds to the JSON property `maxVersions`
# @return [Fixnum]
attr_accessor :max_versions
@ -837,12 +817,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
@ -851,15 +831,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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
@ -876,16 +856,16 @@ module Google
end
end
# A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
# A `Version` is the collection of configuration and [static files](sites.
# versions.files) that determine how a site is displayed.
class Version
include Google::Apis::Core::Hashable
# The configuration for how incoming requests to a site should be routed and
# processed before serving content. The URL request paths are matched against
# the specified URL patterns in the configuration, then Hosting applies the
# applicable configuration according to a specific
# [priority order](/docs/hosting/full-config#hosting_priority_order).
# applicable configuration according to a specific [priority order](/docs/
# hosting/full-config#hosting_priority_order).
# Corresponds to the JSON property `config`
# @return [Google::Apis::FirebasehostingV1beta1::ServingConfig]
attr_accessor :config
@ -895,8 +875,8 @@ module Google
# @return [String]
attr_accessor :create_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Contains metadata about the user who performed an action, such as creating a
# release or finalizing a version.
# Corresponds to the JSON property `createUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :create_user
@ -906,14 +886,14 @@ module Google
# @return [String]
attr_accessor :delete_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Contains metadata about the user who performed an action, such as creating a
# release or finalizing a version.
# Corresponds to the JSON property `deleteUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :delete_user
# Output only. The total number of files associated with the version.
# <br>This value is calculated after a version is `FINALIZED`.
# Output only. The total number of files associated with the version. This value
# is calculated after a version is `FINALIZED`.
# Corresponds to the JSON property `fileCount`
# @return [Fixnum]
attr_accessor :file_count
@ -923,8 +903,8 @@ module Google
# @return [String]
attr_accessor :finalize_time
# Contains metadata about the user who performed an action, such as creating
# a release or finalizing a version.
# Contains metadata about the user who performed an action, such as creating a
# release or finalizing a version.
# Corresponds to the JSON property `finalizeUser`
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
attr_accessor :finalize_user
@ -934,41 +914,33 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# This name is provided in the response body when you call the
# [`CreateVersion`](../sites.versions/create) endpoint.
# The unique identifier for a version, in the format: sites/site-name /versions/
# versionID This name is provided in the response body when you call the [`
# CreateVersion`](../sites.versions/create) endpoint.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Version preview configuration. If active and unexpired,
# this version will be accessible via a custom URL even
# if it is not the currently released version.
# Version preview configuration. If active and unexpired, this version will be
# accessible via a custom URL even if it is not the currently released version.
# Corresponds to the JSON property `preview`
# @return [Google::Apis::FirebasehostingV1beta1::PreviewConfig]
attr_accessor :preview
# The deploy status of a version.
# <br>
# <br>For a successful deploy, call the
# [`CreateVersion`](sites.versions/create) endpoint to make a new version
# (`CREATED` status),
# [upload all desired files](sites.versions/populateFiles) to the version,
# then [update](sites.versions/patch) the version to the `FINALIZED` status.
# <br>
# <br>Note that if you leave the version in the `CREATED` state for more
# than 12&nbsp;hours, the system will automatically mark the version as
# `ABANDONED`.
# <br>
# <br>You can also change the status of a version to `DELETED` by calling the
# [`DeleteVersion`](sites.versions/delete) endpoint.
# The deploy status of a version. For a successful deploy, call the [`
# CreateVersion`](sites.versions/create) endpoint to make a new version (`
# CREATED` status), [upload all desired files](sites.versions/populateFiles) to
# the version, then [update](sites.versions/patch) the version to the `FINALIZED`
# status. Note that if you leave the version in the `CREATED` state for more
# than 12 hours, the system will automatically mark the version as `ABANDONED`.
# You can also change the status of a version to `DELETED` by calling the [`
# DeleteVersion`](sites.versions/delete) endpoint.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Output only. The total stored bytesize of the version.
# <br>This value is calculated after a version is `FINALIZED`.
# Output only. The total stored bytesize of the version. This value is
# calculated after a version is `FINALIZED`.
# Corresponds to the JSON property `versionBytes`
# @return [Fixnum]
attr_accessor :version_bytes
@ -1009,9 +981,8 @@ module Google
# @return [String]
attr_accessor :path
# Output only. The current status of a particular file in the specified
# version.
# <br>The value will be either `pending upload` or `uploaded`.
# Output only. The current status of a particular file in the specified version.
# The value will be either `pending upload` or `uploaded`.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status

View File

@ -49,9 +49,8 @@ module Google
@batch_path = 'batch'
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# 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
@ -83,8 +82,8 @@ module Google
# Gets the Hosting metadata for a specific site.
# @param [String] name
# Required. The site for which to get the SiteConfig, in the format:
# <code>sites/<var>site-name</var>/config</code>
# Required. The site for which to get the SiteConfig, in the format: sites/ site-
# name/config
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -114,15 +113,14 @@ module Google
# Sets the Hosting metadata for a specific site.
# @param [String] name
# Required. The site for which to update the SiteConfig, in the format:
# <code>sites/<var>site-name</var>/config</code>
# Required. The site for which to update the SiteConfig, in the format: sites/
# site-name/config
# @param [Google::Apis::FirebasehostingV1beta1::SiteConfig] site_config_object
# @param [String] update_mask
# A set of field names from your [site configuration](../sites.SiteConfig)
# that you want to update.
# <br>A field will be overwritten if, and only if, it's in the mask.
# <br>If a mask is not provided then a default mask of only
# [`max_versions`](../sites.SiteConfig.max_versions) will be used.
# A set of field names from your [site configuration](../sites.SiteConfig) that
# you want to update. A field will be overwritten if, and only if, it's in the
# mask. If a mask is not provided then a default mask of only [`max_versions`](..
# /sites.SiteConfig.max_versions) will be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -156,17 +154,14 @@ module Google
# Creates a new release which makes the content of the specified version
# actively display on the appropriate URL(s).
# @param [String] parent
# Required. The site that the release belongs to, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The site that the release belongs to, in the format: sites/ site-
# name
# @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
# @param [String] version_name
# The unique identifier for a version, in the format:
# <code>/sites/<var>site-name</var>/versions/<var>versionID</var></code>
# The <var>site-name</var> in this version identifier must match the
# <var>site-name</var> in the `parent` parameter.
# <br>
# <br>This query parameter must be empty if the `type` field in the
# request body is `SITE_DISABLE`.
# The unique identifier for a version, in the format: /sites/site-name /versions/
# versionID The site-name in this version identifier must match the site-name in
# the `parent` parameter. This query parameter must be empty if the `type` field
# in the request body is `SITE_DISABLE`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -199,8 +194,7 @@ module Google
# Lists the releases that have been created on the specified site.
# @param [String] parent
# Required. The parent for which to list files, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list files, in the format: sites/site-name
# @param [Fixnum] page_size
# The page size to return. Defaults to 100.
# @param [String] page_token
@ -237,7 +231,7 @@ module Google
# Creates a domain mapping on the specified site.
# @param [String] parent
# Required. The parent to create the domain association for, in the format:
# <code>sites/<var>site-name</var></code>
# sites/site-name
# @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -330,8 +324,8 @@ module Google
# Lists the domains for the specified site.
# @param [String] parent
# Required. The parent for which to list domains, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list domains, in the format: sites/ site-
# name
# @param [Fixnum] page_size
# The page size to return. Defaults to 50.
# @param [String] page_token
@ -365,8 +359,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the specified domain mapping, creating the mapping as if it does
# not exist.
# Updates the specified domain mapping, creating the mapping as if it does not
# exist.
# @param [String] name
# Required. The name of the domain association to update or create, if an
# association doesn't already exist.
@ -403,17 +397,14 @@ module Google
# Creates a new release which makes the content of the specified version
# actively display on the appropriate URL(s).
# @param [String] parent
# Required. The site that the release belongs to, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The site that the release belongs to, in the format: sites/ site-
# name
# @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
# @param [String] version_name
# The unique identifier for a version, in the format:
# <code>/sites/<var>site-name</var>/versions/<var>versionID</var></code>
# The <var>site-name</var> in this version identifier must match the
# <var>site-name</var> in the `parent` parameter.
# <br>
# <br>This query parameter must be empty if the `type` field in the
# request body is `SITE_DISABLE`.
# The unique identifier for a version, in the format: /sites/site-name /versions/
# versionID The site-name in this version identifier must match the site-name in
# the `parent` parameter. This query parameter must be empty if the `type` field
# in the request body is `SITE_DISABLE`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -446,8 +437,7 @@ module Google
# Lists the releases that have been created on the specified site.
# @param [String] parent
# Required. The parent for which to list files, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list files, in the format: sites/site-name
# @param [Fixnum] page_size
# The page size to return. Defaults to 100.
# @param [String] page_token
@ -483,8 +473,8 @@ module Google
# Creates a new version for a site.
# @param [String] parent
# Required. The parent to create the version for, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent to create the version for, in the format: sites/ site-
# name
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
# @param [Fixnum] size_bytes
# The self-reported size of the version. This value is used for a pre-emptive
@ -525,8 +515,8 @@ module Google
# Deletes the specified version.
# @param [String] name
# Required. The name of the version to be deleted, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# Required. The name of the version to be deleted, in the format: sites/ site-
# name/versions/versionID
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -554,21 +544,18 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the versions that have been created on the specified site.
# Will include filtering in the future.
# Lists the versions that have been created on the specified site. Will include
# filtering in the future.
# @param [String] parent
# Required. The parent for which to list files, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list files, in the format: sites/site-name
# @param [String] filter
# The filter string used to return a subset of versions in the response.
# Currently supported fields for filtering are: name, status,
# and create_time. Filter processing will be implemented in accordance
# with go/filtering.
# Currently supported fields for filtering are: name, status, and create_time.
# Filter processing will be implemented in accordance with go/filtering.
# @param [Fixnum] page_size
# The maximum number of versions to return. The service may return fewer than
# this value.
# If unspecified, at most 25 versions will be returned.
# The maximum value is 100; values above 100 will be coerced to 100
# this value. If unspecified, at most 25 versions will be returned. The maximum
# value is 100; values above 100 will be coerced to 100
# @param [String] page_token
# The next_page_token from a previous request, if provided.
# @param [String] fields
@ -601,24 +588,21 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the specified metadata for a version. Note that this method will
# fail with `FAILED_PRECONDITION` in the event of an invalid state
# transition. The only valid transition for a version is currently from a
# `CREATED` status to a `FINALIZED` status.
# Use [`DeleteVersion`](../sites.versions/delete) to set the status of a
# version to `DELETED`.
# Updates the specified metadata for a version. Note that this method will fail
# with `FAILED_PRECONDITION` in the event of an invalid state transition. The
# only valid transition for a version is currently from a `CREATED` status to a `
# FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set the
# status of a version to `DELETED`.
# @param [String] name
# The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# This name is provided in the response body when you call the
# [`CreateVersion`](../sites.versions/create) endpoint.
# The unique identifier for a version, in the format: sites/site-name /versions/
# versionID This name is provided in the response body when you call the [`
# CreateVersion`](../sites.versions/create) endpoint.
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
# @param [String] update_mask
# A set of field names from your [version](../sites.versions) that you want
# to update.
# <br>A field will be overwritten if, and only if, it's in the mask.
# <br>If a mask is not provided then a default mask of only
# [`status`](../sites.versions#Version.FIELDS.status) will be used.
# A set of field names from your [version](../sites.versions) that you want to
# update. A field will be overwritten if, and only if, it's in the mask. If a
# mask is not provided then a default mask of only [`status`](../sites.versions#
# Version.FIELDS.status) will be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -649,11 +633,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds content files to a version.
# Each file must be under 2 GB.
# Adds content files to a version. Each file must be under 2 GB.
# @param [String] parent
# Required. The version to add files to, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# Required. The version to add files to, in the format: sites/site-name /
# versions/versionID
# @param [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest] populate_version_files_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -686,8 +669,8 @@ module Google
# Lists the remaining files to be uploaded for the specified version.
# @param [String] parent
# Required. The parent to list files for, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# Required. The parent to list files for, in the format: sites/site-name /
# versions/versionID
# @param [Fixnum] page_size
# The page size to return. Defaults to 1000.
# @param [String] page_token
@ -727,8 +710,8 @@ module Google
# Gets the Hosting metadata for a specific site.
# @param [String] name
# Required. The site for which to get the SiteConfig, in the format:
# <code>sites/<var>site-name</var>/config</code>
# Required. The site for which to get the SiteConfig, in the format: sites/ site-
# name/config
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -758,15 +741,14 @@ module Google
# Sets the Hosting metadata for a specific site.
# @param [String] name
# Required. The site for which to update the SiteConfig, in the format:
# <code>sites/<var>site-name</var>/config</code>
# Required. The site for which to update the SiteConfig, in the format: sites/
# site-name/config
# @param [Google::Apis::FirebasehostingV1beta1::SiteConfig] site_config_object
# @param [String] update_mask
# A set of field names from your [site configuration](../sites.SiteConfig)
# that you want to update.
# <br>A field will be overwritten if, and only if, it's in the mask.
# <br>If a mask is not provided then a default mask of only
# [`max_versions`](../sites.SiteConfig.max_versions) will be used.
# A set of field names from your [site configuration](../sites.SiteConfig) that
# you want to update. A field will be overwritten if, and only if, it's in the
# mask. If a mask is not provided then a default mask of only [`max_versions`](..
# /sites.SiteConfig.max_versions) will be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -800,17 +782,14 @@ module Google
# Creates a new release which makes the content of the specified version
# actively display on the appropriate URL(s).
# @param [String] parent
# Required. The site that the release belongs to, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The site that the release belongs to, in the format: sites/ site-
# name
# @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
# @param [String] version_name
# The unique identifier for a version, in the format:
# <code>/sites/<var>site-name</var>/versions/<var>versionID</var></code>
# The <var>site-name</var> in this version identifier must match the
# <var>site-name</var> in the `parent` parameter.
# <br>
# <br>This query parameter must be empty if the `type` field in the
# request body is `SITE_DISABLE`.
# The unique identifier for a version, in the format: /sites/site-name /versions/
# versionID The site-name in this version identifier must match the site-name in
# the `parent` parameter. This query parameter must be empty if the `type` field
# in the request body is `SITE_DISABLE`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -843,8 +822,7 @@ module Google
# Lists the releases that have been created on the specified site.
# @param [String] parent
# Required. The parent for which to list files, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list files, in the format: sites/site-name
# @param [Fixnum] page_size
# The page size to return. Defaults to 100.
# @param [String] page_token
@ -881,7 +859,7 @@ module Google
# Creates a domain mapping on the specified site.
# @param [String] parent
# Required. The parent to create the domain association for, in the format:
# <code>sites/<var>site-name</var></code>
# sites/site-name
# @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -974,8 +952,8 @@ module Google
# Lists the domains for the specified site.
# @param [String] parent
# Required. The parent for which to list domains, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list domains, in the format: sites/ site-
# name
# @param [Fixnum] page_size
# The page size to return. Defaults to 50.
# @param [String] page_token
@ -1009,8 +987,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the specified domain mapping, creating the mapping as if it does
# not exist.
# Updates the specified domain mapping, creating the mapping as if it does not
# exist.
# @param [String] name
# Required. The name of the domain association to update or create, if an
# association doesn't already exist.
@ -1047,17 +1025,14 @@ module Google
# Creates a new release which makes the content of the specified version
# actively display on the appropriate URL(s).
# @param [String] parent
# Required. The site that the release belongs to, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The site that the release belongs to, in the format: sites/ site-
# name
# @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
# @param [String] version_name
# The unique identifier for a version, in the format:
# <code>/sites/<var>site-name</var>/versions/<var>versionID</var></code>
# The <var>site-name</var> in this version identifier must match the
# <var>site-name</var> in the `parent` parameter.
# <br>
# <br>This query parameter must be empty if the `type` field in the
# request body is `SITE_DISABLE`.
# The unique identifier for a version, in the format: /sites/site-name /versions/
# versionID The site-name in this version identifier must match the site-name in
# the `parent` parameter. This query parameter must be empty if the `type` field
# in the request body is `SITE_DISABLE`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1090,8 +1065,7 @@ module Google
# Lists the releases that have been created on the specified site.
# @param [String] parent
# Required. The parent for which to list files, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list files, in the format: sites/site-name
# @param [Fixnum] page_size
# The page size to return. Defaults to 100.
# @param [String] page_token
@ -1127,8 +1101,8 @@ module Google
# Creates a new version for a site.
# @param [String] parent
# Required. The parent to create the version for, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent to create the version for, in the format: sites/ site-
# name
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
# @param [Fixnum] size_bytes
# The self-reported size of the version. This value is used for a pre-emptive
@ -1169,8 +1143,8 @@ module Google
# Deletes the specified version.
# @param [String] name
# Required. The name of the version to be deleted, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# Required. The name of the version to be deleted, in the format: sites/ site-
# name/versions/versionID
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1198,21 +1172,18 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the versions that have been created on the specified site.
# Will include filtering in the future.
# Lists the versions that have been created on the specified site. Will include
# filtering in the future.
# @param [String] parent
# Required. The parent for which to list files, in the format:
# <code>sites/<var>site-name</var></code>
# Required. The parent for which to list files, in the format: sites/site-name
# @param [String] filter
# The filter string used to return a subset of versions in the response.
# Currently supported fields for filtering are: name, status,
# and create_time. Filter processing will be implemented in accordance
# with go/filtering.
# Currently supported fields for filtering are: name, status, and create_time.
# Filter processing will be implemented in accordance with go/filtering.
# @param [Fixnum] page_size
# The maximum number of versions to return. The service may return fewer than
# this value.
# If unspecified, at most 25 versions will be returned.
# The maximum value is 100; values above 100 will be coerced to 100
# this value. If unspecified, at most 25 versions will be returned. The maximum
# value is 100; values above 100 will be coerced to 100
# @param [String] page_token
# The next_page_token from a previous request, if provided.
# @param [String] fields
@ -1245,24 +1216,21 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the specified metadata for a version. Note that this method will
# fail with `FAILED_PRECONDITION` in the event of an invalid state
# transition. The only valid transition for a version is currently from a
# `CREATED` status to a `FINALIZED` status.
# Use [`DeleteVersion`](../sites.versions/delete) to set the status of a
# version to `DELETED`.
# Updates the specified metadata for a version. Note that this method will fail
# with `FAILED_PRECONDITION` in the event of an invalid state transition. The
# only valid transition for a version is currently from a `CREATED` status to a `
# FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set the
# status of a version to `DELETED`.
# @param [String] name
# The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# This name is provided in the response body when you call the
# [`CreateVersion`](../sites.versions/create) endpoint.
# The unique identifier for a version, in the format: sites/site-name /versions/
# versionID This name is provided in the response body when you call the [`
# CreateVersion`](../sites.versions/create) endpoint.
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
# @param [String] update_mask
# A set of field names from your [version](../sites.versions) that you want
# to update.
# <br>A field will be overwritten if, and only if, it's in the mask.
# <br>If a mask is not provided then a default mask of only
# [`status`](../sites.versions#Version.FIELDS.status) will be used.
# A set of field names from your [version](../sites.versions) that you want to
# update. A field will be overwritten if, and only if, it's in the mask. If a
# mask is not provided then a default mask of only [`status`](../sites.versions#
# Version.FIELDS.status) will be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1293,11 +1261,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds content files to a version.
# Each file must be under 2 GB.
# Adds content files to a version. Each file must be under 2 GB.
# @param [String] parent
# Required. The version to add files to, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# Required. The version to add files to, in the format: sites/site-name /
# versions/versionID
# @param [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest] populate_version_files_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1330,8 +1297,8 @@ module Google
# Lists the remaining files to be uploaded for the specified version.
# @param [String] parent
# Required. The parent to list files for, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
# Required. The parent to list files for, in the format: sites/site-name /
# versions/versionID
# @param [Fixnum] page_size
# The page size to return. Defaults to 1000.
# @param [String] page_token

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/gmail/postmaster
module GmailpostmastertoolsV1beta1
VERSION = 'V1beta1'
REVISION = '20200719'
REVISION = '20200801'
# See email traffic metrics for the domains you have registered in Gmail Postmaster Tools
AUTH_POSTMASTER_READONLY = 'https://www.googleapis.com/auth/postmaster.readonly'

View File

@ -31,8 +31,7 @@ module Google
# @return [String]
attr_accessor :error_class
# The ratio of messages where the error occurred vs all authenticated
# traffic.
# The ratio of messages where the error occurred vs all authenticated traffic.
# Corresponds to the JSON property `errorRatio`
# @return [Float]
attr_accessor :error_ratio
@ -58,15 +57,14 @@ module Google
class Domain
include Google::Apis::Core::Hashable
# Timestamp when the user registered this domain. Assigned by
# the server.
# Timestamp when the user registered this domain. Assigned by the server.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The resource name of the Domain.
# Domain names have the form `domains/`domain_name``, where domain_name
# is the fully qualified domain name (i.e., mymail.mydomain.com).
# The resource name of the Domain. Domain names have the form `domains/`
# domain_name``, where domain_name is the fully qualified domain name (i.e.,
# mymail.mydomain.com).
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -98,8 +96,8 @@ module Google
# @return [String]
attr_accessor :id
# The ratio of user marked spam messages with the identifier vs the total
# number of inboxed messages with that identifier.
# The ratio of user marked spam messages with the identifier vs the total number
# of inboxed messages with that identifier.
# Corresponds to the JSON property `spamRatio`
# @return [Float]
attr_accessor :spam_ratio
@ -120,8 +118,8 @@ module Google
include Google::Apis::Core::Hashable
# Total number of unique IPs in this reputation category. This metric only
# pertains to traffic that passed [SPF](http://www.openspf.org/) or
# [DKIM](http://www.dkim.org/).
# pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http:/
# /www.dkim.org/).
# Corresponds to the JSON property `numIps`
# @return [Fixnum]
attr_accessor :num_ips
@ -157,8 +155,8 @@ module Google
# @return [Array<Google::Apis::GmailpostmastertoolsV1beta1::Domain>]
attr_accessor :domains
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# Token to retrieve the next page of results, or empty if there are no more
# results in the list.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -178,8 +176,8 @@ module Google
class ListTrafficStatsResponse
include Google::Apis::Core::Hashable
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# Token to retrieve the next page of results, or empty if there are no more
# results in the list.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -210,16 +208,16 @@ module Google
# @return [Array<Google::Apis::GmailpostmastertoolsV1beta1::DeliveryError>]
attr_accessor :delivery_errors
# The ratio of mail that successfully authenticated with DKIM vs. all mail
# that attempted to authenticate with [DKIM](http://www.dkim.org/). Spoofed
# mail is excluded.
# The ratio of mail that successfully authenticated with DKIM vs. all mail that
# attempted to authenticate with [DKIM](http://www.dkim.org/). Spoofed mail is
# excluded.
# Corresponds to the JSON property `dkimSuccessRatio`
# @return [Float]
attr_accessor :dkim_success_ratio
# The ratio of mail that passed [DMARC](https://dmarc.org/) alignment checks
# vs all mail received from the domain that successfully authenticated with
# either of [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
# The ratio of mail that passed [DMARC](https://dmarc.org/) alignment checks vs
# all mail received from the domain that successfully authenticated with either
# of [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
# Corresponds to the JSON property `dmarcSuccessRatio`
# @return [Float]
attr_accessor :dmarc_success_ratio
@ -229,27 +227,26 @@ module Google
# @return [String]
attr_accessor :domain_reputation
# The ratio of incoming mail (to Gmail), that passed secure transport (TLS)
# vs all mail received from that domain. This metric only pertains to traffic
# that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
# The ratio of incoming mail (to Gmail), that passed secure transport (TLS) vs
# all mail received from that domain. This metric only pertains to traffic that
# passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
# Corresponds to the JSON property `inboundEncryptionRatio`
# @return [Float]
attr_accessor :inbound_encryption_ratio
# Reputation information pertaining to the IP addresses of the email servers
# for the domain. There is exactly one entry for each reputation category
# except
# Reputation information pertaining to the IP addresses of the email servers for
# the domain. There is exactly one entry for each reputation category except
# REPUTATION_CATEGORY_UNSPECIFIED.
# Corresponds to the JSON property `ipReputations`
# @return [Array<Google::Apis::GmailpostmastertoolsV1beta1::IpReputation>]
attr_accessor :ip_reputations
# The resource name of the traffic statistics. Traffic statistic names have
# the form `domains/`domain`/trafficStats/`date``, where
# domain_name is the fully qualified domain name (i.e., mymail.mydomain.com)
# of the domain this traffic statistics pertains to and date is the date in
# yyyymmdd format that these statistics corresponds to.
# For example: domains/mymail.mydomain.com/trafficStats/20160807
# The resource name of the traffic statistics. Traffic statistic names have the
# form `domains/`domain`/trafficStats/`date``, where domain_name is the fully
# qualified domain name (i.e., mymail.mydomain.com) of the domain this traffic
# statistics pertains to and date is the date in yyyymmdd format that these
# statistics corresponds to. For example: domains/mymail.mydomain.com/
# trafficStats/20160807
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -260,24 +257,22 @@ module Google
# @return [Float]
attr_accessor :outbound_encryption_ratio
# Spammy [Feedback loop identifiers]
# (https://support.google.com/mail/answer/6254652) with their individual spam
# rates. This metric only pertains to traffic that is authenticated by
# [DKIM](http://www.dkim.org/).
# Spammy [Feedback loop identifiers] (https://support.google.com/mail/answer/
# 6254652) with their individual spam rates. This metric only pertains to
# traffic that is authenticated by [DKIM](http://www.dkim.org/).
# Corresponds to the JSON property `spammyFeedbackLoops`
# @return [Array<Google::Apis::GmailpostmastertoolsV1beta1::FeedbackLoop>]
attr_accessor :spammy_feedback_loops
# The ratio of mail that successfully authenticated with SPF vs. all mail
# that attempted to authenticate with [SPF](http://www.openspf.org/). Spoofed
# mail is excluded.
# The ratio of mail that successfully authenticated with SPF vs. all mail that
# attempted to authenticate with [SPF](http://www.openspf.org/). Spoofed mail is
# excluded.
# Corresponds to the JSON property `spfSuccessRatio`
# @return [Float]
attr_accessor :spf_success_ratio
# The ratio of user-report spam vs. email that was sent to the inbox. This
# metric only pertains to emails authenticated by
# [DKIM](http://www.dkim.org/).
# metric only pertains to emails authenticated by [DKIM](http://www.dkim.org/).
# Corresponds to the JSON property `userReportedSpamRatio`
# @return [Float]
attr_accessor :user_reported_spam_ratio

View File

@ -49,12 +49,11 @@ module Google
@batch_path = 'batch'
end
# Gets a specific domain registered by the client.
# Returns NOT_FOUND if the domain does not exist.
# Gets a specific domain registered by the client. Returns NOT_FOUND if the
# domain does not exist.
# @param [String] name
# The resource name of the domain. It should have the form
# `domains/`domain_name``, where domain_name is the fully qualified
# domain name.
# The resource name of the domain. It should have the form `domains/`domain_name`
# `, where domain_name is the fully qualified domain name.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -86,13 +85,12 @@ module Google
# domains in the response is unspecified and non-deterministic. Newly created
# domains will not necessarily be added to the end of this list.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer domains than requested.
# If unspecified, server will pick an appropriate default.
# Requested page size. Server may return fewer domains than requested. If
# unspecified, server will pick an appropriate default.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# This is the value of
# ListDomainsResponse.next_page_token
# returned from the previous call to `ListDomains` method.
# The next_page_token value returned from a previous List request, if any. This
# is the value of ListDomainsResponse.next_page_token returned from the previous
# call to `ListDomains` method.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -121,12 +119,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Get traffic statistics for a domain on a specific date.
# Returns PERMISSION_DENIED if user does not have permission to access
# TrafficStats for the domain.
# Get traffic statistics for a domain on a specific date. Returns
# PERMISSION_DENIED if user does not have permission to access TrafficStats for
# the domain.
# @param [String] name
# The resource name of the traffic statistics to get.
# E.g., domains/mymail.mydomain.com/trafficStats/20160807.
# The resource name of the traffic statistics to get. E.g., domains/mymail.
# mydomain.com/trafficStats/20160807.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -154,41 +152,37 @@ module Google
execute_or_queue_command(command, &block)
end
# List traffic statistics for all available days.
# Returns PERMISSION_DENIED if user does not have permission to access
# TrafficStats for the domain.
# List traffic statistics for all available days. Returns PERMISSION_DENIED if
# user does not have permission to access TrafficStats for the domain.
# @param [String] parent
# The resource name of the domain whose traffic statistics we'd like to list.
# It should have the form `domains/`domain_name``, where domain_name is
# the fully qualified domain name.
# The resource name of the domain whose traffic statistics we'd like to list. It
# should have the form `domains/`domain_name``, where domain_name is the fully
# qualified domain name.
# @param [Fixnum] end_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year by itself or a year and month where the day is not
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# @param [Fixnum] end_date_month
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a
# month and day.
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# @param [Fixnum] end_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year.
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer TrafficStats than
# requested. If unspecified, server will pick an appropriate default.
# Requested page size. Server may return fewer TrafficStats than requested. If
# unspecified, server will pick an appropriate default.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# This is the value of
# ListTrafficStatsResponse.next_page_token
# returned from the previous call to `ListTrafficStats` method.
# The next_page_token value returned from a previous List request, if any. This
# is the value of ListTrafficStatsResponse.next_page_token returned from the
# previous call to `ListTrafficStats` method.
# @param [Fixnum] start_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year by itself or a year and month where the day is not
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# @param [Fixnum] start_date_month
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a
# month and day.
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# @param [Fixnum] start_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year.
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/
module LanguageV1
VERSION = 'V1'
REVISION = '20200406'
REVISION = '20200801'
# Apply machine learning models to reveal the structure and meaning of text
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'

View File

@ -26,8 +26,8 @@ module Google
class AnalyzeEntitiesRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1::Document]
attr_accessor :document
@ -57,9 +57,9 @@ module Google
# @return [Array<Google::Apis::LanguageV1::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -79,8 +79,8 @@ module Google
class AnalyzeEntitySentimentRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1::Document]
attr_accessor :document
@ -110,9 +110,9 @@ module Google
# @return [Array<Google::Apis::LanguageV1::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -132,8 +132,8 @@ module Google
class AnalyzeSentimentRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1::Document]
attr_accessor :document
@ -158,15 +158,14 @@ module Google
class AnalyzeSentimentResponse
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `documentSentiment`
# @return [Google::Apis::LanguageV1::Sentiment]
attr_accessor :document_sentiment
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -192,8 +191,8 @@ module Google
class AnalyzeSyntaxRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1::Document]
attr_accessor :document
@ -218,9 +217,9 @@ module Google
class AnalyzeSyntaxResponse
include Google::Apis::Core::Hashable
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -252,8 +251,8 @@ module Google
class AnnotateTextRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1::Document]
attr_accessor :document
@ -263,8 +262,8 @@ module Google
# @return [String]
attr_accessor :encoding_type
# All available features for sentiment, syntax, and semantic analysis.
# Setting each one to true will enable that specific analysis for the input.
# All available features for sentiment, syntax, and semantic analysis. Setting
# each one to true will enable that specific analysis for the input.
# Corresponds to the JSON property `features`
# @return [Google::Apis::LanguageV1::Features]
attr_accessor :features
@ -290,22 +289,20 @@ module Google
# @return [Array<Google::Apis::LanguageV1::ClassificationCategory>]
attr_accessor :categories
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `documentSentiment`
# @return [Google::Apis::LanguageV1::Sentiment]
attr_accessor :document_sentiment
# Entities, along with their semantic information, in the input document.
# Populated if the user enables
# AnnotateTextRequest.Features.extract_entities.
# Populated if the user enables AnnotateTextRequest.Features.extract_entities.
# Corresponds to the JSON property `entities`
# @return [Array<Google::Apis::LanguageV1::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -317,8 +314,7 @@ module Google
attr_accessor :sentences
# Tokens, along with their syntactic information, in the input document.
# Populated if the user enables
# AnnotateTextRequest.Features.extract_syntax.
# Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
# Corresponds to the JSON property `tokens`
# @return [Array<Google::Apis::LanguageV1::Token>]
attr_accessor :tokens
@ -342,8 +338,8 @@ module Google
class ClassificationCategory
include Google::Apis::Core::Hashable
# The classifier's confidence of the category. Number represents how certain
# the classifier is that this category represents the given text.
# The classifier's confidence of the category. Number represents how certain the
# classifier is that this category represents the given text.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
@ -369,8 +365,8 @@ module Google
class ClassifyTextRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1::Document]
attr_accessor :document
@ -405,16 +401,14 @@ module Google
end
# Represents dependency parse tree information for a token. (For more
# information on dependency labels, see
# http://www.aclweb.org/anthology/P13-2017
# information on dependency labels, see http://www.aclweb.org/anthology/P13-2017
class DependencyEdge
include Google::Apis::Core::Hashable
# Represents the head of this token in the dependency tree.
# This is the index of the token which has an arc going to this token.
# The index is the position of the token in the array of tokens returned
# by the API method. If this token is a root token, then the
# `head_token_index` is its own index.
# Represents the head of this token in the dependency tree. This is the index of
# the token which has an arc going to this token. The index is the position of
# the token in the array of tokens returned by the API method. If this token is
# a root token, then the `head_token_index` is its own index.
# Corresponds to the JSON property `headTokenIndex`
# @return [Fixnum]
attr_accessor :head_token_index
@ -435,39 +429,37 @@ module Google
end
end
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
class Document
include Google::Apis::Core::Hashable
# The content of the input in string format.
# Cloud audit logging exempt since it is based on user data.
# The content of the input in string format. Cloud audit logging exempt since it
# is based on user data.
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
# The Google Cloud Storage URI where the file content is located.
# This URI must be of the form: gs://bucket_name/object_name. For more
# details, see https://cloud.google.com/storage/docs/reference-uris.
# NOTE: Cloud Storage object versioning is not supported.
# The Google Cloud Storage URI where the file content is located. This URI must
# be of the form: gs://bucket_name/object_name. For more details, see https://
# cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object
# versioning is not supported.
# Corresponds to the JSON property `gcsContentUri`
# @return [String]
attr_accessor :gcs_content_uri
# The language of the document (if not specified, the language is
# automatically detected). Both ISO and BCP-47 language codes are
# accepted.<br>
# [Language
# Support](https://cloud.google.com/natural-language/docs/languages) lists
# currently supported languages for each API method. If the language (either
# specified by the caller or automatically detected) is not supported by the
# called API method, an `INVALID_ARGUMENT` error is returned.
# The language of the document (if not specified, the language is automatically
# detected). Both ISO and BCP-47 language codes are accepted. [Language Support](
# https://cloud.google.com/natural-language/docs/languages) lists currently
# supported languages for each API method. If the language (either specified by
# the caller or automatically detected) is not supported by the called API
# method, an `INVALID_ARGUMENT` error is returned.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
# returns an `INVALID_ARGUMENT` error.
# Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `
# INVALID_ARGUMENT` error.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -485,22 +477,22 @@ module Google
end
end
# Represents a phrase in the text that is a known entity, such as
# a person, an organization, or location. The API associates information, such
# as salience and mentions, with entities.
# Represents a phrase in the text that is a known entity, such as a person, an
# organization, or location. The API associates information, such as salience
# and mentions, with entities.
class Entity
include Google::Apis::Core::Hashable
# The mentions of this entity in the input document. The API currently
# supports proper noun mentions.
# The mentions of this entity in the input document. The API currently supports
# proper noun mentions.
# Corresponds to the JSON property `mentions`
# @return [Array<Google::Apis::LanguageV1::EntityMention>]
attr_accessor :mentions
# Metadata associated with the entity.
# For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
# and Knowledge Graph MID (`mid`), if they are available. For the metadata
# associated with other entity types, see the Type table below.
# Metadata associated with the entity. For most entity types, the metadata is a
# Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are
# available. For the metadata associated with other entity types, see the Type
# table below.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
@ -510,17 +502,15 @@ module Google
# @return [String]
attr_accessor :name
# The salience score associated with the entity in the [0, 1.0] range.
# The salience score for an entity provides information about the
# importance or centrality of that entity to the entire document text.
# Scores closer to 0 are less salient, while scores closer to 1.0 are highly
# salient.
# The salience score associated with the entity in the [0, 1.0] range. The
# salience score for an entity provides information about the importance or
# centrality of that entity to the entire document text. Scores closer to 0 are
# less salient, while scores closer to 1.0 are highly salient.
# Corresponds to the JSON property `salience`
# @return [Float]
attr_accessor :salience
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `sentiment`
# @return [Google::Apis::LanguageV1::Sentiment]
attr_accessor :sentiment
@ -550,8 +540,7 @@ module Google
class EntityMention
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `sentiment`
# @return [Google::Apis::LanguageV1::Sentiment]
attr_accessor :sentiment
@ -578,8 +567,8 @@ module Google
end
end
# All available features for sentiment, syntax, and semantic analysis.
# Setting each one to true will enable that specific analysis for the input.
# All available features for sentiment, syntax, and semantic analysis. Setting
# each one to true will enable that specific analysis for the input.
class Features
include Google::Apis::Core::Hashable
@ -627,9 +616,8 @@ module Google
end
end
# Represents part of speech information for a token. Parts of speech
# are as defined in
# http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
# Represents part of speech information for a token. Parts of speech are as
# defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
class PartOfSpeech
include Google::Apis::Core::Hashable
@ -718,8 +706,7 @@ module Google
class Sentence
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `sentiment`
# @return [Google::Apis::LanguageV1::Sentiment]
attr_accessor :sentiment
@ -740,20 +727,17 @@ module Google
end
end
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
class Sentiment
include Google::Apis::Core::Hashable
# A non-negative number in the [0, +inf) range, which represents
# the absolute magnitude of sentiment regardless of score (positive or
# negative).
# A non-negative number in the [0, +inf) range, which represents the absolute
# magnitude of sentiment regardless of score (positive or negative).
# Corresponds to the JSON property `magnitude`
# @return [Float]
attr_accessor :magnitude
# Sentiment score between -1.0 (negative sentiment) and 1.0
# (positive sentiment).
# Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
@ -769,12 +753,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
@ -783,15 +767,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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
@ -839,8 +823,7 @@ module Google
include Google::Apis::Core::Hashable
# Represents dependency parse tree information for a token. (For more
# information on dependency labels, see
# http://www.aclweb.org/anthology/P13-2017
# information on dependency labels, see http://www.aclweb.org/anthology/P13-2017
# Corresponds to the JSON property `dependencyEdge`
# @return [Google::Apis::LanguageV1::DependencyEdge]
attr_accessor :dependency_edge
@ -850,9 +833,8 @@ module Google
# @return [String]
attr_accessor :lemma
# Represents part of speech information for a token. Parts of speech
# are as defined in
# http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
# Represents part of speech information for a token. Parts of speech are as
# defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
# Corresponds to the JSON property `partOfSpeech`
# @return [Google::Apis::LanguageV1::PartOfSpeech]
attr_accessor :part_of_speech

View File

@ -50,8 +50,8 @@ module Google
end
# Finds named entities (currently proper names and common nouns) in the text
# along with entity types, salience, mentions for each entity, and
# other properties.
# along with entity types, salience, mentions for each entity, and other
# properties.
# @param [Google::Apis::LanguageV1::AnalyzeEntitiesRequest] analyze_entities_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -81,8 +81,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Finds entities, similar to AnalyzeEntities in the text and analyzes
# sentiment associated with each entity and its mentions.
# Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment
# associated with each entity and its mentions.
# @param [Google::Apis::LanguageV1::AnalyzeEntitySentimentRequest] analyze_entity_sentiment_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/
module LanguageV1beta1
VERSION = 'V1beta1'
REVISION = '20200406'
REVISION = '20200801'
# Apply machine learning models to reveal the structure and meaning of text
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'

View File

@ -26,8 +26,8 @@ module Google
class AnalyzeEntitiesRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta1::Document]
attr_accessor :document
@ -57,9 +57,9 @@ module Google
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -79,8 +79,8 @@ module Google
class AnalyzeSentimentRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta1::Document]
attr_accessor :document
@ -106,15 +106,14 @@ module Google
class AnalyzeSentimentResponse
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `documentSentiment`
# @return [Google::Apis::LanguageV1beta1::Sentiment]
attr_accessor :document_sentiment
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -140,8 +139,8 @@ module Google
class AnalyzeSyntaxRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta1::Document]
attr_accessor :document
@ -166,9 +165,9 @@ module Google
class AnalyzeSyntaxResponse
include Google::Apis::Core::Hashable
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -200,8 +199,8 @@ module Google
class AnnotateTextRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta1::Document]
attr_accessor :document
@ -211,8 +210,8 @@ module Google
# @return [String]
attr_accessor :encoding_type
# All available features for sentiment, syntax, and semantic analysis.
# Setting each one to true will enable that specific analysis for the input.
# All available features for sentiment, syntax, and semantic analysis. Setting
# each one to true will enable that specific analysis for the input.
# Corresponds to the JSON property `features`
# @return [Google::Apis::LanguageV1beta1::Features]
attr_accessor :features
@ -233,22 +232,20 @@ module Google
class AnnotateTextResponse
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `documentSentiment`
# @return [Google::Apis::LanguageV1beta1::Sentiment]
attr_accessor :document_sentiment
# Entities, along with their semantic information, in the input document.
# Populated if the user enables
# AnnotateTextRequest.Features.extract_entities.
# Populated if the user enables AnnotateTextRequest.Features.extract_entities.
# Corresponds to the JSON property `entities`
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -260,8 +257,7 @@ module Google
attr_accessor :sentences
# Tokens, along with their syntactic information, in the input document.
# Populated if the user enables
# AnnotateTextRequest.Features.extract_syntax.
# Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
# Corresponds to the JSON property `tokens`
# @return [Array<Google::Apis::LanguageV1beta1::Token>]
attr_accessor :tokens
@ -284,11 +280,10 @@ module Google
class DependencyEdge
include Google::Apis::Core::Hashable
# Represents the head of this token in the dependency tree.
# This is the index of the token which has an arc going to this token.
# The index is the position of the token in the array of tokens returned
# by the API method. If this token is a root token, then the
# `head_token_index` is its own index.
# Represents the head of this token in the dependency tree. This is the index of
# the token which has an arc going to this token. The index is the position of
# the token in the array of tokens returned by the API method. If this token is
# a root token, then the `head_token_index` is its own index.
# Corresponds to the JSON property `headTokenIndex`
# @return [Fixnum]
attr_accessor :head_token_index
@ -309,39 +304,37 @@ module Google
end
end
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
class Document
include Google::Apis::Core::Hashable
# The content of the input in string format.
# Cloud audit logging exempt since it is based on user data.
# The content of the input in string format. Cloud audit logging exempt since it
# is based on user data.
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
# The Google Cloud Storage URI where the file content is located.
# This URI must be of the form: gs://bucket_name/object_name. For more
# details, see https://cloud.google.com/storage/docs/reference-uris.
# NOTE: Cloud Storage object versioning is not supported.
# The Google Cloud Storage URI where the file content is located. This URI must
# be of the form: gs://bucket_name/object_name. For more details, see https://
# cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object
# versioning is not supported.
# Corresponds to the JSON property `gcsContentUri`
# @return [String]
attr_accessor :gcs_content_uri
# The language of the document (if not specified, the language is
# automatically detected). Both ISO and BCP-47 language codes are
# accepted.<br>
# [Language
# Support](https://cloud.google.com/natural-language/docs/languages) lists
# currently supported languages for each API method. If the language (either
# specified by the caller or automatically detected) is not supported by the
# called API method, an `INVALID_ARGUMENT` error is returned.
# The language of the document (if not specified, the language is automatically
# detected). Both ISO and BCP-47 language codes are accepted. [Language Support](
# https://cloud.google.com/natural-language/docs/languages) lists currently
# supported languages for each API method. If the language (either specified by
# the caller or automatically detected) is not supported by the called API
# method, an `INVALID_ARGUMENT` error is returned.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
# returns an `INVALID_ARGUMENT` error.
# Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `
# INVALID_ARGUMENT` error.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -359,21 +352,21 @@ module Google
end
end
# Represents a phrase in the text that is a known entity, such as
# a person, an organization, or location. The API associates information, such
# as salience and mentions, with entities.
# Represents a phrase in the text that is a known entity, such as a person, an
# organization, or location. The API associates information, such as salience
# and mentions, with entities.
class Entity
include Google::Apis::Core::Hashable
# The mentions of this entity in the input document. The API currently
# supports proper noun mentions.
# The mentions of this entity in the input document. The API currently supports
# proper noun mentions.
# Corresponds to the JSON property `mentions`
# @return [Array<Google::Apis::LanguageV1beta1::EntityMention>]
attr_accessor :mentions
# Metadata associated with the entity.
# Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
# available. The associated keys are "wikipedia_url" and "mid", respectively.
# Metadata associated with the entity. Currently, Wikipedia URLs and Knowledge
# Graph MIDs are provided, if available. The associated keys are "wikipedia_url"
# and "mid", respectively.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
@ -383,11 +376,10 @@ module Google
# @return [String]
attr_accessor :name
# The salience score associated with the entity in the [0, 1.0] range.
# The salience score for an entity provides information about the
# importance or centrality of that entity to the entire document text.
# Scores closer to 0 are less salient, while scores closer to 1.0 are highly
# salient.
# The salience score associated with the entity in the [0, 1.0] range. The
# salience score for an entity provides information about the importance or
# centrality of that entity to the entire document text. Scores closer to 0 are
# less salient, while scores closer to 1.0 are highly salient.
# Corresponds to the JSON property `salience`
# @return [Float]
attr_accessor :salience
@ -437,8 +429,8 @@ module Google
end
end
# All available features for sentiment, syntax, and semantic analysis.
# Setting each one to true will enable that specific analysis for the input.
# All available features for sentiment, syntax, and semantic analysis. Setting
# each one to true will enable that specific analysis for the input.
class Features
include Google::Apis::Core::Hashable
@ -561,8 +553,7 @@ module Google
class Sentence
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Corresponds to the JSON property `sentiment`
# @return [Google::Apis::LanguageV1beta1::Sentiment]
attr_accessor :sentiment
@ -583,27 +574,24 @@ module Google
end
end
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
class Sentiment
include Google::Apis::Core::Hashable
# A non-negative number in the [0, +inf) range, which represents
# the absolute magnitude of sentiment regardless of score (positive or
# negative).
# A non-negative number in the [0, +inf) range, which represents the absolute
# magnitude of sentiment regardless of score (positive or negative).
# Corresponds to the JSON property `magnitude`
# @return [Float]
attr_accessor :magnitude
# DEPRECATED FIELD - This field is being deprecated in
# favor of score. Please refer to our documentation at
# https://cloud.google.com/natural-language/docs for more information.
# DEPRECATED FIELD - This field is being deprecated in favor of score. Please
# refer to our documentation at https://cloud.google.com/natural-language/docs
# for more information.
# Corresponds to the JSON property `polarity`
# @return [Float]
attr_accessor :polarity
# Sentiment score between -1.0 (negative sentiment) and 1.0
# (positive sentiment).
# Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
@ -620,12 +608,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
@ -634,15 +622,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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

View File

@ -50,8 +50,8 @@ module Google
end
# Finds named entities (currently proper names and common nouns) in the text
# along with entity types, salience, mentions for each entity, and
# other properties.
# along with entity types, salience, mentions for each entity, and other
# properties.
# @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/
module LanguageV1beta2
VERSION = 'V1beta2'
REVISION = '20200406'
REVISION = '20200801'
# Apply machine learning models to reveal the structure and meaning of text
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'

View File

@ -26,8 +26,8 @@ module Google
class AnalyzeEntitiesRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta2::Document]
attr_accessor :document
@ -57,9 +57,9 @@ module Google
# @return [Array<Google::Apis::LanguageV1beta2::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -79,8 +79,8 @@ module Google
class AnalyzeEntitySentimentRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta2::Document]
attr_accessor :document
@ -110,9 +110,9 @@ module Google
# @return [Array<Google::Apis::LanguageV1beta2::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -132,8 +132,8 @@ module Google
class AnalyzeSentimentRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta2::Document]
attr_accessor :document
@ -159,16 +159,15 @@ module Google
class AnalyzeSentimentResponse
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Next ID: 6
# Corresponds to the JSON property `documentSentiment`
# @return [Google::Apis::LanguageV1beta2::Sentiment]
attr_accessor :document_sentiment
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -194,8 +193,8 @@ module Google
class AnalyzeSyntaxRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta2::Document]
attr_accessor :document
@ -220,9 +219,9 @@ module Google
class AnalyzeSyntaxResponse
include Google::Apis::Core::Hashable
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -254,8 +253,8 @@ module Google
class AnnotateTextRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta2::Document]
attr_accessor :document
@ -265,9 +264,8 @@ module Google
# @return [String]
attr_accessor :encoding_type
# All available features for sentiment, syntax, and semantic analysis.
# Setting each one to true will enable that specific analysis for the input.
# Next ID: 10
# All available features for sentiment, syntax, and semantic analysis. Setting
# each one to true will enable that specific analysis for the input. Next ID: 10
# Corresponds to the JSON property `features`
# @return [Google::Apis::LanguageV1beta2::Features]
attr_accessor :features
@ -293,23 +291,21 @@ module Google
# @return [Array<Google::Apis::LanguageV1beta2::ClassificationCategory>]
attr_accessor :categories
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Next ID: 6
# Corresponds to the JSON property `documentSentiment`
# @return [Google::Apis::LanguageV1beta2::Sentiment]
attr_accessor :document_sentiment
# Entities, along with their semantic information, in the input document.
# Populated if the user enables
# AnnotateTextRequest.Features.extract_entities.
# Populated if the user enables AnnotateTextRequest.Features.extract_entities.
# Corresponds to the JSON property `entities`
# @return [Array<Google::Apis::LanguageV1beta2::Entity>]
attr_accessor :entities
# The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# The language of the text, which will be the same as the language specified in
# the request or, if not specified, the automatically-detected language. See
# Document.language field for more details.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -321,8 +317,7 @@ module Google
attr_accessor :sentences
# Tokens, along with their syntactic information, in the input document.
# Populated if the user enables
# AnnotateTextRequest.Features.extract_syntax.
# Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
# Corresponds to the JSON property `tokens`
# @return [Array<Google::Apis::LanguageV1beta2::Token>]
attr_accessor :tokens
@ -346,8 +341,8 @@ module Google
class ClassificationCategory
include Google::Apis::Core::Hashable
# The classifier's confidence of the category. Number represents how certain
# the classifier is that this category represents the given text.
# The classifier's confidence of the category. Number represents how certain the
# classifier is that this category represents the given text.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
@ -373,8 +368,8 @@ module Google
class ClassifyTextRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1beta2::Document]
attr_accessor :document
@ -412,11 +407,10 @@ module Google
class DependencyEdge
include Google::Apis::Core::Hashable
# Represents the head of this token in the dependency tree.
# This is the index of the token which has an arc going to this token.
# The index is the position of the token in the array of tokens returned
# by the API method. If this token is a root token, then the
# `head_token_index` is its own index.
# Represents the head of this token in the dependency tree. This is the index of
# the token which has an arc going to this token. The index is the position of
# the token in the array of tokens returned by the API method. If this token is
# a root token, then the `head_token_index` is its own index.
# Corresponds to the JSON property `headTokenIndex`
# @return [Fixnum]
attr_accessor :head_token_index
@ -437,52 +431,50 @@ module Google
end
end
# ################################################################ #
# Represents the input to API methods.
# ################################################################ # Represents
# the input to API methods.
class Document
include Google::Apis::Core::Hashable
# Indicates how detected boilerplate(e.g. advertisements, copyright
# declarations, banners) should be handled for this document. If not
# specified, boilerplate will be treated the same as content.
# Indicates how detected boilerplate(e.g. advertisements, copyright declarations,
# banners) should be handled for this document. If not specified, boilerplate
# will be treated the same as content.
# Corresponds to the JSON property `boilerplateHandling`
# @return [String]
attr_accessor :boilerplate_handling
# The content of the input in string format.
# Cloud audit logging exempt since it is based on user data.
# The content of the input in string format. Cloud audit logging exempt since it
# is based on user data.
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
# The Google Cloud Storage URI where the file content is located.
# This URI must be of the form: gs://bucket_name/object_name. For more
# details, see https://cloud.google.com/storage/docs/reference-uris.
# NOTE: Cloud Storage object versioning is not supported.
# The Google Cloud Storage URI where the file content is located. This URI must
# be of the form: gs://bucket_name/object_name. For more details, see https://
# cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object
# versioning is not supported.
# Corresponds to the JSON property `gcsContentUri`
# @return [String]
attr_accessor :gcs_content_uri
# The language of the document (if not specified, the language is
# automatically detected). Both ISO and BCP-47 language codes are
# accepted.<br>
# [Language
# Support](https://cloud.google.com/natural-language/docs/languages) lists
# currently supported languages for each API method. If the language (either
# specified by the caller or automatically detected) is not supported by the
# called API method, an `INVALID_ARGUMENT` error is returned.
# The language of the document (if not specified, the language is automatically
# detected). Both ISO and BCP-47 language codes are accepted. [Language Support](
# https://cloud.google.com/natural-language/docs/languages) lists currently
# supported languages for each API method. If the language (either specified by
# the caller or automatically detected) is not supported by the called API
# method, an `INVALID_ARGUMENT` error is returned.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# The web URI where the document comes from. This URI is not used for
# fetching the content, but as a hint for analyzing the document.
# The web URI where the document comes from. This URI is not used for fetching
# the content, but as a hint for analyzing the document.
# Corresponds to the JSON property `referenceWebUri`
# @return [String]
attr_accessor :reference_web_uri
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
# returns an `INVALID_ARGUMENT` error.
# Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `
# INVALID_ARGUMENT` error.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -502,22 +494,22 @@ module Google
end
end
# Represents a phrase in the text that is a known entity, such as
# a person, an organization, or location. The API associates information, such
# as salience and mentions, with entities.
# Represents a phrase in the text that is a known entity, such as a person, an
# organization, or location. The API associates information, such as salience
# and mentions, with entities.
class Entity
include Google::Apis::Core::Hashable
# The mentions of this entity in the input document. The API currently
# supports proper noun mentions.
# The mentions of this entity in the input document. The API currently supports
# proper noun mentions.
# Corresponds to the JSON property `mentions`
# @return [Array<Google::Apis::LanguageV1beta2::EntityMention>]
attr_accessor :mentions
# Metadata associated with the entity.
# For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
# and Knowledge Graph MID (`mid`), if they are available. For the metadata
# associated with other entity types, see the Type table below.
# Metadata associated with the entity. For most entity types, the metadata is a
# Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are
# available. For the metadata associated with other entity types, see the Type
# table below.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
@ -527,17 +519,15 @@ module Google
# @return [String]
attr_accessor :name
# The salience score associated with the entity in the [0, 1.0] range.
# The salience score for an entity provides information about the
# importance or centrality of that entity to the entire document text.
# Scores closer to 0 are less salient, while scores closer to 1.0 are highly
# salient.
# The salience score associated with the entity in the [0, 1.0] range. The
# salience score for an entity provides information about the importance or
# centrality of that entity to the entire document text. Scores closer to 0 are
# less salient, while scores closer to 1.0 are highly salient.
# Corresponds to the JSON property `salience`
# @return [Float]
attr_accessor :salience
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Next ID: 6
# Corresponds to the JSON property `sentiment`
# @return [Google::Apis::LanguageV1beta2::Sentiment]
@ -568,8 +558,7 @@ module Google
class EntityMention
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Next ID: 6
# Corresponds to the JSON property `sentiment`
# @return [Google::Apis::LanguageV1beta2::Sentiment]
@ -597,16 +586,14 @@ module Google
end
end
# All available features for sentiment, syntax, and semantic analysis.
# Setting each one to true will enable that specific analysis for the input.
# Next ID: 10
# All available features for sentiment, syntax, and semantic analysis. Setting
# each one to true will enable that specific analysis for the input. Next ID: 10
class Features
include Google::Apis::Core::Hashable
# Classify the full document into categories. If this is true,
# the API will use the default model which classifies into a
# [predefined
# taxonomy](https://cloud.google.com/natural-language/docs/categories).
# Classify the full document into categories. If this is true, the API will use
# the default model which classifies into a [predefined taxonomy](https://cloud.
# google.com/natural-language/docs/categories).
# Corresponds to the JSON property `classifyText`
# @return [Boolean]
attr_accessor :classify_text
@ -739,8 +726,7 @@ module Google
class Sentence
include Google::Apis::Core::Hashable
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Next ID: 6
# Corresponds to the JSON property `sentiment`
# @return [Google::Apis::LanguageV1beta2::Sentiment]
@ -762,21 +748,18 @@ module Google
end
end
# Represents the feeling associated with the entire text or entities in
# the text.
# Represents the feeling associated with the entire text or entities in the text.
# Next ID: 6
class Sentiment
include Google::Apis::Core::Hashable
# A non-negative number in the [0, +inf) range, which represents
# the absolute magnitude of sentiment regardless of score (positive or
# negative).
# A non-negative number in the [0, +inf) range, which represents the absolute
# magnitude of sentiment regardless of score (positive or negative).
# Corresponds to the JSON property `magnitude`
# @return [Float]
attr_accessor :magnitude
# Sentiment score between -1.0 (negative sentiment) and 1.0
# (positive sentiment).
# Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
@ -792,12 +775,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
@ -806,15 +789,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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

View File

@ -50,8 +50,8 @@ module Google
end
# Finds named entities (currently proper names and common nouns) in the text
# along with entity types, salience, mentions for each entity, and
# other properties.
# along with entity types, salience, mentions for each entity, and other
# properties.
# @param [Google::Apis::LanguageV1beta2::AnalyzeEntitiesRequest] analyze_entities_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -81,8 +81,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Finds entities, similar to AnalyzeEntities in the text and analyzes
# sentiment associated with each entity and its mentions.
# Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment
# associated with each entity and its mentions.
# @param [Google::Apis::LanguageV1beta2::AnalyzeEntitySentimentRequest] analyze_entity_sentiment_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

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

View File

@ -31,9 +31,8 @@ module Google
# @return [String]
attr_accessor :author
# The resource name of the book.
# Book names have the form `shelves/`shelf_id`/books/`book_id``.
# The name is ignored when creating a book.
# The resource name of the book. Book names have the form `shelves/`shelf_id`/
# books/`book_id``. The name is ignored when creating a book.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -71,11 +70,9 @@ module Google
# @return [Array<Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Book>]
attr_accessor :books
# A token to retrieve next page of results.
# Pass this value in the
# ListBooksRequest.page_token
# field in the subsequent call to `ListBooks` method to retrieve the next
# page of results.
# A token to retrieve next page of results. Pass this value in the
# ListBooksRequest.page_token field in the subsequent call to `ListBooks` method
# to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -95,11 +92,9 @@ module Google
class GoogleExampleLibraryagentV1ListShelvesResponse
include Google::Apis::Core::Hashable
# A token to retrieve next page of results.
# Pass this value in the
# ListShelvesRequest.page_token
# field in the subsequent call to `ListShelves` method to retrieve the next
# page of results.
# A token to retrieve next page of results. Pass this value in the
# ListShelvesRequest.page_token field in the subsequent call to `ListShelves`
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -124,9 +119,8 @@ module Google
class GoogleExampleLibraryagentV1Shelf
include Google::Apis::Core::Hashable
# Output only. The resource name of the shelf.
# Shelf names have the form `shelves/`shelf_id``.
# The name is ignored when creating a shelf.
# Output only. The resource name of the shelf. Shelf names have the form `
# shelves/`shelf_id``. The name is ignored when creating a shelf.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -80,13 +80,12 @@ module Google
# Lists shelves. The order is unspecified but deterministic. Newly created
# shelves will not necessarily be added to the end of this list.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer shelves than requested.
# If unspecified, server will pick an appropriate default.
# Requested page size. Server may return fewer shelves than requested. If
# unspecified, server will pick an appropriate default.
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListShelvesResponse.next_page_token
# returned from the previous call to `ListShelves` method.
# A token identifying a page of results the server should return. Typically,
# this is the value of ListShelvesResponse.next_page_token returned from the
# previous call to `ListShelves` method.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -179,18 +178,17 @@ module Google
end
# Lists books in a shelf. The order is unspecified but deterministic. Newly
# created books will not necessarily be added to the end of this list.
# Returns NOT_FOUND if the shelf does not exist.
# created books will not necessarily be added to the end of this list. Returns
# NOT_FOUND if the shelf does not exist.
# @param [String] parent
# Required. The name of the shelf whose books we'd like to list.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer books than requested.
# If unspecified, server will pick an appropriate default.
# Requested page size. Server may return fewer books than requested. If
# unspecified, server will pick an appropriate default.
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListBooksResponse.next_page_token.
# returned from the previous call to `ListBooks` method.
# A token identifying a page of results the server should return. Typically,
# this is the value of ListBooksResponse.next_page_token. returned from the
# previous call to `ListBooks` method.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -221,8 +219,7 @@ module Google
end
# Return a book to the library. Returns the book if it is returned to the
# library successfully.
# Returns error if the book does not belong to the library
# library successfully. Returns error if the book does not belong to the library
# or the users didn't borrow before.
# @param [String] name
# Required. The name of the book to return.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/managed-microsoft-ad/
module ManagedidentitiesV1
VERSION = 'V1'
REVISION = '20200622'
REVISION = '20200727'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -84,8 +84,7 @@ module Google
# @param [String] filter
# The standard list filter.
# @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet
# revealed.
# If true, the returned list will include locations which are not yet revealed.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
@ -123,8 +122,8 @@ module Google
# Adds an AD trust to a domain.
# @param [String] name
# Required. The resource domain name, project name and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The resource domain name, project name and location using the form: `
# projects/`project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1::AttachTrustRequest] attach_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -157,21 +156,17 @@ module Google
# Creates a Microsoft AD domain.
# @param [String] parent
# Required. The resource project name and location using the form:
# `projects/`project_id`/locations/global`
# Required. The resource project name and location using the form: `projects/`
# project_id`/locations/global`
# @param [Google::Apis::ManagedidentitiesV1::Domain] domain_object
# @param [String] domain_name
# Required. The fully qualified domain name.
# e.g. mydomain.myorganization.com, with the following restrictions:
# * Must contain only lowercase letters, numbers, periods and hyphens.
# * Must start with a letter.
# * Must contain between 2-64 characters.
# * Must end with a number or a letter.
# * Must not start with period.
# * First segement length (mydomain form example above) shouldn't exceed
# 15 chars.
# * The last segment cannot be fully numeric.
# * Must be unique within the customer project.
# Required. The fully qualified domain name. e.g. mydomain.myorganization.com,
# with the following restrictions: * Must contain only lowercase letters,
# numbers, periods and hyphens. * Must start with a letter. * Must contain
# between 2-64 characters. * Must end with a number or a letter. * Must not
# start with period. * First segement length (mydomain form example above)
# shouldn't exceed 15 chars. * The last segment cannot be fully numeric. * Must
# be unique within the customer project.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -204,8 +199,8 @@ module Google
# Deletes a domain.
# @param [String] name
# Required. The domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The domain resource name using the form: `projects/`project_id`/
# locations/global/domains/`domain_name``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -269,8 +264,8 @@ module Google
# Gets information about a domain.
# @param [String] name
# Required. The domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The domain resource name using the form: `projects/`project_id`/
# locations/global/domains/`domain_name``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -298,22 +293,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
@ -344,27 +336,22 @@ module Google
# Lists domains in a project.
# @param [String] parent
# Required. The resource name of the domain location using the form:
# `projects/`project_id`/locations/global`
# Required. The resource name of the domain location using the form: `projects/`
# project_id`/locations/global`
# @param [String] filter
# Optional. A filter specifying constraints of a list operation.
# For example, `Domain.fqdn="mydomain.myorginization"`.
# Optional. A filter specifying constraints of a list operation. For example, `
# Domain.fqdn="mydomain.myorginization"`.
# @param [String] order_by
# Optional. Specifies the ordering of results. See
# [Sorting
# order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
# for more information.
# Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
# google.com/apis/design/design_patterns#sorting_order) for more information.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return.
# If not specified, a default value of 1000 will be used.
# Regardless of the page_size value, the response may include a partial list.
# Callers should rely on a response's
# next_page_token
# to determine if there are additional results to list.
# Optional. The maximum number of items to return. If not specified, a default
# value of 1000 will be used. Regardless of the page_size value, the response
# may include a partial list. Callers should rely on a response's
# next_page_token to determine if there are additional results to list.
# @param [String] page_token
# Optional. The `next_page_token` value returned from a previous
# ListDomainsRequest
# request, if any.
# ListDomainsRequest request, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -398,16 +385,13 @@ module Google
# Updates the metadata and configuration of a domain.
# @param [String] name
# Required. The unique name of the domain using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``.
# Required. The unique name of the domain using the form: `projects/`project_id`/
# locations/global/domains/`domain_name``.
# @param [Google::Apis::ManagedidentitiesV1::Domain] domain_object
# @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in this
# field. The elements of the repeated paths field may only include
# fields from Domain:
# * `labels`
# * `locations`
# * `authorized_networks`
# field. The elements of the repeated paths field may only include fields from
# Domain: * `labels` * `locations` * `authorized_networks`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -440,8 +424,8 @@ module Google
# Updates the DNS conditional forwarder.
# @param [String] name
# Required. The resource domain name, project name and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The resource domain name, project name and location using the form: `
# projects/`project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1::ReconfigureTrustRequest] reconfigure_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -474,8 +458,8 @@ module Google
# Resets a domain's administrator password.
# @param [String] name
# Required. The domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The domain resource name using the form: `projects/`project_id`/
# locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1::ResetAdminPasswordRequest] reset_admin_password_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -507,11 +491,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::ManagedidentitiesV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -542,15 +526,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::ManagedidentitiesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -616,15 +599,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.
@ -658,10 +639,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
@ -691,9 +672,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
@ -723,15 +703,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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/managed-microsoft-ad/
module ManagedidentitiesV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200622'
REVISION = '20200727'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -84,8 +84,7 @@ module Google
# @param [String] filter
# The standard list filter.
# @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet
# revealed.
# If true, the returned list will include locations which are not yet revealed.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
@ -121,11 +120,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds AD trust in a given domain.
# Operation<response: google.protobuf.Empty>
# Adds AD trust in a given domain. Operation
# @param [String] name
# The resource domain name, project name and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# The resource domain name, project name and location using the form: `projects/`
# project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1alpha1::AttachTrustRequest] attach_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -156,24 +154,19 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a Microsoft AD Domain in a given project.
# Operation<response: google.protobuf.Empty>
# Creates a Microsoft AD Domain in a given project. Operation
# @param [String] parent
# Resource project name and location using the form:
# `projects/`project_id`/locations/global`
# Resource project name and location using the form: `projects/`project_id`/
# locations/global`
# @param [Google::Apis::ManagedidentitiesV1alpha1::Domain] domain_object
# @param [String] domain_name
# The fully qualified domain name.
# e.g. mydomain.myorganization.com, with the following restrictions:
# * Must contain only lowercase letters, numbers, periods and hyphens.
# * Must start with a letter.
# * Must contain between 2-64 characters.
# * Must end with a number or a letter.
# * Must not start with period.
# * Must be unique within the project.
# * First segement length (mydomain form example above) shouldn't exceed
# 15 chars.
# * The last segment cannot be fully numeric.
# The fully qualified domain name. e.g. mydomain.myorganization.com, with the
# following restrictions: * Must contain only lowercase letters, numbers,
# periods and hyphens. * Must start with a letter. * Must contain between 2-64
# characters. * Must end with a number or a letter. * Must not start with period.
# * Must be unique within the project. * First segement length (mydomain form
# example above) shouldn't exceed 15 chars. * The last segment cannot be fully
# numeric.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -204,11 +197,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes identified domain.
# Operation<response: google.protobuf.Empty>
# Deletes identified domain. Operation
# @param [String] name
# Domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Domain resource name using the form: `projects/`project_id`/locations/global/
# domains/`domain_name``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -236,11 +228,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Removes identified trust.
# Operation<response: google.protobuf.Empty>
# Removes identified trust. Operation
# @param [String] name
# The resource domain name, project name, and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# The resource domain name, project name, and location using the form: `projects/
# `project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1alpha1::DetachTrustRequest] detach_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -273,8 +264,8 @@ module Google
# Gets details of a single Domain.
# @param [String] name
# Domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Domain resource name using the form: `projects/`project_id`/locations/global/
# domains/`domain_name``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -302,22 +293,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
@ -348,20 +336,19 @@ module Google
# Lists Domains in a given project.
# @param [String] parent
# Required. The resource name of the domain location using the form:
# `projects/`project_id`/locations/global`
# Required. The resource name of the domain location using the form: `projects/`
# project_id`/locations/global`
# @param [String] filter
# Optional. Filter specifying constraints of a list operation.
# For example, `Domain.fqdn="mydomain.myorginization"`.
# Optional. Filter specifying constraints of a list operation. For example, `
# Domain.fqdn="mydomain.myorginization"`.
# @param [String] order_by
# Optional. Specifies the ordering of results following syntax at
# https://cloud.google.com/apis/design/design_patterns#sorting_order.
# Optional. Specifies the ordering of results following syntax at https://cloud.
# google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size
# If not specified, a default value of 1000 will be used by the service.
# Regardless of the page_size value, the response may include a partial list
# and a caller should only rely on response's
# next_page_token
# to determine if there are more instances left to be queried.
# Regardless of the page_size value, the response may include a partial list and
# a caller should only rely on response's next_page_token to determine if there
# are more instances left to be queried.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] fields
@ -395,20 +382,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the metadata and configuration of a specified domain.
# Operation<response: google.protobuf.Empty>
# Updates the metadata and configuration of a specified domain. Operation
# @param [String] name
# Output only. Unique name of the domain in this scope including projects and
# location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``.
# location using the form: `projects/`project_id`/locations/global/domains/`
# domain_name``.
# @param [Google::Apis::ManagedidentitiesV1alpha1::Domain] domain_object
# @param [String] update_mask
# Mask of fields to update. At least one path must be supplied in this
# field. The elements of the repeated paths field may only include these
# fields from Domain:
# * `labels`
# * `locations`
# * `authorized_networks`
# Mask of fields to update. At least one path must be supplied in this field.
# The elements of the repeated paths field may only include these fields from
# Domain: * `labels` * `locations` * `authorized_networks`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -439,11 +422,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the dns conditional forwarder.
# Operation<response: google.protobuf.Empty>
# Updates the dns conditional forwarder. Operation
# @param [String] name
# The resource domain name, project name and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# The resource domain name, project name and location using the form: `projects/`
# project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1alpha1::ReconfigureTrustRequest] reconfigure_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -477,8 +459,8 @@ module Google
# Resets managed identities admin password identified by
# managed_identities_admin_name
# @param [String] name
# The domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# The domain resource name using the form: `projects/`project_id`/locations/
# global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1alpha1::ResetAdminPasswordRequest] reset_admin_password_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -510,11 +492,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::ManagedidentitiesV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -545,15 +527,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::ManagedidentitiesV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -584,11 +565,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Validate the trust state
# Operation<response: google.protobuf.Empty>
# Validate the trust state Operation
# @param [String] name
# The resource domain name, project name, and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# The resource domain name, project name, and location using the form: `projects/
# `project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1alpha1::ValidateTrustRequest] validate_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -619,15 +599,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.
@ -661,10 +639,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
@ -694,9 +672,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
@ -726,15 +703,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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/managed-microsoft-ad/
module ManagedidentitiesV1beta1
VERSION = 'V1beta1'
REVISION = '20200622'
REVISION = '20200727'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -84,8 +84,7 @@ module Google
# @param [String] filter
# The standard list filter.
# @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet
# revealed.
# If true, the returned list will include locations which are not yet revealed.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
@ -123,8 +122,8 @@ module Google
# Adds an AD trust to a domain.
# @param [String] name
# Required. The resource domain name, project name and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The resource domain name, project name and location using the form: `
# projects/`project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1beta1::AttachTrustRequest] attach_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -157,21 +156,17 @@ module Google
# Creates a Microsoft AD domain.
# @param [String] parent
# Required. The resource project name and location using the form:
# `projects/`project_id`/locations/global`
# Required. The resource project name and location using the form: `projects/`
# project_id`/locations/global`
# @param [Google::Apis::ManagedidentitiesV1beta1::Domain] domain_object
# @param [String] domain_name
# Required. A domain name, e.g. mydomain.myorg.com, with the following
# restrictions:
# * Must contain only lowercase letters, numbers, periods and hyphens.
# * Must start with a letter.
# * Must contain between 2-64 characters.
# * Must end with a number or a letter.
# * Must not start with period.
# * First segement length (mydomain form example above) shouldn't exceed
# 15 chars.
# * The last segment cannot be fully numeric.
# * Must be unique within the customer project.
# restrictions: * Must contain only lowercase letters, numbers, periods and
# hyphens. * Must start with a letter. * Must contain between 2-64 characters. *
# Must end with a number or a letter. * Must not start with period. * First
# segement length (mydomain form example above) shouldn't exceed 15 chars. * The
# last segment cannot be fully numeric. * Must be unique within the customer
# project.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -204,8 +199,8 @@ module Google
# Deletes a domain.
# @param [String] name
# Required. The domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The domain resource name using the form: `projects/`project_id`/
# locations/global/domains/`domain_name``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -269,8 +264,8 @@ module Google
# Gets information about a domain.
# @param [String] name
# Required. The domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The domain resource name using the form: `projects/`project_id`/
# locations/global/domains/`domain_name``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -298,22 +293,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
@ -344,23 +336,19 @@ module Google
# Lists domains in a project.
# @param [String] parent
# Required. The resource name of the domain location using the form:
# `projects/`project_id`/locations/global`
# Required. The resource name of the domain location using the form: `projects/`
# project_id`/locations/global`
# @param [String] filter
# Optional. A filter specifying constraints of a list operation.
# For example, `Domain.fqdn="mydomain.myorginization"`.
# Optional. A filter specifying constraints of a list operation. For example, `
# Domain.fqdn="mydomain.myorginization"`.
# @param [String] order_by
# Optional. Specifies the ordering of results. See
# [Sorting
# order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
# for more information.
# Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
# google.com/apis/design/design_patterns#sorting_order) for more information.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return.
# If not specified, a default value of 1000 will be used.
# Regardless of the page_size value, the response may include a partial list.
# Callers should rely on a response's
# next_page_token
# to determine if there are additional results to list.
# Optional. The maximum number of items to return. If not specified, a default
# value of 1000 will be used. Regardless of the page_size value, the response
# may include a partial list. Callers should rely on a response's
# next_page_token to determine if there are additional results to list.
# @param [String] page_token
# The `next_page_token` value returned from a previous ListDomainsRequest
# request, if any.
@ -397,16 +385,13 @@ module Google
# Updates the metadata and configuration of a domain.
# @param [String] name
# Output only. The unique name of the domain using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``.
# Output only. The unique name of the domain using the form: `projects/`
# project_id`/locations/global/domains/`domain_name``.
# @param [Google::Apis::ManagedidentitiesV1beta1::Domain] domain_object
# @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in this
# field. The elements of the repeated paths field may only include
# fields from Domain:
# * `labels`
# * `locations`
# * `authorized_networks`
# field. The elements of the repeated paths field may only include fields from
# Domain: * `labels` * `locations` * `authorized_networks`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -439,8 +424,8 @@ module Google
# Updates the DNS conditional forwarder.
# @param [String] name
# Required. The resource domain name, project name and location using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The resource domain name, project name and location using the form: `
# projects/`project_id`/locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1beta1::ReconfigureTrustRequest] reconfigure_trust_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -473,8 +458,8 @@ module Google
# Resets a domain's administrator password.
# @param [String] name
# Required. The domain resource name using the form:
# `projects/`project_id`/locations/global/domains/`domain_name``
# Required. The domain resource name using the form: `projects/`project_id`/
# locations/global/domains/`domain_name``
# @param [Google::Apis::ManagedidentitiesV1beta1::ResetAdminPasswordRequest] reset_admin_password_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -506,11 +491,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::ManagedidentitiesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -541,15 +526,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::ManagedidentitiesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -615,15 +599,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.
@ -657,10 +639,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
@ -690,9 +672,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
@ -722,15 +703,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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/custom-app-api/
module PlaycustomappV1
VERSION = 'V1'
REVISION = '20200611'
REVISION = '20200801'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -31,8 +31,8 @@ module Google
# @return [String]
attr_accessor :language_code
# Output only. Package name of the created Android app.
# Only present in the API response.
# Output only. Package name of the created Android app. Only present in the API
# response.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/spectrum-access-system/
module ProdTtSasportalV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200722'
REVISION = '20200801'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -26,12 +26,10 @@ module Google
class SasPortalAssignment
include Google::Apis::Core::Hashable
# The identities the role is assigned to. It can have the following
# values:
# * ``user_email``: An email address that represents a specific
# Google account. For example: `alice@gmail.com`.
# * ``group_email``: An email address that represents a Google
# group. For example, `viewers@gmail.com`.
# The identities the role is assigned to. It can have the following values: * ``
# user_email``: An email address that represents a specific Google account. For
# example: `alice@gmail.com`. * ``group_email``: An email address that
# represents a Google group. For example, `viewers@gmail.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
@ -56,8 +54,8 @@ module Google
class SasPortalBulkCreateDeviceRequest
include Google::Apis::Core::Hashable
# Required. A csv with each row representing a [device]. Each row must
# conform to the regulations described on CreateDeviceRequest's device field.
# Required. A csv with each row representing a [device]. Each row must conform
# to the regulations described on CreateDeviceRequest's device field.
# Corresponds to the JSON property `csv`
# @return [String]
attr_accessor :csv
@ -95,8 +93,8 @@ module Google
class SasPortalCreateSignedDeviceRequest
include Google::Apis::Core::Hashable
# Required. JSON Web Token signed using a CPI private key. Payload
# must be the JSON encoding of the [Device]. The user_id field must be set.
# Required. JSON Web Token signed using a CPI private key. Payload must be the
# JSON encoding of the [Device]. The user_id field must be set.
# Corresponds to the JSON property `encodedDevice`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -189,8 +187,7 @@ module Google
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig]
attr_accessor :preloaded_config
# A serial number assigned to the device by the device
# manufacturer.
# A serial number assigned to the device by the device manufacturer.
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
@ -230,8 +227,7 @@ module Google
# This field is related to the radioTechnology field and provides the air
# interface specification that the CBSD is compliant with at the time of
# registration.
# Optional
# registration. Optional
# Corresponds to the JSON property `supportedSpec`
# @return [String]
attr_accessor :supported_spec
@ -321,9 +317,9 @@ module Google
end
end
# Device grant. It is an authorization provided by the Spectrum
# Access System to a device to transmit using specified operating
# parameters after a successful heartbeat by the device.
# Device grant. It is an authorization provided by the Spectrum Access System to
# a device to transmit using specified operating parameters after a successful
# heartbeat by the device.
class SasPortalDeviceGrant
include Google::Apis::Core::Hashable
@ -342,10 +338,10 @@ module Google
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange]
attr_accessor :frequency_range
# Maximum Equivalent Isotropically Radiated Power (EIRP) permitted
# by the grant. The maximum EIRP is in units of dBm/MHz. The
# value of maxEirp represents the average (RMS) EIRP that would be
# measured by the procedure defined in FCC part 96.41(e)(3).
# Maximum Equivalent Isotropically Radiated Power (EIRP) permitted by the grant.
# The maximum EIRP is in units of dBm/MHz. The value of maxEirp represents the
# average (RMS) EIRP that would be measured by the procedure defined in FCC part
# 96.41(e)(3).
# Corresponds to the JSON property `maxEirp`
# @return [Float]
attr_accessor :max_eirp
@ -462,13 +458,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 SasPortalEmpty
include Google::Apis::Core::Hashable
@ -506,8 +500,8 @@ module Google
end
end
# Request for GenerateSecret method]
# [spectrum.sas.portal.v1alpha1.DeviceManager.GenerateSecret].
# Request for GenerateSecret method] [spectrum.sas.portal.v1alpha1.DeviceManager.
# GenerateSecret].
class SasPortalGenerateSecretRequest
include Google::Apis::Core::Hashable
@ -524,8 +518,7 @@ module Google
class SasPortalGenerateSecretResponse
include Google::Apis::Core::Hashable
# The secret generated by the string and used by
# [ValidateInstaller] method.
# The secret generated by the string and used by [ValidateInstaller] method.
# Corresponds to the JSON property `secret`
# @return [String]
attr_accessor :secret
@ -563,41 +556,39 @@ module Google
class SasPortalInstallationParams
include Google::Apis::Core::Hashable
# Boresight direction of the horizontal plane of the antenna in
# degrees with respect to true north. The value of this parameter
# is an integer with a value between 0 and 359 inclusive. A value
# of 0 degrees means true north; a value of 90 degrees means
# east. This parameter is optional for Category A devices and
# Boresight direction of the horizontal plane of the antenna in degrees with
# respect to true north. The value of this parameter is an integer with a value
# between 0 and 359 inclusive. A value of 0 degrees means true north; a value of
# 90 degrees means east. This parameter is optional for Category A devices and
# conditional for Category B devices.
# Corresponds to the JSON property `antennaAzimuth`
# @return [Fixnum]
attr_accessor :antenna_azimuth
# 3-dB antenna beamwidth of the antenna in the horizontal-plane in
# degrees. This parameter is an unsigned integer having a value
# between 0 and 360 (degrees) inclusive; it is optional for
# Category A devices and conditional for Category B devices.
# 3-dB antenna beamwidth of the antenna in the horizontal-plane in degrees. This
# parameter is an unsigned integer having a value between 0 and 360 (degrees)
# inclusive; it is optional for Category A devices and conditional for Category
# B devices.
# Corresponds to the JSON property `antennaBeamwidth`
# @return [Fixnum]
attr_accessor :antenna_beamwidth
# Antenna downtilt in degrees and is an integer with a value
# between -90 and +90 inclusive; a negative value means the antenna
# is tilted up (above horizontal). This parameter is optional for
# Category A devices and conditional for Category B devices.
# Antenna downtilt in degrees and is an integer with a value between -90 and +90
# inclusive; a negative value means the antenna is tilted up (above horizontal).
# This parameter is optional for Category A devices and conditional for Category
# B devices.
# Corresponds to the JSON property `antennaDowntilt`
# @return [Fixnum]
attr_accessor :antenna_downtilt
# Peak antenna gain in dBi. This parameter is an integer with a
# value between -127 and +128 (dBi) inclusive.
# Peak antenna gain in dBi. This parameter is an integer with a value between -
# 127 and +128 (dBi) inclusive.
# Corresponds to the JSON property `antennaGain`
# @return [Fixnum]
attr_accessor :antenna_gain
# If an external antenna is used, the antenna model is optionally
# provided in this field. The string has a maximum length of 128
# octets.
# If an external antenna is used, the antenna model is optionally provided in
# this field. The string has a maximum length of 128 octets.
# Corresponds to the JSON property `antennaModel`
# @return [String]
attr_accessor :antenna_model
@ -608,18 +599,17 @@ module Google
attr_accessor :cpe_cbsd_indication
alias_method :cpe_cbsd_indication?, :cpe_cbsd_indication
# This parameter is the maximum device EIRP in units of dBm/10MHz
# and is an integer with a value between -127 and +47 (dBm/10 MHz)
# inclusive. If not included, SAS interprets it as maximum
# allowable EIRP in units of dBm/10MHz for device category.
# This parameter is the maximum device EIRP in units of dBm/10MHz and is an
# integer with a value between -127 and +47 (dBm/10 MHz) inclusive. If not
# included, SAS interprets it as maximum allowable EIRP in units of dBm/10MHz
# for device category.
# Corresponds to the JSON property `eirpCapability`
# @return [Fixnum]
attr_accessor :eirp_capability
# Device antenna height in meters. When the heightType parameter
# value is "AGL", the antenna height should be given relative to
# ground level. When the heightType parameter value is "AMSL", it
# is given with respect to WGS84 datum.
# Device antenna height in meters. When the heightType parameter value is "AGL",
# the antenna height should be given relative to ground level. When the
# heightType parameter value is "AMSL", it is given with respect to WGS84 datum.
# Corresponds to the JSON property `height`
# @return [Float]
attr_accessor :height
@ -629,42 +619,37 @@ module Google
# @return [String]
attr_accessor :height_type
# A positive number in meters to indicate accuracy of the device
# antenna horizontal location. This optional parameter should only
# be present if its value is less than the FCC requirement of 50
# meters.
# A positive number in meters to indicate accuracy of the device antenna
# horizontal location. This optional parameter should only be present if its
# value is less than the FCC requirement of 50 meters.
# Corresponds to the JSON property `horizontalAccuracy`
# @return [Float]
attr_accessor :horizontal_accuracy
# Whether the device antenna is indoor or not. True: indoor. False:
# outdoor.
# Whether the device antenna is indoor or not. True: indoor. False: outdoor.
# Corresponds to the JSON property `indoorDeployment`
# @return [Boolean]
attr_accessor :indoor_deployment
alias_method :indoor_deployment?, :indoor_deployment
# Latitude of the device antenna location in degrees relative to
# the WGS 84 datum. The allowed range is from -90.000000 to
# +90.000000. Positive values represent latitudes north of the
# equator; negative values south of the equator.
# Latitude of the device antenna location in degrees relative to the WGS 84
# datum. The allowed range is from -90.000000 to +90.000000. Positive values
# represent latitudes north of the equator; negative values south of the equator.
# Corresponds to the JSON property `latitude`
# @return [Float]
attr_accessor :latitude
# Longitude of the device antenna location. in degrees relative to
# the WGS 84 datum. The allowed range is from -180.000000 to
# +180.000000. Positive values represent longitudes east of the
# prime meridian; negative values west of the prime
# meridian.
# Longitude of the device antenna location. in degrees relative to the WGS 84
# datum. The allowed range is from -180.000000 to +180.000000. Positive values
# represent longitudes east of the prime meridian; negative values west of the
# prime meridian.
# Corresponds to the JSON property `longitude`
# @return [Float]
attr_accessor :longitude
# A positive number in meters to indicate accuracy of the device
# antenna vertical location. This optional parameter should only be
# present if its value is less than the FCC requirement of 3
# meters.
# A positive number in meters to indicate accuracy of the device antenna
# vertical location. This optional parameter should only be present if its value
# is less than the FCC requirement of 3 meters.
# Corresponds to the JSON property `verticalAccuracy`
# @return [Float]
attr_accessor :vertical_accuracy
@ -696,16 +681,14 @@ module Google
class SasPortalListCustomersResponse
include Google::Apis::Core::Hashable
# The list of customers that
# match the request.
# The list of customers that match the request.
# Corresponds to the JSON property `customers`
# @return [Array<Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer>]
attr_accessor :customers
# A pagination token returned from a previous call to ListCustomers method that
# indicates from
# where listing should continue. If the field is missing or empty, it means
# there are no more customers.
# indicates from where listing should continue. If the field is missing or empty,
# it means there are no more customers.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -730,9 +713,9 @@ module Google
# @return [Array<Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice>]
attr_accessor :devices
# A pagination token returned from a previous call to ListDevices method
# that indicates from where listing should continue. If the field
# is missing or empty, it means there is no more devices.
# A pagination token returned from a previous call to ListDevices method that
# indicates from where listing should continue. If the field is missing or empty,
# it means there is no more devices.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -752,10 +735,9 @@ module Google
class SasPortalListNodesResponse
include Google::Apis::Core::Hashable
# A pagination token returned from a previous call to
# ListNodes method
# that indicates from where listing should continue. If the field is missing
# or empty, it means there is no more nodes.
# A pagination token returned from a previous call to ListNodes method that
# indicates from where listing should continue. If the field is missing or empty,
# it means there is no more nodes.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -780,8 +762,8 @@ module Google
class SasPortalMoveDeviceRequest
include Google::Apis::Core::Hashable
# Required. The name of the new parent resource (Node or Customer) to
# reparent the device under.
# Required. The name of the new parent resource (Node or Customer) to reparent
# the device under.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
@ -852,47 +834,45 @@ module Google
class SasPortalOperation
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::ProdTtSasportalV1alpha1::SasPortalStatus]
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<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# 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<String,Object>]
attr_accessor :response
@ -920,16 +900,14 @@ module Google
# @return [Array<Google::Apis::ProdTtSasportalV1alpha1::SasPortalAssignment>]
attr_accessor :assignments
# The [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 [GetPolicy], and systems are expected to put
# that etag in the request to [SetPolicy] to ensure that their
# change will be applied to the same version of the policy.
# If no [etag] is provided in the call to [SetPolicy], then the
# existing policy is overwritten blindly.
# The [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 [GetPolicy], and systems are expected to put that
# etag in the request to [SetPolicy] to ensure that their change will be applied
# to the same version of the policy. If no [etag] is provided in the call to [
# SetPolicy], then the existing policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -976,9 +954,8 @@ module Google
class SasPortalSignDeviceRequest
include Google::Apis::Core::Hashable
# Required. The device to sign.
# The device fields name, fcc_id and serial_number must be set.
# The user_id field must be set.
# Required. The device to sign. The device fields name, fcc_id and serial_number
# must be set. The user_id field must be set.
# Corresponds to the JSON property `device`
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice]
attr_accessor :device
@ -993,12 +970,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 SasPortalStatus
include Google::Apis::Core::Hashable
@ -1007,15 +984,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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
@ -1080,9 +1057,8 @@ module Google
class SasPortalUpdateSignedDeviceRequest
include Google::Apis::Core::Hashable
# Required. The JSON Web Token signed using a CPI private key. Payload
# must be the JSON encoding
# of the device. The user_id field must be set.
# Required. The JSON Web Token signed using a CPI private key. Payload must be
# the JSON encoding of the device. The user_id field must be set.
# Corresponds to the JSON property `encodedDevice`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -1109,14 +1085,14 @@ module Google
class SasPortalValidateInstallerRequest
include Google::Apis::Core::Hashable
# Required. JSON Web Token signed using a CPI private key. Payload
# must include a "secret" claim whose value is the secret.
# Required. JSON Web Token signed using a CPI private key. Payload must include
# a "secret" claim whose value is the secret.
# Corresponds to the JSON property `encodedSecret`
# @return [String]
attr_accessor :encoded_secret
# Required. Unique installer id (cpiId) from the Certified
# Professional Installers database.
# Required. Unique installer id (cpiId) from the Certified Professional
# Installers database.
# Corresponds to the JSON property `installerId`
# @return [String]
attr_accessor :installer_id
@ -1138,8 +1114,8 @@ module Google
end
end
# Response for ValidateInstaller method]
# [spectrum.sas.portal.v1alpha1.DeviceManager.ValidateInstaller].
# Response for ValidateInstaller method] [spectrum.sas.portal.v1alpha1.
# DeviceManager.ValidateInstaller].
class SasPortalValidateInstallerResponse
include Google::Apis::Core::Hashable

View File

@ -79,12 +79,10 @@ module Google
# Returns a list of requested customers.
# @param [Fixnum] page_size
# The maximum number of customers
# to return in the response.
# The maximum number of customers to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListCustomers method that
# indicates where
# this listing should continue from.
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -215,8 +213,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a signed device under a
# node or customer.
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
@ -313,16 +310,15 @@ module Google
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following
# formats: "sn=123454" or "display_name=MyDevice". sn
# corresponds to serial_number of the device. The filter is case insensitive.
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response.
# If empty or zero, all devices will be listed.
# Must be in the range [0, 1000].
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -587,8 +583,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -620,8 +616,7 @@ module Google
# Moves a node under another node or customer.
# @param [String] name
# Required. The name of the node to
# move.
# Required. The name of the node to move.
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveNodeRequest] sas_portal_move_node_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -727,8 +722,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -914,8 +909,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a signed device under a
# node or customer.
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
@ -1012,16 +1006,15 @@ module Google
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following
# formats: "sn=123454" or "display_name=MyDevice". sn
# corresponds to serial_number of the device. The filter is case insensitive.
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response.
# If empty or zero, all devices will be listed.
# Must be in the range [0, 1000].
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1286,8 +1279,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1319,8 +1312,7 @@ module Google
# Moves a node under another node or customer.
# @param [String] name
# Required. The name of the node to
# move.
# Required. The name of the node to move.
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalMoveNodeRequest] sas_portal_move_node_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1453,8 +1445,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a signed device under a
# node or customer.
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
@ -1491,16 +1482,15 @@ module Google
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following
# formats: "sn=123454" or "display_name=MyDevice". sn
# corresponds to serial_number of the device. The filter is case insensitive.
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response.
# If empty or zero, all devices will be listed.
# Must be in the range [0, 1000].
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1570,8 +1560,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1601,9 +1591,8 @@ 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 [Google::Apis::ProdTtSasportalV1alpha1::SasPortalGetPolicyRequest] sas_portal_get_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -28,7 +28,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/
module RealtimebiddingV1
VERSION = 'V1'
REVISION = '20200730'
REVISION = '20200803'
# See, create, edit, and delete your Authorized Buyers and Open Bidding account entities
AUTH_REALTIME_BIDDING = 'https://www.googleapis.com/auth/realtime-bidding'

View File

@ -26,31 +26,25 @@ module Google
class AdTechnologyProviders
include Google::Apis::Core::Hashable
# The detected ad technology provider IDs for this creative.
# See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
# mapping of provider ID to provided name, a privacy policy URL, and a list
# of domains which can be attributed to the provider.
# If the creative contains provider IDs that are outside of those listed in
# the `BidRequest.adslot.consented_providers_settings.consented_providers`
# field on the [Google bid
# protocol](https://developers.google.com/authorized-buyers/rtb/downloads/
# realtime-bidding-proto)
# and the
# `BidRequest.user.ext.consented_providers_settings.consented_providers`
# field on the [OpenRTB
# protocol](https://developers.google.com/authorized-buyers/rtb/downloads/
# openrtb-adx-proto),
# and a bid is submitted with that creative for an impression
# that will serve to an EEA user, the bid will be filtered before the
# The detected ad technology provider IDs for this creative. See https://storage.
# googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID
# to provided name, a privacy policy URL, and a list of domains which can be
# attributed to the provider. If the creative contains provider IDs that are
# outside of those listed in the `BidRequest.adslot.consented_providers_settings.
# consented_providers` field on the [Google bid protocol](https://developers.
# google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto) and the `
# BidRequest.user.ext.consented_providers_settings.consented_providers` field on
# the [OpenRTB protocol](https://developers.google.com/authorized-buyers/rtb/
# downloads/openrtb-adx-proto), and a bid is submitted with that creative for an
# impression that will serve to an EEA user, the bid will be filtered before the
# auction.
# Corresponds to the JSON property `detectedProviderIds`
# @return [Array<Fixnum>]
attr_accessor :detected_provider_ids
# Whether the creative contains an unidentified ad technology provider.
# If true for a given creative, any bid submitted with that creative for an
# impression that will serve to an EEA user will be filtered before the
# auction.
# Whether the creative contains an unidentified ad technology provider. If true
# for a given creative, any bid submitted with that creative for an impression
# that will serve to an EEA user will be filtered before the auction.
# Corresponds to the JSON property `hasUnidentifiedProvider`
# @return [Boolean]
attr_accessor :has_unidentified_provider
@ -71,37 +65,27 @@ module Google
class AdvertiserAndBrand
include Google::Apis::Core::Hashable
# See https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt
# for the list of possible values.
# Can be used to filter the response of the
# creatives.list
# method.
# See https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt for
# the list of possible values. Can be used to filter the response of the
# creatives.list method.
# Corresponds to the JSON property `advertiserId`
# @return [Fixnum]
attr_accessor :advertiser_id
# Advertiser name.
# Can be used to filter the response of the
# creatives.list
# Advertiser name. Can be used to filter the response of the creatives.list
# method.
# Corresponds to the JSON property `advertiserName`
# @return [String]
attr_accessor :advertiser_name
# Detected brand ID or zero if no brand has been detected.
# See https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt for
# the list of possible values.
# Can be used to filter the response of the
# creatives.list
# method.
# Detected brand ID or zero if no brand has been detected. See https://storage.
# googleapis.com/adx-rtb-dictionaries/brands.txt for the list of possible values.
# Can be used to filter the response of the creatives.list method.
# Corresponds to the JSON property `brandId`
# @return [Fixnum]
attr_accessor :brand_id
# Brand name.
# Can be used to filter the response of the
# creatives.list
# method.
# Brand name. Can be used to filter the response of the creatives.list method.
# Corresponds to the JSON property `brandName`
# @return [String]
attr_accessor :brand_name
@ -136,24 +120,20 @@ module Google
class Creative
include Google::Apis::Core::Hashable
# Output only. ID of the buyer account that this creative is owned by.
# Can be used to filter the response of the
# creatives.list
# method with equality and inequality check.
# Output only. ID of the buyer account that this creative is owned by. Can be
# used to filter the response of the creatives.list method with equality and
# inequality check.
# Corresponds to the JSON property `accountId`
# @return [Fixnum]
attr_accessor :account_id
# The link to AdChoices destination page. This is only supported for native
# ads.
# The link to AdChoices destination page. This is only supported for native ads.
# Corresponds to the JSON property `adChoicesDestinationUrl`
# @return [String]
attr_accessor :ad_choices_destination_url
# The name of the company being advertised in the creative.
# Can be used to filter the response of the
# creatives.list
# method.
# The name of the company being advertised in the creative. Can be used to
# filter the response of the creatives.list method.
# Corresponds to the JSON property `advertiserName`
# @return [String]
attr_accessor :advertiser_name
@ -168,20 +148,16 @@ module Google
# @return [String]
attr_accessor :api_update_time
# Output only. The format of this creative.
# Can be used to filter the response of the
# creatives.list
# method.
# Output only. The format of this creative. Can be used to filter the response
# of the creatives.list method.
# Corresponds to the JSON property `creativeFormat`
# @return [String]
attr_accessor :creative_format
# Buyer-specific creative ID that references this creative in bid responses.
# This field is Ignored in update operations. Can be used to filter the
# response of the
# creatives.list
# method.
# The maximum length of the creative ID is 128 bytes.
# This field is Ignored in update operations. Can be used to filter the response
# of the creatives.list method. The maximum length of the creative ID is 128
# bytes.
# Corresponds to the JSON property `creativeId`
# @return [String]
attr_accessor :creative_id
@ -191,51 +167,37 @@ module Google
# @return [Google::Apis::RealtimebiddingV1::CreativeServingDecision]
attr_accessor :creative_serving_decision
# Output only. IDs of all of the deals with which this creative has been used
# in bidding.
# Can be used to filter the response of the
# creatives.list
# method.
# Output only. IDs of all of the deals with which this creative has been used in
# bidding. Can be used to filter the response of the creatives.list method.
# Corresponds to the JSON property `dealIds`
# @return [Array<String>]
attr_accessor :deal_ids
# All declared attributes for the ads that may be shown from this creative.
# Can be used to filter the response of the
# creatives.list
# method.
# If the `excluded_attribute` field of a [bid
# request](https://developers.google.com/authorized-buyers/rtb/downloads/
# realtime-bidding-proto")
# contains one of the attributes that were declared or detected for a given
# creative, and a bid is submitted with that creative, the bid will be
# filtered before the auction.
# All declared attributes for the ads that may be shown from this creative. Can
# be used to filter the response of the creatives.list method. If the `
# excluded_attribute` field of a [bid request](https://developers.google.com/
# authorized-buyers/rtb/downloads/realtime-bidding-proto") contains one of the
# attributes that were declared or detected for a given creative, and a bid is
# submitted with that creative, the bid will be filtered before the auction.
# Corresponds to the JSON property `declaredAttributes`
# @return [Array<String>]
attr_accessor :declared_attributes
# The set of declared destination URLs for the creative.
# Can be used to filter the response of the
# creatives.list
# method.
# The set of declared destination URLs for the creative. Can be used to filter
# the response of the creatives.list method.
# Corresponds to the JSON property `declaredClickThroughUrls`
# @return [Array<String>]
attr_accessor :declared_click_through_urls
# All declared restricted categories for the ads that may be shown from this
# creative. Can be used to filter the response of the
# creatives.list
# method.
# creative. Can be used to filter the response of the creatives.list method.
# Corresponds to the JSON property `declaredRestrictedCategories`
# @return [Array<String>]
attr_accessor :declared_restricted_categories
# IDs for the declared ad technology vendors that may be used by this
# creative. See
# https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for
# possible values.
# Can be used to filter the response of the
# creatives.list
# IDs for the declared ad technology vendors that may be used by this creative.
# See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for
# possible values. Can be used to filter the response of the creatives.list
# method.
# Corresponds to the JSON property `declaredVendorIds`
# @return [Array<Fixnum>]
@ -251,11 +213,10 @@ module Google
# @return [Array<String>]
attr_accessor :impression_tracking_urls
# Output only. Name of the creative.
# Follows the pattern `buyers/`buyer`/creatives/`creative``, where
# ``buyer`` represents the account ID of the buyer who owns the creative,
# and ``creative`` is the buyer-specific creative ID that references this
# creative in the bid response.
# Output only. Name of the creative. Follows the pattern `buyers/`buyer`/
# creatives/`creative``, where ``buyer`` represents the account ID of the buyer
# who owns the creative, and ``creative`` is the buyer-specific creative ID that
# references this creative in the bid response.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -270,9 +231,8 @@ module Google
# @return [Array<String>]
attr_accessor :restricted_categories
# Output only. The version of this creative.
# Version for a new creative is 1 and it increments during subsequent
# creative updates.
# Output only. The version of this creative. Version for a new creative is 1 and
# it increments during subsequent creative updates.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -335,24 +295,18 @@ module Google
# @return [Array<Google::Apis::RealtimebiddingV1::AdvertiserAndBrand>]
attr_accessor :detected_advertisers
# Publisher-excludable attributes that were detected for this creative.
# Can be used to filter the response of the
# creatives.list
# method.
# If the `excluded_attribute` field of a [bid
# request](https://developers.google.com/authorized-buyers/rtb/downloads/
# realtime-bidding-proto)
# contains one of the attributes that were declared or detected for a given
# creative, and a bid is submitted with that creative, the bid will be
# filtered before the auction.
# Publisher-excludable attributes that were detected for this creative. Can be
# used to filter the response of the creatives.list method. If the `
# excluded_attribute` field of a [bid request](https://developers.google.com/
# authorized-buyers/rtb/downloads/realtime-bidding-proto) contains one of the
# attributes that were declared or detected for a given creative, and a bid is
# submitted with that creative, the bid will be filtered before the auction.
# Corresponds to the JSON property `detectedAttributes`
# @return [Array<String>]
attr_accessor :detected_attributes
# The set of detected destination URLs for the creative.
# Can be used to filter the response of the
# creatives.list
# method.
# The set of detected destination URLs for the creative. Can be used to filter
# the response of the creatives.list method.
# Corresponds to the JSON property `detectedClickThroughUrls`
# @return [Array<String>]
attr_accessor :detected_click_through_urls
@ -362,58 +316,43 @@ module Google
# @return [Array<String>]
attr_accessor :detected_domains
# The detected languages for this creative. The order is
# arbitrary. The codes are 2 or 5 characters and are documented at
# https://developers.google.com/adwords/api/docs/appendix/languagecodes.
# Can be used to filter the response of the
# creatives.list
# method.
# The detected languages for this creative. The order is arbitrary. The codes
# are 2 or 5 characters and are documented at https://developers.google.com/
# adwords/api/docs/appendix/languagecodes. Can be used to filter the response of
# the creatives.list method.
# Corresponds to the JSON property `detectedLanguages`
# @return [Array<String>]
attr_accessor :detected_languages
# Detected product categories, if any.
# See the ad-product-categories.txt file in the technical documentation
# for a list of IDs.
# Can be used to filter the response of the
# creatives.list
# method.
# Detected product categories, if any. See the ad-product-categories.txt file in
# the technical documentation for a list of IDs. Can be used to filter the
# response of the creatives.list method.
# Corresponds to the JSON property `detectedProductCategories`
# @return [Array<Fixnum>]
attr_accessor :detected_product_categories
# Detected sensitive categories, if any.
# Can be used to filter the response of the
# creatives.list
# method.
# See the ad-sensitive-categories.txt file in the technical documentation
# for a list of IDs. You should use these IDs along with the
# excluded-sensitive-category field in the bid request to filter your bids.
# Detected sensitive categories, if any. Can be used to filter the response of
# the creatives.list method. See the ad-sensitive-categories.txt file in the
# technical documentation for a list of IDs. You should use these IDs along with
# the excluded-sensitive-category field in the bid request to filter your bids.
# Corresponds to the JSON property `detectedSensitiveCategories`
# @return [Array<Fixnum>]
attr_accessor :detected_sensitive_categories
# IDs of the ad technology vendors that were detected to be
# used by this creative. See
# https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for
# possible values.
# Can be used to filter the response of the
# creatives.list
# method.
# If the `allowed_vendor_type` field of a [bid
# request](https://developers.google.com/authorized-buyers/rtb/downloads/
# realtime-bidding-proto)
# does not contain one of the vendor type IDs that were declared or
# detected for a given creative, and a bid is submitted with that creative,
# the bid will be filtered before the auction.
# IDs of the ad technology vendors that were detected to be used by this
# creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
# for possible values. Can be used to filter the response of the creatives.list
# method. If the `allowed_vendor_type` field of a [bid request](https://
# developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto)
# does not contain one of the vendor type IDs that were declared or detected for
# a given creative, and a bid is submitted with that creative, the bid will be
# filtered before the auction.
# Corresponds to the JSON property `detectedVendorIds`
# @return [Array<Fixnum>]
attr_accessor :detected_vendor_ids
# The last time the creative status was updated.
# Can be used to filter the response of the
# creatives.list
# method.
# The last time the creative status was updated. Can be used to filter the
# response of the creatives.list method.
# Corresponds to the JSON property `lastStatusUpdate`
# @return [String]
attr_accessor :last_status_update
@ -453,30 +392,29 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
# date, with non-zero year, month and day values * A month and day value, with a
# zero year, e.g. an anniversary * A year on its own, with zero month and day
# values * A year and month value, with a zero day, e.g. a credit card
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
# Timestamp`.
class Date
include Google::Apis::Core::Hashable
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year by itself or a year and month where the day is not
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# Corresponds to the JSON property `day`
# @return [Fixnum]
attr_accessor :day
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a
# month and day.
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year.
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# Corresponds to the JSON property `year`
# @return [Fixnum]
attr_accessor :year
@ -524,8 +462,8 @@ module Google
end
end
# Evidence of the creative's destination URL not functioning properly or
# having been incorrectly set up.
# Evidence of the creative's destination URL not functioning properly or having
# been incorrectly set up.
class DestinationNotWorkingEvidence
include Google::Apis::Core::Hashable
@ -544,8 +482,8 @@ module Google
# @return [Fixnum]
attr_accessor :http_error
# Page was crawled successfully, but was detected as either a page with
# no content or an error page.
# Page was crawled successfully, but was detected as either a page with no
# content or an error page.
# Corresponds to the JSON property `invalidPage`
# @return [String]
attr_accessor :invalid_page
@ -615,8 +553,8 @@ module Google
# @return [Array<Google::Apis::RealtimebiddingV1::DomainCalls>]
attr_accessor :top_http_call_domains
# The total number of HTTP calls made by the creative, including but not
# limited to the number of calls in the top_http_call_domains.
# The total number of HTTP calls made by the creative, including but not limited
# to the number of calls in the top_http_call_domains.
# Corresponds to the JSON property `totalHttpCallCount`
# @return [Fixnum]
attr_accessor :total_http_call_count
@ -657,8 +595,8 @@ module Google
end
end
# Total download size and URL-level download size breakdown for resources in
# a creative.
# Total download size and URL-level download size breakdown for resources in a
# creative.
class DownloadSizeEvidence
include Google::Apis::Core::Hashable
@ -687,10 +625,10 @@ module Google
class GetRemarketingTagResponse
include Google::Apis::Core::Hashable
# A HTML tag that can be placed on the advertiser's page to add users to a
# user list. For more information and code samples on using snippet on your
# website refer to [Tag your site for remarketing](
# https://support.google.com/google-ads/answer/2476688).
# A HTML tag that can be placed on the advertiser's page to add users to a user
# list. For more information and code samples on using snippet on your website
# refer to [Tag your site for remarketing]( https://support.google.com/google-
# ads/answer/2476688).
# Corresponds to the JSON property `snippet`
# @return [String]
attr_accessor :snippet
@ -709,10 +647,8 @@ module Google
class HtmlContent
include Google::Apis::Core::Hashable
# The height of the HTML snippet in pixels.
# Can be used to filter the response of the
# creatives.list
# method.
# The height of the HTML snippet in pixels. Can be used to filter the response
# of the creatives.list method.
# Corresponds to the JSON property `height`
# @return [Fixnum]
attr_accessor :height
@ -722,10 +658,8 @@ module Google
# @return [String]
attr_accessor :snippet
# The width of the HTML snippet in pixels.
# Can be used to filter the response of the
# creatives.list
# method.
# The width of the HTML snippet in pixels. Can be used to filter the response of
# the creatives.list method.
# Corresponds to the JSON property `width`
# @return [Fixnum]
attr_accessor :width
@ -765,18 +699,18 @@ module Google
class HttpCookieEvidence
include Google::Apis::Core::Hashable
# Names of cookies that violate Google policies.
# For TOO_MANY_COOKIES policy, this will be the cookie names of top domains
# with the largest number of cookies. For other policies, this will be all
# the cookie names that violate the policy.
# Names of cookies that violate Google policies. For TOO_MANY_COOKIES policy,
# this will be the cookie names of top domains with the largest number of
# cookies. For other policies, this will be all the cookie names that violate
# the policy.
# Corresponds to the JSON property `cookieNames`
# @return [Array<String>]
attr_accessor :cookie_names
# The largest number of cookies set by a creative. If this field is set,
# cookie_names above will be set to the cookie names of top domains with
# the largest number of cookies.
# This field will only be set for TOO_MANY_COOKIES policy.
# cookie_names above will be set to the cookie names of top domains with the
# largest number of cookies. This field will only be set for TOO_MANY_COOKIES
# policy.
# Corresponds to the JSON property `maxCookieCount`
# @return [Fixnum]
attr_accessor :max_cookie_count
@ -792,8 +726,8 @@ module Google
end
end
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# An image resource. You may provide a larger image than was requested, so long
# as the aspect ratio is preserved.
class Image
include Google::Apis::Core::Hashable
@ -833,11 +767,9 @@ module Google
# @return [Array<Google::Apis::RealtimebiddingV1::Creative>]
attr_accessor :creatives
# A token to retrieve the next page of results.
# Pass this value in the
# ListCreativesRequest.pageToken
# field in the subsequent call to the `ListCreatives` method to retrieve the
# next page of results.
# A token to retrieve the next page of results. Pass this value in the
# ListCreativesRequest.pageToken field in the subsequent call to the `
# ListCreatives` method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -857,11 +789,10 @@ module Google
class ListUserListsResponse
include Google::Apis::Core::Hashable
# The continuation page token to send back to the server in a subsequent
# request.
# The continuation page token to send back to the server in a subsequent request.
# Due to a currently known issue, it is recommended that the caller keep
# invoking the list method till the time a next page token is not returned
# (even if the result set is empty).
# invoking the list method till the time a next page token is not returned (even
# if the result set is empty).
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -886,18 +817,14 @@ module Google
class MediaFile
include Google::Apis::Core::Hashable
# Bitrate of the video file, in Kbps.
# Can be used to filter the response of the
# creatives.list
# method.
# Bitrate of the video file, in Kbps. Can be used to filter the response of the
# creatives.list method.
# Corresponds to the JSON property `bitrate`
# @return [Fixnum]
attr_accessor :bitrate
# The MIME type of this media file.
# Can be used to filter the response of the
# creatives.list
# method.
# The MIME type of this media file. Can be used to filter the response of the
# creatives.list method.
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
@ -922,8 +849,8 @@ module Google
# @return [String]
attr_accessor :advertiser_name
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# An image resource. You may provide a larger image than was requested, so long
# as the aspect ratio is preserved.
# Corresponds to the JSON property `appIcon`
# @return [Google::Apis::RealtimebiddingV1::Image]
attr_accessor :app_icon
@ -953,14 +880,14 @@ module Google
# @return [String]
attr_accessor :headline
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# An image resource. You may provide a larger image than was requested, so long
# as the aspect ratio is preserved.
# Corresponds to the JSON property `image`
# @return [Google::Apis::RealtimebiddingV1::Image]
attr_accessor :image
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# An image resource. You may provide a larger image than was requested, so long
# as the aspect ratio is preserved.
# Corresponds to the JSON property `logo`
# @return [Google::Apis::RealtimebiddingV1::Image]
attr_accessor :logo
@ -1030,13 +957,10 @@ module Google
# @return [String]
attr_accessor :help_center_url
# Policy topic this entry refers to. For example, "ALCOHOL",
# "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
# policy topics is not fixed for a particular API version and may change at
# any time.
# Can be used to filter the response of the
# creatives.list
# method
# Policy topic this entry refers to. For example, "ALCOHOL", "
# TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
# policy topics is not fixed for a particular API version and may change at any
# time. Can be used to filter the response of the creatives.list method
# Corresponds to the JSON property `policyTopic`
# @return [String]
attr_accessor :policy_topic
@ -1062,8 +986,8 @@ module Google
# @return [Google::Apis::RealtimebiddingV1::DestinationNotCrawlableEvidence]
attr_accessor :destination_not_crawlable
# Evidence of the creative's destination URL not functioning properly or
# having been incorrectly set up.
# Evidence of the creative's destination URL not functioning properly or having
# been incorrectly set up.
# Corresponds to the JSON property `destinationNotWorking`
# @return [Google::Apis::RealtimebiddingV1::DestinationNotWorkingEvidence]
attr_accessor :destination_not_working
@ -1078,8 +1002,8 @@ module Google
# @return [Google::Apis::RealtimebiddingV1::DomainCallEvidence]
attr_accessor :domain_call
# Total download size and URL-level download size breakdown for resources in
# a creative.
# Total download size and URL-level download size breakdown for resources in a
# creative.
# Corresponds to the JSON property `downloadSize`
# @return [Google::Apis::RealtimebiddingV1::DownloadSizeEvidence]
attr_accessor :download_size
@ -1114,18 +1038,16 @@ module Google
class ServingStatus
include Google::Apis::Core::Hashable
# Serving status for the given transaction type (e.g., open auction,
# deals) or region (e.g., China, Russia).
# Can be used to filter the response of the
# creatives.list
# method.
# Serving status for the given transaction type (e.g., open auction, deals) or
# region (e.g., China, Russia). Can be used to filter the response of the
# creatives.list method.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Policy topics related to the serving decision for this transaction type
# (e.g., open auction, deals) or region (e.g., China, Russia).
# Topics may be present only if status is DISAPPROVED.
# Policy topics related to the serving decision for this transaction type (e.g.,
# open auction, deals) or region (e.g., China, Russia). Topics may be present
# only if status is DISAPPROVED.
# Corresponds to the JSON property `topics`
# @return [Array<Google::Apis::RealtimebiddingV1::PolicyTopicEntry>]
attr_accessor :topics
@ -1173,12 +1095,12 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
# date, with non-zero year, month and day values * A month and day value, with a
# zero year, e.g. an anniversary * A year on its own, with zero month and day
# values * A year and month value, with a zero day, e.g. a credit card
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
# Timestamp`.
# Corresponds to the JSON property `endDate`
# @return [Google::Apis::RealtimebiddingV1::Date]
attr_accessor :end_date
@ -1190,12 +1112,12 @@ module Google
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
# * A full date, with non-zero year, month and day values
# * A month and day value, with a zero year, e.g. an anniversary
# * A year on its own, with zero month and day values
# * A year and month value, with a zero day, e.g. a credit card expiration date
# Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
# date, with non-zero year, month and day values * A month and day value, with a
# zero year, e.g. an anniversary * A year on its own, with zero month and day
# values * A year and month value, with a zero day, e.g. a credit card
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
# Timestamp`.
# Corresponds to the JSON property `startDate`
# @return [Google::Apis::RealtimebiddingV1::Date]
attr_accessor :start_date
@ -1218,11 +1140,10 @@ module Google
end
end
# Represents an Authorized Buyers user list. Authorized Buyers can
# create/update/list user lists. Once a user list is created
# in the system, Authorized Buyers can add users to the user list using
# the bulk uploader API. Alternatively, users can be added by hosting a
# tag on the advertiser's page.
# Represents an Authorized Buyers user list. Authorized Buyers can create/update/
# list user lists. Once a user list is created in the system, Authorized Buyers
# can add users to the user list using the bulk uploader API. Alternatively,
# users can be added by hosting a tag on the advertiser's page.
class UserList
include Google::Apis::Core::Hashable
@ -1232,24 +1153,23 @@ module Google
attr_accessor :description
# Required. Display name of the user list. This must be unique across all user
# lists
# for a given account.
# lists for a given account.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Required. The number of days a user's cookie stays on the user list.
# The field must be between 0 and 540 inclusive.
# Required. The number of days a user's cookie stays on the user list. The field
# must be between 0 and 540 inclusive.
# Corresponds to the JSON property `membershipDurationDays`
# @return [Fixnum]
attr_accessor :membership_duration_days
# Output only. Name of the user list that must follow the pattern
# `buyers/`buyer`/userLists/`user_list``, where ``buyer`` represents
# the account ID of the buyer who owns the user list. For a bidder accessing
# user lists on behalf of a child seat buyer, ``buyer`` represents
# the account ID of the child seat buyer. ``user_list`` is an int64
# identifier assigned by Google to uniquely identify a user list.
# Output only. Name of the user list that must follow the pattern `buyers/`buyer`
# /userLists/`user_list``, where ``buyer`` represents the account ID of the
# buyer who owns the user list. For a bidder accessing user lists on behalf of a
# child seat buyer, ``buyer`` represents the account ID of the child seat buyer.
# ``user_list`` is an int64 identifier assigned by Google to uniquely identify a
# user list.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -1294,8 +1214,8 @@ module Google
# @return [String]
attr_accessor :video_url
# The contents of a VAST document for a video ad.
# This document should conform to the VAST 2.0 or 3.0 standard.
# The contents of a VAST document for a video ad. This document should conform
# to the VAST 2.0 or 3.0 standard.
# Corresponds to the JSON property `videoVastXml`
# @return [String]
attr_accessor :video_vast_xml
@ -1316,53 +1236,43 @@ module Google
class VideoMetadata
include Google::Apis::Core::Hashable
# The duration of the ad.
# Can be used to filter the response of the
# creatives.list
# method.
# The duration of the ad. Can be used to filter the response of the creatives.
# list method.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# Is this a valid VAST ad?
# Can be used to filter the response of the
# creatives.list
# method.
# Is this a valid VAST ad? Can be used to filter the response of the creatives.
# list method.
# Corresponds to the JSON property `isValidVast`
# @return [Boolean]
attr_accessor :is_valid_vast
alias_method :is_valid_vast?, :is_valid_vast
# Is this a VPAID ad?
# Can be used to filter the response of the
# creatives.list
# Is this a VPAID ad? Can be used to filter the response of the creatives.list
# method.
# Corresponds to the JSON property `isVpaid`
# @return [Boolean]
attr_accessor :is_vpaid
alias_method :is_vpaid?, :is_vpaid
# The list of all media files declared in the VAST. If there are multiple
# VASTs in a wrapper chain, this includes the media files from the deepest
# one in the chain.
# The list of all media files declared in the VAST. If there are multiple VASTs
# in a wrapper chain, this includes the media files from the deepest one in the
# chain.
# Corresponds to the JSON property `mediaFiles`
# @return [Array<Google::Apis::RealtimebiddingV1::MediaFile>]
attr_accessor :media_files
# The minimum duration that the user has to watch before being able to
# skip this ad. If the field is not set, the ad is not skippable. If
# the field is set, the ad is skippable.
# Can be used to filter the response of the
# creatives.list
# The minimum duration that the user has to watch before being able to skip this
# ad. If the field is not set, the ad is not skippable. If the field is set, the
# ad is skippable. Can be used to filter the response of the creatives.list
# method.
# Corresponds to the JSON property `skipOffset`
# @return [String]
attr_accessor :skip_offset
# The maximum VAST version across all wrapped VAST documents.
# Can be used to filter the response of the
# creatives.list
# method.
# The maximum VAST version across all wrapped VAST documents. Can be used to
# filter the response of the creatives.list method.
# Corresponds to the JSON property `vastVersion`
# @return [String]
attr_accessor :vast_version
@ -1382,8 +1292,8 @@ module Google
end
end
# A request to receive push notifications when any of the creatives belonging
# to the bidder changes status.
# A request to receive push notifications when any of the creatives belonging to
# the bidder changes status.
class WatchCreativesRequest
include Google::Apis::Core::Hashable
@ -1402,21 +1312,18 @@ module Google
include Google::Apis::Core::Hashable
# The Pub/Sub subscription that can be used to pull creative status
# notifications. This would be of the format
# `projects/`project_id`/subscriptions/`subscription_id``.
# Subscription is created with pull delivery. All service accounts belonging
# to the bidder will have read access to this subscription.
# Subscriptions that are inactive for more than 90 days will be disabled.
# Please use
# watchCreatives to
# re-enable the subscription.
# notifications. This would be of the format `projects/`project_id`/
# subscriptions/`subscription_id``. Subscription is created with pull delivery.
# All service accounts belonging to the bidder will have read access to this
# subscription. Subscriptions that are inactive for more than 90 days will be
# disabled. Please use watchCreatives to re-enable the subscription.
# Corresponds to the JSON property `subscription`
# @return [String]
attr_accessor :subscription
# The Pub/Sub topic that will be used to publish creative serving
# status notifications. This would be of the format
# `projects/`project_id`/topics/`topic_id``.
# The Pub/Sub topic that will be used to publish creative serving status
# notifications. This would be of the format `projects/`project_id`/topics/`
# topic_id``.
# Corresponds to the JSON property `topic`
# @return [String]
attr_accessor :topic

View File

@ -52,44 +52,36 @@ module Google
# Lists creatives.
# @param [String] parent
# Required. Name of the parent buyer that owns the creatives.
# The pattern for this resource is either `buyers/`buyerAccountId`` or
# `bidders/`bidderAccountId``.
# For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
# following:
# 1. The ID of the buyer that is accessing their own creatives.
# 2. The ID of the child seat buyer under a bidder account.
# So for listing creatives pertaining to the child seat buyer (`456`)
# under bidder account (`123`), you would use the pattern: `buyers/456`.
# 3. The ID of the bidder itself.
# So for listing creatives pertaining to bidder (`123`),
# you would use `buyers/123`.
# If you want to access all creatives pertaining to both the bidder and all
# of its child seat accounts, you would use `bidders/`bidderAccountId``,
# e.g., for all creatives pertaining to bidder (`123`), use `bidders/123`.
# Required. Name of the parent buyer that owns the creatives. The pattern for
# this resource is either `buyers/`buyerAccountId`` or `bidders/`bidderAccountId`
# `. For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
# following: 1. The ID of the buyer that is accessing their own creatives. 2.
# The ID of the child seat buyer under a bidder account. So for listing
# creatives pertaining to the child seat buyer (`456`) under bidder account (`
# 123`), you would use the pattern: `buyers/456`. 3. The ID of the bidder itself.
# So for listing creatives pertaining to bidder (`123`), you would use `buyers/
# 123`. If you want to access all creatives pertaining to both the bidder and
# all of its child seat accounts, you would use `bidders/`bidderAccountId``, e.g.
# , for all creatives pertaining to bidder (`123`), use `bidders/123`.
# @param [String] filter
# Query string to filter creatives. If no filter is specified,
# all active creatives will be returned.
# Example: 'accountId=12345 AND (dealsStatus:DISAPPROVED AND
# disapprovalReason:UNACCEPTABLE_CONTENT) OR
# declaredAttributes:IS_COOKIE_TARGETED'
# Query string to filter creatives. If no filter is specified, all active
# creatives will be returned. Example: 'accountId=12345 AND (dealsStatus:
# DISAPPROVED AND disapprovalReason:UNACCEPTABLE_CONTENT) OR declaredAttributes:
# IS_COOKIE_TARGETED'
# @param [Fixnum] page_size
# Requested page size. The server may return fewer creatives than requested
# (due to timeout constraint) even if more are available via another call.
# If unspecified, server will pick an appropriate default.
# Acceptable values are 1 to 1000, inclusive.
# Requested page size. The server may return fewer creatives than requested (due
# to timeout constraint) even if more are available via another call. If
# unspecified, server will pick an appropriate default. Acceptable values are 1
# to 1000, inclusive.
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListCreativesResponse.nextPageToken
# returned from the previous call to the 'ListCreatives' method.
# A token identifying a page of results the server should return. Typically,
# this is the value of ListCreativesResponse.nextPageToken returned from the
# previous call to the 'ListCreatives' method.
# @param [String] view
# Controls the amount of information included in the response.
# By default only
# creativeServingDecision
# is included. To retrieve the entire creative
# resource (including the declared
# fields and the creative content) specify the view as "FULL".
# Controls the amount of information included in the response. By default only
# creativeServingDecision is included. To retrieve the entire creative resource (
# including the declared fields and the creative content) specify the view as "
# FULL".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -121,17 +113,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Watches all creatives pertaining to a bidder. It is sufficient to invoke
# this endpoint once per bidder. A Pub/Sub topic will be created and
# notifications will be pushed to the topic when any of the bidder's
# creatives change status. All of the bidder's service accounts will have
# access to read from the topic.
# Subsequent invocations of this method will return the existing
# Pub/Sub configuration.
# Watches all creatives pertaining to a bidder. It is sufficient to invoke this
# endpoint once per bidder. A Pub/Sub topic will be created and notifications
# will be pushed to the topic when any of the bidder's creatives change status.
# All of the bidder's service accounts will have access to read from the topic.
# Subsequent invocations of this method will return the existing Pub/Sub
# configuration.
# @param [String] parent
# Required. To watch all creatives pertaining to the bidder and all its child
# seat
# accounts, the bidder must follow the pattern `bidders/`bidderAccountId``.
# seat accounts, the bidder must follow the pattern `bidders/`bidderAccountId``.
# @param [Google::Apis::RealtimebiddingV1::WatchCreativesRequest] watch_creatives_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -162,21 +152,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets remarketing tag for a buyer. A remarketing tag is a piece of
# JavaScript code that can be placed on a web page. When a user
# visits a page containing a remarketing tag, Google adds the user to a user
# list.
# Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript
# code that can be placed on a web page. When a user visits a page containing a
# remarketing tag, Google adds the user to a user list.
# @param [String] name
# Required. To fetch remarketing tag for an account, name must follow the
# pattern
# `buyers/`accountId`` where ``accountId``
# represents ID of a buyer that owns the remarketing tag. For a
# bidder accessing remarketing tag on behalf of a child seat buyer,
# ``accountId`` should represent the ID of the child seat buyer.
# To fetch remarketing tag for a specific user list, name
# must follow the pattern
# `buyers/`accountId`/userLists/`userListId``. See
# UserList.name.
# pattern `buyers/`accountId`` where ``accountId`` represents ID of a buyer that
# owns the remarketing tag. For a bidder accessing remarketing tag on behalf of
# a child seat buyer, ``accountId`` should represent the ID of the child seat
# buyer. To fetch remarketing tag for a specific user list, name must follow the
# pattern `buyers/`accountId`/userLists/`userListId``. See UserList.name.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -207,11 +192,10 @@ module Google
# Creates a creative.
# @param [String] parent
# Required. The name of the parent buyer that the new creative belongs to that
# must
# follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
# must follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
# represents the account ID of the buyer who owns a creative. For a bidder
# accessing creatives on behalf of a child seat buyer, ``buyerAccountId``
# should represent the account ID of the child seat buyer.
# accessing creatives on behalf of a child seat buyer, ``buyerAccountId`` should
# represent the account ID of the child seat buyer.
# @param [Google::Apis::RealtimebiddingV1::Creative] creative_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -244,15 +228,12 @@ module Google
# Gets a creative.
# @param [String] name
# Required. Name of the creative to retrieve. See
# creative.name.
# Required. Name of the creative to retrieve. See creative.name.
# @param [String] view
# Controls the amount of information included in the response.
# By default only
# creativeServingDecision
# is included. To retrieve the entire creative
# resource (including the declared
# fields and the creative content) specify the view as "FULL".
# Controls the amount of information included in the response. By default only
# creativeServingDecision is included. To retrieve the entire creative resource (
# including the declared fields and the creative content) specify the view as "
# FULL".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -283,44 +264,36 @@ module Google
# Lists creatives.
# @param [String] parent
# Required. Name of the parent buyer that owns the creatives.
# The pattern for this resource is either `buyers/`buyerAccountId`` or
# `bidders/`bidderAccountId``.
# For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
# following:
# 1. The ID of the buyer that is accessing their own creatives.
# 2. The ID of the child seat buyer under a bidder account.
# So for listing creatives pertaining to the child seat buyer (`456`)
# under bidder account (`123`), you would use the pattern: `buyers/456`.
# 3. The ID of the bidder itself.
# So for listing creatives pertaining to bidder (`123`),
# you would use `buyers/123`.
# If you want to access all creatives pertaining to both the bidder and all
# of its child seat accounts, you would use `bidders/`bidderAccountId``,
# e.g., for all creatives pertaining to bidder (`123`), use `bidders/123`.
# Required. Name of the parent buyer that owns the creatives. The pattern for
# this resource is either `buyers/`buyerAccountId`` or `bidders/`bidderAccountId`
# `. For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
# following: 1. The ID of the buyer that is accessing their own creatives. 2.
# The ID of the child seat buyer under a bidder account. So for listing
# creatives pertaining to the child seat buyer (`456`) under bidder account (`
# 123`), you would use the pattern: `buyers/456`. 3. The ID of the bidder itself.
# So for listing creatives pertaining to bidder (`123`), you would use `buyers/
# 123`. If you want to access all creatives pertaining to both the bidder and
# all of its child seat accounts, you would use `bidders/`bidderAccountId``, e.g.
# , for all creatives pertaining to bidder (`123`), use `bidders/123`.
# @param [String] filter
# Query string to filter creatives. If no filter is specified,
# all active creatives will be returned.
# Example: 'accountId=12345 AND (dealsStatus:DISAPPROVED AND
# disapprovalReason:UNACCEPTABLE_CONTENT) OR
# declaredAttributes:IS_COOKIE_TARGETED'
# Query string to filter creatives. If no filter is specified, all active
# creatives will be returned. Example: 'accountId=12345 AND (dealsStatus:
# DISAPPROVED AND disapprovalReason:UNACCEPTABLE_CONTENT) OR declaredAttributes:
# IS_COOKIE_TARGETED'
# @param [Fixnum] page_size
# Requested page size. The server may return fewer creatives than requested
# (due to timeout constraint) even if more are available via another call.
# If unspecified, server will pick an appropriate default.
# Acceptable values are 1 to 1000, inclusive.
# Requested page size. The server may return fewer creatives than requested (due
# to timeout constraint) even if more are available via another call. If
# unspecified, server will pick an appropriate default. Acceptable values are 1
# to 1000, inclusive.
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListCreativesResponse.nextPageToken
# returned from the previous call to the 'ListCreatives' method.
# A token identifying a page of results the server should return. Typically,
# this is the value of ListCreativesResponse.nextPageToken returned from the
# previous call to the 'ListCreatives' method.
# @param [String] view
# Controls the amount of information included in the response.
# By default only
# creativeServingDecision
# is included. To retrieve the entire creative
# resource (including the declared
# fields and the creative content) specify the view as "FULL".
# Controls the amount of information included in the response. By default only
# creativeServingDecision is included. To retrieve the entire creative resource (
# including the declared fields and the creative content) specify the view as "
# FULL".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -354,8 +327,7 @@ module Google
# Updates a creative.
# @param [String] name
# Name of the creative to update. See
# creative.name.
# Name of the creative to update. See creative.name.
# @param [Google::Apis::RealtimebiddingV1::Creative] creative_object
# @param [String] update_mask
# Field mask to use for partial in-place updates.
@ -389,11 +361,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Change the status of a user list to CLOSED. This prevents new users from
# being added to the user list.
# Change the status of a user list to CLOSED. This prevents new users from being
# added to the user list.
# @param [String] name
# Required. The name of the user list to close.
# See UserList.name
# Required. The name of the user list to close. See UserList.name
# @param [Google::Apis::RealtimebiddingV1::CloseUserListRequest] close_user_list_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -463,8 +434,7 @@ module Google
# Gets a user list by its name.
# @param [String] name
# Required. The name of the user list to be retrieved. See
# UserList.name.
# Required. The name of the user list to be retrieved. See UserList.name.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -492,21 +462,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets remarketing tag for a buyer. A remarketing tag is a piece of
# JavaScript code that can be placed on a web page. When a user
# visits a page containing a remarketing tag, Google adds the user to a user
# list.
# Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript
# code that can be placed on a web page. When a user visits a page containing a
# remarketing tag, Google adds the user to a user list.
# @param [String] name
# Required. To fetch remarketing tag for an account, name must follow the
# pattern
# `buyers/`accountId`` where ``accountId``
# represents ID of a buyer that owns the remarketing tag. For a
# bidder accessing remarketing tag on behalf of a child seat buyer,
# ``accountId`` should represent the ID of the child seat buyer.
# To fetch remarketing tag for a specific user list, name
# must follow the pattern
# `buyers/`accountId`/userLists/`userListId``. See
# UserList.name.
# pattern `buyers/`accountId`` where ``accountId`` represents ID of a buyer that
# owns the remarketing tag. For a bidder accessing remarketing tag on behalf of
# a child seat buyer, ``accountId`` should represent the ID of the child seat
# buyer. To fetch remarketing tag for a specific user list, name must follow the
# pattern `buyers/`accountId`/userLists/`userListId``. See UserList.name.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -537,8 +502,7 @@ module Google
# Lists the user lists visible to the current user.
# @param [String] parent
# Required. The name of the parent buyer for the user lists to be returned that
# must
# follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
# must follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
# represents the account ID of the buyer who owns user lists. For a bidder
# accessing user lists on behalf of a child seat buyer , ``buyerAccountId``
# should represent the account ID of the child seat buyer.
@ -575,11 +539,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Change the status of a user list to OPEN. This allows new users to be added
# to the user list.
# Change the status of a user list to OPEN. This allows new users to be added to
# the user list.
# @param [String] name
# Required. The name of the user list to open.
# See UserList.name
# Required. The name of the user list to open. See UserList.name
# @param [Google::Apis::RealtimebiddingV1::OpenUserListRequest] open_user_list_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -613,12 +576,12 @@ module Google
# Update the given user list. Only user lists with URLRestrictions can be
# updated.
# @param [String] name
# Output only. Name of the user list that must follow the pattern
# `buyers/`buyer`/userLists/`user_list``, where ``buyer`` represents
# the account ID of the buyer who owns the user list. For a bidder accessing
# user lists on behalf of a child seat buyer, ``buyer`` represents
# the account ID of the child seat buyer. ``user_list`` is an int64
# identifier assigned by Google to uniquely identify a user list.
# Output only. Name of the user list that must follow the pattern `buyers/`buyer`
# /userLists/`user_list``, where ``buyer`` represents the account ID of the
# buyer who owns the user list. For a bidder accessing user lists on behalf of a
# child seat buyer, ``buyer`` represents the account ID of the child seat buyer.
# ``user_list`` is an int64 identifier assigned by Google to uniquely identify a
# user list.
# @param [Google::Apis::RealtimebiddingV1::UserList] user_list_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/spectrum-access-system/
module SasportalV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200722'
REVISION = '20200801'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -26,12 +26,10 @@ module Google
class SasPortalAssignment
include Google::Apis::Core::Hashable
# The identities the role is assigned to. It can have the following
# values:
# * ``user_email``: An email address that represents a specific
# Google account. For example: `alice@gmail.com`.
# * ``group_email``: An email address that represents a Google
# group. For example, `viewers@gmail.com`.
# The identities the role is assigned to. It can have the following values: * ``
# user_email``: An email address that represents a specific Google account. For
# example: `alice@gmail.com`. * ``group_email``: An email address that
# represents a Google group. For example, `viewers@gmail.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
@ -56,8 +54,8 @@ module Google
class SasPortalBulkCreateDeviceRequest
include Google::Apis::Core::Hashable
# Required. A csv with each row representing a [device]. Each row must
# conform to the regulations described on CreateDeviceRequest's device field.
# Required. A csv with each row representing a [device]. Each row must conform
# to the regulations described on CreateDeviceRequest's device field.
# Corresponds to the JSON property `csv`
# @return [String]
attr_accessor :csv
@ -95,8 +93,8 @@ module Google
class SasPortalCreateSignedDeviceRequest
include Google::Apis::Core::Hashable
# Required. JSON Web Token signed using a CPI private key. Payload
# must be the JSON encoding of the [Device]. The user_id field must be set.
# Required. JSON Web Token signed using a CPI private key. Payload must be the
# JSON encoding of the [Device]. The user_id field must be set.
# Corresponds to the JSON property `encodedDevice`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -189,8 +187,7 @@ module Google
# @return [Google::Apis::SasportalV1alpha1::SasPortalDeviceConfig]
attr_accessor :preloaded_config
# A serial number assigned to the device by the device
# manufacturer.
# A serial number assigned to the device by the device manufacturer.
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
@ -230,8 +227,7 @@ module Google
# This field is related to the radioTechnology field and provides the air
# interface specification that the CBSD is compliant with at the time of
# registration.
# Optional
# registration. Optional
# Corresponds to the JSON property `supportedSpec`
# @return [String]
attr_accessor :supported_spec
@ -321,9 +317,9 @@ module Google
end
end
# Device grant. It is an authorization provided by the Spectrum
# Access System to a device to transmit using specified operating
# parameters after a successful heartbeat by the device.
# Device grant. It is an authorization provided by the Spectrum Access System to
# a device to transmit using specified operating parameters after a successful
# heartbeat by the device.
class SasPortalDeviceGrant
include Google::Apis::Core::Hashable
@ -342,10 +338,10 @@ module Google
# @return [Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange]
attr_accessor :frequency_range
# Maximum Equivalent Isotropically Radiated Power (EIRP) permitted
# by the grant. The maximum EIRP is in units of dBm/MHz. The
# value of maxEirp represents the average (RMS) EIRP that would be
# measured by the procedure defined in FCC part 96.41(e)(3).
# Maximum Equivalent Isotropically Radiated Power (EIRP) permitted by the grant.
# The maximum EIRP is in units of dBm/MHz. The value of maxEirp represents the
# average (RMS) EIRP that would be measured by the procedure defined in FCC part
# 96.41(e)(3).
# Corresponds to the JSON property `maxEirp`
# @return [Float]
attr_accessor :max_eirp
@ -462,13 +458,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 SasPortalEmpty
include Google::Apis::Core::Hashable
@ -506,8 +500,8 @@ module Google
end
end
# Request for GenerateSecret method]
# [spectrum.sas.portal.v1alpha1.DeviceManager.GenerateSecret].
# Request for GenerateSecret method] [spectrum.sas.portal.v1alpha1.DeviceManager.
# GenerateSecret].
class SasPortalGenerateSecretRequest
include Google::Apis::Core::Hashable
@ -524,8 +518,7 @@ module Google
class SasPortalGenerateSecretResponse
include Google::Apis::Core::Hashable
# The secret generated by the string and used by
# [ValidateInstaller] method.
# The secret generated by the string and used by [ValidateInstaller] method.
# Corresponds to the JSON property `secret`
# @return [String]
attr_accessor :secret
@ -563,41 +556,39 @@ module Google
class SasPortalInstallationParams
include Google::Apis::Core::Hashable
# Boresight direction of the horizontal plane of the antenna in
# degrees with respect to true north. The value of this parameter
# is an integer with a value between 0 and 359 inclusive. A value
# of 0 degrees means true north; a value of 90 degrees means
# east. This parameter is optional for Category A devices and
# Boresight direction of the horizontal plane of the antenna in degrees with
# respect to true north. The value of this parameter is an integer with a value
# between 0 and 359 inclusive. A value of 0 degrees means true north; a value of
# 90 degrees means east. This parameter is optional for Category A devices and
# conditional for Category B devices.
# Corresponds to the JSON property `antennaAzimuth`
# @return [Fixnum]
attr_accessor :antenna_azimuth
# 3-dB antenna beamwidth of the antenna in the horizontal-plane in
# degrees. This parameter is an unsigned integer having a value
# between 0 and 360 (degrees) inclusive; it is optional for
# Category A devices and conditional for Category B devices.
# 3-dB antenna beamwidth of the antenna in the horizontal-plane in degrees. This
# parameter is an unsigned integer having a value between 0 and 360 (degrees)
# inclusive; it is optional for Category A devices and conditional for Category
# B devices.
# Corresponds to the JSON property `antennaBeamwidth`
# @return [Fixnum]
attr_accessor :antenna_beamwidth
# Antenna downtilt in degrees and is an integer with a value
# between -90 and +90 inclusive; a negative value means the antenna
# is tilted up (above horizontal). This parameter is optional for
# Category A devices and conditional for Category B devices.
# Antenna downtilt in degrees and is an integer with a value between -90 and +90
# inclusive; a negative value means the antenna is tilted up (above horizontal).
# This parameter is optional for Category A devices and conditional for Category
# B devices.
# Corresponds to the JSON property `antennaDowntilt`
# @return [Fixnum]
attr_accessor :antenna_downtilt
# Peak antenna gain in dBi. This parameter is an integer with a
# value between -127 and +128 (dBi) inclusive.
# Peak antenna gain in dBi. This parameter is an integer with a value between -
# 127 and +128 (dBi) inclusive.
# Corresponds to the JSON property `antennaGain`
# @return [Fixnum]
attr_accessor :antenna_gain
# If an external antenna is used, the antenna model is optionally
# provided in this field. The string has a maximum length of 128
# octets.
# If an external antenna is used, the antenna model is optionally provided in
# this field. The string has a maximum length of 128 octets.
# Corresponds to the JSON property `antennaModel`
# @return [String]
attr_accessor :antenna_model
@ -608,18 +599,17 @@ module Google
attr_accessor :cpe_cbsd_indication
alias_method :cpe_cbsd_indication?, :cpe_cbsd_indication
# This parameter is the maximum device EIRP in units of dBm/10MHz
# and is an integer with a value between -127 and +47 (dBm/10 MHz)
# inclusive. If not included, SAS interprets it as maximum
# allowable EIRP in units of dBm/10MHz for device category.
# This parameter is the maximum device EIRP in units of dBm/10MHz and is an
# integer with a value between -127 and +47 (dBm/10 MHz) inclusive. If not
# included, SAS interprets it as maximum allowable EIRP in units of dBm/10MHz
# for device category.
# Corresponds to the JSON property `eirpCapability`
# @return [Fixnum]
attr_accessor :eirp_capability
# Device antenna height in meters. When the heightType parameter
# value is "AGL", the antenna height should be given relative to
# ground level. When the heightType parameter value is "AMSL", it
# is given with respect to WGS84 datum.
# Device antenna height in meters. When the heightType parameter value is "AGL",
# the antenna height should be given relative to ground level. When the
# heightType parameter value is "AMSL", it is given with respect to WGS84 datum.
# Corresponds to the JSON property `height`
# @return [Float]
attr_accessor :height
@ -629,42 +619,37 @@ module Google
# @return [String]
attr_accessor :height_type
# A positive number in meters to indicate accuracy of the device
# antenna horizontal location. This optional parameter should only
# be present if its value is less than the FCC requirement of 50
# meters.
# A positive number in meters to indicate accuracy of the device antenna
# horizontal location. This optional parameter should only be present if its
# value is less than the FCC requirement of 50 meters.
# Corresponds to the JSON property `horizontalAccuracy`
# @return [Float]
attr_accessor :horizontal_accuracy
# Whether the device antenna is indoor or not. True: indoor. False:
# outdoor.
# Whether the device antenna is indoor or not. True: indoor. False: outdoor.
# Corresponds to the JSON property `indoorDeployment`
# @return [Boolean]
attr_accessor :indoor_deployment
alias_method :indoor_deployment?, :indoor_deployment
# Latitude of the device antenna location in degrees relative to
# the WGS 84 datum. The allowed range is from -90.000000 to
# +90.000000. Positive values represent latitudes north of the
# equator; negative values south of the equator.
# Latitude of the device antenna location in degrees relative to the WGS 84
# datum. The allowed range is from -90.000000 to +90.000000. Positive values
# represent latitudes north of the equator; negative values south of the equator.
# Corresponds to the JSON property `latitude`
# @return [Float]
attr_accessor :latitude
# Longitude of the device antenna location. in degrees relative to
# the WGS 84 datum. The allowed range is from -180.000000 to
# +180.000000. Positive values represent longitudes east of the
# prime meridian; negative values west of the prime
# meridian.
# Longitude of the device antenna location. in degrees relative to the WGS 84
# datum. The allowed range is from -180.000000 to +180.000000. Positive values
# represent longitudes east of the prime meridian; negative values west of the
# prime meridian.
# Corresponds to the JSON property `longitude`
# @return [Float]
attr_accessor :longitude
# A positive number in meters to indicate accuracy of the device
# antenna vertical location. This optional parameter should only be
# present if its value is less than the FCC requirement of 3
# meters.
# A positive number in meters to indicate accuracy of the device antenna
# vertical location. This optional parameter should only be present if its value
# is less than the FCC requirement of 3 meters.
# Corresponds to the JSON property `verticalAccuracy`
# @return [Float]
attr_accessor :vertical_accuracy
@ -696,16 +681,14 @@ module Google
class SasPortalListCustomersResponse
include Google::Apis::Core::Hashable
# The list of customers that
# match the request.
# The list of customers that match the request.
# Corresponds to the JSON property `customers`
# @return [Array<Google::Apis::SasportalV1alpha1::SasPortalCustomer>]
attr_accessor :customers
# A pagination token returned from a previous call to ListCustomers method that
# indicates from
# where listing should continue. If the field is missing or empty, it means
# there are no more customers.
# indicates from where listing should continue. If the field is missing or empty,
# it means there are no more customers.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -730,9 +713,9 @@ module Google
# @return [Array<Google::Apis::SasportalV1alpha1::SasPortalDevice>]
attr_accessor :devices
# A pagination token returned from a previous call to ListDevices method
# that indicates from where listing should continue. If the field
# is missing or empty, it means there is no more devices.
# A pagination token returned from a previous call to ListDevices method that
# indicates from where listing should continue. If the field is missing or empty,
# it means there is no more devices.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -752,10 +735,9 @@ module Google
class SasPortalListNodesResponse
include Google::Apis::Core::Hashable
# A pagination token returned from a previous call to
# ListNodes method
# that indicates from where listing should continue. If the field is missing
# or empty, it means there is no more nodes.
# A pagination token returned from a previous call to ListNodes method that
# indicates from where listing should continue. If the field is missing or empty,
# it means there is no more nodes.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -780,8 +762,8 @@ module Google
class SasPortalMoveDeviceRequest
include Google::Apis::Core::Hashable
# Required. The name of the new parent resource (Node or Customer) to
# reparent the device under.
# Required. The name of the new parent resource (Node or Customer) to reparent
# the device under.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
@ -852,47 +834,45 @@ module Google
class SasPortalOperation
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::SasportalV1alpha1::SasPortalStatus]
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<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# 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<String,Object>]
attr_accessor :response
@ -920,16 +900,14 @@ module Google
# @return [Array<Google::Apis::SasportalV1alpha1::SasPortalAssignment>]
attr_accessor :assignments
# The [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 [GetPolicy], and systems are expected to put
# that etag in the request to [SetPolicy] to ensure that their
# change will be applied to the same version of the policy.
# If no [etag] is provided in the call to [SetPolicy], then the
# existing policy is overwritten blindly.
# The [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 [GetPolicy], and systems are expected to put that
# etag in the request to [SetPolicy] to ensure that their change will be applied
# to the same version of the policy. If no [etag] is provided in the call to [
# SetPolicy], then the existing policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -976,9 +954,8 @@ module Google
class SasPortalSignDeviceRequest
include Google::Apis::Core::Hashable
# Required. The device to sign.
# The device fields name, fcc_id and serial_number must be set.
# The user_id field must be set.
# Required. The device to sign. The device fields name, fcc_id and serial_number
# must be set. The user_id field must be set.
# Corresponds to the JSON property `device`
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
attr_accessor :device
@ -993,12 +970,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 SasPortalStatus
include Google::Apis::Core::Hashable
@ -1007,15 +984,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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
@ -1080,9 +1057,8 @@ module Google
class SasPortalUpdateSignedDeviceRequest
include Google::Apis::Core::Hashable
# Required. The JSON Web Token signed using a CPI private key. Payload
# must be the JSON encoding
# of the device. The user_id field must be set.
# Required. The JSON Web Token signed using a CPI private key. Payload must be
# the JSON encoding of the device. The user_id field must be set.
# Corresponds to the JSON property `encodedDevice`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -1109,14 +1085,14 @@ module Google
class SasPortalValidateInstallerRequest
include Google::Apis::Core::Hashable
# Required. JSON Web Token signed using a CPI private key. Payload
# must include a "secret" claim whose value is the secret.
# Required. JSON Web Token signed using a CPI private key. Payload must include
# a "secret" claim whose value is the secret.
# Corresponds to the JSON property `encodedSecret`
# @return [String]
attr_accessor :encoded_secret
# Required. Unique installer id (cpiId) from the Certified
# Professional Installers database.
# Required. Unique installer id (cpiId) from the Certified Professional
# Installers database.
# Corresponds to the JSON property `installerId`
# @return [String]
attr_accessor :installer_id
@ -1138,8 +1114,8 @@ module Google
end
end
# Response for ValidateInstaller method]
# [spectrum.sas.portal.v1alpha1.DeviceManager.ValidateInstaller].
# Response for ValidateInstaller method] [spectrum.sas.portal.v1alpha1.
# DeviceManager.ValidateInstaller].
class SasPortalValidateInstallerResponse
include Google::Apis::Core::Hashable

View File

@ -79,12 +79,10 @@ module Google
# Returns a list of requested customers.
# @param [Fixnum] page_size
# The maximum number of customers
# to return in the response.
# The maximum number of customers to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListCustomers method that
# indicates where
# this listing should continue from.
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -215,8 +213,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a signed device under a
# node or customer.
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
@ -313,16 +310,15 @@ module Google
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following
# formats: "sn=123454" or "display_name=MyDevice". sn
# corresponds to serial_number of the device. The filter is case insensitive.
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response.
# If empty or zero, all devices will be listed.
# Must be in the range [0, 1000].
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -587,8 +583,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -620,8 +616,7 @@ module Google
# Moves a node under another node or customer.
# @param [String] name
# Required. The name of the node to
# move.
# Required. The name of the node to move.
# @param [Google::Apis::SasportalV1alpha1::SasPortalMoveNodeRequest] sas_portal_move_node_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -727,8 +722,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -914,8 +909,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a signed device under a
# node or customer.
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
@ -1012,16 +1006,15 @@ module Google
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following
# formats: "sn=123454" or "display_name=MyDevice". sn
# corresponds to serial_number of the device. The filter is case insensitive.
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response.
# If empty or zero, all devices will be listed.
# Must be in the range [0, 1000].
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1286,8 +1279,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1319,8 +1312,7 @@ module Google
# Moves a node under another node or customer.
# @param [String] name
# Required. The name of the node to
# move.
# Required. The name of the node to move.
# @param [Google::Apis::SasportalV1alpha1::SasPortalMoveNodeRequest] sas_portal_move_node_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1453,8 +1445,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a signed device under a
# node or customer.
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
@ -1491,16 +1482,15 @@ module Google
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following
# formats: "sn=123454" or "display_name=MyDevice". sn
# corresponds to serial_number of the device. The filter is case insensitive.
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response.
# If empty or zero, all devices will be listed.
# Must be in the range [0, 1000].
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1570,8 +1560,8 @@ module Google
# @param [Fixnum] page_size
# The maximum number of nodes to return in the response.
# @param [String] page_token
# A pagination token returned from a previous call to ListNodes method
# that indicates where this listing should continue from.
# A pagination token returned from a previous call to ListNodes method that
# indicates where this listing should continue from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1601,9 +1591,8 @@ 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 [Google::Apis::SasportalV1alpha1::SasPortalGetPolicyRequest] sas_portal_get_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1
VERSION = 'V1'
REVISION = '20200619'
REVISION = '20200731'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -51,8 +51,7 @@ module Google
# Gets the settings for an organization.
# @param [String] name
# Required. Name of the organization to get organization settings for. Its
# format is
# "organizations/[organization_id]/organizationSettings".
# format is "organizations/[organization_id]/organizationSettings".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -82,14 +81,13 @@ module Google
# Updates an organization's settings.
# @param [String] name
# The relative resource name of the settings. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/organizationSettings".
# The relative resource name of the settings. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/organizationSettings".
# @param [Google::Apis::SecuritycenterV1::OrganizationSettings] organization_settings_object
# @param [String] update_mask
# The FieldMask to use when updating the settings resource.
# If empty all mutable fields will be updated.
# The FieldMask to use when updating the settings resource. If empty all mutable
# fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -120,11 +118,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Filters an organization's assets and groups them by their specified
# properties.
# Filters an organization's assets and groups them by their specified properties.
# @param [String] parent
# Required. Name of the organization to groupBy. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization to groupBy. Its format is "organizations/[
# organization_id]".
# @param [Google::Apis::SecuritycenterV1::GroupAssetsRequest] group_assets_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -157,114 +154,86 @@ module Google
# Lists an organization's assets.
# @param [String] parent
# Required. Name of the organization assets should belong to. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization assets should belong to. Its format is "
# organizations/[organization_id]".
# @param [String] compare_duration
# When compare_duration is set, the ListAssetsResult's "state_change"
# attribute is updated to indicate whether the asset was added, removed, or
# remained present during the compare_duration period of time that precedes
# the read_time. This is the time between (read_time - compare_duration) and
# read_time.
# The state_change value is derived based on the presence of the asset at the
# two points in time. Intermediate state changes between the two times don't
# affect the result. For example, the results aren't affected if the asset is
# removed and re-created again.
# Possible "state_change" values when compare_duration is specified:
# * "ADDED": indicates that the asset was not present at the start of
# compare_duration, but present at read_time.
# * "REMOVED": indicates that the asset was present at the start of
# compare_duration, but not present at read_time.
# * "ACTIVE": indicates that the asset was present at both the
# start and the end of the time period defined by
# compare_duration and read_time.
# If compare_duration is not specified, then the only possible state_change
# is "UNUSED", which will be the state_change set for all assets present at
# When compare_duration is set, the ListAssetsResult's "state_change" attribute
# is updated to indicate whether the asset was added, removed, or remained
# present during the compare_duration period of time that precedes the read_time.
# This is the time between (read_time - compare_duration) and read_time. The
# state_change value is derived based on the presence of the asset at the two
# points in time. Intermediate state changes between the two times don't affect
# the result. For example, the results aren't affected if the asset is removed
# and re-created again. Possible "state_change" values when compare_duration is
# specified: * "ADDED": indicates that the asset was not present at the start of
# compare_duration, but present at read_time. * "REMOVED": indicates that the
# asset was present at the start of compare_duration, but not present at
# read_time. * "ACTIVE": indicates that the asset was present at both the start
# and the end of the time period defined by compare_duration and read_time. If
# compare_duration is not specified, then the only possible state_change is "
# UNUSED", which will be the state_change set for all assets present at
# read_time.
# @param [String] field_mask
# A field mask to specify the ListAssetsResult fields to be listed in the
# response.
# An empty field mask will list all fields.
# response. An empty field mask will list all fields.
# @param [String] filter
# Expression that defines the filter to apply across assets.
# The expression is a list of zero or more restrictions combined via logical
# operators `AND` and `OR`.
# Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
# character in front of them to indicate negation. The fields map to those
# defined in the Asset resource. Examples include:
# * name
# * security_center_properties.resource_name
# * resource_properties.a_property
# * security_marks.marks.marka
# The supported operators are:
# * `=` for all value types.
# * `>`, `<`, `>=`, `<=` for integer values.
# * `:`, meaning substring matching, for strings.
# The supported value types are:
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
# The following are the allowed field and operator combinations:
# * name: `=`
# * update_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string.
# Examples:
# `update_time = "2019-06-10T16:07:18-07:00"`
# `update_time = 1560208038000`
# * create_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string.
# Examples:
# `create_time = "2019-06-10T16:07:18-07:00"`
# `create_time = 1560208038000`
# * iam_policy.policy_blob: `=`, `:`
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
# * security_marks.marks: `=`, `:`
# * security_center_properties.resource_name: `=`, `:`
# * security_center_properties.resource_display_name: `=`, `:`
# * security_center_properties.resource_type: `=`, `:`
# * security_center_properties.resource_parent: `=`, `:`
# * security_center_properties.resource_parent_display_name: `=`, `:`
# * security_center_properties.resource_project: `=`, `:`
# * security_center_properties.resource_project_display_name: `=`, `:`
# * security_center_properties.resource_owners: `=`, `:`
# For example, `resource_properties.size = 100` is a valid filter string.
# Use a partial match on the empty string to filter based on a property
# existing: `resource_properties.my_property : ""`
# Use a negated partial match on the empty string to filter based on a
# property not existing: `-resource_properties.my_property : ""`
# Expression that defines the filter to apply across assets. The expression is a
# list of zero or more restrictions combined via logical operators `AND` and `OR`
# . Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form ` ` and may have a `-` character in front of them
# to indicate negation. The fields map to those defined in the Asset resource.
# Examples include: * name * security_center_properties.resource_name *
# resource_properties.a_property * security_marks.marks.marka The supported
# operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer
# values. * `:`, meaning substring matching, for strings. The supported value
# types are: * string literals in quotes. * integer literals without quotes. *
# boolean literals `true` and `false` without quotes. The following are the
# allowed field and operator combinations: * name: `=` * update_time: `=`, `>`, `
# <`, `>=`, `<=` Usage: This should be milliseconds since epoch or an RFC3339
# string. Examples: `update_time = "2019-06-10T16:07:18-07:00"` `update_time =
# 1560208038000` * create_time: `=`, `>`, `<`, `>=`, `<=` Usage: This should be
# milliseconds since epoch or an RFC3339 string. Examples: `create_time = "2019-
# 06-10T16:07:18-07:00"` `create_time = 1560208038000` * iam_policy.policy_blob:
# `=`, `:` * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` *
# security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`,
# `:` * security_center_properties.resource_display_name: `=`, `:` *
# security_center_properties.resource_type: `=`, `:` *
# security_center_properties.resource_parent: `=`, `:` *
# security_center_properties.resource_parent_display_name: `=`, `:` *
# security_center_properties.resource_project: `=`, `:` *
# security_center_properties.resource_project_display_name: `=`, `:` *
# security_center_properties.resource_owners: `=`, `:` For example, `
# resource_properties.size = 100` is a valid filter string. Use a partial match
# on the empty string to filter based on a property existing: `
# resource_properties.my_property : ""` Use a negated partial match on the empty
# string to filter based on a property not existing: `-resource_properties.
# my_property : ""`
# @param [String] order_by
# Expression that defines what fields and order to use for sorting. The
# string value should follow SQL syntax: comma separated list of fields. For
# example: "name,resource_properties.a_property". The default sorting order
# is ascending. To specify descending order for a field, a suffix " desc"
# should be appended to the field name. For example: "name
# desc,resource_properties.a_property". Redundant space characters in the
# syntax are insignificant. "name desc,resource_properties.a_property" and "
# name desc , resource_properties.a_property " are equivalent.
# The following fields are supported:
# name
# update_time
# resource_properties
# security_marks.marks
# security_center_properties.resource_name
# security_center_properties.resource_display_name
# security_center_properties.resource_parent
# Expression that defines what fields and order to use for sorting. The string
# value should follow SQL syntax: comma separated list of fields. For example: "
# name,resource_properties.a_property". The default sorting order is ascending.
# To specify descending order for a field, a suffix " desc" should be appended
# to the field name. For example: "name desc,resource_properties.a_property".
# Redundant space characters in the syntax are insignificant. "name desc,
# resource_properties.a_property" and " name desc , resource_properties.
# a_property " are equivalent. The following fields are supported: name
# update_time resource_properties security_marks.marks
# security_center_properties.resource_name security_center_properties.
# resource_display_name security_center_properties.resource_parent
# security_center_properties.resource_parent_display_name
# security_center_properties.resource_project
# security_center_properties.resource_project_display_name
# security_center_properties.resource_type
# security_center_properties.resource_project security_center_properties.
# resource_project_display_name security_center_properties.resource_type
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListAssetsResponse`; indicates
# that this is a continuation of a prior `ListAssets` call, and
# that the system should return the next page of data.
# The value returned by the last `ListAssetsResponse`; indicates that this is a
# continuation of a prior `ListAssets` call, and that the system should return
# the next page of data.
# @param [String] read_time
# Time used as a reference point when filtering assets. The filter is limited
# to assets existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of
# NOW.
# Time used as a reference point when filtering assets. The filter is limited to
# assets existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of NOW.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -299,14 +268,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Runs asset discovery. The discovery is tracked with a long-running
# operation.
# This API can only be called with limited frequency for an organization. If
# it is called too frequently the caller will receive a TOO_MANY_REQUESTS
# error.
# Runs asset discovery. The discovery is tracked with a long-running operation.
# This API can only be called with limited frequency for an organization. If it
# is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
# @param [String] parent
# Required. Name of the organization to run asset discovery for. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization to run asset discovery for. Its format is "
# organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1::RunAssetDiscoveryRequest] run_asset_discovery_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -339,22 +306,19 @@ module Google
# Updates security marks.
# @param [String] name
# 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".
# 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".
# @param [Google::Apis::SecuritycenterV1::SecurityMarks] security_marks_object
# @param [String] start_time
# The time at which the updated SecurityMarks take effect.
# If not set uses current server time. Updates will be applied to the
# SecurityMarks that are active immediately preceding this time.
# The time at which the updated SecurityMarks take effect. If not set uses
# current server time. Updates will be applied to the SecurityMarks that are
# active immediately preceding this time.
# @param [String] update_mask
# The FieldMask to use when updating the security marks resource.
# The field mask must not contain duplicate fields.
# If empty or set to "marks", all marks will be replaced. Individual
# marks can be updated using "marks.<mark_key>".
# The FieldMask to use when updating the security marks resource. The field mask
# must not contain duplicate fields. If empty or set to "marks", all marks will
# be replaced. Individual marks can be updated using "marks.".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -392,10 +356,9 @@ module Google
# "organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
# @param [String] config_id
# Required.
# Unique identifier provided by the client within the parent scope.
# It must be between 1 and 128 characters, and contains alphanumeric
# characters, underscores or hyphens only.
# Required. Unique identifier provided by the client within the parent scope. It
# must be between 1 and 128 characters, and contains alphanumeric characters,
# underscores or hyphens only.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -428,8 +391,8 @@ module Google
# Deletes a notification config.
# @param [String] name
# Required. Name of the notification config to delete. Its format is
# "organizations/[organization_id]/notificationConfigs/[config_id]".
# Required. Name of the notification config to delete. Its format is "
# organizations/[organization_id]/notificationConfigs/[config_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -459,8 +422,8 @@ module Google
# Gets a notification config.
# @param [String] name
# Required. Name of the notification config to get. Its format is
# "organizations/[organization_id]/notificationConfigs/[config_id]".
# Required. Name of the notification config to get. Its format is "organizations/
# [organization_id]/notificationConfigs/[config_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -490,11 +453,11 @@ module Google
# Lists notification configs.
# @param [String] parent
# Required. Name of the organization to list notification configs.
# Its format is "organizations/[organization_id]".
# Required. Name of the organization to list notification configs. Its format is
# "organizations/[organization_id]".
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListNotificationConfigsResponse`; indicates
# that this is a continuation of a prior `ListNotificationConfigs` call, and
@ -528,17 +491,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a notification config. The following update
# fields are allowed: description, pubsub_topic, streaming_config.filter
# Updates a notification config. The following update fields are allowed:
# description, pubsub_topic, streaming_config.filter
# @param [String] name
# The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/notificationConfigs/notify_public_bucket".
# The relative resource name of this notification config. See: https://cloud.
# google.com/apis/design/resource_names#relative_resource_name Example: "
# organizations/`organization_id`/notificationConfigs/notify_public_bucket".
# @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
# @param [String] update_mask
# The FieldMask to use when updating the notification config.
# If empty all mutable fields will be updated.
# The FieldMask to use when updating the notification config. If empty all
# mutable fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -569,15 +531,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.
@ -608,10 +568,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
@ -641,9 +601,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
@ -673,15 +632,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
@ -722,8 +680,8 @@ module Google
# Creates a source.
# @param [String] parent
# Required. Resource name of the new source's parent. Its format should be
# "organizations/[organization_id]".
# Required. Resource name of the new source's parent. Its format should be "
# organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1::Source] source_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -756,8 +714,8 @@ module Google
# Gets a source.
# @param [String] name
# Required. Relative resource name of the source. Its format is
# "organizations/[organization_id]/source/[source_id]".
# Required. Relative resource name of the source. Its format is "organizations/[
# organization_id]/source/[source_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -787,8 +745,8 @@ module Google
# Gets the access control policy on the specified Source.
# @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 [Google::Apis::SecuritycenterV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -824,12 +782,12 @@ module Google
# Required. Resource name of the parent of sources to list. Its format should be
# "organizations/[organization_id]".
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListSourcesResponse`; indicates
# that this is a continuation of a prior `ListSources` call, and
# that the system should return the next page of data.
# The value returned by the last `ListSourcesResponse`; indicates that this is a
# continuation of a prior `ListSources` call, and that the system should return
# the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -861,14 +819,13 @@ module Google
# Updates a source.
# @param [String] name
# The relative resource name of this source. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`"
# The relative resource name of this source. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`"
# @param [Google::Apis::SecuritycenterV1::Source] source_object
# @param [String] update_mask
# The FieldMask to use when updating the source resource.
# If empty all mutable fields will be updated.
# The FieldMask to use when updating the source resource. If empty all mutable
# fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -901,8 +858,8 @@ module Google
# Sets the access control policy on the specified Source.
# @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::SecuritycenterV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -935,8 +892,8 @@ module Google
# Returns the permissions that a caller has on the specified source.
# @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::SecuritycenterV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -967,16 +924,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a finding. The corresponding source must exist for finding creation
# to succeed.
# Creates a finding. The corresponding source must exist for finding creation to
# succeed.
# @param [String] parent
# Required. Resource name of the new finding's parent. Its format should be
# "organizations/[organization_id]/sources/[source_id]".
# Required. Resource name of the new finding's parent. Its format should be "
# organizations/[organization_id]/sources/[source_id]".
# @param [Google::Apis::SecuritycenterV1::Finding] finding_object
# @param [String] finding_id
# Required. Unique identifier provided by the client within the parent scope.
# It must be alphanumeric and less than or equal to 32 characters and
# greater than 0 characters in length.
# Required. Unique identifier provided by the client within the parent scope. It
# must be alphanumeric and less than or equal to 32 characters and greater than
# 0 characters in length.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1007,15 +964,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Filters an organization or source's findings and groups them by their
# specified properties.
# To group across all sources provide a `-` as the source id.
# Example: /v1/organizations/`organization_id`/sources/-/findings
# Filters an organization or source's findings and groups them by their
# specified properties. To group across all sources provide a `-` as the source
# id. Example: /v1/organizations/`organization_id`/sources/-/findings
# @param [String] parent
# Required. Name of the source to groupBy. Its format is
# "organizations/[organization_id]/sources/[source_id]". To groupBy across
# all sources provide a source_id of `-`. For example:
# organizations/`organization_id`/sources/-
# Required. Name of the source to groupBy. Its format is "organizations/[
# organization_id]/sources/[source_id]". To groupBy across all sources provide a
# source_id of `-`. For example: organizations/`organization_id`/sources/-
# @param [Google::Apis::SecuritycenterV1::GroupFindingsRequest] group_findings_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1046,111 +1001,80 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists an organization or source's findings.
# To list across all sources provide a `-` as the source id.
# Example: /v1/organizations/`organization_id`/sources/-/findings
# Lists an organization or source's findings. To list across all sources provide
# a `-` as the source id. Example: /v1/organizations/`organization_id`/sources/-/
# findings
# @param [String] parent
# Required. Name of the source the findings belong to. Its format is
# "organizations/[organization_id]/sources/[source_id]". To list across all
# sources provide a source_id of `-`. For example:
# organizations/`organization_id`/sources/-
# Required. Name of the source the findings belong to. Its format is "
# organizations/[organization_id]/sources/[source_id]". To list across all
# sources provide a source_id of `-`. For example: organizations/`
# organization_id`/sources/-
# @param [String] compare_duration
# When compare_duration is set, the ListFindingsResult's "state_change"
# attribute is updated to indicate whether the finding had its state changed,
# the finding's state remained unchanged, or if the finding was added in any
# state during the compare_duration period of time that precedes the
# read_time. This is the time between (read_time - compare_duration) and
# read_time.
# The state_change value is derived based on the presence and state of the
# finding at the two points in time. Intermediate state changes between the
# two times don't affect the result. For example, the results aren't affected
# if the finding is made inactive and then active again.
# Possible "state_change" values when compare_duration is specified:
# * "CHANGED": indicates that the finding was present and matched the given
# filter at the start of compare_duration, but changed its
# state at read_time.
# * "UNCHANGED": indicates that the finding was present and matched the given
# filter at the start of compare_duration and did not change
# state at read_time.
# * "ADDED": indicates that the finding did not match the given filter or
# was not present at the start of compare_duration, but was
# present at read_time.
# * "REMOVED": indicates that the finding was present and matched the
# filter at the start of compare_duration, but did not match
# the filter at read_time.
# If compare_duration is not specified, then the only possible state_change
# is "UNUSED", which will be the state_change set for all findings present at
# read_time.
# state during the compare_duration period of time that precedes the read_time.
# This is the time between (read_time - compare_duration) and read_time. The
# state_change value is derived based on the presence and state of the finding
# at the two points in time. Intermediate state changes between the two times
# don't affect the result. For example, the results aren't affected if the
# finding is made inactive and then active again. Possible "state_change" values
# when compare_duration is specified: * "CHANGED": indicates that the finding
# was present and matched the given filter at the start of compare_duration, but
# changed its state at read_time. * "UNCHANGED": indicates that the finding was
# present and matched the given filter at the start of compare_duration and did
# not change state at read_time. * "ADDED": indicates that the finding did not
# match the given filter or was not present at the start of compare_duration,
# but was present at read_time. * "REMOVED": indicates that the finding was
# present and matched the filter at the start of compare_duration, but did not
# match the filter at read_time. If compare_duration is not specified, then the
# only possible state_change is "UNUSED", which will be the state_change set for
# all findings present at read_time.
# @param [String] field_mask
# A field mask to specify the Finding fields to be listed in the response.
# An empty field mask will list all fields.
# A field mask to specify the Finding fields to be listed in the response. An
# empty field mask will list all fields.
# @param [String] filter
# Expression that defines the filter to apply across findings.
# The expression is a list of one or more restrictions combined via logical
# operators `AND` and `OR`.
# Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
# character in front of them to indicate negation. Examples include:
# * name
# * source_properties.a_property
# * security_marks.marks.marka
# The supported operators are:
# * `=` for all value types.
# * `>`, `<`, `>=`, `<=` for integer values.
# * `:`, meaning substring matching, for strings.
# The supported value types are:
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
# The following field and operator combinations are supported:
# name: `=`
# parent: `=`, `:`
# resource_name: `=`, `:`
# state: `=`, `:`
# category: `=`, `:`
# external_uri: `=`, `:`
# event_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string.
# Examples:
# `event_time = "2019-06-10T16:07:18-07:00"`
# `event_time = 1560208038000`
# security_marks.marks: `=`, `:`
# source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
# For example, `source_properties.size = 100` is a valid filter string.
# Use a partial match on the empty string to filter based on a property
# existing: `source_properties.my_property : ""`
# Use a negated partial match on the empty string to filter based on a
# property not existing: `-source_properties.my_property : ""`
# Expression that defines the filter to apply across findings. The expression is
# a list of one or more restrictions combined via logical operators `AND` and `
# OR`. Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form ` ` and may have a `-` character in front of them
# to indicate negation. Examples include: * name * source_properties.a_property *
# security_marks.marks.marka The supported operators are: * `=` for all value
# types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
# matching, for strings. The supported value types are: * string literals in
# quotes. * integer literals without quotes. * boolean literals `true` and `
# false` without quotes. The following field and operator combinations are
# supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:`
# category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string. Examples:
# `event_time = "2019-06-10T16:07:18-07:00"` `event_time = 1560208038000`
# security_marks.marks: `=`, `:` source_properties: `=`, `:`, `>`, `<`, `>=`, `<=
# ` For example, `source_properties.size = 100` is a valid filter string. Use a
# partial match on the empty string to filter based on a property existing: `
# source_properties.my_property : ""` Use a negated partial match on the empty
# string to filter based on a property not existing: `-source_properties.
# my_property : ""`
# @param [String] order_by
# Expression that defines what fields and order to use for sorting. The
# string value should follow SQL syntax: comma separated list of fields. For
# example: "name,resource_properties.a_property". The default sorting order
# is ascending. To specify descending order for a field, a suffix " desc"
# should be appended to the field name. For example: "name
# desc,source_properties.a_property". Redundant space characters in the
# syntax are insignificant. "name desc,source_properties.a_property" and "
# name desc , source_properties.a_property " are equivalent.
# The following fields are supported:
# name
# parent
# state
# category
# resource_name
# event_time
# source_properties
# security_marks.marks
# Expression that defines what fields and order to use for sorting. The string
# value should follow SQL syntax: comma separated list of fields. For example: "
# name,resource_properties.a_property". The default sorting order is ascending.
# To specify descending order for a field, a suffix " desc" should be appended
# to the field name. For example: "name desc,source_properties.a_property".
# Redundant space characters in the syntax are insignificant. "name desc,
# source_properties.a_property" and " name desc , source_properties.a_property "
# are equivalent. The following fields are supported: name parent state category
# resource_name event_time source_properties security_marks.marks
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListFindingsResponse`; indicates
# that this is a continuation of a prior `ListFindings` call, and
# that the system should return the next page of data.
# The value returned by the last `ListFindingsResponse`; indicates that this is
# a continuation of a prior `ListFindings` call, and that the system should
# return the next page of data.
# @param [String] read_time
# Time used as a reference point when filtering findings. The filter is
# limited to findings existing at the supplied time and their values are
# those at that specific time. Absence of this field will default to the
# API's version of NOW.
# Time used as a reference point when filtering findings. The filter is limited
# to findings existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of NOW.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1188,18 +1112,16 @@ module Google
# Creates or updates a finding. The corresponding source must exist for a
# finding creation to succeed.
# @param [String] name
# 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`"
# 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`"
# @param [Google::Apis::SecuritycenterV1::Finding] finding_object
# @param [String] update_mask
# The FieldMask to use when updating the finding resource. This field should
# not be specified when creating a finding.
# When updating a finding, an empty mask is treated as updating all mutable
# fields and replacing source_properties. Individual source_properties can
# be added/updated by using "source_properties.<property key>" in the field
# mask.
# The FieldMask to use when updating the finding resource. This field should not
# be specified when creating a finding. When updating a finding, an empty mask
# is treated as updating all mutable fields and replacing source_properties.
# Individual source_properties can be added/updated by using "source_properties."
# in the field mask.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1232,10 +1154,9 @@ module Google
# Updates the state of a finding.
# @param [String] name
# Required. The relative resource name of the finding. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`/finding/`finding_id`".
# Required. The relative resource name of the finding. See: https://cloud.google.
# com/apis/design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`/finding/`finding_id`".
# @param [Google::Apis::SecuritycenterV1::SetFindingStateRequest] set_finding_state_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1268,22 +1189,19 @@ module Google
# Updates security marks.
# @param [String] name
# 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".
# 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".
# @param [Google::Apis::SecuritycenterV1::SecurityMarks] security_marks_object
# @param [String] start_time
# The time at which the updated SecurityMarks take effect.
# If not set uses current server time. Updates will be applied to the
# SecurityMarks that are active immediately preceding this time.
# The time at which the updated SecurityMarks take effect. If not set uses
# current server time. Updates will be applied to the SecurityMarks that are
# active immediately preceding this time.
# @param [String] update_mask
# The FieldMask to use when updating the security marks resource.
# The field mask must not contain duplicate fields.
# If empty or set to "marks", all marks will be replaced. Individual
# marks can be updated using "marks.<mark_key>".
# The FieldMask to use when updating the security marks resource. The field mask
# must not contain duplicate fields. If empty or set to "marks", all marks will
# be replaced. Individual marks can be updated using "marks.".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1
VERSION = 'V1beta1'
REVISION = '20200605'
REVISION = '20200731'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -51,8 +51,7 @@ module Google
# Gets the settings for an organization.
# @param [String] name
# Required. Name of the organization to get organization settings for. Its
# format is
# "organizations/[organization_id]/organizationSettings".
# format is "organizations/[organization_id]/organizationSettings".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -82,10 +81,9 @@ module Google
# Updates an organization's settings.
# @param [String] name
# The relative resource name of the settings. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/organizationSettings".
# The relative resource name of the settings. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/organizationSettings".
# @param [Google::Apis::SecuritycenterV1beta1::OrganizationSettings] organization_settings_object
# @param [String] update_mask
# The FieldMask to use when updating the settings resource.
@ -119,11 +117,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Filters an organization's assets and groups them by their specified
# properties.
# Filters an organization's assets and groups them by their specified properties.
# @param [String] parent
# Required. Name of the organization to groupBy. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization to groupBy. Its format is "organizations/[
# organization_id]".
# @param [Google::Apis::SecuritycenterV1beta1::GroupAssetsRequest] group_assets_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -156,75 +153,60 @@ module Google
# Lists an organization's assets.
# @param [String] parent
# Required. Name of the organization assets should belong to. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization assets should belong to. Its format is "
# organizations/[organization_id]".
# @param [String] compare_duration
# When compare_duration is set, the ListAssetResult's "state" attribute is
# updated to indicate whether the asset was added, removed, or remained
# present during the compare_duration period of time that precedes the
# read_time. This is the time between (read_time -
# compare_duration) and read_time.
# The state value is derived based on the presence of the asset at the two
# points in time. Intermediate state changes between the two times don't
# affect the result. For example, the results aren't affected if the asset is
# removed and re-created again.
# Possible "state" values when compare_duration is specified:
# * "ADDED": indicates that the asset was not present before
# compare_duration, but present at read_time.
# * "REMOVED": indicates that the asset was present at the start of
# compare_duration, but not present at read_time.
# * "ACTIVE": indicates that the asset was present at both the
# start and the end of the time period defined by
# compare_duration and read_time.
# If compare_duration is not specified, then the only possible state is
# "UNUSED", which indicates that the asset is present at read_time.
# updated to indicate whether the asset was added, removed, or remained present
# during the compare_duration period of time that precedes the read_time. This
# is the time between (read_time - compare_duration) and read_time. The state
# value is derived based on the presence of the asset at the two points in time.
# Intermediate state changes between the two times don't affect the result. For
# example, the results aren't affected if the asset is removed and re-created
# again. Possible "state" values when compare_duration is specified: * "ADDED":
# indicates that the asset was not present before compare_duration, but present
# at read_time. * "REMOVED": indicates that the asset was present at the start
# of compare_duration, but not present at read_time. * "ACTIVE": indicates that
# the asset was present at both the start and the end of the time period defined
# by compare_duration and read_time. If compare_duration is not specified, then
# the only possible state is "UNUSED", which indicates that the asset is present
# at read_time.
# @param [String] field_mask
# Optional. A field mask to specify the ListAssetsResult fields to be listed in
# the
# response.
# An empty field mask will list all fields.
# the response. An empty field mask will list all fields.
# @param [String] filter
# Expression that defines the filter to apply across assets.
# The expression is a list of zero or more restrictions combined via logical
# operators `AND` and `OR`.
# Parentheses are not supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
# character in front of them to indicate negation. The fields map to those
# defined in the Asset resource. Examples include:
# * name
# * security_center_properties.resource_name
# * resource_properties.a_property
# * security_marks.marks.marka
# The supported operators are:
# * `=` for all value types.
# * `>`, `<`, `>=`, `<=` for integer values.
# * `:`, meaning substring matching, for strings.
# The supported value types are:
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
# For example, `resource_properties.size = 100` is a valid filter string.
# Expression that defines the filter to apply across assets. The expression is a
# list of zero or more restrictions combined via logical operators `AND` and `OR`
# . Parentheses are not supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form ` ` and may have a `-` character in front of them
# to indicate negation. The fields map to those defined in the Asset resource.
# Examples include: * name * security_center_properties.resource_name *
# resource_properties.a_property * security_marks.marks.marka The supported
# operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer
# values. * `:`, meaning substring matching, for strings. The supported value
# types are: * string literals in quotes. * integer literals without quotes. *
# boolean literals `true` and `false` without quotes. For example, `
# resource_properties.size = 100` is a valid filter string.
# @param [String] order_by
# Expression that defines what fields and order to use for sorting. The
# string value should follow SQL syntax: comma separated list of fields. For
# example: "name,resource_properties.a_property". The default sorting order
# is ascending. To specify descending order for a field, a suffix " desc"
# should be appended to the field name. For example: "name
# desc,resource_properties.a_property". Redundant space characters in the
# syntax are insignificant. "name desc,resource_properties.a_property" and "
# name desc , resource_properties.a_property " are equivalent.
# Expression that defines what fields and order to use for sorting. The string
# value should follow SQL syntax: comma separated list of fields. For example: "
# name,resource_properties.a_property". The default sorting order is ascending.
# To specify descending order for a field, a suffix " desc" should be appended
# to the field name. For example: "name desc,resource_properties.a_property".
# Redundant space characters in the syntax are insignificant. "name desc,
# resource_properties.a_property" and " name desc , resource_properties.
# a_property " are equivalent.
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListAssetsResponse`; indicates
# that this is a continuation of a prior `ListAssets` call, and
# that the system should return the next page of data.
# The value returned by the last `ListAssetsResponse`; indicates that this is a
# continuation of a prior `ListAssets` call, and that the system should return
# the next page of data.
# @param [String] read_time
# Time used as a reference point when filtering assets. The filter is limited
# to assets existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of
# NOW.
# Time used as a reference point when filtering assets. The filter is limited to
# assets existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of NOW.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -259,14 +241,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Runs asset discovery. The discovery is tracked with a long-running
# operation.
# This API can only be called with limited frequency for an organization. If
# it is called too frequently the caller will receive a TOO_MANY_REQUESTS
# error.
# Runs asset discovery. The discovery is tracked with a long-running operation.
# This API can only be called with limited frequency for an organization. If it
# is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
# @param [String] parent
# Required. Name of the organization to run asset discovery for. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization to run asset discovery for. Its format is "
# organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1beta1::RunAssetDiscoveryRequest] run_asset_discovery_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -299,12 +279,10 @@ module Google
# Updates security marks.
# @param [String] name
# 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".
# 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".
# @param [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks] google_cloud_securitycenter_v1beta1_security_marks_object
# @param [String] start_time
# The time at which the updated SecurityMarks take effect.
@ -341,15 +319,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.
@ -383,10 +359,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
@ -416,9 +392,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
@ -448,15 +423,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
@ -497,8 +471,8 @@ module Google
# Creates a source.
# @param [String] parent
# Required. Resource name of the new source's parent. Its format should be
# "organizations/[organization_id]".
# Required. Resource name of the new source's parent. Its format should be "
# organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1beta1::Source] source_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -531,8 +505,8 @@ module Google
# Gets a source.
# @param [String] name
# Required. Relative resource name of the source. Its format is
# "organizations/[organization_id]/source/[source_id]".
# Required. Relative resource name of the source. Its format is "organizations/[
# organization_id]/source/[source_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -562,8 +536,8 @@ module Google
# Gets the access control policy on the specified Source.
# @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 [Google::Apis::SecuritycenterV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -599,12 +573,12 @@ module Google
# Required. Resource name of the parent of sources to list. Its format should be
# "organizations/[organization_id]".
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListSourcesResponse`; indicates
# that this is a continuation of a prior `ListSources` call, and
# that the system should return the next page of data.
# The value returned by the last `ListSourcesResponse`; indicates that this is a
# continuation of a prior `ListSources` call, and that the system should return
# the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -636,10 +610,9 @@ module Google
# Updates a source.
# @param [String] name
# The relative resource name of this source. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`"
# The relative resource name of this source. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`"
# @param [Google::Apis::SecuritycenterV1beta1::Source] source_object
# @param [String] update_mask
# The FieldMask to use when updating the source resource.
@ -675,8 +648,8 @@ module Google
# Sets the access control policy on the specified Source.
# @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::SecuritycenterV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -709,8 +682,8 @@ module Google
# Returns the permissions that a caller has on the specified source.
# @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::SecuritycenterV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -741,16 +714,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a finding. The corresponding source must exist for finding creation
# to succeed.
# Creates a finding. The corresponding source must exist for finding creation to
# succeed.
# @param [String] parent
# Required. Resource name of the new finding's parent. Its format should be
# "organizations/[organization_id]/sources/[source_id]".
# Required. Resource name of the new finding's parent. Its format should be "
# organizations/[organization_id]/sources/[source_id]".
# @param [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1Finding] google_cloud_securitycenter_v1beta1_finding_object
# @param [String] finding_id
# Required. Unique identifier provided by the client within the parent scope.
# It must be alphanumeric and less than or equal to 32 characters and
# greater than 0 characters in length.
# Required. Unique identifier provided by the client within the parent scope. It
# must be alphanumeric and less than or equal to 32 characters and greater than
# 0 characters in length.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -781,15 +754,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Filters an organization or source's findings and groups them by their
# specified properties.
# To group across all sources provide a `-` as the source id.
# Example: /v1beta1/organizations/`organization_id`/sources/-/findings
# Filters an organization or source's findings and groups them by their
# specified properties. To group across all sources provide a `-` as the source
# id. Example: /v1beta1/organizations/`organization_id`/sources/-/findings
# @param [String] parent
# Required. Name of the source to groupBy. Its format is
# "organizations/[organization_id]/sources/[source_id]". To groupBy across
# all sources provide a source_id of `-`. For example:
# organizations/`organization_id`/sources/-
# Required. Name of the source to groupBy. Its format is "organizations/[
# organization_id]/sources/[source_id]". To groupBy across all sources provide a
# source_id of `-`. For example: organizations/`organization_id`/sources/-
# @param [Google::Apis::SecuritycenterV1beta1::GroupFindingsRequest] group_findings_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -820,58 +791,49 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists an organization or source's findings.
# To list across all sources provide a `-` as the source id.
# Example: /v1beta1/organizations/`organization_id`/sources/-/findings
# Lists an organization or source's findings. To list across all sources provide
# a `-` as the source id. Example: /v1beta1/organizations/`organization_id`/
# sources/-/findings
# @param [String] parent
# Required. Name of the source the findings belong to. Its format is
# "organizations/[organization_id]/sources/[source_id]". To list across all
# sources provide a source_id of `-`. For example:
# organizations/`organization_id`/sources/-
# Required. Name of the source the findings belong to. Its format is "
# organizations/[organization_id]/sources/[source_id]". To list across all
# sources provide a source_id of `-`. For example: organizations/`
# organization_id`/sources/-
# @param [String] field_mask
# Optional. A field mask to specify the Finding fields to be listed in the
# response.
# An empty field mask will list all fields.
# response. An empty field mask will list all fields.
# @param [String] filter
# Expression that defines the filter to apply across findings.
# The expression is a list of one or more restrictions combined via logical
# operators `AND` and `OR`.
# Parentheses are not supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
# character in front of them to indicate negation. Examples include:
# * name
# * source_properties.a_property
# * security_marks.marks.marka
# The supported operators are:
# * `=` for all value types.
# * `>`, `<`, `>=`, `<=` for integer values.
# * `:`, meaning substring matching, for strings.
# The supported value types are:
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
# For example, `source_properties.size = 100` is a valid filter string.
# Expression that defines the filter to apply across findings. The expression is
# a list of one or more restrictions combined via logical operators `AND` and `
# OR`. Parentheses are not supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form ` ` and may have a `-` character in front of them
# to indicate negation. Examples include: * name * source_properties.a_property *
# security_marks.marks.marka The supported operators are: * `=` for all value
# types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
# matching, for strings. The supported value types are: * string literals in
# quotes. * integer literals without quotes. * boolean literals `true` and `
# false` without quotes. For example, `source_properties.size = 100` is a valid
# filter string.
# @param [String] order_by
# Expression that defines what fields and order to use for sorting. The
# string value should follow SQL syntax: comma separated list of fields. For
# example: "name,resource_properties.a_property". The default sorting order
# is ascending. To specify descending order for a field, a suffix " desc"
# should be appended to the field name. For example: "name
# desc,source_properties.a_property". Redundant space characters in the
# syntax are insignificant. "name desc,source_properties.a_property" and "
# name desc , source_properties.a_property " are equivalent.
# Expression that defines what fields and order to use for sorting. The string
# value should follow SQL syntax: comma separated list of fields. For example: "
# name,resource_properties.a_property". The default sorting order is ascending.
# To specify descending order for a field, a suffix " desc" should be appended
# to the field name. For example: "name desc,source_properties.a_property".
# Redundant space characters in the syntax are insignificant. "name desc,
# source_properties.a_property" and " name desc , source_properties.a_property "
# are equivalent.
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListFindingsResponse`; indicates
# that this is a continuation of a prior `ListFindings` call, and
# that the system should return the next page of data.
# The value returned by the last `ListFindingsResponse`; indicates that this is
# a continuation of a prior `ListFindings` call, and that the system should
# return the next page of data.
# @param [String] read_time
# Time used as a reference point when filtering findings. The filter is
# limited to findings existing at the supplied time and their values are
# those at that specific time. Absence of this field will default to the
# API's version of NOW.
# Time used as a reference point when filtering findings. The filter is limited
# to findings existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of NOW.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -908,14 +870,13 @@ module Google
# Creates or updates a finding. The corresponding source must exist for a
# finding creation to succeed.
# @param [String] name
# 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`"
# 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`"
# @param [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1Finding] google_cloud_securitycenter_v1beta1_finding_object
# @param [String] update_mask
# The FieldMask to use when updating the finding resource. This field should
# not be specified when creating a finding.
# The FieldMask to use when updating the finding resource. This field should not
# be specified when creating a finding.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -948,10 +909,9 @@ module Google
# Updates the state of a finding.
# @param [String] name
# Required. The relative resource name of the finding. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`/finding/`finding_id`".
# Required. The relative resource name of the finding. See: https://cloud.google.
# com/apis/design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`/finding/`finding_id`".
# @param [Google::Apis::SecuritycenterV1beta1::SetFindingStateRequest] set_finding_state_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -984,12 +944,10 @@ module Google
# Updates security marks.
# @param [String] name
# 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".
# 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".
# @param [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks] google_cloud_securitycenter_v1beta1_security_marks_object
# @param [String] start_time
# The time at which the updated SecurityMarks take effect.

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1alpha1
VERSION = 'V1p1alpha1'
REVISION = '20200605'
REVISION = '20200731'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,13 +22,11 @@ module Google
module Apis
module SecuritycenterV1p1alpha1
# 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
@ -41,18 +39,16 @@ module Google
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.
# 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"
# 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
@ -62,59 +58,56 @@ 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. 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.
# 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.
# 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`"
# 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`"
# 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.
# 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.
# 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::SecuritycenterV1p1alpha1::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.
# 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<String,Object>]
attr_accessor :source_properties
@ -147,12 +140,11 @@ module Google
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.
# 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::SecuritycenterV1p1alpha1::Finding]
attr_accessor :finding
@ -183,8 +175,8 @@ module Google
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
# 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
@ -273,12 +265,11 @@ module Google
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.
# 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
@ -289,22 +280,20 @@ module Google
# 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.
# and defined by the Google Cloud resource and cannot be modified by the user.
# Corresponds to the JSON property `iamPolicy`
# @return [Google::Apis::SecuritycenterV1p1alpha1::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`".
# 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.
# 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<String,Object>]
attr_accessor :resource_properties
@ -315,16 +304,15 @@ module Google
# @return [Google::Apis::SecuritycenterV1p1alpha1::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.
# 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::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The time at which the asset was last updated, added, or deleted in Cloud
# SCC.
# 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
@ -345,17 +333,15 @@ module Google
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.
# 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"
# 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
@ -365,59 +351,56 @@ 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. 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.
# 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.
# 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`"
# 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`"
# 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.
# 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.
# 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::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
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.
# 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<String,Object>]
attr_accessor :source_properties
@ -448,14 +431,12 @@ module Google
# 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.
# 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.
# 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
@ -474,11 +455,10 @@ module Google
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.
# 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::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding]
attr_accessor :finding
@ -493,8 +473,8 @@ module Google
# @return [Google::Apis::SecuritycenterV1p1alpha1::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.
# 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::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
attr_accessor :temporal_asset
@ -516,8 +496,8 @@ module Google
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
# 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
@ -591,9 +571,9 @@ module Google
# @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
# 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
@ -603,8 +583,8 @@ module Google
# @return [Array<String>]
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
# 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
@ -614,8 +594,8 @@ module Google
# @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
# 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
@ -625,10 +605,9 @@ module Google
# @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.
# 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
@ -650,30 +629,26 @@ module Google
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.
# 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)
# 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<String,String>]
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".
# 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
@ -689,17 +664,16 @@ module Google
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.
# 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.
# 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::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Asset]
attr_accessor :asset
@ -750,47 +724,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::SecuritycenterV1p1alpha1::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<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# 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<String,Object>]
attr_accessor :response
@ -809,30 +781,26 @@ module Google
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.
# 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)
# 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<String,String>]
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".
# 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
@ -848,12 +816,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
@ -862,15 +830,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<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# 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

View File

@ -48,15 +48,13 @@ module Google
@batch_path = 'batch'
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.
@ -87,10 +85,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
@ -120,9 +118,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
@ -152,15 +149,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

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200619'
REVISION = '20200731'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -51,8 +51,7 @@ module Google
# Gets the settings for an organization.
# @param [String] name
# Required. Name of the organization to get organization settings for. Its
# format is
# "organizations/[organization_id]/organizationSettings".
# format is "organizations/[organization_id]/organizationSettings".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -82,14 +81,13 @@ module Google
# Updates an organization's settings.
# @param [String] name
# The relative resource name of the settings. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/organizationSettings".
# The relative resource name of the settings. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/organizationSettings".
# @param [Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings] organization_settings_object
# @param [String] update_mask
# The FieldMask to use when updating the settings resource.
# If empty all mutable fields will be updated.
# The FieldMask to use when updating the settings resource. If empty all mutable
# fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -120,11 +118,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Filters an organization's assets and groups them by their specified
# properties.
# Filters an organization's assets and groups them by their specified properties.
# @param [String] parent
# Required. Name of the organization to groupBy. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization to groupBy. Its format is "organizations/[
# organization_id]".
# @param [Google::Apis::SecuritycenterV1p1beta1::GroupAssetsRequest] group_assets_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -157,114 +154,86 @@ module Google
# Lists an organization's assets.
# @param [String] parent
# Required. Name of the organization assets should belong to. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization assets should belong to. Its format is "
# organizations/[organization_id]".
# @param [String] compare_duration
# When compare_duration is set, the ListAssetsResult's "state_change"
# attribute is updated to indicate whether the asset was added, removed, or
# remained present during the compare_duration period of time that precedes
# the read_time. This is the time between (read_time - compare_duration) and
# read_time.
# The state_change value is derived based on the presence of the asset at the
# two points in time. Intermediate state changes between the two times don't
# affect the result. For example, the results aren't affected if the asset is
# removed and re-created again.
# Possible "state_change" values when compare_duration is specified:
# * "ADDED": indicates that the asset was not present at the start of
# compare_duration, but present at read_time.
# * "REMOVED": indicates that the asset was present at the start of
# compare_duration, but not present at read_time.
# * "ACTIVE": indicates that the asset was present at both the
# start and the end of the time period defined by
# compare_duration and read_time.
# If compare_duration is not specified, then the only possible state_change
# is "UNUSED", which will be the state_change set for all assets present at
# When compare_duration is set, the ListAssetsResult's "state_change" attribute
# is updated to indicate whether the asset was added, removed, or remained
# present during the compare_duration period of time that precedes the read_time.
# This is the time between (read_time - compare_duration) and read_time. The
# state_change value is derived based on the presence of the asset at the two
# points in time. Intermediate state changes between the two times don't affect
# the result. For example, the results aren't affected if the asset is removed
# and re-created again. Possible "state_change" values when compare_duration is
# specified: * "ADDED": indicates that the asset was not present at the start of
# compare_duration, but present at read_time. * "REMOVED": indicates that the
# asset was present at the start of compare_duration, but not present at
# read_time. * "ACTIVE": indicates that the asset was present at both the start
# and the end of the time period defined by compare_duration and read_time. If
# compare_duration is not specified, then the only possible state_change is "
# UNUSED", which will be the state_change set for all assets present at
# read_time.
# @param [String] field_mask
# A field mask to specify the ListAssetsResult fields to be listed in the
# response.
# An empty field mask will list all fields.
# response. An empty field mask will list all fields.
# @param [String] filter
# Expression that defines the filter to apply across assets.
# The expression is a list of zero or more restrictions combined via logical
# operators `AND` and `OR`.
# Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
# character in front of them to indicate negation. The fields map to those
# defined in the Asset resource. Examples include:
# * name
# * security_center_properties.resource_name
# * resource_properties.a_property
# * security_marks.marks.marka
# The supported operators are:
# * `=` for all value types.
# * `>`, `<`, `>=`, `<=` for integer values.
# * `:`, meaning substring matching, for strings.
# The supported value types are:
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
# The following are the allowed field and operator combinations:
# * name: `=`
# * update_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string.
# Examples:
# `update_time = "2019-06-10T16:07:18-07:00"`
# `update_time = 1560208038000`
# * create_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string.
# Examples:
# `create_time = "2019-06-10T16:07:18-07:00"`
# `create_time = 1560208038000`
# * iam_policy.policy_blob: `=`, `:`
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
# * security_marks.marks: `=`, `:`
# * security_center_properties.resource_name: `=`, `:`
# * security_center_properties.resource_display_name: `=`, `:`
# * security_center_properties.resource_type: `=`, `:`
# * security_center_properties.resource_parent: `=`, `:`
# * security_center_properties.resource_parent_display_name: `=`, `:`
# * security_center_properties.resource_project: `=`, `:`
# * security_center_properties.resource_project_display_name: `=`, `:`
# * security_center_properties.resource_owners: `=`, `:`
# For example, `resource_properties.size = 100` is a valid filter string.
# Use a partial match on the empty string to filter based on a property
# existing: `resource_properties.my_property : ""`
# Use a negated partial match on the empty string to filter based on a
# property not existing: `-resource_properties.my_property : ""`
# Expression that defines the filter to apply across assets. The expression is a
# list of zero or more restrictions combined via logical operators `AND` and `OR`
# . Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form ` ` and may have a `-` character in front of them
# to indicate negation. The fields map to those defined in the Asset resource.
# Examples include: * name * security_center_properties.resource_name *
# resource_properties.a_property * security_marks.marks.marka The supported
# operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer
# values. * `:`, meaning substring matching, for strings. The supported value
# types are: * string literals in quotes. * integer literals without quotes. *
# boolean literals `true` and `false` without quotes. The following are the
# allowed field and operator combinations: * name: `=` * update_time: `=`, `>`, `
# <`, `>=`, `<=` Usage: This should be milliseconds since epoch or an RFC3339
# string. Examples: `update_time = "2019-06-10T16:07:18-07:00"` `update_time =
# 1560208038000` * create_time: `=`, `>`, `<`, `>=`, `<=` Usage: This should be
# milliseconds since epoch or an RFC3339 string. Examples: `create_time = "2019-
# 06-10T16:07:18-07:00"` `create_time = 1560208038000` * iam_policy.policy_blob:
# `=`, `:` * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` *
# security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`,
# `:` * security_center_properties.resource_display_name: `=`, `:` *
# security_center_properties.resource_type: `=`, `:` *
# security_center_properties.resource_parent: `=`, `:` *
# security_center_properties.resource_parent_display_name: `=`, `:` *
# security_center_properties.resource_project: `=`, `:` *
# security_center_properties.resource_project_display_name: `=`, `:` *
# security_center_properties.resource_owners: `=`, `:` For example, `
# resource_properties.size = 100` is a valid filter string. Use a partial match
# on the empty string to filter based on a property existing: `
# resource_properties.my_property : ""` Use a negated partial match on the empty
# string to filter based on a property not existing: `-resource_properties.
# my_property : ""`
# @param [String] order_by
# Expression that defines what fields and order to use for sorting. The
# string value should follow SQL syntax: comma separated list of fields. For
# example: "name,resource_properties.a_property". The default sorting order
# is ascending. To specify descending order for a field, a suffix " desc"
# should be appended to the field name. For example: "name
# desc,resource_properties.a_property". Redundant space characters in the
# syntax are insignificant. "name desc,resource_properties.a_property" and "
# name desc , resource_properties.a_property " are equivalent.
# The following fields are supported:
# name
# update_time
# resource_properties
# security_marks.marks
# security_center_properties.resource_name
# security_center_properties.resource_display_name
# security_center_properties.resource_parent
# Expression that defines what fields and order to use for sorting. The string
# value should follow SQL syntax: comma separated list of fields. For example: "
# name,resource_properties.a_property". The default sorting order is ascending.
# To specify descending order for a field, a suffix " desc" should be appended
# to the field name. For example: "name desc,resource_properties.a_property".
# Redundant space characters in the syntax are insignificant. "name desc,
# resource_properties.a_property" and " name desc , resource_properties.
# a_property " are equivalent. The following fields are supported: name
# update_time resource_properties security_marks.marks
# security_center_properties.resource_name security_center_properties.
# resource_display_name security_center_properties.resource_parent
# security_center_properties.resource_parent_display_name
# security_center_properties.resource_project
# security_center_properties.resource_project_display_name
# security_center_properties.resource_type
# security_center_properties.resource_project security_center_properties.
# resource_project_display_name security_center_properties.resource_type
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListAssetsResponse`; indicates
# that this is a continuation of a prior `ListAssets` call, and
# that the system should return the next page of data.
# The value returned by the last `ListAssetsResponse`; indicates that this is a
# continuation of a prior `ListAssets` call, and that the system should return
# the next page of data.
# @param [String] read_time
# Time used as a reference point when filtering assets. The filter is limited
# to assets existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of
# NOW.
# Time used as a reference point when filtering assets. The filter is limited to
# assets existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of NOW.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -299,15 +268,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Runs asset discovery. The discovery is tracked with a long-running
# operation.
# //
# This API can only be called with limited frequency for an organization. If
# it is called too frequently the caller will receive a TOO_MANY_REQUESTS
# error.
# Runs asset discovery. The discovery is tracked with a long-running operation. /
# / This API can only be called with limited frequency for an organization. If
# it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
# @param [String] parent
# Required. Name of the organization to run asset discovery for. Its format is
# "organizations/[organization_id]".
# Required. Name of the organization to run asset discovery for. Its format is "
# organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1p1beta1::RunAssetDiscoveryRequest] run_asset_discovery_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -340,22 +306,19 @@ module Google
# Updates security marks.
# @param [String] name
# 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".
# 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".
# @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] google_cloud_securitycenter_v1p1beta1_security_marks_object
# @param [String] start_time
# The time at which the updated SecurityMarks take effect.
# If not set uses current server time. Updates will be applied to the
# SecurityMarks that are active immediately preceding this time.
# The time at which the updated SecurityMarks take effect. If not set uses
# current server time. Updates will be applied to the SecurityMarks that are
# active immediately preceding this time.
# @param [String] update_mask
# The FieldMask to use when updating the security marks resource.
# The field mask must not contain duplicate fields.
# If empty or set to "marks", all marks will be replaced. Individual
# marks can be updated using "marks.<mark_key>".
# The FieldMask to use when updating the security marks resource. The field mask
# must not contain duplicate fields. If empty or set to "marks", all marks will
# be replaced. Individual marks can be updated using "marks.".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -393,10 +356,9 @@ module Google
# "organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig] notification_config_object
# @param [String] config_id
# Required.
# Unique identifier provided by the client within the parent scope.
# It must be between 1 and 128 characters, and contains alphanumeric
# characters, underscores or hyphens only.
# Required. Unique identifier provided by the client within the parent scope. It
# must be between 1 and 128 characters, and contains alphanumeric characters,
# underscores or hyphens only.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -429,8 +391,8 @@ module Google
# Deletes a notification config.
# @param [String] name
# Required. Name of the notification config to delete. Its format is
# "organizations/[organization_id]/notificationConfigs/[config_id]".
# Required. Name of the notification config to delete. Its format is "
# organizations/[organization_id]/notificationConfigs/[config_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -460,8 +422,8 @@ module Google
# Gets a notification config.
# @param [String] name
# Required. Name of the notification config to get. Its format is
# "organizations/[organization_id]/notificationConfigs/[config_id]".
# Required. Name of the notification config to get. Its format is "organizations/
# [organization_id]/notificationConfigs/[config_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -491,11 +453,11 @@ module Google
# Lists notification configs.
# @param [String] parent
# Required. Name of the organization to list notification configs.
# Its format is "organizations/[organization_id]".
# Required. Name of the organization to list notification configs. Its format is
# "organizations/[organization_id]".
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListNotificationConfigsResponse`; indicates
# that this is a continuation of a prior `ListNotificationConfigs` call, and
@ -529,17 +491,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a notification config. The following update
# fields are allowed: description, pubsub_topic, streaming_config.filter
# Updates a notification config. The following update fields are allowed:
# description, pubsub_topic, streaming_config.filter
# @param [String] name
# The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/notificationConfigs/notify_public_bucket".
# The relative resource name of this notification config. See: https://cloud.
# google.com/apis/design/resource_names#relative_resource_name Example: "
# organizations/`organization_id`/notificationConfigs/notify_public_bucket".
# @param [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig] notification_config_object
# @param [String] update_mask
# The FieldMask to use when updating the notification config.
# If empty all mutable fields will be updated.
# The FieldMask to use when updating the notification config. If empty all
# mutable fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -570,15 +531,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.
@ -609,10 +568,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
@ -642,9 +601,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
@ -674,15 +632,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
@ -723,8 +680,8 @@ module Google
# Creates a source.
# @param [String] parent
# Required. Resource name of the new source's parent. Its format should be
# "organizations/[organization_id]".
# Required. Resource name of the new source's parent. Its format should be "
# organizations/[organization_id]".
# @param [Google::Apis::SecuritycenterV1p1beta1::Source] source_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -757,8 +714,8 @@ module Google
# Gets a source.
# @param [String] name
# Required. Relative resource name of the source. Its format is
# "organizations/[organization_id]/source/[source_id]".
# Required. Relative resource name of the source. Its format is "organizations/[
# organization_id]/source/[source_id]".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -788,8 +745,8 @@ module Google
# Gets the access control policy on the specified Source.
# @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 [Google::Apis::SecuritycenterV1p1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -825,12 +782,12 @@ module Google
# Required. Resource name of the parent of sources to list. Its format should be
# "organizations/[organization_id]".
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListSourcesResponse`; indicates
# that this is a continuation of a prior `ListSources` call, and
# that the system should return the next page of data.
# The value returned by the last `ListSourcesResponse`; indicates that this is a
# continuation of a prior `ListSources` call, and that the system should return
# the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -862,14 +819,13 @@ module Google
# Updates a source.
# @param [String] name
# The relative resource name of this source. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`"
# The relative resource name of this source. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`"
# @param [Google::Apis::SecuritycenterV1p1beta1::Source] source_object
# @param [String] update_mask
# The FieldMask to use when updating the source resource.
# If empty all mutable fields will be updated.
# The FieldMask to use when updating the source resource. If empty all mutable
# fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -902,8 +858,8 @@ module Google
# Sets the access control policy on the specified Source.
# @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::SecuritycenterV1p1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -936,8 +892,8 @@ module Google
# Returns the permissions that a caller has on the specified source.
# @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::SecuritycenterV1p1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -968,11 +924,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a finding. The corresponding source must exist for finding
# creation to succeed.
# Creates a finding. The corresponding source must exist for finding creation
# to succeed.
# @param [String] parent
# Required. Resource name of the new finding's parent. Its format should be
# "organizations/[organization_id]/sources/[source_id]".
# Required. Resource name of the new finding's parent. Its format should be "
# organizations/[organization_id]/sources/[source_id]".
# @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding] google_cloud_securitycenter_v1p1beta1_finding_object
# @param [String] finding_id
# Required. Unique identifier provided by the client within the parent scope.
@ -1006,15 +962,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Filters an organization or source's findings and groups them by their
# specified properties.
# To group across all sources provide a `-` as the source id.
# Example: /v1p1beta1/organizations/`organization_id`/sources/-/findings
# Filters an organization or source's findings and groups them by their
# specified properties. To group across all sources provide a `-` as the source
# id. Example: /v1p1beta1/organizations/`organization_id`/sources/-/findings
# @param [String] parent
# Required. Name of the source to groupBy. Its format is
# "organizations/[organization_id]/sources/[source_id]". To groupBy across
# all sources provide a source_id of `-`. For example:
# organizations/`organization_id`/sources/-
# Required. Name of the source to groupBy. Its format is "organizations/[
# organization_id]/sources/[source_id]". To groupBy across all sources provide a
# source_id of `-`. For example: organizations/`organization_id`/sources/-
# @param [Google::Apis::SecuritycenterV1p1beta1::GroupFindingsRequest] group_findings_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1045,111 +999,80 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists an organization or source's findings.
# To list across all sources provide a `-` as the source id.
# Example: /v1p1beta1/organizations/`organization_id`/sources/-/findings
# Lists an organization or source's findings. To list across all sources provide
# a `-` as the source id. Example: /v1p1beta1/organizations/`organization_id`/
# sources/-/findings
# @param [String] parent
# Required. Name of the source the findings belong to. Its format is
# "organizations/[organization_id]/sources/[source_id]". To list across all
# sources provide a source_id of `-`. For example:
# organizations/`organization_id`/sources/-
# Required. Name of the source the findings belong to. Its format is "
# organizations/[organization_id]/sources/[source_id]". To list across all
# sources provide a source_id of `-`. For example: organizations/`
# organization_id`/sources/-
# @param [String] compare_duration
# When compare_duration is set, the ListFindingsResult's "state_change"
# attribute is updated to indicate whether the finding had its state changed,
# the finding's state remained unchanged, or if the finding was added in any
# state during the compare_duration period of time that precedes the
# read_time. This is the time between (read_time - compare_duration) and
# read_time.
# The state_change value is derived based on the presence and state of the
# finding at the two points in time. Intermediate state changes between the
# two times don't affect the result. For example, the results aren't affected
# if the finding is made inactive and then active again.
# Possible "state_change" values when compare_duration is specified:
# * "CHANGED": indicates that the finding was present and matched the given
# filter at the start of compare_duration, but changed its
# state at read_time.
# * "UNCHANGED": indicates that the finding was present and matched the given
# filter at the start of compare_duration and did not change
# state at read_time.
# * "ADDED": indicates that the finding did not match the given filter or
# was not present at the start of compare_duration, but was
# present at read_time.
# * "REMOVED": indicates that the finding was present and matched the
# filter at the start of compare_duration, but did not match
# the filter at read_time.
# If compare_duration is not specified, then the only possible state_change
# is "UNUSED", which will be the state_change set for all findings present at
# read_time.
# state during the compare_duration period of time that precedes the read_time.
# This is the time between (read_time - compare_duration) and read_time. The
# state_change value is derived based on the presence and state of the finding
# at the two points in time. Intermediate state changes between the two times
# don't affect the result. For example, the results aren't affected if the
# finding is made inactive and then active again. Possible "state_change" values
# when compare_duration is specified: * "CHANGED": indicates that the finding
# was present and matched the given filter at the start of compare_duration, but
# changed its state at read_time. * "UNCHANGED": indicates that the finding was
# present and matched the given filter at the start of compare_duration and did
# not change state at read_time. * "ADDED": indicates that the finding did not
# match the given filter or was not present at the start of compare_duration,
# but was present at read_time. * "REMOVED": indicates that the finding was
# present and matched the filter at the start of compare_duration, but did not
# match the filter at read_time. If compare_duration is not specified, then the
# only possible state_change is "UNUSED", which will be the state_change set for
# all findings present at read_time.
# @param [String] field_mask
# A field mask to specify the Finding fields to be listed in the response.
# An empty field mask will list all fields.
# A field mask to specify the Finding fields to be listed in the response. An
# empty field mask will list all fields.
# @param [String] filter
# Expression that defines the filter to apply across findings.
# The expression is a list of one or more restrictions combined via logical
# operators `AND` and `OR`.
# Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
# character in front of them to indicate negation. Examples include:
# * name
# * source_properties.a_property
# * security_marks.marks.marka
# The supported operators are:
# * `=` for all value types.
# * `>`, `<`, `>=`, `<=` for integer values.
# * `:`, meaning substring matching, for strings.
# The supported value types are:
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
# The following field and operator combinations are supported:
# name: `=`
# parent: `=`, `:`
# resource_name: `=`, `:`
# state: `=`, `:`
# category: `=`, `:`
# external_uri: `=`, `:`
# event_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string.
# Examples:
# `event_time = "2019-06-10T16:07:18-07:00"`
# `event_time = 1560208038000`
# security_marks.marks: `=`, `:`
# source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
# For example, `source_properties.size = 100` is a valid filter string.
# Use a partial match on the empty string to filter based on a property
# existing: `source_properties.my_property : ""`
# Use a negated partial match on the empty string to filter based on a
# property not existing: `-source_properties.my_property : ""`
# Expression that defines the filter to apply across findings. The expression is
# a list of one or more restrictions combined via logical operators `AND` and `
# OR`. Parentheses are supported, and `OR` has higher precedence than `AND`.
# Restrictions have the form ` ` and may have a `-` character in front of them
# to indicate negation. Examples include: * name * source_properties.a_property *
# security_marks.marks.marka The supported operators are: * `=` for all value
# types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
# matching, for strings. The supported value types are: * string literals in
# quotes. * integer literals without quotes. * boolean literals `true` and `
# false` without quotes. The following field and operator combinations are
# supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:`
# category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `>`, `<`, `>=`, `<=`
# Usage: This should be milliseconds since epoch or an RFC3339 string. Examples:
# `event_time = "2019-06-10T16:07:18-07:00"` `event_time = 1560208038000`
# security_marks.marks: `=`, `:` source_properties: `=`, `:`, `>`, `<`, `>=`, `<=
# ` For example, `source_properties.size = 100` is a valid filter string. Use a
# partial match on the empty string to filter based on a property existing: `
# source_properties.my_property : ""` Use a negated partial match on the empty
# string to filter based on a property not existing: `-source_properties.
# my_property : ""`
# @param [String] order_by
# Expression that defines what fields and order to use for sorting. The
# string value should follow SQL syntax: comma separated list of fields. For
# example: "name,resource_properties.a_property". The default sorting order
# is ascending. To specify descending order for a field, a suffix " desc"
# should be appended to the field name. For example: "name
# desc,source_properties.a_property". Redundant space characters in the
# syntax are insignificant. "name desc,source_properties.a_property" and "
# name desc , source_properties.a_property " are equivalent.
# The following fields are supported:
# name
# parent
# state
# category
# resource_name
# event_time
# source_properties
# security_marks.marks
# Expression that defines what fields and order to use for sorting. The string
# value should follow SQL syntax: comma separated list of fields. For example: "
# name,resource_properties.a_property". The default sorting order is ascending.
# To specify descending order for a field, a suffix " desc" should be appended
# to the field name. For example: "name desc,source_properties.a_property".
# Redundant space characters in the syntax are insignificant. "name desc,
# source_properties.a_property" and " name desc , source_properties.a_property "
# are equivalent. The following fields are supported: name parent state category
# resource_name event_time source_properties security_marks.marks
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is
# 10, minimum is 1, maximum is 1000.
# The maximum number of results to return in a single response. Default is 10,
# minimum is 1, maximum is 1000.
# @param [String] page_token
# The value returned by the last `ListFindingsResponse`; indicates
# that this is a continuation of a prior `ListFindings` call, and
# that the system should return the next page of data.
# The value returned by the last `ListFindingsResponse`; indicates that this is
# a continuation of a prior `ListFindings` call, and that the system should
# return the next page of data.
# @param [String] read_time
# Time used as a reference point when filtering findings. The filter is
# limited to findings existing at the supplied time and their values are
# those at that specific time. Absence of this field will default to the
# API's version of NOW.
# Time used as a reference point when filtering findings. The filter is limited
# to findings existing at the supplied time and their values are those at that
# specific time. Absence of this field will default to the API's version of NOW.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1187,18 +1110,16 @@ module Google
# Creates or updates a finding. The corresponding source must exist for a
# finding creation to succeed.
# @param [String] name
# 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`"
# 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`"
# @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding] google_cloud_securitycenter_v1p1beta1_finding_object
# @param [String] update_mask
# The FieldMask to use when updating the finding resource. This field should
# not be specified when creating a finding.
# When updating a finding, an empty mask is treated as updating all mutable
# fields and replacing source_properties. Individual source_properties can
# be added/updated by using "source_properties.<property key>" in the field
# mask.
# The FieldMask to use when updating the finding resource. This field should not
# be specified when creating a finding. When updating a finding, an empty mask
# is treated as updating all mutable fields and replacing source_properties.
# Individual source_properties can be added/updated by using "source_properties."
# in the field mask.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1231,10 +1152,9 @@ module Google
# Updates the state of a finding.
# @param [String] name
# Required. The relative resource name of the finding. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`/finding/`finding_id`".
# Required. The relative resource name of the finding. See: https://cloud.google.
# com/apis/design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`/finding/`finding_id`".
# @param [Google::Apis::SecuritycenterV1p1beta1::SetFindingStateRequest] set_finding_state_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1267,22 +1187,19 @@ module Google
# Updates security marks.
# @param [String] name
# 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".
# 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".
# @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] google_cloud_securitycenter_v1p1beta1_security_marks_object
# @param [String] start_time
# The time at which the updated SecurityMarks take effect.
# If not set uses current server time. Updates will be applied to the
# SecurityMarks that are active immediately preceding this time.
# The time at which the updated SecurityMarks take effect. If not set uses
# current server time. Updates will be applied to the SecurityMarks that are
# active immediately preceding this time.
# @param [String] update_mask
# The FieldMask to use when updating the security marks resource.
# The field mask must not contain duplicate fields.
# If empty or set to "marks", all marks will be replaced. Individual
# marks can be updated using "marks.<mark_key>".
# The FieldMask to use when updating the security marks resource. The field mask
# must not contain duplicate fields. If empty or set to "marks", all marks will
# be replaced. Individual marks can be updated using "marks.".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -47,15 +47,13 @@ module Google
@batch_path = 'batch'
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.
@ -89,10 +87,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
@ -122,9 +120,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
@ -154,15 +151,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
@ -203,33 +199,28 @@ module Google
# Search tenancy units for a managed service.
# @param [String] parent
# Service for which search is performed.
# services/`service`
# `service` the name of a service, for example 'service.googleapis.com'.
# Service for which search is performed. services/`service` `service` the name
# of a service, for example 'service.googleapis.com'.
# @param [Fixnum] page_size
# Optional. The maximum number of results returned by this request. Currently,
# the
# default maximum is set to 1000. If `page_size` isn't provided or the size
# the default maximum is set to 1000. If `page_size` isn't provided or the size
# provided is a number larger than 1000, it's automatically set to 1000.
# @param [String] page_token
# Optional. The continuation token, which is used to page through large result
# sets.
# To get the next page of results, set this parameter to the value of
# `nextPageToken` from the previous response.
# sets. To get the next page of results, set this parameter to the value of `
# nextPageToken` from the previous response.
# @param [String] query
# Optional. Set a query ``expression`` for querying tenancy units. Your ``
# expression``
# must be in the format: `field_name=literal_string`. The `field_name` is the
# name of the field you want to compare. Supported fields are
# `tenant_resources.tag` and `tenant_resources.resource`.
# For example, to search tenancy units that contain at least one tenant
# resource with a given tag 'xyz', use the query `tenant_resources.tag=xyz`.
# To search tenancy units that contain at least one tenant resource with
# a given resource name 'projects/123456', use the query
# `tenant_resources.resource=projects/123456`.
# Multiple expressions can be joined with `AND`s. Tenancy units must match
# all expressions to be included in the result set. For example,
# `tenant_resources.tag=xyz AND tenant_resources.resource=projects/123456`
# expression`` must be in the format: `field_name=literal_string`. The `
# field_name` is the name of the field you want to compare. Supported fields are
# `tenant_resources.tag` and `tenant_resources.resource`. For example, to search
# tenancy units that contain at least one tenant resource with a given tag 'xyz',
# use the query `tenant_resources.tag=xyz`. To search tenancy units that
# contain at least one tenant resource with a given resource name 'projects/
# 123456', use the query `tenant_resources.resource=projects/123456`. Multiple
# expressions can be joined with `AND`s. Tenancy units must match all
# expressions to be included in the result set. For example, `tenant_resources.
# tag=xyz AND tenant_resources.resource=projects/123456`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -260,15 +251,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Add a new tenant project to the tenancy unit.
# There can be a maximum of 512 tenant projects in a tenancy unit.
# If there are previously failed `AddTenantProject` calls, you might need to
# call `RemoveTenantProject` first to resolve them before you can make
# another call to `AddTenantProject` with the same tag.
# Operation<response: Empty>.
# Add a new tenant project to the tenancy unit. There can be a maximum of 512
# tenant projects in a tenancy unit. If there are previously failed `
# AddTenantProject` calls, you might need to call `RemoveTenantProject` first to
# resolve them before you can make another call to `AddTenantProject` with the
# same tag. Operation.
# @param [String] parent
# Name of the tenancy unit.
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
# Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/
# 12345/tenancyUnits/abcd'.
# @param [Google::Apis::ServiceconsumermanagementV1::AddTenantProjectRequest] add_tenant_project_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -299,26 +289,22 @@ module Google
execute_or_queue_command(command, &block)
end
# Apply a configuration to an existing tenant project.
# This project must exist in an active state and have the original owner
# account. The caller must have permission to add a project to the given
# tenancy unit. The configuration is applied, but any existing settings on
# the project aren't modified.
# Specified policy bindings are applied. Existing bindings aren't modified.
# Specified services are activated. No service is deactivated.
# If specified, new billing configuration is applied.
# Omit a billing configuration to keep the existing one.
# A service account in the project is created if previously non existed.
# Apply a configuration to an existing tenant project. This project must exist
# in an active state and have the original owner account. The caller must have
# permission to add a project to the given tenancy unit. The configuration is
# applied, but any existing settings on the project aren't modified. Specified
# policy bindings are applied. Existing bindings aren't modified. Specified
# services are activated. No service is deactivated. If specified, new billing
# configuration is applied. Omit a billing configuration to keep the existing
# one. A service account in the project is created if previously non existed.
# Specified labels will be appended to tenant project, note that the value of
# existing label key will be updated if the same label key is requested.
# The specified folder is ignored, as moving a tenant project to a different
# folder isn't supported.
# The operation fails if any of the steps fail, but no rollback of already
# applied configuration changes is attempted.
# Operation<response: Empty>.
# existing label key will be updated if the same label key is requested. The
# specified folder is ignored, as moving a tenant project to a different folder
# isn't supported. The operation fails if any of the steps fail, but no rollback
# of already applied configuration changes is attempted. Operation.
# @param [String] name
# Name of the tenancy unit.
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
# Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/
# 12345/tenancyUnits/abcd'.
# @param [Google::Apis::ServiceconsumermanagementV1::ApplyTenantProjectConfigRequest] apply_tenant_project_config_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -349,20 +335,18 @@ module Google
execute_or_queue_command(command, &block)
end
# Attach an existing project to the tenancy unit as a new tenant
# resource. The project could either be the tenant project reserved by
# calling `AddTenantProject` under a tenancy unit of a service producer's
# project of a managed service, or from a separate project.
# The caller is checked against a set of permissions as if calling
# `AddTenantProject` on the same service consumer.
# To trigger the attachment, the targeted tenant project must be in a
# folder. Make sure the ServiceConsumerManagement service account is
# the owner of that project. These two requirements are already met
# if the project is reserved by calling `AddTenantProject`.
# Operation<response: Empty>.
# Attach an existing project to the tenancy unit as a new tenant resource. The
# project could either be the tenant project reserved by calling `
# AddTenantProject` under a tenancy unit of a service producer's project of a
# managed service, or from a separate project. The caller is checked against a
# set of permissions as if calling `AddTenantProject` on the same service
# consumer. To trigger the attachment, the targeted tenant project must be in a
# folder. Make sure the ServiceConsumerManagement service account is the owner
# of that project. These two requirements are already met if the project is
# reserved by calling `AddTenantProject`. Operation.
# @param [String] name
# Name of the tenancy unit that the project will be attached to.
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
# Name of the tenancy unit that the project will be attached to. Such as '
# services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
# @param [Google::Apis::ServiceconsumermanagementV1::AttachTenantProjectRequest] attach_tenant_project_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -393,18 +377,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a tenancy unit with no tenant resources.
# If tenancy unit already exists, it will be returned,
# however, in this case, returned TenancyUnit does not have tenant_resources
# field set and ListTenancyUnits has to be used to get a complete
# TenancyUnit with all fields populated.
# Creates a tenancy unit with no tenant resources. If tenancy unit already
# exists, it will be returned, however, in this case, returned TenancyUnit does
# not have tenant_resources field set and ListTenancyUnits has to be used to get
# a complete TenancyUnit with all fields populated.
# @param [String] parent
# services/`service`/`collection id`/`resource id`
# `collection id` is the cloud resource collection type representing the
# service consumer, for example 'projects', or 'organizations'.
# `resource id` is the consumer numeric id, such as project number: '123456'.
# `service` the name of a managed service, such as 'service.googleapis.com'.
# Enables service binding using the new tenancy unit.
# services/`service`/`collection id`/`resource id` `collection id` is the cloud
# resource collection type representing the service consumer, for example '
# projects', or 'organizations'. `resource id` is the consumer numeric id, such
# as project number: '123456'. `service` the name of a managed service, such as '
# service.googleapis.com'. Enables service binding using the new tenancy unit.
# @param [Google::Apis::ServiceconsumermanagementV1::CreateTenancyUnitRequest] create_tenancy_unit_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -435,9 +417,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Delete a tenancy unit. Before you delete the tenancy unit, there should be
# no tenant resources in it that aren't in a DELETED state.
# Operation<response: Empty>.
# Delete a tenancy unit. Before you delete the tenancy unit, there should be no
# tenant resources in it that aren't in a DELETED state. Operation.
# @param [String] name
# Name of the tenancy unit to be deleted.
# @param [String] fields
@ -470,16 +451,13 @@ module Google
# Deletes the specified project resource identified by a tenant resource tag.
# The mothod removes a project lien with a 'TenantManager' origin if that was
# added. It will then attempt to delete the project. If that operation fails,
# this method also fails.
# After the project has been deleted, the tenant resource state is set to
# DELETED. To permanently remove resource metadata, call the
# `RemoveTenantProject` method.
# New resources with the same tag can't be added if there are existing
# resources in a DELETED state.
# Operation<response: Empty>.
# this method also fails. After the project has been deleted, the tenant
# resource state is set to DELETED. To permanently remove resource metadata,
# call the `RemoveTenantProject` method. New resources with the same tag can't
# be added if there are existing resources in a DELETED state. Operation.
# @param [String] name
# Name of the tenancy unit.
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
# Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/
# 12345/tenancyUnits/abcd'.
# @param [Google::Apis::ServiceconsumermanagementV1::DeleteTenantProjectRequest] delete_tenant_project_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -510,26 +488,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Find the tenancy unit for a managed service and service consumer.
# This method shouldn't be used in a service producer's runtime path, for
# example to find the tenant project number when creating VMs. Service
# producers must persist the tenant project's information after the project
# is created.
# Find the tenancy unit for a managed service and service consumer. This method
# shouldn't be used in a service producer's runtime path, for example to find
# the tenant project number when creating VMs. Service producers must persist
# the tenant project's information after the project is created.
# @param [String] parent
# Managed service and service consumer. Required.
# services/`service`/`collection id`/`resource id`
# `collection id` is the cloud resource collection type representing the
# service consumer, for example 'projects', or 'organizations'.
# `resource id` is the consumer numeric id, such as project number: '123456'.
# `service` the name of a service, such as 'service.googleapis.com'.
# Managed service and service consumer. Required. services/`service`/`collection
# id`/`resource id` `collection id` is the cloud resource collection type
# representing the service consumer, for example 'projects', or 'organizations'.
# `resource id` is the consumer numeric id, such as project number: '123456'. `
# service` the name of a service, such as 'service.googleapis.com'.
# @param [String] filter
# Filter expression over tenancy resources field. Optional.
# @param [Fixnum] page_size
# The maximum number of results returned by this request.
# @param [String] page_token
# The continuation token, which is used to page through large result sets.
# To get the next page of results, set this parameter to the value of
# `nextPageToken` from the previous response.
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of `
# nextPageToken` from the previous response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -561,16 +537,15 @@ module Google
end
# Removes the specified project resource identified by a tenant resource tag.
# The method removes the project lien with 'TenantManager' origin if that
# was added. It then attempts to delete the project. If that operation
# fails, this method also fails.
# Calls to remove already removed or non-existent tenant project succeed.
# After the project has been deleted, or if was already in a DELETED state,
# resource metadata is permanently removed from the tenancy unit.
# Operation<response: Empty>.
# The method removes the project lien with 'TenantManager' origin if that was
# added. It then attempts to delete the project. If that operation fails, this
# method also fails. Calls to remove already removed or non-existent tenant
# project succeed. After the project has been deleted, or if was already in a
# DELETED state, resource metadata is permanently removed from the tenancy unit.
# Operation.
# @param [String] name
# Name of the tenancy unit.
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
# Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/
# 12345/tenancyUnits/abcd'.
# @param [Google::Apis::ServiceconsumermanagementV1::RemoveTenantProjectRequest] remove_tenant_project_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -601,16 +576,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Attempts to undelete a previously deleted tenant project. The project must
# be in a DELETED state.
# There are no guarantees that an undeleted project will be in
# a fully restored and functional state. Call the `ApplyTenantProjectConfig`
# Attempts to undelete a previously deleted tenant project. The project must be
# in a DELETED state. There are no guarantees that an undeleted project will be
# in a fully restored and functional state. Call the `ApplyTenantProjectConfig`
# method to update its configuration and then validate all managed service
# resources.
# Operation<response: Empty>.
# resources. Operation.
# @param [String] name
# Name of the tenancy unit.
# Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
# Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/
# 12345/tenancyUnits/abcd'.
# @param [Google::Apis::ServiceconsumermanagementV1::UndeleteTenantProjectRequest] undelete_tenant_project_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1beta1
VERSION = 'V1beta1'
REVISION = '20200721'
REVISION = '20200801'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -47,9 +47,8 @@ module Google
@batch_path = 'batch'
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# 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
@ -81,11 +80,9 @@ module Google
# Retrieves a summary of quota information for a specific quota metric.
# @param [String] name
# The resource name of the quota metric, returned by a
# ListConsumerQuotaMetrics call.
# An example name would be:
# `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# googleapis.com%2Fcpus`
# The resource name of the quota metric, returned by a ListConsumerQuotaMetrics
# call. An example name would be: `services/compute.googleapis.com/projects/123/
# consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
# @param [String] view
# Specifies the level of detail for quota information in the response.
# @param [String] fields
@ -116,13 +113,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Create or update multiple producer overrides atomically, all on the
# same consumer, but on many different metrics or limits.
# The name field in the quota override message should not be set.
# Create or update multiple producer overrides atomically, all on the same
# consumer, but on many different metrics or limits. The name field in the quota
# override message should not be set.
# @param [String] parent
# The resource name of the consumer.
# An example name would be:
# `services/compute.googleapis.com/projects/123`
# The resource name of the consumer. An example name would be: `services/compute.
# googleapis.com/projects/123`
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ImportProducerOverridesRequest] v1_beta1_import_producer_overrides_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -154,20 +150,17 @@ module Google
end
# Retrieves a summary of all quota information about this consumer that is
# visible to the service producer, for each quota metric defined by the
# service. Each metric includes information about all of its defined limits.
# Each limit includes the limit configuration (quota unit, preciseness,
# default value), the current effective limit value, and all of the overrides
# applied to the limit.
# visible to the service producer, for each quota metric defined by the service.
# Each metric includes information about all of its defined limits. Each limit
# includes the limit configuration (quota unit, preciseness, default value), the
# current effective limit value, and all of the overrides applied to the limit.
# @param [String] parent
# Parent of the quotas resource.
# An example parent would be:
# `services/serviceconsumermanagement.googleapis.com/projects/123`
# Parent of the quotas resource. An example parent would be: `services/
# serviceconsumermanagement.googleapis.com/projects/123`
# @param [Fixnum] page_size
# Requested size of the next page of data.
# @param [String] page_token
# Token identifying which result to start with; returned by a previous list
# call.
# Token identifying which result to start with; returned by a previous list call.
# @param [String] view
# Specifies the level of detail for quota information in the response.
# @param [String] fields
@ -202,11 +195,10 @@ module Google
# Retrieves a summary of quota information for a specific quota limit.
# @param [String] name
# The resource name of the quota limit, returned by a
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
# An example name would be:
# `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
# The resource name of the quota limit, returned by a ListConsumerQuotaMetrics
# or GetConsumerQuotaMetric call. An example name would be: `services/compute.
# googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/
# limits/%2Fproject%2Fregion`
# @param [String] view
# Specifies the level of detail for quota information in the response.
# @param [String] fields
@ -237,27 +229,25 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a producer override.
# A producer override is applied by the owner or administrator of a service
# to increase or decrease the amount of quota a consumer of the service is
# allowed to use.
# To create multiple overrides at once, use ImportProducerOverrides instead.
# If an override with the specified dimensions already exists, this call will
# fail. To overwrite an existing override if one is already present ("upsert"
# semantics), use ImportProducerOverrides instead.
# Creates a producer override. A producer override is applied by the owner or
# administrator of a service to increase or decrease the amount of quota a
# consumer of the service is allowed to use. To create multiple overrides at
# once, use ImportProducerOverrides instead. If an override with the specified
# dimensions already exists, this call will fail. To overwrite an existing
# override if one is already present ("upsert" semantics), use
# ImportProducerOverrides instead.
# @param [String] parent
# The resource name of the parent quota limit, returned by a
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
# An example name would be:
# `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would
# be: `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride] v1_beta1_quota_override_object
# @param [Boolean] force
# Whether to force the creation of the quota override.
# If creating an override would cause the effective quota for the consumer to
# decrease by more than 10 percent, the call is rejected, as a safety measure
# to avoid accidentally decreasing quota too quickly. Setting the force
# parameter to true ignores this restriction.
# Whether to force the creation of the quota override. If creating an override
# would cause the effective quota for the consumer to decrease by more than 10
# percent, the call is rejected, as a safety measure to avoid accidentally
# decreasing quota too quickly. Setting the force parameter to true ignores this
# restriction.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -290,16 +280,15 @@ module Google
# Deletes a producer override.
# @param [String] name
# The resource name of the override to delete.
# An example name would be:
# `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# The resource name of the override to delete. An example name would be: `
# services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
# @param [Boolean] force
# Whether to force the deletion of the quota override.
# If deleting an override would cause the effective quota for the consumer to
# decrease by more than 10 percent, the call is rejected, as a safety measure
# to avoid accidentally decreasing quota too quickly. Setting the force
# parameter to true ignores this restriction.
# Whether to force the deletion of the quota override. If deleting an override
# would cause the effective quota for the consumer to decrease by more than 10
# percent, the call is rejected, as a safety measure to avoid accidentally
# decreasing quota too quickly. Setting the force parameter to true ignores this
# restriction.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -331,15 +320,13 @@ module Google
# Lists all producer overrides on this limit.
# @param [String] parent
# The resource name of the parent quota limit, returned by a
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
# An example name would be:
# `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would
# be: `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
# @param [Fixnum] page_size
# Requested size of the next page of data.
# @param [String] page_token
# Token identifying which result to start with; returned by a previous list
# call.
# Token identifying which result to start with; returned by a previous list call.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -371,17 +358,16 @@ module Google
# Updates a producer override.
# @param [String] name
# The resource name of the override to update.
# An example name would be:
# `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# The resource name of the override to update. An example name would be: `
# services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride] v1_beta1_quota_override_object
# @param [Boolean] force
# Whether to force the update of the quota override.
# If updating an override would cause the effective quota for the consumer to
# decrease by more than 10 percent, the call is rejected, as a safety measure
# to avoid accidentally decreasing quota too quickly. Setting the force
# parameter to true ignores this restriction.
# Whether to force the update of the quota override. If updating an override
# would cause the effective quota for the consumer to decrease by more than 10
# percent, the call is rejected, as a safety measure to avoid accidentally
# decreasing quota too quickly. Setting the force parameter to true ignores this
# restriction.
# @param [String] update_mask
# Update only the specified fields. If unset, all modifiable fields will be
# updated.

Some files were not shown because too many files have changed in this diff Show More