Autogenerated update (2020-09-22)
Update: - acceleratedmobilepageurl_v1 - searchconsole_v1 - securitycenter_v1 - securitycenter_v1beta1 - securitycenter_v1beta2 - servicemanagement_v1
This commit is contained in:
parent
0b94643115
commit
50e91c8145
|
@ -9737,6 +9737,114 @@
|
||||||
"/apigateway:v1alpha1/fields": fields
|
"/apigateway:v1alpha1/fields": fields
|
||||||
"/apigateway:v1alpha1/key": key
|
"/apigateway:v1alpha1/key": key
|
||||||
"/apigateway:v1alpha1/quotaUser": quota_user
|
"/apigateway:v1alpha1/quotaUser": quota_user
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditConfig": apigateway_audit_config
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditConfig/auditLogConfigs": audit_log_configs
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditConfig/auditLogConfigs/audit_log_config": audit_log_config
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditConfig/service": service
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditLogConfig": apigateway_audit_log_config
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditLogConfig/exemptedMembers": exempted_members
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditLogConfig/exemptedMembers/exempted_member": exempted_member
|
||||||
|
"/apigateway:v1alpha2/ApigatewayAuditLogConfig/logType": log_type
|
||||||
|
"/apigateway:v1alpha2/ApigatewayBinding": apigateway_binding
|
||||||
|
"/apigateway:v1alpha2/ApigatewayBinding/condition": condition
|
||||||
|
"/apigateway:v1alpha2/ApigatewayBinding/members": members
|
||||||
|
"/apigateway:v1alpha2/ApigatewayBinding/members/member": member
|
||||||
|
"/apigateway:v1alpha2/ApigatewayBinding/role": role
|
||||||
|
"/apigateway:v1alpha2/ApigatewayCancelOperationRequest": apigateway_cancel_operation_request
|
||||||
|
"/apigateway:v1alpha2/ApigatewayExpr": apigateway_expr
|
||||||
|
"/apigateway:v1alpha2/ApigatewayExpr/description": description
|
||||||
|
"/apigateway:v1alpha2/ApigatewayExpr/expression": expression
|
||||||
|
"/apigateway:v1alpha2/ApigatewayExpr/location": location
|
||||||
|
"/apigateway:v1alpha2/ApigatewayExpr/title": title
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListLocationsResponse": apigateway_list_locations_response
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListLocationsResponse/locations": locations
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListLocationsResponse/locations/location": location
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListLocationsResponse/nextPageToken": next_page_token
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListOperationsResponse": apigateway_list_operations_response
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListOperationsResponse/nextPageToken": next_page_token
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListOperationsResponse/operations": operations
|
||||||
|
"/apigateway:v1alpha2/ApigatewayListOperationsResponse/operations/operation": operation
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation": apigateway_location
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation/displayName": display_name
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation/labels": labels
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation/labels/label": label
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation/locationId": location_id
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation/metadata": metadata
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation/metadata/metadatum": metadatum
|
||||||
|
"/apigateway:v1alpha2/ApigatewayLocation/name": name
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation": apigateway_operation
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation/done": done
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation/error": error
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation/metadata": metadata
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation/metadata/metadatum": metadatum
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation/name": name
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation/response": response
|
||||||
|
"/apigateway:v1alpha2/ApigatewayOperation/response/response": response
|
||||||
|
"/apigateway:v1alpha2/ApigatewayPolicy": apigateway_policy
|
||||||
|
"/apigateway:v1alpha2/ApigatewayPolicy/auditConfigs": audit_configs
|
||||||
|
"/apigateway:v1alpha2/ApigatewayPolicy/auditConfigs/audit_config": audit_config
|
||||||
|
"/apigateway:v1alpha2/ApigatewayPolicy/bindings": bindings
|
||||||
|
"/apigateway:v1alpha2/ApigatewayPolicy/bindings/binding": binding
|
||||||
|
"/apigateway:v1alpha2/ApigatewayPolicy/etag": etag
|
||||||
|
"/apigateway:v1alpha2/ApigatewayPolicy/version": version
|
||||||
|
"/apigateway:v1alpha2/ApigatewaySetIamPolicyRequest": apigateway_set_iam_policy_request
|
||||||
|
"/apigateway:v1alpha2/ApigatewaySetIamPolicyRequest/policy": policy
|
||||||
|
"/apigateway:v1alpha2/ApigatewaySetIamPolicyRequest/updateMask": update_mask
|
||||||
|
"/apigateway:v1alpha2/ApigatewayStatus": apigateway_status
|
||||||
|
"/apigateway:v1alpha2/ApigatewayStatus/code": code
|
||||||
|
"/apigateway:v1alpha2/ApigatewayStatus/details": details
|
||||||
|
"/apigateway:v1alpha2/ApigatewayStatus/details/detail": detail
|
||||||
|
"/apigateway:v1alpha2/ApigatewayStatus/details/detail/detail": detail
|
||||||
|
"/apigateway:v1alpha2/ApigatewayStatus/message": message
|
||||||
|
"/apigateway:v1alpha2/ApigatewayTestIamPermissionsRequest": apigateway_test_iam_permissions_request
|
||||||
|
"/apigateway:v1alpha2/ApigatewayTestIamPermissionsRequest/permissions": permissions
|
||||||
|
"/apigateway:v1alpha2/ApigatewayTestIamPermissionsRequest/permissions/permission": permission
|
||||||
|
"/apigateway:v1alpha2/ApigatewayTestIamPermissionsResponse": apigateway_test_iam_permissions_response
|
||||||
|
"/apigateway:v1alpha2/ApigatewayTestIamPermissionsResponse/permissions": permissions
|
||||||
|
"/apigateway:v1alpha2/ApigatewayTestIamPermissionsResponse/permissions/permission": permission
|
||||||
|
"/apigateway:v1alpha2/Empty": empty
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.configs.getIamPolicy": get_project_location_api_config_iam_policy
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.configs.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.configs.getIamPolicy/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.configs.setIamPolicy": set_project_location_api_config_iam_policy
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.configs.setIamPolicy/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.configs.testIamPermissions": test_project_location_api_config_iam_permissions
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.configs.testIamPermissions/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.getIamPolicy": get_project_location_api_iam_policy
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.getIamPolicy/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.setIamPolicy": set_project_location_api_iam_policy
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.setIamPolicy/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.testIamPermissions": test_project_location_api_iam_permissions
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.apis.testIamPermissions/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.gateways.getIamPolicy": get_project_location_gateway_iam_policy
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.gateways.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.gateways.getIamPolicy/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.gateways.setIamPolicy": set_project_location_gateway_iam_policy
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.gateways.setIamPolicy/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.gateways.testIamPermissions": test_project_location_gateway_iam_permissions
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.gateways.testIamPermissions/resource": resource
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.get": get_project_location
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.get/name": name
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.list": list_project_locations
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.list/filter": filter
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.list/name": name
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.list/pageSize": page_size
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.list/pageToken": page_token
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.cancel": cancel_project_location_operation
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.cancel/name": name
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.delete": delete_project_location_operation
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.delete/name": name
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.get": get_project_location_operation
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.get/name": name
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.list": list_project_location_operations
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.list/filter": filter
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.list/name": name
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.list/pageSize": page_size
|
||||||
|
"/apigateway:v1alpha2/apigateway.projects.locations.operations.list/pageToken": page_token
|
||||||
|
"/apigateway:v1alpha2/fields": fields
|
||||||
|
"/apigateway:v1alpha2/key": key
|
||||||
|
"/apigateway:v1alpha2/quotaUser": quota_user
|
||||||
"/apigateway:v1beta/ApigatewayApi": apigateway_api
|
"/apigateway:v1beta/ApigatewayApi": apigateway_api
|
||||||
"/apigateway:v1beta/ApigatewayApi/createTime": create_time
|
"/apigateway:v1beta/ApigatewayApi/createTime": create_time
|
||||||
"/apigateway:v1beta/ApigatewayApi/displayName": display_name
|
"/apigateway:v1beta/ApigatewayApi/displayName": display_name
|
||||||
|
@ -124615,6 +124723,21 @@
|
||||||
"/script:v1/script.projects.versions.list/scriptId": script_id
|
"/script:v1/script.projects.versions.list/scriptId": script_id
|
||||||
"/script:v1/script.scripts.run": run_script
|
"/script:v1/script.scripts.run": run_script
|
||||||
"/script:v1/script.scripts.run/scriptId": script_id
|
"/script:v1/script.scripts.run/scriptId": script_id
|
||||||
|
"/searchconsole:v1/ApiDataRow": api_data_row
|
||||||
|
"/searchconsole:v1/ApiDataRow/clicks": clicks
|
||||||
|
"/searchconsole:v1/ApiDataRow/ctr": ctr
|
||||||
|
"/searchconsole:v1/ApiDataRow/impressions": impressions
|
||||||
|
"/searchconsole:v1/ApiDataRow/keys": keys
|
||||||
|
"/searchconsole:v1/ApiDataRow/keys/key": key
|
||||||
|
"/searchconsole:v1/ApiDataRow/position": position
|
||||||
|
"/searchconsole:v1/ApiDimensionFilter": api_dimension_filter
|
||||||
|
"/searchconsole:v1/ApiDimensionFilter/dimension": dimension
|
||||||
|
"/searchconsole:v1/ApiDimensionFilter/expression": expression
|
||||||
|
"/searchconsole:v1/ApiDimensionFilter/operator": operator
|
||||||
|
"/searchconsole:v1/ApiDimensionFilterGroup": api_dimension_filter_group
|
||||||
|
"/searchconsole:v1/ApiDimensionFilterGroup/filters": filters
|
||||||
|
"/searchconsole:v1/ApiDimensionFilterGroup/filters/filter": filter
|
||||||
|
"/searchconsole:v1/ApiDimensionFilterGroup/groupType": group_type
|
||||||
"/searchconsole:v1/BlockedResource": blocked_resource
|
"/searchconsole:v1/BlockedResource": blocked_resource
|
||||||
"/searchconsole:v1/BlockedResource/url": url
|
"/searchconsole:v1/BlockedResource/url": url
|
||||||
"/searchconsole:v1/Image": image
|
"/searchconsole:v1/Image": image
|
||||||
|
@ -124635,13 +124758,73 @@
|
||||||
"/searchconsole:v1/RunMobileFriendlyTestResponse/resourceIssues/resource_issue": resource_issue
|
"/searchconsole:v1/RunMobileFriendlyTestResponse/resourceIssues/resource_issue": resource_issue
|
||||||
"/searchconsole:v1/RunMobileFriendlyTestResponse/screenshot": screenshot
|
"/searchconsole:v1/RunMobileFriendlyTestResponse/screenshot": screenshot
|
||||||
"/searchconsole:v1/RunMobileFriendlyTestResponse/testStatus": test_status
|
"/searchconsole:v1/RunMobileFriendlyTestResponse/testStatus": test_status
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest": search_analytics_query_request
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/aggregationType": aggregation_type
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/dimensionFilterGroups": dimension_filter_groups
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/dimensionFilterGroups/dimension_filter_group": dimension_filter_group
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/dimensions": dimensions
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/dimensions/dimension": dimension
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/endDate": end_date
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/rowLimit": row_limit
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/searchType": search_type
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/startDate": start_date
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryRequest/startRow": start_row
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryResponse": search_analytics_query_response
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryResponse/responseAggregationType": response_aggregation_type
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryResponse/rows": rows
|
||||||
|
"/searchconsole:v1/SearchAnalyticsQueryResponse/rows/row": row
|
||||||
|
"/searchconsole:v1/SitemapsListResponse": sitemaps_list_response
|
||||||
|
"/searchconsole:v1/SitemapsListResponse/sitemap": sitemap
|
||||||
|
"/searchconsole:v1/SitemapsListResponse/sitemap/sitemap": sitemap
|
||||||
|
"/searchconsole:v1/SitesListResponse": sites_list_response
|
||||||
|
"/searchconsole:v1/SitesListResponse/siteEntry": site_entry
|
||||||
|
"/searchconsole:v1/SitesListResponse/siteEntry/site_entry": site_entry
|
||||||
"/searchconsole:v1/TestStatus": test_status
|
"/searchconsole:v1/TestStatus": test_status
|
||||||
"/searchconsole:v1/TestStatus/details": details
|
"/searchconsole:v1/TestStatus/details": details
|
||||||
"/searchconsole:v1/TestStatus/status": status
|
"/searchconsole:v1/TestStatus/status": status
|
||||||
|
"/searchconsole:v1/WmxSite": wmx_site
|
||||||
|
"/searchconsole:v1/WmxSite/permissionLevel": permission_level
|
||||||
|
"/searchconsole:v1/WmxSite/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/WmxSitemap": wmx_sitemap
|
||||||
|
"/searchconsole:v1/WmxSitemap/contents": contents
|
||||||
|
"/searchconsole:v1/WmxSitemap/contents/content": content
|
||||||
|
"/searchconsole:v1/WmxSitemap/errors": errors
|
||||||
|
"/searchconsole:v1/WmxSitemap/isPending": is_pending
|
||||||
|
"/searchconsole:v1/WmxSitemap/isSitemapsIndex": is_sitemaps_index
|
||||||
|
"/searchconsole:v1/WmxSitemap/lastDownloaded": last_downloaded
|
||||||
|
"/searchconsole:v1/WmxSitemap/lastSubmitted": last_submitted
|
||||||
|
"/searchconsole:v1/WmxSitemap/path": path
|
||||||
|
"/searchconsole:v1/WmxSitemap/type": type
|
||||||
|
"/searchconsole:v1/WmxSitemap/warnings": warnings
|
||||||
|
"/searchconsole:v1/WmxSitemapContent": wmx_sitemap_content
|
||||||
|
"/searchconsole:v1/WmxSitemapContent/indexed": indexed
|
||||||
|
"/searchconsole:v1/WmxSitemapContent/submitted": submitted
|
||||||
|
"/searchconsole:v1/WmxSitemapContent/type": type
|
||||||
"/searchconsole:v1/fields": fields
|
"/searchconsole:v1/fields": fields
|
||||||
"/searchconsole:v1/key": key
|
"/searchconsole:v1/key": key
|
||||||
"/searchconsole:v1/quotaUser": quota_user
|
"/searchconsole:v1/quotaUser": quota_user
|
||||||
"/searchconsole:v1/searchconsole.urlTestingTools.mobileFriendlyTest.run": run_mobile_friendly_test
|
"/searchconsole:v1/searchconsole.urlTestingTools.mobileFriendlyTest.run": run_mobile_friendly_test
|
||||||
|
"/searchconsole:v1/webmasters.searchanalytics.query": query_searchanalytic
|
||||||
|
"/searchconsole:v1/webmasters.searchanalytics.query/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.delete": delete_sitemap
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.delete/feedpath": feedpath
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.delete/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.get": get_sitemap
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.get/feedpath": feedpath
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.get/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.list": list_sitemaps
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.list/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.list/sitemapIndex": sitemap_index
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.submit": submit_sitemap
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.submit/feedpath": feedpath
|
||||||
|
"/searchconsole:v1/webmasters.sitemaps.submit/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sites.add": add_site
|
||||||
|
"/searchconsole:v1/webmasters.sites.add/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sites.delete": delete_site
|
||||||
|
"/searchconsole:v1/webmasters.sites.delete/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sites.get": get_site
|
||||||
|
"/searchconsole:v1/webmasters.sites.get/siteUrl": site_url
|
||||||
|
"/searchconsole:v1/webmasters.sites.list": list_sites
|
||||||
"/secretmanager:v1/AccessSecretVersionResponse": access_secret_version_response
|
"/secretmanager:v1/AccessSecretVersionResponse": access_secret_version_response
|
||||||
"/secretmanager:v1/AccessSecretVersionResponse/name": name
|
"/secretmanager:v1/AccessSecretVersionResponse/name": name
|
||||||
"/secretmanager:v1/AccessSecretVersionResponse/payload": payload
|
"/secretmanager:v1/AccessSecretVersionResponse/payload": payload
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/amp/cache/
|
# @see https://developers.google.com/amp/cache/
|
||||||
module AcceleratedmobilepageurlV1
|
module AcceleratedmobilepageurlV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200215'
|
REVISION = '20200916'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -31,8 +31,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :amp_url
|
attr_accessor :amp_url
|
||||||
|
|
||||||
# The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
|
# The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the
|
||||||
# the cached document in the Google AMP Cache.
|
# cached document in the Google AMP Cache.
|
||||||
# Corresponds to the JSON property `cdnAmpUrl`
|
# Corresponds to the JSON property `cdnAmpUrl`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :cdn_amp_url
|
attr_accessor :cdn_amp_url
|
||||||
|
@ -94,9 +94,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :lookup_strategy
|
attr_accessor :lookup_strategy
|
||||||
|
|
||||||
# List of URLs to look up for the paired AMP URLs.
|
# List of URLs to look up for the paired AMP URLs. The URLs are case-sensitive.
|
||||||
# The URLs are case-sensitive. Up to 50 URLs per lookup
|
# Up to 50 URLs per lookup (see [Usage Limits](/amp/cache/reference/limits)).
|
||||||
# (see [Usage Limits](/amp/cache/reference/limits)).
|
|
||||||
# Corresponds to the JSON property `urls`
|
# Corresponds to the JSON property `urls`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :urls
|
attr_accessor :urls
|
||||||
|
@ -116,10 +115,9 @@ module Google
|
||||||
class BatchGetAmpUrlsResponse
|
class BatchGetAmpUrlsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
|
# For each URL in BatchAmpUrlsRequest, the URL response. The response might not
|
||||||
# not be in the same order as URLs in the batch request.
|
# be in the same order as URLs in the batch request. If BatchAmpUrlsRequest
|
||||||
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
|
# contains duplicate URLs, AmpUrl is generated only once.
|
||||||
# only once.
|
|
||||||
# Corresponds to the JSON property `ampUrls`
|
# Corresponds to the JSON property `ampUrls`
|
||||||
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
|
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
|
||||||
attr_accessor :amp_urls
|
attr_accessor :amp_urls
|
||||||
|
|
|
@ -48,8 +48,8 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns AMP URL(s) and equivalent
|
# Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-
|
||||||
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
# cache-url-format).
|
||||||
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object
|
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/apigateway_v1alpha2/service.rb'
|
||||||
|
require 'google/apis/apigateway_v1alpha2/classes.rb'
|
||||||
|
require 'google/apis/apigateway_v1alpha2/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# API Gateway API
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/api-gateway/docs
|
||||||
|
module ApigatewayV1alpha2
|
||||||
|
VERSION = 'V1alpha2'
|
||||||
|
REVISION = '20200915'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,633 @@
|
||||||
|
# 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 ApigatewayV1alpha2
|
||||||
|
|
||||||
|
# Specifies the audit configuration for a service. The configuration determines
|
||||||
|
# which permission types are logged, and what identities, if any, are exempted
|
||||||
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
||||||
|
# are AuditConfigs for both `allServices` and a specific service, the union of
|
||||||
|
# the two AuditConfigs is used for that service: the log_types specified in each
|
||||||
|
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
||||||
|
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
||||||
|
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
||||||
|
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
||||||
|
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
||||||
|
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
||||||
|
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
||||||
|
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
||||||
|
# exempts jose@example.com from DATA_READ logging, and aliya@example.com from
|
||||||
|
# DATA_WRITE logging.
|
||||||
|
class ApigatewayAuditConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The configuration for logging of each type of permission.
|
||||||
|
# Corresponds to the JSON property `auditLogConfigs`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha2::ApigatewayAuditLogConfig>]
|
||||||
|
attr_accessor :audit_log_configs
|
||||||
|
|
||||||
|
# Specifies a service that will be enabled for audit logging. For example, `
|
||||||
|
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
||||||
|
# value that covers all services.
|
||||||
|
# Corresponds to the JSON property `service`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
||||||
|
@service = args[:service] if args.key?(:service)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Provides the configuration for logging a type of permissions. Example: ` "
|
||||||
|
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
||||||
|
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
||||||
|
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
||||||
|
# DATA_READ logging.
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies the identities that do not cause logging for this type of permission.
|
||||||
|
# Follows the same format of Binding.members.
|
||||||
|
# Corresponds to the JSON property `exemptedMembers`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :exempted_members
|
||||||
|
|
||||||
|
# The log type that this config enables.
|
||||||
|
# Corresponds to the JSON property `logType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :log_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
||||||
|
@log_type = args[:log_type] if args.key?(:log_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Associates `members` with a `role`.
|
||||||
|
class ApigatewayBinding
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
# "Summary size limit" description: "Determines if a summary is less than 100
|
||||||
|
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
||||||
|
# Requestor is owner" description: "Determines if requestor is the document
|
||||||
|
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
||||||
|
# Logic): title: "Public documents" description: "Determine whether the document
|
||||||
|
# should be publicly visible" expression: "document.type != 'private' &&
|
||||||
|
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
||||||
|
# string" description: "Create a notification string with a timestamp."
|
||||||
|
# expression: "'New message received at ' + string(document.create_time)" The
|
||||||
|
# exact variables and functions that may be referenced within an expression are
|
||||||
|
# determined by the service that evaluates it. See the service documentation for
|
||||||
|
# additional information.
|
||||||
|
# Corresponds to the JSON property `condition`
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayExpr]
|
||||||
|
attr_accessor :condition
|
||||||
|
|
||||||
|
# Specifies the identities requesting access for a Cloud Platform resource. `
|
||||||
|
# members` can have the following values: * `allUsers`: A special identifier
|
||||||
|
# that represents anyone who is on the internet; with or without a Google
|
||||||
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
||||||
|
# anyone who is authenticated with a Google account or a service account. * `
|
||||||
|
# user:`emailid``: An email address that represents a specific Google account.
|
||||||
|
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
||||||
|
# address that represents a service account. For example, `my-other-app@appspot.
|
||||||
|
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
||||||
|
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
||||||
|
# `uniqueid``: An email address (plus unique identifier) representing a user
|
||||||
|
# that has been recently deleted. For example, `alice@example.com?uid=
|
||||||
|
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
||||||
|
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
||||||
|
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
|
# identifier) representing a service account that has been recently deleted. For
|
||||||
|
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||||
|
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
||||||
|
# emailid`` and the undeleted service account retains the role in the binding. *
|
||||||
|
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
|
# identifier) representing a Google group that has been recently deleted. For
|
||||||
|
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
||||||
|
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
||||||
|
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
||||||
|
# primary) that represents all the users of that domain. For example, `google.
|
||||||
|
# com` or `example.com`.
|
||||||
|
# Corresponds to the JSON property `members`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :members
|
||||||
|
|
||||||
|
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
||||||
|
# , or `roles/owner`.
|
||||||
|
# Corresponds to the JSON property `role`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
|
@members = args[:members] if args.key?(:members)
|
||||||
|
@role = args[:role] if args.key?(:role)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The request message for Operations.CancelOperation.
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
# "Summary size limit" description: "Determines if a summary is less than 100
|
||||||
|
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
||||||
|
# Requestor is owner" description: "Determines if requestor is the document
|
||||||
|
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
||||||
|
# Logic): title: "Public documents" description: "Determine whether the document
|
||||||
|
# should be publicly visible" expression: "document.type != 'private' &&
|
||||||
|
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
||||||
|
# string" description: "Create a notification string with a timestamp."
|
||||||
|
# expression: "'New message received at ' + string(document.create_time)" The
|
||||||
|
# exact variables and functions that may be referenced within an expression are
|
||||||
|
# determined by the service that evaluates it. See the service documentation for
|
||||||
|
# additional information.
|
||||||
|
class ApigatewayExpr
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Optional. Description of the expression. This is a longer text which describes
|
||||||
|
# the expression, e.g. when hovered over it in a UI.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Textual representation of an expression in Common Expression Language syntax.
|
||||||
|
# Corresponds to the JSON property `expression`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expression
|
||||||
|
|
||||||
|
# Optional. String indicating the location of the expression for error reporting,
|
||||||
|
# e.g. a file name and a position in the file.
|
||||||
|
# Corresponds to the JSON property `location`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location
|
||||||
|
|
||||||
|
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
||||||
|
# This can be used e.g. in UIs which allow to enter the expression.
|
||||||
|
# Corresponds to the JSON property `title`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :title
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@expression = args[:expression] if args.key?(:expression)
|
||||||
|
@location = args[:location] if args.key?(:location)
|
||||||
|
@title = args[:title] if args.key?(:title)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for Locations.ListLocations.
|
||||||
|
class ApigatewayListLocationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of locations that matches the specified filter in the request.
|
||||||
|
# Corresponds to the JSON property `locations`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha2::ApigatewayLocation>]
|
||||||
|
attr_accessor :locations
|
||||||
|
|
||||||
|
# The standard List next-page token.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@locations = args[:locations] if args.key?(:locations)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for Operations.ListOperations.
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The standard List next-page token.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# A list of operations that matches the specified filter in the request.
|
||||||
|
# Corresponds to the JSON property `operations`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha2::ApigatewayOperation>]
|
||||||
|
attr_accessor :operations
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@operations = args[:operations] if args.key?(:operations)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A resource that represents Google Cloud Platform location.
|
||||||
|
class ApigatewayLocation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The friendly name for this location, typically a nearby city name. For example,
|
||||||
|
# "Tokyo".
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
||||||
|
# region": "us-east1"`
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
|
# The canonical id for this location. For example: `"us-east1"`.
|
||||||
|
# Corresponds to the JSON property `locationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location_id
|
||||||
|
|
||||||
|
# Service-specific metadata. For example the available capacity at the given
|
||||||
|
# location.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# Resource name for the location, which may vary between implementations. For
|
||||||
|
# example: `"projects/example-project/locations/us-east1"`
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This resource represents a long-running operation that is the result of a
|
||||||
|
# network API call.
|
||||||
|
class ApigatewayOperation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If the value is `false`, it means the operation is still in progress. If `true`
|
||||||
|
# , the operation is completed, and either `error` or `response` is available.
|
||||||
|
# Corresponds to the JSON property `done`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :done
|
||||||
|
alias_method :done?, :done
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
||||||
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
||||||
|
# data: error code, error message, and error details. You can find out more
|
||||||
|
# about this error model and how to work with it in the [API Design Guide](https:
|
||||||
|
# //cloud.google.com/apis/design/errors).
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayStatus]
|
||||||
|
attr_accessor :error
|
||||||
|
|
||||||
|
# Service-specific metadata associated with the operation. It typically contains
|
||||||
|
# progress information and common metadata such as create time. Some services
|
||||||
|
# might not provide such metadata. Any method that returns a long-running
|
||||||
|
# operation should document the metadata type, if any.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# The server-assigned name, which is only unique within the same service that
|
||||||
|
# originally returns it. If you use the default HTTP mapping, the `name` should
|
||||||
|
# be a resource name ending with `operations/`unique_id``.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The normal response of the operation in case of success. If the original
|
||||||
|
# method returns no data on success, such as `Delete`, the response is `google.
|
||||||
|
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
||||||
|
# the response should be the resource. For other methods, the response should
|
||||||
|
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
||||||
|
# example, if the original method name is `TakeSnapshot()`, the inferred
|
||||||
|
# response type is `TakeSnapshotResponse`.
|
||||||
|
# Corresponds to the JSON property `response`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :response
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@done = args[:done] if args.key?(:done)
|
||||||
|
@error = args[:error] if args.key?(:error)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@response = args[:response] if args.key?(:response)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
||||||
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
||||||
|
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
||||||
|
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
||||||
|
# role or a user-created custom role. For some types of Google Cloud resources,
|
||||||
|
# a `binding` can also specify a `condition`, which is a logical expression that
|
||||||
|
# allows access to a resource only if the expression evaluates to `true`. A
|
||||||
|
# condition can add constraints based on attributes of the request, the resource,
|
||||||
|
# or both. To learn which resources support conditions in their IAM policies,
|
||||||
|
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
||||||
|
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
||||||
|
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
||||||
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
||||||
|
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
||||||
|
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
||||||
|
# title": "expirable access", "description": "Does not grant access after Sep
|
||||||
|
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
||||||
|
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
||||||
|
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
||||||
|
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
||||||
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
||||||
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
||||||
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
||||||
|
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
||||||
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
||||||
|
# google.com/iam/docs/).
|
||||||
|
class ApigatewayPolicy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies cloud audit logging configuration for this policy.
|
||||||
|
# Corresponds to the JSON property `auditConfigs`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha2::ApigatewayAuditConfig>]
|
||||||
|
attr_accessor :audit_configs
|
||||||
|
|
||||||
|
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
||||||
|
# condition` that determines how and when the `bindings` are applied. Each of
|
||||||
|
# the `bindings` must contain at least one member.
|
||||||
|
# Corresponds to the JSON property `bindings`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha2::ApigatewayBinding>]
|
||||||
|
attr_accessor :bindings
|
||||||
|
|
||||||
|
# `etag` is used for optimistic concurrency control as a way to help prevent
|
||||||
|
# simultaneous updates of a policy from overwriting each other. It is strongly
|
||||||
|
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
||||||
|
# to perform policy updates in order to avoid race conditions: An `etag` is
|
||||||
|
# returned in the response to `getIamPolicy`, and systems are expected to put
|
||||||
|
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
||||||
|
# applied to the same version of the policy. **Important:** If you use IAM
|
||||||
|
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
||||||
|
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
||||||
|
# with a version `1` policy, and all of the conditions in the version `3` policy
|
||||||
|
# are lost.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
||||||
|
# Requests that specify an invalid value are rejected. Any operation that
|
||||||
|
# affects conditional role bindings must specify version `3`. This requirement
|
||||||
|
# applies to the following operations: * Getting a policy that includes a
|
||||||
|
# conditional role binding * Adding a conditional role binding to a policy *
|
||||||
|
# Changing a conditional role binding in a policy * Removing any role binding,
|
||||||
|
# with or without a condition, from a policy that includes conditions **
|
||||||
|
# Important:** If you use IAM Conditions, you must include the `etag` field
|
||||||
|
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
||||||
|
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
||||||
|
# conditions in the version `3` policy are lost. If a policy does not include
|
||||||
|
# any conditions, operations on that policy may specify any valid version or
|
||||||
|
# leave the field unset. To learn which resources support conditions in their
|
||||||
|
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
||||||
|
# conditions/resource-policies).
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||||
|
@bindings = args[:bindings] if args.key?(:bindings)
|
||||||
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for `SetIamPolicy` method.
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
||||||
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
||||||
|
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
||||||
|
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
||||||
|
# role or a user-created custom role. For some types of Google Cloud resources,
|
||||||
|
# a `binding` can also specify a `condition`, which is a logical expression that
|
||||||
|
# allows access to a resource only if the expression evaluates to `true`. A
|
||||||
|
# condition can add constraints based on attributes of the request, the resource,
|
||||||
|
# or both. To learn which resources support conditions in their IAM policies,
|
||||||
|
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
||||||
|
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
||||||
|
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
||||||
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
||||||
|
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
||||||
|
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
||||||
|
# title": "expirable access", "description": "Does not grant access after Sep
|
||||||
|
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
||||||
|
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
||||||
|
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
||||||
|
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
||||||
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
||||||
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
||||||
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
||||||
|
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
||||||
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
||||||
|
# google.com/iam/docs/).
|
||||||
|
# Corresponds to the JSON property `policy`
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
||||||
|
attr_accessor :policy
|
||||||
|
|
||||||
|
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||||
|
# the fields in the mask will be modified. If no mask is provided, the following
|
||||||
|
# default mask is used: `paths: "bindings, etag"`
|
||||||
|
# Corresponds to the JSON property `updateMask`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_mask
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@policy = args[:policy] if args.key?(:policy)
|
||||||
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
||||||
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
||||||
|
# data: error code, error message, and error details. You can find out more
|
||||||
|
# about this error model and how to work with it in the [API Design Guide](https:
|
||||||
|
# //cloud.google.com/apis/design/errors).
|
||||||
|
class ApigatewayStatus
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There is a common set of
|
||||||
|
# message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<Hash<String,Object>>]
|
||||||
|
attr_accessor :details
|
||||||
|
|
||||||
|
# A developer-facing error message, which should be in English. Any user-facing
|
||||||
|
# error message should be localized and sent in the google.rpc.Status.details
|
||||||
|
# field, or localized by the client.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@code = args[:code] if args.key?(:code)
|
||||||
|
@details = args[:details] if args.key?(:details)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for `TestIamPermissions` method.
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
||||||
|
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
||||||
|
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
||||||
|
# Corresponds to the JSON property `permissions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :permissions
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@permissions = args[:permissions] if args.key?(:permissions)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for `TestIamPermissions` method.
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
||||||
|
# Corresponds to the JSON property `permissions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :permissions
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@permissions = args[:permissions] if args.key?(:permissions)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
||||||
|
# messages in your APIs. A typical example is to use it as the request or the
|
||||||
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
||||||
|
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
||||||
|
# `Empty` is empty JSON object ````.
|
||||||
|
class Empty
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,250 @@
|
||||||
|
# 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 ApigatewayV1alpha2
|
||||||
|
|
||||||
|
class ApigatewayAuditConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBinding
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayExpr
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListLocationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayOperation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayStatus
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
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 ApigatewayAuditConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditLogConfig::Representation
|
||||||
|
|
||||||
|
property :service, as: 'service'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :exempted_members, as: 'exemptedMembers'
|
||||||
|
property :log_type, as: 'logType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBinding
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :condition, as: 'condition', class: Google::Apis::ApigatewayV1alpha2::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayExpr::Representation
|
||||||
|
|
||||||
|
collection :members, as: 'members'
|
||||||
|
property :role, as: 'role'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayExpr
|
||||||
|
# @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 ApigatewayListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1alpha2::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayLocation::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1alpha2::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayOperation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayLocation
|
||||||
|
# @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 ApigatewayOperation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::ApigatewayV1alpha2::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayStatus::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditConfig::Representation
|
||||||
|
|
||||||
|
collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1alpha2::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayBinding::Representation
|
||||||
|
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :policy, as: 'policy', class: Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
||||||
|
|
||||||
|
property :update_mask, as: 'updateMask'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,623 @@
|
||||||
|
# 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 ApigatewayV1alpha2
|
||||||
|
# API Gateway API
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/apigateway_v1alpha2'
|
||||||
|
#
|
||||||
|
# Apigateway = Google::Apis::ApigatewayV1alpha2 # Alias the module
|
||||||
|
# service = Apigateway::ApigatewayService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/api-gateway/docs
|
||||||
|
class ApigatewayService < 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://apigateway.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::ApigatewayV1alpha2::ApigatewayLocation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayLocation]
|
||||||
|
#
|
||||||
|
# @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, 'v1alpha2/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayLocation::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayLocation
|
||||||
|
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 [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::ApigatewayV1alpha2::ApigatewayListLocationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse]
|
||||||
|
#
|
||||||
|
# @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, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha2/{+name}/locations', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_api_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_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::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation
|
||||||
|
command.request_object = apigateway_set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
||||||
|
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::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_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::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = apigateway_test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_api_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_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::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_config_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation
|
||||||
|
command.request_object = apigateway_set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
||||||
|
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::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_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::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_config_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = apigateway_test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_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::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_project_location_gateway_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation
|
||||||
|
command.request_object = apigateway_set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
||||||
|
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::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_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::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @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_project_location_gateway_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = apigateway_test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse
|
||||||
|
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::ApigatewayV1alpha2::ApigatewayCancelOperationRequest] apigateway_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::ApigatewayV1alpha2::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::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_project_location_operation(name, apigateway_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha2/{+name}:cancel', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayCancelOperationRequest::Representation
|
||||||
|
command.request_object = apigateway_cancel_operation_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::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::ApigatewayV1alpha2::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::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, 'v1alpha2/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::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::ApigatewayV1alpha2::ApigatewayOperation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayOperation]
|
||||||
|
#
|
||||||
|
# @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, 'v1alpha2/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayOperation::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayOperation
|
||||||
|
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::ApigatewayV1alpha2::ApigatewayListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse]
|
||||||
|
#
|
||||||
|
# @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, 'v1alpha2/{+name}/operations', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
|
@ -26,7 +26,13 @@ module Google
|
||||||
# @see https://developers.google.com/webmaster-tools/search-console-api/
|
# @see https://developers.google.com/webmaster-tools/search-console-api/
|
||||||
module SearchconsoleV1
|
module SearchconsoleV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200803'
|
REVISION = '20200919'
|
||||||
|
|
||||||
|
# View and manage Search Console data for your verified sites
|
||||||
|
AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'
|
||||||
|
|
||||||
|
# View Search Console data for your verified sites
|
||||||
|
AUTH_WEBMASTERS_READONLY = 'https://www.googleapis.com/auth/webmasters.readonly'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,6 +22,112 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module SearchconsoleV1
|
module SearchconsoleV1
|
||||||
|
|
||||||
|
#
|
||||||
|
class ApiDataRow
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `clicks`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :clicks
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `ctr`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :ctr
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `impressions`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :impressions
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `keys`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :keys
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `position`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :position
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@clicks = args[:clicks] if args.key?(:clicks)
|
||||||
|
@ctr = args[:ctr] if args.key?(:ctr)
|
||||||
|
@impressions = args[:impressions] if args.key?(:impressions)
|
||||||
|
@keys = args[:keys] if args.key?(:keys)
|
||||||
|
@position = args[:position] if args.key?(:position)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A filter test to be applied to each row in the data set, where a match can
|
||||||
|
# return the row. Filters are string comparisons, and values and dimension names
|
||||||
|
# are not case-sensitive. Individual filters are either AND'ed or OR'ed within
|
||||||
|
# their parent filter group, according to the group's group type. You do not
|
||||||
|
# need to group by a specified dimension to filter against it.
|
||||||
|
class ApiDimensionFilter
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `dimension`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :dimension
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `expression`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expression
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `operator`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :operator
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dimension = args[:dimension] if args.key?(:dimension)
|
||||||
|
@expression = args[:expression] if args.key?(:expression)
|
||||||
|
@operator = args[:operator] if args.key?(:operator)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A set of dimension value filters to test against each row. Only rows that pass
|
||||||
|
# all filter groups will be returned. All results within a filter group are
|
||||||
|
# either AND'ed or OR'ed together, depending on the group type selected. All
|
||||||
|
# filter groups are AND'ed together.
|
||||||
|
class ApiDimensionFilterGroup
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `filters`
|
||||||
|
# @return [Array<Google::Apis::SearchconsoleV1::ApiDimensionFilter>]
|
||||||
|
attr_accessor :filters
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `groupType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :group_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@filters = args[:filters] if args.key?(:filters)
|
||||||
|
@group_type = args[:group_type] if args.key?(:group_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Blocked resource.
|
# Blocked resource.
|
||||||
class BlockedResource
|
class BlockedResource
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -176,6 +282,156 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class SearchAnalyticsQueryRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Optional; Default is \"auto\"] How data is aggregated. If aggregated by
|
||||||
|
# property, all data for the same property is aggregated; if aggregated by page,
|
||||||
|
# all data is aggregated by canonical URI. If you filter or group by page,
|
||||||
|
# choose AUTO; otherwise you can aggregate either by property or by page,
|
||||||
|
# depending on how you want your data calculated; see the help documentation to
|
||||||
|
# learn how data is calculated differently by site versus by page. **Note:** If
|
||||||
|
# you group or filter by page, you cannot aggregate by property. If you specify
|
||||||
|
# any value other than AUTO, the aggregation type in the result will match the
|
||||||
|
# requested type, or if you request an invalid type, you will get an error. The
|
||||||
|
# API will never change your aggregation type if the requested type is invalid.
|
||||||
|
# Corresponds to the JSON property `aggregationType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :aggregation_type
|
||||||
|
|
||||||
|
# [Optional] Zero or more filters to apply to the dimension grouping values; for
|
||||||
|
# example, 'query contains \"buy\"' to see only data where the query string
|
||||||
|
# contains the substring \"buy\" (not case-sensitive). You can filter by a
|
||||||
|
# dimension without grouping by it.
|
||||||
|
# Corresponds to the JSON property `dimensionFilterGroups`
|
||||||
|
# @return [Array<Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup>]
|
||||||
|
attr_accessor :dimension_filter_groups
|
||||||
|
|
||||||
|
# [Optional] Zero or more dimensions to group results by. Dimensions are the
|
||||||
|
# group-by values in the Search Analytics page. Dimensions are combined to
|
||||||
|
# create a unique row key for each row. Results are grouped in the order that
|
||||||
|
# you supply these dimensions.
|
||||||
|
# Corresponds to the JSON property `dimensions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :dimensions
|
||||||
|
|
||||||
|
# [Required] End date of the requested date range, in YYYY-MM-DD format, in PST (
|
||||||
|
# UTC - 8:00). Must be greater than or equal to the start date. This value is
|
||||||
|
# included in the range.
|
||||||
|
# Corresponds to the JSON property `endDate`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_date
|
||||||
|
|
||||||
|
# [Optional; Default is 1000] The maximum number of rows to return. Must be a
|
||||||
|
# number from 1 to 25,000 (inclusive).
|
||||||
|
# Corresponds to the JSON property `rowLimit`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :row_limit
|
||||||
|
|
||||||
|
# [Optional; Default is \"web\"] The search type to filter for.
|
||||||
|
# Corresponds to the JSON property `searchType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :search_type
|
||||||
|
|
||||||
|
# [Required] Start date of the requested date range, in YYYY-MM-DD format, in
|
||||||
|
# PST time (UTC - 8:00). Must be less than or equal to the end date. This value
|
||||||
|
# is included in the range.
|
||||||
|
# Corresponds to the JSON property `startDate`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_date
|
||||||
|
|
||||||
|
# [Optional; Default is 0] Zero-based index of the first row in the response.
|
||||||
|
# Must be a non-negative number.
|
||||||
|
# Corresponds to the JSON property `startRow`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :start_row
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@aggregation_type = args[:aggregation_type] if args.key?(:aggregation_type)
|
||||||
|
@dimension_filter_groups = args[:dimension_filter_groups] if args.key?(:dimension_filter_groups)
|
||||||
|
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||||
|
@end_date = args[:end_date] if args.key?(:end_date)
|
||||||
|
@row_limit = args[:row_limit] if args.key?(:row_limit)
|
||||||
|
@search_type = args[:search_type] if args.key?(:search_type)
|
||||||
|
@start_date = args[:start_date] if args.key?(:start_date)
|
||||||
|
@start_row = args[:start_row] if args.key?(:start_row)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A list of rows, one per result, grouped by key. Metrics in each row are
|
||||||
|
# aggregated for all data grouped by that key either by page or property, as
|
||||||
|
# specified by the aggregation type parameter.
|
||||||
|
class SearchAnalyticsQueryResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# How the results were aggregated.
|
||||||
|
# Corresponds to the JSON property `responseAggregationType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :response_aggregation_type
|
||||||
|
|
||||||
|
# A list of rows grouped by the key values in the order given in the query.
|
||||||
|
# Corresponds to the JSON property `rows`
|
||||||
|
# @return [Array<Google::Apis::SearchconsoleV1::ApiDataRow>]
|
||||||
|
attr_accessor :rows
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@response_aggregation_type = args[:response_aggregation_type] if args.key?(:response_aggregation_type)
|
||||||
|
@rows = args[:rows] if args.key?(:rows)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# List of sitemaps.
|
||||||
|
class SitemapsListResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Contains detailed information about a specific URL submitted as a [sitemap](
|
||||||
|
# https://support.google.com/webmasters/answer/156184).
|
||||||
|
# Corresponds to the JSON property `sitemap`
|
||||||
|
# @return [Array<Google::Apis::SearchconsoleV1::WmxSitemap>]
|
||||||
|
attr_accessor :sitemap
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@sitemap = args[:sitemap] if args.key?(:sitemap)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# List of sites with access level information.
|
||||||
|
class SitesListResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Contains permission level information about a Search Console site. For more
|
||||||
|
# information, see [Permissions in Search Console](https://support.google.com/
|
||||||
|
# webmasters/answer/2451999).
|
||||||
|
# Corresponds to the JSON property `siteEntry`
|
||||||
|
# @return [Array<Google::Apis::SearchconsoleV1::WmxSite>]
|
||||||
|
attr_accessor :site_entry
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@site_entry = args[:site_entry] if args.key?(:site_entry)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Final state of the test, including error details if necessary.
|
# Final state of the test, including error details if necessary.
|
||||||
class TestStatus
|
class TestStatus
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -200,6 +456,138 @@ module Google
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Contains permission level information about a Search Console site. For more
|
||||||
|
# information, see [Permissions in Search Console](https://support.google.com/
|
||||||
|
# webmasters/answer/2451999).
|
||||||
|
class WmxSite
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The user's permission level for the site.
|
||||||
|
# Corresponds to the JSON property `permissionLevel`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :permission_level
|
||||||
|
|
||||||
|
# The URL of the site.
|
||||||
|
# Corresponds to the JSON property `siteUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :site_url
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@permission_level = args[:permission_level] if args.key?(:permission_level)
|
||||||
|
@site_url = args[:site_url] if args.key?(:site_url)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Contains detailed information about a specific URL submitted as a [sitemap](
|
||||||
|
# https://support.google.com/webmasters/answer/156184).
|
||||||
|
class WmxSitemap
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The various content types in the sitemap.
|
||||||
|
# Corresponds to the JSON property `contents`
|
||||||
|
# @return [Array<Google::Apis::SearchconsoleV1::WmxSitemapContent>]
|
||||||
|
attr_accessor :contents
|
||||||
|
|
||||||
|
# Number of errors in the sitemap. These are issues with the sitemap itself that
|
||||||
|
# need to be fixed before it can be processed correctly.
|
||||||
|
# Corresponds to the JSON property `errors`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :errors
|
||||||
|
|
||||||
|
# If true, the sitemap has not been processed.
|
||||||
|
# Corresponds to the JSON property `isPending`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :is_pending
|
||||||
|
alias_method :is_pending?, :is_pending
|
||||||
|
|
||||||
|
# If true, the sitemap is a collection of sitemaps.
|
||||||
|
# Corresponds to the JSON property `isSitemapsIndex`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :is_sitemaps_index
|
||||||
|
alias_method :is_sitemaps_index?, :is_sitemaps_index
|
||||||
|
|
||||||
|
# Date & time in which this sitemap was last downloaded. Date format is in RFC
|
||||||
|
# 3339 format (yyyy-mm-dd).
|
||||||
|
# Corresponds to the JSON property `lastDownloaded`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :last_downloaded
|
||||||
|
|
||||||
|
# Date & time in which this sitemap was submitted. Date format is in RFC 3339
|
||||||
|
# format (yyyy-mm-dd).
|
||||||
|
# Corresponds to the JSON property `lastSubmitted`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :last_submitted
|
||||||
|
|
||||||
|
# The url of the sitemap.
|
||||||
|
# Corresponds to the JSON property `path`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :path
|
||||||
|
|
||||||
|
# The type of the sitemap. For example: `rssFeed`.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
# Number of warnings for the sitemap. These are generally non-critical issues
|
||||||
|
# with URLs in the sitemaps.
|
||||||
|
# Corresponds to the JSON property `warnings`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :warnings
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@contents = args[:contents] if args.key?(:contents)
|
||||||
|
@errors = args[:errors] if args.key?(:errors)
|
||||||
|
@is_pending = args[:is_pending] if args.key?(:is_pending)
|
||||||
|
@is_sitemaps_index = args[:is_sitemaps_index] if args.key?(:is_sitemaps_index)
|
||||||
|
@last_downloaded = args[:last_downloaded] if args.key?(:last_downloaded)
|
||||||
|
@last_submitted = args[:last_submitted] if args.key?(:last_submitted)
|
||||||
|
@path = args[:path] if args.key?(:path)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@warnings = args[:warnings] if args.key?(:warnings)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Information about the various content types in the sitemap.
|
||||||
|
class WmxSitemapContent
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of URLs from the sitemap that were indexed (of the content type).
|
||||||
|
# Corresponds to the JSON property `indexed`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :indexed
|
||||||
|
|
||||||
|
# The number of URLs in the sitemap (of the content type).
|
||||||
|
# Corresponds to the JSON property `submitted`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :submitted
|
||||||
|
|
||||||
|
# The specific type of content in this sitemap. For example: `web`.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@indexed = args[:indexed] if args.key?(:indexed)
|
||||||
|
@submitted = args[:submitted] if args.key?(:submitted)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,6 +22,24 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module SearchconsoleV1
|
module SearchconsoleV1
|
||||||
|
|
||||||
|
class ApiDataRow
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiDimensionFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiDimensionFilterGroup
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class BlockedResource
|
class BlockedResource
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -58,12 +76,83 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SearchAnalyticsQueryRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SearchAnalyticsQueryResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SitemapsListResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SitesListResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class TestStatus
|
class TestStatus
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class WmxSite
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class WmxSitemap
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class WmxSitemapContent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiDataRow
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :clicks, as: 'clicks'
|
||||||
|
property :ctr, as: 'ctr'
|
||||||
|
property :impressions, as: 'impressions'
|
||||||
|
collection :keys, as: 'keys'
|
||||||
|
property :position, as: 'position'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiDimensionFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dimension, as: 'dimension'
|
||||||
|
property :expression, as: 'expression'
|
||||||
|
property :operator, as: 'operator'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiDimensionFilterGroup
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :filters, as: 'filters', class: Google::Apis::SearchconsoleV1::ApiDimensionFilter, decorator: Google::Apis::SearchconsoleV1::ApiDimensionFilter::Representation
|
||||||
|
|
||||||
|
property :group_type, as: 'groupType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class BlockedResource
|
class BlockedResource
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -117,6 +206,46 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SearchAnalyticsQueryRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :aggregation_type, as: 'aggregationType'
|
||||||
|
collection :dimension_filter_groups, as: 'dimensionFilterGroups', class: Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup, decorator: Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup::Representation
|
||||||
|
|
||||||
|
collection :dimensions, as: 'dimensions'
|
||||||
|
property :end_date, as: 'endDate'
|
||||||
|
property :row_limit, as: 'rowLimit'
|
||||||
|
property :search_type, as: 'searchType'
|
||||||
|
property :start_date, as: 'startDate'
|
||||||
|
property :start_row, as: 'startRow'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SearchAnalyticsQueryResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :response_aggregation_type, as: 'responseAggregationType'
|
||||||
|
collection :rows, as: 'rows', class: Google::Apis::SearchconsoleV1::ApiDataRow, decorator: Google::Apis::SearchconsoleV1::ApiDataRow::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SitemapsListResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :sitemap, as: 'sitemap', class: Google::Apis::SearchconsoleV1::WmxSitemap, decorator: Google::Apis::SearchconsoleV1::WmxSitemap::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SitesListResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :site_entry, as: 'siteEntry', class: Google::Apis::SearchconsoleV1::WmxSite, decorator: Google::Apis::SearchconsoleV1::WmxSite::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class TestStatus
|
class TestStatus
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -124,6 +253,39 @@ module Google
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class WmxSite
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :permission_level, as: 'permissionLevel'
|
||||||
|
property :site_url, as: 'siteUrl'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class WmxSitemap
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :contents, as: 'contents', class: Google::Apis::SearchconsoleV1::WmxSitemapContent, decorator: Google::Apis::SearchconsoleV1::WmxSitemapContent::Representation
|
||||||
|
|
||||||
|
property :errors, :numeric_string => true, as: 'errors'
|
||||||
|
property :is_pending, as: 'isPending'
|
||||||
|
property :is_sitemaps_index, as: 'isSitemapsIndex'
|
||||||
|
property :last_downloaded, as: 'lastDownloaded'
|
||||||
|
property :last_submitted, as: 'lastSubmitted'
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :warnings, :numeric_string => true, as: 'warnings'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class WmxSitemapContent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :indexed, :numeric_string => true, as: 'indexed'
|
||||||
|
property :submitted, :numeric_string => true, as: 'submitted'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,6 +48,293 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Query your data with filters and parameters that you define. Returns zero or
|
||||||
|
# more rows grouped by the row keys that you define. You must define a date
|
||||||
|
# range of one or more days. When date is one of the group by values, any days
|
||||||
|
# without data are omitted from the result list. If you need to know which days
|
||||||
|
# have data, issue a broad date range query grouped by date for any metric, and
|
||||||
|
# see which day rows are returned.
|
||||||
|
# @param [String] site_url
|
||||||
|
# The site's URL, including protocol. For example: `http://www.example.com/`.
|
||||||
|
# @param [Google::Apis::SearchconsoleV1::SearchAnalyticsQueryRequest] search_analytics_query_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::SearchconsoleV1::SearchAnalyticsQueryResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse]
|
||||||
|
#
|
||||||
|
# @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 query_searchanalytic(site_url, search_analytics_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'webmasters/v3/sites/{siteUrl}/searchAnalytics/query', options)
|
||||||
|
command.request_representation = Google::Apis::SearchconsoleV1::SearchAnalyticsQueryRequest::Representation
|
||||||
|
command.request_object = search_analytics_query_request_object
|
||||||
|
command.response_representation = Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse::Representation
|
||||||
|
command.response_class = Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.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 sitemap from this site.
|
||||||
|
# @param [String] site_url
|
||||||
|
# The site's URL, including protocol. For example: `http://www.example.com/`.
|
||||||
|
# @param [String] feedpath
|
||||||
|
# The URL of the actual sitemap. For example: `http://www.example.com/sitemap.
|
||||||
|
# xml`.
|
||||||
|
# @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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @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_sitemap(site_url, feedpath, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', options)
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||||
|
command.params['feedpath'] = feedpath unless feedpath.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves information about a specific sitemap.
|
||||||
|
# @param [String] site_url
|
||||||
|
# The site's URL, including protocol. For example: `http://www.example.com/`.
|
||||||
|
# @param [String] feedpath
|
||||||
|
# The URL of the actual sitemap. For example: `http://www.example.com/sitemap.
|
||||||
|
# xml`.
|
||||||
|
# @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::SearchconsoleV1::WmxSitemap] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SearchconsoleV1::WmxSitemap]
|
||||||
|
#
|
||||||
|
# @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_sitemap(site_url, feedpath, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', options)
|
||||||
|
command.response_representation = Google::Apis::SearchconsoleV1::WmxSitemap::Representation
|
||||||
|
command.response_class = Google::Apis::SearchconsoleV1::WmxSitemap
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||||
|
command.params['feedpath'] = feedpath unless feedpath.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this
|
||||||
|
# site, or included in the sitemap index file (if `sitemapIndex` is specified in
|
||||||
|
# the request).
|
||||||
|
# @param [String] site_url
|
||||||
|
# The site's URL, including protocol. For example: `http://www.example.com/`.
|
||||||
|
# @param [String] sitemap_index
|
||||||
|
# A URL of a site's sitemap index. For example: `http://www.example.com/
|
||||||
|
# sitemapindex.xml`.
|
||||||
|
# @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::SearchconsoleV1::SitemapsListResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SearchconsoleV1::SitemapsListResponse]
|
||||||
|
#
|
||||||
|
# @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_sitemaps(site_url, sitemap_index: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'webmasters/v3/sites/{siteUrl}/sitemaps', options)
|
||||||
|
command.response_representation = Google::Apis::SearchconsoleV1::SitemapsListResponse::Representation
|
||||||
|
command.response_class = Google::Apis::SearchconsoleV1::SitemapsListResponse
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||||
|
command.query['sitemapIndex'] = sitemap_index unless sitemap_index.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Submits a sitemap for a site.
|
||||||
|
# @param [String] site_url
|
||||||
|
# The site's URL, including protocol. For example: `http://www.example.com/`.
|
||||||
|
# @param [String] feedpath
|
||||||
|
# The URL of the actual sitemap. For example: `http://www.example.com/sitemap.
|
||||||
|
# xml`.
|
||||||
|
# @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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @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 submit_sitemap(site_url, feedpath, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', options)
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||||
|
command.params['feedpath'] = feedpath unless feedpath.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Adds a site to the set of the user's sites in Search Console.
|
||||||
|
# @param [String] site_url
|
||||||
|
# The URL of the site to add.
|
||||||
|
# @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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def add_site(site_url, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'webmasters/v3/sites/{siteUrl}', options)
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Removes a site from the set of the user's Search Console sites.
|
||||||
|
# @param [String] site_url
|
||||||
|
# The URI of the property as defined in Search Console. **Examples:** `http://
|
||||||
|
# www.example.com/` or `sc-domain:example.com`.
|
||||||
|
# @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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @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_site(site_url, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'webmasters/v3/sites/{siteUrl}', options)
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves information about specific site.
|
||||||
|
# @param [String] site_url
|
||||||
|
# The URI of the property as defined in Search Console. **Examples:** `http://
|
||||||
|
# www.example.com/` or `sc-domain:example.com`.
|
||||||
|
# @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::SearchconsoleV1::WmxSite] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SearchconsoleV1::WmxSite]
|
||||||
|
#
|
||||||
|
# @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_site(site_url, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'webmasters/v3/sites/{siteUrl}', options)
|
||||||
|
command.response_representation = Google::Apis::SearchconsoleV1::WmxSite::Representation
|
||||||
|
command.response_class = Google::Apis::SearchconsoleV1::WmxSite
|
||||||
|
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists the user's Search Console sites.
|
||||||
|
# @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::SearchconsoleV1::SitesListResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SearchconsoleV1::SitesListResponse]
|
||||||
|
#
|
||||||
|
# @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_sites(fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'webmasters/v3/sites', options)
|
||||||
|
command.response_representation = Google::Apis::SearchconsoleV1::SitesListResponse::Representation
|
||||||
|
command.response_class = Google::Apis::SearchconsoleV1::SitesListResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Runs Mobile-Friendly Test for a given URL.
|
# Runs Mobile-Friendly Test for a given URL.
|
||||||
# @param [Google::Apis::SearchconsoleV1::RunMobileFriendlyTestRequest] run_mobile_friendly_test_request_object
|
# @param [Google::Apis::SearchconsoleV1::RunMobileFriendlyTestRequest] run_mobile_friendly_test_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
||||||
module SecuritycenterV1
|
module SecuritycenterV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200820'
|
REVISION = '20200918'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -601,74 +601,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Security Command Center representation of a Google Cloud resource. The Asset
|
|
||||||
# is a Security Command Center resource that captures information about a single
|
|
||||||
# Google Cloud resource. All modifications to an Asset are only within the
|
|
||||||
# context of Security Command Center and don't affect the referenced Google
|
|
||||||
# Cloud resource.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The time at which the asset was created in Security Command Center.
|
|
||||||
# Corresponds to the JSON property `createTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :create_time
|
|
||||||
|
|
||||||
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
||||||
# described by the Security Command Center asset. This information is managed
|
|
||||||
# and defined by the Google Cloud resource and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `iamPolicy`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
|
|
||||||
attr_accessor :iam_policy
|
|
||||||
|
|
||||||
# The relative resource name of this asset. See: https://cloud.google.com/apis/
|
|
||||||
# design/resource_names#relative_resource_name Example: "organizations/`
|
|
||||||
# organization_id`/assets/`asset_id`".
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Resource managed properties. These properties are managed and defined by the
|
|
||||||
# Google Cloud resource and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `resourceProperties`
|
|
||||||
# @return [Hash<String,Object>]
|
|
||||||
attr_accessor :resource_properties
|
|
||||||
|
|
||||||
# Security Command Center managed properties. These properties are managed by
|
|
||||||
# Security Command Center and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `securityCenterProperties`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
|
|
||||||
attr_accessor :security_center_properties
|
|
||||||
|
|
||||||
# User specified security marks that are attached to the parent Security Command
|
|
||||||
# Center resource. Security marks are scoped within a Security Command Center
|
|
||||||
# organization -- they can be modified and viewed by all users who have proper
|
|
||||||
# permissions on the organization.
|
|
||||||
# Corresponds to the JSON property `securityMarks`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
|
||||||
attr_accessor :security_marks
|
|
||||||
|
|
||||||
# The time at which the asset was last updated, added, or deleted in Cloud SCC.
|
|
||||||
# Corresponds to the JSON property `updateTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :update_time
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
|
||||||
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
|
|
||||||
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
|
|
||||||
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
||||||
@update_time = args[:update_time] if args.key?(:update_time)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Security Command Center finding. A finding is a record of assessment data (
|
# Security Command Center finding. A finding is a record of assessment data (
|
||||||
# security, risk, health or privacy) ingested into Security Command Center for
|
# security, risk, health or privacy) ingested into Security Command Center for
|
||||||
# presentation, notification, analysis, policy testing, and enforcement. For
|
# presentation, notification, analysis, policy testing, and enforcement. For
|
||||||
|
@ -735,7 +667,8 @@ module Google
|
||||||
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
||||||
attr_accessor :security_marks
|
attr_accessor :security_marks
|
||||||
|
|
||||||
# The severity of the finding.
|
# The severity of the finding. This field is managed by the source that writes
|
||||||
|
# the finding.
|
||||||
# Corresponds to the JSON property `severity`
|
# Corresponds to the JSON property `severity`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :severity
|
attr_accessor :severity
|
||||||
|
@ -773,28 +706,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
||||||
# described by the Security Command Center asset. This information is managed
|
|
||||||
# and defined by the Google Cloud resource and cannot be modified by the user.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The JSON representation of the Policy associated with the asset. See https://
|
|
||||||
# cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.
|
|
||||||
# Corresponds to the JSON property `policyBlob`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :policy_blob
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Security Command Center's Notification
|
# Security Command Center's Notification
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -817,12 +728,6 @@ module Google
|
||||||
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource]
|
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource]
|
||||||
attr_accessor :resource
|
attr_accessor :resource
|
||||||
|
|
||||||
# Wrapper over asset object that also captures the state change for the asset e.
|
|
||||||
# g. if it was a newly created asset vs updated or deleted asset.
|
|
||||||
# Corresponds to the JSON property `temporalAsset`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
|
|
||||||
attr_accessor :temporal_asset
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -832,7 +737,6 @@ module Google
|
||||||
@finding = args[:finding] if args.key?(:finding)
|
@finding = args[:finding] if args.key?(:finding)
|
||||||
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
||||||
@resource = args[:resource] if args.key?(:resource)
|
@resource = args[:resource] if args.key?(:resource)
|
||||||
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -905,74 +809,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Security Command Center managed properties. These properties are managed by
|
|
||||||
# Security Command Center and cannot be modified by the user.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The user defined display name for this resource.
|
|
||||||
# Corresponds to the JSON property `resourceDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_display_name
|
|
||||||
|
|
||||||
# The full resource name of the Google Cloud resource this asset represents.
|
|
||||||
# This field is immutable after create time. See: https://cloud.google.com/apis/
|
|
||||||
# design/resource_names#full_resource_name
|
|
||||||
# Corresponds to the JSON property `resourceName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_name
|
|
||||||
|
|
||||||
# Owners of the Google Cloud resource.
|
|
||||||
# Corresponds to the JSON property `resourceOwners`
|
|
||||||
# @return [Array<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
|
|
||||||
# Corresponds to the JSON property `resourceParent`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_parent
|
|
||||||
|
|
||||||
# The user defined display name for the parent of this resource.
|
|
||||||
# Corresponds to the JSON property `resourceParentDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_parent_display_name
|
|
||||||
|
|
||||||
# The full resource name of the project the resource belongs to. See: https://
|
|
||||||
# cloud.google.com/apis/design/resource_names#full_resource_name
|
|
||||||
# Corresponds to the JSON property `resourceProject`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_project
|
|
||||||
|
|
||||||
# The user defined display name for the project of this resource.
|
|
||||||
# Corresponds to the JSON property `resourceProjectDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_project_display_name
|
|
||||||
|
|
||||||
# The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT,
|
|
||||||
# and ORGANIZATION. This is a case insensitive field defined by Security Command
|
|
||||||
# Center and/or the producer of the resource and is immutable after create time.
|
|
||||||
# Corresponds to the JSON property `resourceType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
|
|
||||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
||||||
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
|
|
||||||
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
|
|
||||||
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
|
|
||||||
@resource_project = args[:resource_project] if args.key?(:resource_project)
|
|
||||||
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
|
|
||||||
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# User specified security marks that are attached to the parent Security Command
|
# User specified security marks that are attached to the parent Security Command
|
||||||
# Center resource. Security marks are scoped within a Security Command Center
|
# Center resource. Security marks are scoped within a Security Command Center
|
||||||
# organization -- they can be modified and viewed by all users who have proper
|
# organization -- they can be modified and viewed by all users who have proper
|
||||||
|
@ -1008,36 +844,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wrapper over asset object that also captures the state change for the asset e.
|
|
||||||
# g. if it was a newly created asset vs updated or deleted asset.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Security Command Center representation of a Google Cloud resource. The Asset
|
|
||||||
# is a Security Command Center resource that captures information about a single
|
|
||||||
# Google Cloud resource. All modifications to an Asset are only within the
|
|
||||||
# context of Security Command Center and don't affect the referenced Google
|
|
||||||
# Cloud resource.
|
|
||||||
# Corresponds to the JSON property `asset`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Asset]
|
|
||||||
attr_accessor :asset
|
|
||||||
|
|
||||||
# Represents if the asset was created/updated/deleted.
|
|
||||||
# Corresponds to the JSON property `changeType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :change_type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@asset = args[:asset] if args.key?(:asset)
|
|
||||||
@change_type = args[:change_type] if args.key?(:change_type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Request message for grouping by assets.
|
# Request message for grouping by assets.
|
||||||
class GroupAssetsRequest
|
class GroupAssetsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1609,14 +1415,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# The PubSub topic to send notifications to. Its format is "projects/[project_id]
|
# The Pub/Sub topic to send notifications to. Its format is "projects/[
|
||||||
# /topics/[topic]".
|
# project_id]/topics/[topic]".
|
||||||
# Corresponds to the JSON property `pubsubTopic`
|
# Corresponds to the JSON property `pubsubTopic`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :pubsub_topic
|
attr_accessor :pubsub_topic
|
||||||
|
|
||||||
# Output only. The service account that needs "pubsub.topics.publish" permission
|
# Output only. The service account that needs "pubsub.topics.publish" permission
|
||||||
# to publish to the PubSub topic.
|
# to publish to the Pub/Sub topic.
|
||||||
# Corresponds to the JSON property `serviceAccount`
|
# Corresponds to the JSON property `serviceAccount`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :service_account
|
attr_accessor :service_account
|
||||||
|
|
|
@ -106,24 +106,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Finding
|
class GoogleCloudSecuritycenterV1p1beta1Finding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -142,24 +130,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GroupAssetsRequest
|
class GroupAssetsRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -465,22 +441,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
hash :resource_properties, as: 'resourceProperties'
|
|
||||||
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
|
|
||||||
|
|
||||||
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
|
|
||||||
|
|
||||||
property :update_time, as: 'updateTime'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Finding
|
class GoogleCloudSecuritycenterV1p1beta1Finding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -499,13 +459,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :policy_blob, as: 'policyBlob'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -514,8 +467,6 @@ module Google
|
||||||
property :notification_config_name, as: 'notificationConfigName'
|
property :notification_config_name, as: 'notificationConfigName'
|
||||||
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
||||||
|
|
||||||
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -538,20 +489,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :resource_display_name, as: 'resourceDisplayName'
|
|
||||||
property :resource_name, as: 'resourceName'
|
|
||||||
collection :resource_owners, as: 'resourceOwners'
|
|
||||||
property :resource_parent, as: 'resourceParent'
|
|
||||||
property :resource_parent_display_name, as: 'resourceParentDisplayName'
|
|
||||||
property :resource_project, as: 'resourceProject'
|
|
||||||
property :resource_project_display_name, as: 'resourceProjectDisplayName'
|
|
||||||
property :resource_type, as: 'resourceType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -560,15 +497,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
|
|
||||||
|
|
||||||
property :change_type, as: 'changeType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GroupAssetsRequest
|
class GroupAssetsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
||||||
module SecuritycenterV1beta1
|
module SecuritycenterV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200820'
|
REVISION = '20200918'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -739,74 +739,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Security Command Center representation of a Google Cloud resource. The Asset
|
|
||||||
# is a Security Command Center resource that captures information about a single
|
|
||||||
# Google Cloud resource. All modifications to an Asset are only within the
|
|
||||||
# context of Security Command Center and don't affect the referenced Google
|
|
||||||
# Cloud resource.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The time at which the asset was created in Security Command Center.
|
|
||||||
# Corresponds to the JSON property `createTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :create_time
|
|
||||||
|
|
||||||
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
||||||
# described by the Security Command Center asset. This information is managed
|
|
||||||
# and defined by the Google Cloud resource and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `iamPolicy`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
|
|
||||||
attr_accessor :iam_policy
|
|
||||||
|
|
||||||
# The relative resource name of this asset. See: https://cloud.google.com/apis/
|
|
||||||
# design/resource_names#relative_resource_name Example: "organizations/`
|
|
||||||
# organization_id`/assets/`asset_id`".
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Resource managed properties. These properties are managed and defined by the
|
|
||||||
# Google Cloud resource and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `resourceProperties`
|
|
||||||
# @return [Hash<String,Object>]
|
|
||||||
attr_accessor :resource_properties
|
|
||||||
|
|
||||||
# Security Command Center managed properties. These properties are managed by
|
|
||||||
# Security Command Center and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `securityCenterProperties`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
|
|
||||||
attr_accessor :security_center_properties
|
|
||||||
|
|
||||||
# User specified security marks that are attached to the parent Security Command
|
|
||||||
# Center resource. Security marks are scoped within a Security Command Center
|
|
||||||
# organization -- they can be modified and viewed by all users who have proper
|
|
||||||
# permissions on the organization.
|
|
||||||
# Corresponds to the JSON property `securityMarks`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
|
||||||
attr_accessor :security_marks
|
|
||||||
|
|
||||||
# The time at which the asset was last updated, added, or deleted in Cloud SCC.
|
|
||||||
# Corresponds to the JSON property `updateTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :update_time
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
|
||||||
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
|
|
||||||
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
|
|
||||||
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
||||||
@update_time = args[:update_time] if args.key?(:update_time)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Security Command Center finding. A finding is a record of assessment data (
|
# Security Command Center finding. A finding is a record of assessment data (
|
||||||
# security, risk, health or privacy) ingested into Security Command Center for
|
# security, risk, health or privacy) ingested into Security Command Center for
|
||||||
# presentation, notification, analysis, policy testing, and enforcement. For
|
# presentation, notification, analysis, policy testing, and enforcement. For
|
||||||
|
@ -873,7 +805,8 @@ module Google
|
||||||
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
||||||
attr_accessor :security_marks
|
attr_accessor :security_marks
|
||||||
|
|
||||||
# The severity of the finding.
|
# The severity of the finding. This field is managed by the source that writes
|
||||||
|
# the finding.
|
||||||
# Corresponds to the JSON property `severity`
|
# Corresponds to the JSON property `severity`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :severity
|
attr_accessor :severity
|
||||||
|
@ -911,28 +844,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
||||||
# described by the Security Command Center asset. This information is managed
|
|
||||||
# and defined by the Google Cloud resource and cannot be modified by the user.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The JSON representation of the Policy associated with the asset. See https://
|
|
||||||
# cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.
|
|
||||||
# Corresponds to the JSON property `policyBlob`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :policy_blob
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Security Command Center's Notification
|
# Security Command Center's Notification
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -955,12 +866,6 @@ module Google
|
||||||
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource]
|
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource]
|
||||||
attr_accessor :resource
|
attr_accessor :resource
|
||||||
|
|
||||||
# Wrapper over asset object that also captures the state change for the asset e.
|
|
||||||
# g. if it was a newly created asset vs updated or deleted asset.
|
|
||||||
# Corresponds to the JSON property `temporalAsset`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
|
|
||||||
attr_accessor :temporal_asset
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -970,7 +875,6 @@ module Google
|
||||||
@finding = args[:finding] if args.key?(:finding)
|
@finding = args[:finding] if args.key?(:finding)
|
||||||
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
||||||
@resource = args[:resource] if args.key?(:resource)
|
@resource = args[:resource] if args.key?(:resource)
|
||||||
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1043,74 +947,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Security Command Center managed properties. These properties are managed by
|
|
||||||
# Security Command Center and cannot be modified by the user.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The user defined display name for this resource.
|
|
||||||
# Corresponds to the JSON property `resourceDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_display_name
|
|
||||||
|
|
||||||
# The full resource name of the Google Cloud resource this asset represents.
|
|
||||||
# This field is immutable after create time. See: https://cloud.google.com/apis/
|
|
||||||
# design/resource_names#full_resource_name
|
|
||||||
# Corresponds to the JSON property `resourceName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_name
|
|
||||||
|
|
||||||
# Owners of the Google Cloud resource.
|
|
||||||
# Corresponds to the JSON property `resourceOwners`
|
|
||||||
# @return [Array<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
|
|
||||||
# Corresponds to the JSON property `resourceParent`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_parent
|
|
||||||
|
|
||||||
# The user defined display name for the parent of this resource.
|
|
||||||
# Corresponds to the JSON property `resourceParentDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_parent_display_name
|
|
||||||
|
|
||||||
# The full resource name of the project the resource belongs to. See: https://
|
|
||||||
# cloud.google.com/apis/design/resource_names#full_resource_name
|
|
||||||
# Corresponds to the JSON property `resourceProject`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_project
|
|
||||||
|
|
||||||
# The user defined display name for the project of this resource.
|
|
||||||
# Corresponds to the JSON property `resourceProjectDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_project_display_name
|
|
||||||
|
|
||||||
# The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT,
|
|
||||||
# and ORGANIZATION. This is a case insensitive field defined by Security Command
|
|
||||||
# Center and/or the producer of the resource and is immutable after create time.
|
|
||||||
# Corresponds to the JSON property `resourceType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
|
|
||||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
||||||
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
|
|
||||||
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
|
|
||||||
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
|
|
||||||
@resource_project = args[:resource_project] if args.key?(:resource_project)
|
|
||||||
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
|
|
||||||
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# User specified security marks that are attached to the parent Security Command
|
# User specified security marks that are attached to the parent Security Command
|
||||||
# Center resource. Security marks are scoped within a Security Command Center
|
# Center resource. Security marks are scoped within a Security Command Center
|
||||||
# organization -- they can be modified and viewed by all users who have proper
|
# organization -- they can be modified and viewed by all users who have proper
|
||||||
|
@ -1146,36 +982,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wrapper over asset object that also captures the state change for the asset e.
|
|
||||||
# g. if it was a newly created asset vs updated or deleted asset.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Security Command Center representation of a Google Cloud resource. The Asset
|
|
||||||
# is a Security Command Center resource that captures information about a single
|
|
||||||
# Google Cloud resource. All modifications to an Asset are only within the
|
|
||||||
# context of Security Command Center and don't affect the referenced Google
|
|
||||||
# Cloud resource.
|
|
||||||
# Corresponds to the JSON property `asset`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Asset]
|
|
||||||
attr_accessor :asset
|
|
||||||
|
|
||||||
# Represents if the asset was created/updated/deleted.
|
|
||||||
# Corresponds to the JSON property `changeType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :change_type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@asset = args[:asset] if args.key?(:asset)
|
|
||||||
@change_type = args[:change_type] if args.key?(:change_type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Request message for grouping by assets.
|
# Request message for grouping by assets.
|
||||||
class GroupAssetsRequest
|
class GroupAssetsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -124,24 +124,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Finding
|
class GoogleCloudSecuritycenterV1p1beta1Finding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -160,24 +148,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GroupAssetsRequest
|
class GroupAssetsRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -476,22 +452,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
hash :resource_properties, as: 'resourceProperties'
|
|
||||||
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
|
|
||||||
|
|
||||||
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
|
|
||||||
|
|
||||||
property :update_time, as: 'updateTime'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Finding
|
class GoogleCloudSecuritycenterV1p1beta1Finding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -510,13 +470,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :policy_blob, as: 'policyBlob'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -525,8 +478,6 @@ module Google
|
||||||
property :notification_config_name, as: 'notificationConfigName'
|
property :notification_config_name, as: 'notificationConfigName'
|
||||||
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
||||||
|
|
||||||
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -549,20 +500,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :resource_display_name, as: 'resourceDisplayName'
|
|
||||||
property :resource_name, as: 'resourceName'
|
|
||||||
collection :resource_owners, as: 'resourceOwners'
|
|
||||||
property :resource_parent, as: 'resourceParent'
|
|
||||||
property :resource_parent_display_name, as: 'resourceParentDisplayName'
|
|
||||||
property :resource_project, as: 'resourceProject'
|
|
||||||
property :resource_project_display_name, as: 'resourceProjectDisplayName'
|
|
||||||
property :resource_type, as: 'resourceType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -571,15 +508,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
|
|
||||||
|
|
||||||
property :change_type, as: 'changeType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GroupAssetsRequest
|
class GroupAssetsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
||||||
module SecuritycenterV1beta2
|
module SecuritycenterV1beta2
|
||||||
VERSION = 'V1beta2'
|
VERSION = 'V1beta2'
|
||||||
REVISION = '20200820'
|
REVISION = '20200918'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -401,74 +401,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Security Command Center representation of a Google Cloud resource. The Asset
|
|
||||||
# is a Security Command Center resource that captures information about a single
|
|
||||||
# Google Cloud resource. All modifications to an Asset are only within the
|
|
||||||
# context of Security Command Center and don't affect the referenced Google
|
|
||||||
# Cloud resource.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The time at which the asset was created in Security Command Center.
|
|
||||||
# Corresponds to the JSON property `createTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :create_time
|
|
||||||
|
|
||||||
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
||||||
# described by the Security Command Center asset. This information is managed
|
|
||||||
# and defined by the Google Cloud resource and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `iamPolicy`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
|
|
||||||
attr_accessor :iam_policy
|
|
||||||
|
|
||||||
# The relative resource name of this asset. See: https://cloud.google.com/apis/
|
|
||||||
# design/resource_names#relative_resource_name Example: "organizations/`
|
|
||||||
# organization_id`/assets/`asset_id`".
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Resource managed properties. These properties are managed and defined by the
|
|
||||||
# Google Cloud resource and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `resourceProperties`
|
|
||||||
# @return [Hash<String,Object>]
|
|
||||||
attr_accessor :resource_properties
|
|
||||||
|
|
||||||
# Security Command Center managed properties. These properties are managed by
|
|
||||||
# Security Command Center and cannot be modified by the user.
|
|
||||||
# Corresponds to the JSON property `securityCenterProperties`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
|
|
||||||
attr_accessor :security_center_properties
|
|
||||||
|
|
||||||
# User specified security marks that are attached to the parent Security Command
|
|
||||||
# Center resource. Security marks are scoped within a Security Command Center
|
|
||||||
# organization -- they can be modified and viewed by all users who have proper
|
|
||||||
# permissions on the organization.
|
|
||||||
# Corresponds to the JSON property `securityMarks`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
|
||||||
attr_accessor :security_marks
|
|
||||||
|
|
||||||
# The time at which the asset was last updated, added, or deleted in Cloud SCC.
|
|
||||||
# Corresponds to the JSON property `updateTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :update_time
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
|
||||||
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
|
|
||||||
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
|
|
||||||
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
||||||
@update_time = args[:update_time] if args.key?(:update_time)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Security Command Center finding. A finding is a record of assessment data (
|
# Security Command Center finding. A finding is a record of assessment data (
|
||||||
# security, risk, health or privacy) ingested into Security Command Center for
|
# security, risk, health or privacy) ingested into Security Command Center for
|
||||||
# presentation, notification, analysis, policy testing, and enforcement. For
|
# presentation, notification, analysis, policy testing, and enforcement. For
|
||||||
|
@ -535,7 +467,8 @@ module Google
|
||||||
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
|
||||||
attr_accessor :security_marks
|
attr_accessor :security_marks
|
||||||
|
|
||||||
# The severity of the finding.
|
# The severity of the finding. This field is managed by the source that writes
|
||||||
|
# the finding.
|
||||||
# Corresponds to the JSON property `severity`
|
# Corresponds to the JSON property `severity`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :severity
|
attr_accessor :severity
|
||||||
|
@ -573,28 +506,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cloud IAM Policy information associated with the Google Cloud resource
|
|
||||||
# described by the Security Command Center asset. This information is managed
|
|
||||||
# and defined by the Google Cloud resource and cannot be modified by the user.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The JSON representation of the Policy associated with the asset. See https://
|
|
||||||
# cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.
|
|
||||||
# Corresponds to the JSON property `policyBlob`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :policy_blob
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Security Command Center's Notification
|
# Security Command Center's Notification
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -617,12 +528,6 @@ module Google
|
||||||
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource]
|
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource]
|
||||||
attr_accessor :resource
|
attr_accessor :resource
|
||||||
|
|
||||||
# Wrapper over asset object that also captures the state change for the asset e.
|
|
||||||
# g. if it was a newly created asset vs updated or deleted asset.
|
|
||||||
# Corresponds to the JSON property `temporalAsset`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
|
|
||||||
attr_accessor :temporal_asset
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -632,7 +537,6 @@ module Google
|
||||||
@finding = args[:finding] if args.key?(:finding)
|
@finding = args[:finding] if args.key?(:finding)
|
||||||
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
||||||
@resource = args[:resource] if args.key?(:resource)
|
@resource = args[:resource] if args.key?(:resource)
|
||||||
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -705,74 +609,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Security Command Center managed properties. These properties are managed by
|
|
||||||
# Security Command Center and cannot be modified by the user.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The user defined display name for this resource.
|
|
||||||
# Corresponds to the JSON property `resourceDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_display_name
|
|
||||||
|
|
||||||
# The full resource name of the Google Cloud resource this asset represents.
|
|
||||||
# This field is immutable after create time. See: https://cloud.google.com/apis/
|
|
||||||
# design/resource_names#full_resource_name
|
|
||||||
# Corresponds to the JSON property `resourceName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_name
|
|
||||||
|
|
||||||
# Owners of the Google Cloud resource.
|
|
||||||
# Corresponds to the JSON property `resourceOwners`
|
|
||||||
# @return [Array<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
|
|
||||||
# Corresponds to the JSON property `resourceParent`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_parent
|
|
||||||
|
|
||||||
# The user defined display name for the parent of this resource.
|
|
||||||
# Corresponds to the JSON property `resourceParentDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_parent_display_name
|
|
||||||
|
|
||||||
# The full resource name of the project the resource belongs to. See: https://
|
|
||||||
# cloud.google.com/apis/design/resource_names#full_resource_name
|
|
||||||
# Corresponds to the JSON property `resourceProject`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_project
|
|
||||||
|
|
||||||
# The user defined display name for the project of this resource.
|
|
||||||
# Corresponds to the JSON property `resourceProjectDisplayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_project_display_name
|
|
||||||
|
|
||||||
# The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT,
|
|
||||||
# and ORGANIZATION. This is a case insensitive field defined by Security Command
|
|
||||||
# Center and/or the producer of the resource and is immutable after create time.
|
|
||||||
# Corresponds to the JSON property `resourceType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :resource_type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
|
|
||||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
||||||
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
|
|
||||||
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
|
|
||||||
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
|
|
||||||
@resource_project = args[:resource_project] if args.key?(:resource_project)
|
|
||||||
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
|
|
||||||
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# User specified security marks that are attached to the parent Security Command
|
# User specified security marks that are attached to the parent Security Command
|
||||||
# Center resource. Security marks are scoped within a Security Command Center
|
# Center resource. Security marks are scoped within a Security Command Center
|
||||||
# organization -- they can be modified and viewed by all users who have proper
|
# organization -- they can be modified and viewed by all users who have proper
|
||||||
|
@ -808,36 +644,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wrapper over asset object that also captures the state change for the asset e.
|
|
||||||
# g. if it was a newly created asset vs updated or deleted asset.
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Security Command Center representation of a Google Cloud resource. The Asset
|
|
||||||
# is a Security Command Center resource that captures information about a single
|
|
||||||
# Google Cloud resource. All modifications to an Asset are only within the
|
|
||||||
# context of Security Command Center and don't affect the referenced Google
|
|
||||||
# Cloud resource.
|
|
||||||
# Corresponds to the JSON property `asset`
|
|
||||||
# @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset]
|
|
||||||
attr_accessor :asset
|
|
||||||
|
|
||||||
# Represents if the asset was created/updated/deleted.
|
|
||||||
# Corresponds to the JSON property `changeType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :change_type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@asset = args[:asset] if args.key?(:asset)
|
|
||||||
@change_type = args[:change_type] if args.key?(:change_type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Resource capturing the settings for Security Center.
|
# Resource capturing the settings for Security Center.
|
||||||
class SecurityCenterSettings
|
class SecurityCenterSettings
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -76,24 +76,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Finding
|
class GoogleCloudSecuritycenterV1p1beta1Finding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -112,24 +100,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SecurityCenterSettings
|
class SecurityCenterSettings
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -255,22 +231,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Asset
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
hash :resource_properties, as: 'resourceProperties'
|
|
||||||
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
|
|
||||||
|
|
||||||
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
|
|
||||||
|
|
||||||
property :update_time, as: 'updateTime'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1Finding
|
class GoogleCloudSecuritycenterV1p1beta1Finding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -289,13 +249,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :policy_blob, as: 'policyBlob'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -304,8 +257,6 @@ module Google
|
||||||
property :notification_config_name, as: 'notificationConfigName'
|
property :notification_config_name, as: 'notificationConfigName'
|
||||||
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
||||||
|
|
||||||
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -328,20 +279,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :resource_display_name, as: 'resourceDisplayName'
|
|
||||||
property :resource_name, as: 'resourceName'
|
|
||||||
collection :resource_owners, as: 'resourceOwners'
|
|
||||||
property :resource_parent, as: 'resourceParent'
|
|
||||||
property :resource_parent_display_name, as: 'resourceParentDisplayName'
|
|
||||||
property :resource_project, as: 'resourceProject'
|
|
||||||
property :resource_project_display_name, as: 'resourceProjectDisplayName'
|
|
||||||
property :resource_type, as: 'resourceType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -350,15 +287,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
|
|
||||||
|
|
||||||
property :change_type, as: 'changeType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SecurityCenterSettings
|
class SecurityCenterSettings
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-management/
|
# @see https://cloud.google.com/service-management/
|
||||||
module ServicemanagementV1
|
module ServicemanagementV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200824'
|
REVISION = '20200918'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1019,28 +1019,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Request message for DisableService method.
|
|
||||||
class DisableServiceRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Required. The identity of consumer resource which service disablement will be
|
|
||||||
# applied to. The Google Service Management implementation accepts the following
|
|
||||||
# forms: - "project:" Note: this is made compatible with google.api.
|
|
||||||
# servicecontrol.v1.Operation.consumer_id.
|
|
||||||
# Corresponds to the JSON property `consumerId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :consumer_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Operation payload for DisableService method.
|
# Operation payload for DisableService method.
|
||||||
class DisableServiceResponse
|
class DisableServiceResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -178,12 +178,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class DisableServiceRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DisableServiceResponse
|
class DisableServiceResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -812,13 +806,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DisableServiceRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :consumer_id, as: 'consumerId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DisableServiceResponse
|
class DisableServiceResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -198,42 +198,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Disables a service for a project, so it can no longer be be used for the
|
|
||||||
# project. It prevents accidental usage that may cause unexpected billing
|
|
||||||
# charges or security leaks. Operation
|
|
||||||
# @param [String] service_name
|
|
||||||
# Required. Name of the service to disable. Specifying an unknown service name
|
|
||||||
# will cause the request to fail.
|
|
||||||
# @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_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::ServicemanagementV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ServicemanagementV1::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 disable_service(service_name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
|
|
||||||
command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
|
|
||||||
command.request_object = disable_service_request_object
|
|
||||||
command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::ServicemanagementV1::Operation
|
|
||||||
command.params['serviceName'] = service_name unless service_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
|
|
||||||
|
|
||||||
# Enables a service for a project, so it can be used for the project. See [Cloud
|
# Enables a service for a project, so it can be used for the project. See [Cloud
|
||||||
# Auth Guide](https://cloud.google.com/docs/authentication) for more information.
|
# Auth Guide](https://cloud.google.com/docs/authentication) for more information.
|
||||||
# Operation
|
# Operation
|
||||||
|
|
Loading…
Reference in New Issue