Autogenerated update (2020-08-26)

Delete:
- memcache_v1
- securitycenter_v1p1alpha1
- securitycenter_v1p1beta1
- tagmanager_v1
- tagmanager_v2

Update:
- alertcenter_v1beta1
- billingbudgets_v1beta1
- cloudsearch_v1
- dfareporting_v3_3
- dfareporting_v3_4
- firebase_v1beta1
- firestore_v1
- firestore_v1beta1
- fitness_v1
- gmail_v1
- healthcare_v1
- healthcare_v1beta1
- iam_v1
- safebrowsing_v4
- sasportal_v1alpha1
- servicemanagement_v1
- testing_v1
- youtube_partner_v1
This commit is contained in:
Google APIs 2020-08-26 00:38:28 +00:00
parent 8b8f32d9ca
commit f06309c6ba
59 changed files with 4001 additions and 22492 deletions

View File

@ -23772,6 +23772,10 @@
"/cloudsearch:v1/ListItemsResponse/items": items
"/cloudsearch:v1/ListItemsResponse/items/item": item
"/cloudsearch:v1/ListItemsResponse/nextPageToken": next_page_token
"/cloudsearch:v1/ListOperationsResponse": list_operations_response
"/cloudsearch:v1/ListOperationsResponse/nextPageToken": next_page_token
"/cloudsearch:v1/ListOperationsResponse/operations": operations
"/cloudsearch:v1/ListOperationsResponse/operations/operation": operation
"/cloudsearch:v1/ListQuerySourcesResponse": list_query_sources_response
"/cloudsearch:v1/ListQuerySourcesResponse/nextPageToken": next_page_token
"/cloudsearch:v1/ListQuerySourcesResponse/sources": sources
@ -24221,6 +24225,11 @@
"/cloudsearch:v1/cloudsearch.media.upload/resourceName": resource_name
"/cloudsearch:v1/cloudsearch.operations.get": get_operation
"/cloudsearch:v1/cloudsearch.operations.get/name": name
"/cloudsearch:v1/cloudsearch.operations.lro.list": list_operation_lros
"/cloudsearch:v1/cloudsearch.operations.lro.list/filter": filter
"/cloudsearch:v1/cloudsearch.operations.lro.list/name": name
"/cloudsearch:v1/cloudsearch.operations.lro.list/pageSize": page_size
"/cloudsearch:v1/cloudsearch.operations.lro.list/pageToken": page_token
"/cloudsearch:v1/cloudsearch.query.search": search_query
"/cloudsearch:v1/cloudsearch.query.sources.list": list_query_sources
"/cloudsearch:v1/cloudsearch.query.sources.list/pageToken": page_token
@ -79133,6 +79142,7 @@
"/dfareporting:v3.4/Conversion/childDirectedTreatment": child_directed_treatment
"/dfareporting:v3.4/Conversion/customVariables": custom_variables
"/dfareporting:v3.4/Conversion/customVariables/custom_variable": custom_variable
"/dfareporting:v3.4/Conversion/dclid": dclid
"/dfareporting:v3.4/Conversion/encryptedUserId": encrypted_user_id
"/dfareporting:v3.4/Conversion/encryptedUserIdCandidates": encrypted_user_id_candidates
"/dfareporting:v3.4/Conversion/encryptedUserIdCandidates/encrypted_user_id_candidate": encrypted_user_id_candidate
@ -102673,6 +102683,7 @@
"/healthcare:v1beta1/EvaluateAnnotationStoreRequest/goldenInfoTypeMapping/golden_info_type_mapping": golden_info_type_mapping
"/healthcare:v1beta1/EvaluateAnnotationStoreRequest/goldenStore": golden_store
"/healthcare:v1beta1/EvaluateAnnotationStoreRequest/infoTypeConfig": info_type_config
"/healthcare:v1beta1/EvaluateAnnotationStoreRequest/name": name
"/healthcare:v1beta1/EvaluateAnnotationStoreResponse": evaluate_annotation_store_response
"/healthcare:v1beta1/EvaluateAnnotationStoreResponse/evalStore": eval_store
"/healthcare:v1beta1/EvaluateAnnotationStoreResponse/goldenCount": golden_count
@ -102685,6 +102696,7 @@
"/healthcare:v1beta1/ExportAnnotationsRequest": export_annotations_request
"/healthcare:v1beta1/ExportAnnotationsRequest/bigqueryDestination": bigquery_destination
"/healthcare:v1beta1/ExportAnnotationsRequest/gcsDestination": gcs_destination
"/healthcare:v1beta1/ExportAnnotationsRequest/name": name
"/healthcare:v1beta1/ExportAnnotationsResponse": export_annotations_response
"/healthcare:v1beta1/ExportAnnotationsResponse/annotationStore": annotation_store
"/healthcare:v1beta1/ExportAnnotationsResponse/successCount": success_count
@ -102828,6 +102840,7 @@
"/healthcare:v1beta1/ImportAnnotationsErrorDetails/successCount": success_count
"/healthcare:v1beta1/ImportAnnotationsRequest": import_annotations_request
"/healthcare:v1beta1/ImportAnnotationsRequest/gcsSource": gcs_source
"/healthcare:v1beta1/ImportAnnotationsRequest/name": name
"/healthcare:v1beta1/ImportAnnotationsResponse": import_annotations_response
"/healthcare:v1beta1/ImportAnnotationsResponse/annotationStore": annotation_store
"/healthcare:v1beta1/ImportAnnotationsResponse/successCount": success_count
@ -102981,6 +102994,7 @@
"/healthcare:v1beta1/SchemaPackage/schematizedParsingType": schematized_parsing_type
"/healthcare:v1beta1/SchemaPackage/types": types
"/healthcare:v1beta1/SchemaPackage/types/type": type
"/healthcare:v1beta1/SchemaPackage/unexpectedSegmentHandling": unexpected_segment_handling
"/healthcare:v1beta1/SchemaSegment": schema_segment
"/healthcare:v1beta1/SchemaSegment/maxOccurs": max_occurs
"/healthcare:v1beta1/SchemaSegment/minOccurs": min_occurs
@ -106313,6 +106327,83 @@
"/lifesciences:v2beta/lifesciences.projects.locations.pipelines.run": run_pipeline
"/lifesciences:v2beta/lifesciences.projects.locations.pipelines.run/parent": parent
"/lifesciences:v2beta/quotaUser": quota_user
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport": google_ads_homeservices_localservices_v1_account_report
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/accountId": account_id
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/averageFiveStarRating": average_five_star_rating
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/averageWeeklyBudget": average_weekly_budget
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/businessName": business_name
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/currencyCode": currency_code
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/currentPeriodChargedLeads": current_period_charged_leads
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/currentPeriodConnectedPhoneCalls": current_period_connected_phone_calls
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/currentPeriodPhoneCalls": current_period_phone_calls
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/currentPeriodTotalCost": current_period_total_cost
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/phoneLeadResponsiveness": phone_lead_responsiveness
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/previousPeriodChargedLeads": previous_period_charged_leads
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/previousPeriodConnectedPhoneCalls": previous_period_connected_phone_calls
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/previousPeriodPhoneCalls": previous_period_phone_calls
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/previousPeriodTotalCost": previous_period_total_cost
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AccountReport/totalReview": total_review
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AggregatorInfo": google_ads_homeservices_localservices_v1_aggregator_info
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1AggregatorInfo/aggregatorProviderId": aggregator_provider_id
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport": google_ads_homeservices_localservices_v1_detailed_lead_report
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/accountId": account_id
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/aggregatorInfo": aggregator_info
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/businessName": business_name
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/chargeStatus": charge_status
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/currencyCode": currency_code
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/disputeStatus": dispute_status
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/geo": geo
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/leadCategory": lead_category
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/leadCreationTimestamp": lead_creation_timestamp
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/leadId": lead_id
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/leadPrice": lead_price
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/leadType": lead_type
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/messageLead": message_lead
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/phoneLead": phone_lead
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport/timezone": timezone
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1MessageLead": google_ads_homeservices_localservices_v1_message_lead
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1MessageLead/consumerPhoneNumber": consumer_phone_number
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1MessageLead/customerName": customer_name
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1MessageLead/jobType": job_type
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1MessageLead/postalCode": postal_code
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1PhoneLead": google_ads_homeservices_localservices_v1_phone_lead
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1PhoneLead/chargedCallTimestamp": charged_call_timestamp
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1PhoneLead/chargedConnectedCallDurationSeconds": charged_connected_call_duration_seconds
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1PhoneLead/consumerPhoneNumber": consumer_phone_number
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse": google_ads_homeservices_localservices_v1_search_account_reports_response
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse/accountReports": account_reports
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse/accountReports/account_report": account_report
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse/nextPageToken": next_page_token
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse": google_ads_homeservices_localservices_v1_search_detailed_lead_reports_response
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse/detailedLeadReports": detailed_lead_reports
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse/detailedLeadReports/detailed_lead_report": detailed_lead_report
"/localservices:v1/GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse/nextPageToken": next_page_token
"/localservices:v1/GoogleTypeTimeZone": google_type_time_zone
"/localservices:v1/GoogleTypeTimeZone/id": id
"/localservices:v1/GoogleTypeTimeZone/version": version
"/localservices:v1/fields": fields
"/localservices:v1/key": key
"/localservices:v1/localservices.accountReports.search": search_account_reports
"/localservices:v1/localservices.accountReports.search/endDate.day": end_date_day
"/localservices:v1/localservices.accountReports.search/endDate.month": end_date_month
"/localservices:v1/localservices.accountReports.search/endDate.year": end_date_year
"/localservices:v1/localservices.accountReports.search/pageSize": page_size
"/localservices:v1/localservices.accountReports.search/pageToken": page_token
"/localservices:v1/localservices.accountReports.search/query": query
"/localservices:v1/localservices.accountReports.search/startDate.day": start_date_day
"/localservices:v1/localservices.accountReports.search/startDate.month": start_date_month
"/localservices:v1/localservices.accountReports.search/startDate.year": start_date_year
"/localservices:v1/localservices.detailedLeadReports.search": search_detailed_lead_reports
"/localservices:v1/localservices.detailedLeadReports.search/endDate.day": end_date_day
"/localservices:v1/localservices.detailedLeadReports.search/endDate.month": end_date_month
"/localservices:v1/localservices.detailedLeadReports.search/endDate.year": end_date_year
"/localservices:v1/localservices.detailedLeadReports.search/pageSize": page_size
"/localservices:v1/localservices.detailedLeadReports.search/pageToken": page_token
"/localservices:v1/localservices.detailedLeadReports.search/query": query
"/localservices:v1/localservices.detailedLeadReports.search/startDate.day": start_date_day
"/localservices:v1/localservices.detailedLeadReports.search/startDate.month": start_date_month
"/localservices:v1/localservices.detailedLeadReports.search/startDate.year": start_date_year
"/localservices:v1/quotaUser": quota_user
"/logging:v1beta3/logging.projects.logServices.indexes.list": list_log_service_indexes
"/logging:v1beta3/logging.projects.logServices.list": list_log_services
"/logging:v1beta3/logging.projects.logServices.sinks.create": create_log_service_sink
@ -136827,6 +136918,8 @@
"/testing:v1/IosTestLoop/scenarios": scenarios
"/testing:v1/IosTestLoop/scenarios/scenario": scenario
"/testing:v1/IosTestSetup": ios_test_setup
"/testing:v1/IosTestSetup/additionalIpas": additional_ipas
"/testing:v1/IosTestSetup/additionalIpas/additional_ipa": additional_ipa
"/testing:v1/IosTestSetup/networkProfile": network_profile
"/testing:v1/IosVersion": ios_version
"/testing:v1/IosVersion/id": id

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admin-sdk/alertcenter/
module AlertcenterV1beta1
VERSION = 'V1beta1'
REVISION = '20200801'
REVISION = '20200821'
# See and delete your domain's G Suite alerts, and send alert feedback
AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts'

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-search/docs/guides/
module CloudsearchV1
VERSION = 'V1'
REVISION = '20200803'
REVISION = '20200819'
# Index and serve your organization's data with Cloud Search
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'

View File

@ -2103,6 +2103,31 @@ module Google
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
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::CloudsearchV1::Operation>]
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
# List sources response.
class ListQuerySourcesResponse
include Google::Apis::Core::Hashable

View File

@ -424,6 +424,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListQuerySourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1540,6 +1546,15 @@ module Google
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::CloudsearchV1::Operation, decorator: Google::Apis::CloudsearchV1::Operation::Representation
end
end
class ListQuerySourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -737,15 +737,15 @@ module Google
# upload protocols and is intended for large items that can not be [inlined
# during index requests](https://developers.google.com/cloud-search/docs/
# reference/rest/v1/indexing.datasources.items#itemcontent). To index large
# content: 1. Call indexing.datasources.items.upload with the resource name to
# begin an upload session and retrieve the UploadItemRef. 1. Call media.upload
# to upload the content using the same resource name from step 1. 1. Call
# indexing.datasources.items.index to index the item. Populate the [ItemContent](
# /cloud-search/docs/reference/rest/v1/indexing.datasources.items#ItemContent)
# with the UploadItemRef from step 1. For additional information, see [Create a
# content connector using the REST API](https://developers.google.com/cloud-
# search/docs/guides/content-connector#rest). **Note:** This API requires a
# service account to execute.
# content: 1. Call indexing.datasources.items.upload with the item name to begin
# an upload session and retrieve the UploadItemRef. 1. Call media.upload to
# upload the content, as a streaming request, using the same resource name from
# the UploadItemRef from step 1. 1. Call indexing.datasources.items.index to
# index the item. Populate the [ItemContent](/cloud-search/docs/reference/rest/
# v1/indexing.datasources.items#ItemContent) with the UploadItemRef from step 1.
# For additional information, see [Create a content connector using the REST API]
# (https://developers.google.com/cloud-search/docs/guides/content-connector#rest)
# . **Note:** This API requires a service account to execute.
# @param [String] resource_name
# Name of the media that is being downloaded. See ReadRequest.resource_name.
# @param [Google::Apis::CloudsearchV1::Media] media_object
@ -819,6 +819,52 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @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::CloudsearchV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudsearchV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_operation_lros(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/lro', options)
command.response_representation = Google::Apis::CloudsearchV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::CloudsearchV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# The Cloud Search Query API provides the search method, which returns the most
# relevant results from a user query. The results can come from G Suite Apps,
# such as Gmail or Google Drive, or they can come from data that you have

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV3_3
VERSION = 'V3_3'
REVISION = '20200804'
REVISION = '20200825'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'

View File

@ -70,11 +70,11 @@ module Google
# for ITL - "11" for DKK - "12" for NOK - "13" for FIM - "14" for ZAR - "15" for
# IEP - "16" for NLG - "17" for EUR - "18" for KRW - "19" for TWD - "20" for SGD
# - "21" for CNY - "22" for HKD - "23" for NZD - "24" for MYR - "25" for BRL - "
# 26" for PTE - "27" for MXP - "28" for CLP - "29" for TRY - "30" for ARS - "31"
# for PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" for COP - "36" for
# GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" for IDR - "42" for CZK
# - "43" for RON - "44" for HUF - "45" for RUB - "46" for AED - "47" for BGN - "
# 48" for HRK - "49" for MXN - "50" for NGN - "51" for EGP
# 26" for PTE - "28" for CLP - "29" for TRY - "30" for ARS - "31" for PEN - "32"
# for ILS - "33" for CHF - "34" for VEF - "35" for COP - "36" for GTQ - "37" for
# PLN - "39" for INR - "40" for THB - "41" for IDR - "42" for CZK - "43" for RON
# - "44" for HUF - "45" for RUB - "46" for AED - "47" for BGN - "48" for HRK - "
# 49" for MXN - "50" for NGN - "51" for EGP
# Corresponds to the JSON property `currencyId`
# @return [Fixnum]
attr_accessor :currency_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV3_4
VERSION = 'V3_4'
REVISION = '20200804'
REVISION = '20200825'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'

View File

@ -70,11 +70,11 @@ module Google
# for ITL - "11" for DKK - "12" for NOK - "13" for FIM - "14" for ZAR - "15" for
# IEP - "16" for NLG - "17" for EUR - "18" for KRW - "19" for TWD - "20" for SGD
# - "21" for CNY - "22" for HKD - "23" for NZD - "24" for MYR - "25" for BRL - "
# 26" for PTE - "27" for MXP - "28" for CLP - "29" for TRY - "30" for ARS - "31"
# for PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" for COP - "36" for
# GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" for IDR - "42" for CZK
# - "43" for RON - "44" for HUF - "45" for RUB - "46" for AED - "47" for BGN - "
# 48" for HRK - "49" for MXN - "50" for NGN - "51" for EGP
# 26" for PTE - "28" for CLP - "29" for TRY - "30" for ARS - "31" for PEN - "32"
# for ILS - "33" for CHF - "34" for VEF - "35" for COP - "36" for GTQ - "37" for
# PLN - "39" for INR - "40" for THB - "41" for IDR - "42" for CZK - "43" for RON
# - "44" for HUF - "45" for RUB - "46" for AED - "47" for BGN - "48" for HRK - "
# 49" for MXN - "50" for NGN - "51" for EGP
# Corresponds to the JSON property `currencyId`
# @return [Fixnum]
attr_accessor :currency_id
@ -2427,10 +2427,18 @@ module Google
# @return [Array<Google::Apis::DfareportingV3_4::CustomFloodlightVariable>]
attr_accessor :custom_variables
# The display click ID. This field is mutually exclusive with encryptedUserId,
# encryptedUserIdCandidates[], matchId, mobileDeviceId and gclid. This or
# encryptedUserId or encryptedUserIdCandidates[] or matchId or mobileDeviceId or
# gclid is a required field.
# Corresponds to the JSON property `dclid`
# @return [String]
attr_accessor :dclid
# The alphanumeric encrypted user ID. When set, encryptionInfo should also be
# specified. This field is mutually exclusive with encryptedUserIdCandidates[],
# matchId, mobileDeviceId and gclid. This or encryptedUserIdCandidates[] or
# matchId or mobileDeviceId or gclid is a required field.
# matchId, mobileDeviceId, gclid and dclid. This or encryptedUserIdCandidates[]
# or matchId or mobileDeviceId or gclid or dclid is a required field.
# Corresponds to the JSON property `encryptedUserId`
# @return [String]
attr_accessor :encrypted_user_id
@ -2441,8 +2449,8 @@ module Google
# INVALID_ARGUMENT error. When set, encryptionInfo should also be specified.
# This field may only be used when calling batchinsert; it is not supported by
# batchupdate. This field is mutually exclusive with encryptedUserId, matchId,
# mobileDeviceId and gclid. This or encryptedUserId or matchId or mobileDeviceId
# or gclid is a required field.
# mobileDeviceId, gclid and dclid. This or encryptedUserId or matchId or
# mobileDeviceId or gclid or dclid is a required field.
# Corresponds to the JSON property `encryptedUserIdCandidates`
# @return [Array<String>]
attr_accessor :encrypted_user_id_candidates
@ -2458,9 +2466,9 @@ module Google
attr_accessor :floodlight_configuration_id
# The Google click ID. This field is mutually exclusive with encryptedUserId,
# encryptedUserIdCandidates[], matchId and mobileDeviceId. This or
# encryptedUserId or encryptedUserIdCandidates[] or matchId or mobileDeviceId is
# a required field.
# encryptedUserIdCandidates[], matchId, mobileDeviceId and dclid. This or
# encryptedUserId or encryptedUserIdCandidates[] or matchId or mobileDeviceId or
# dclid is a required field.
# Corresponds to the JSON property `gclid`
# @return [String]
attr_accessor :gclid
@ -2481,15 +2489,17 @@ module Google
# The match ID field. A match ID is your own first-party identifier that has
# been synced with Google using the match ID feature in Floodlight. This field
# is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[],
# mobileDeviceId and gclid. This or encryptedUserId or encryptedUserIdCandidates[
# ] or mobileDeviceId or gclid is a required field.
# mobileDeviceId, gclid and dclid. This or encryptedUserId or
# encryptedUserIdCandidates[] or mobileDeviceId or gclid or dclid is a required
# field.
# Corresponds to the JSON property `matchId`
# @return [String]
attr_accessor :match_id
# The mobile device ID. This field is mutually exclusive with encryptedUserId,
# encryptedUserIdCandidates[], matchId and gclid. This or encryptedUserId or
# encryptedUserIdCandidates[] or matchId or gclid is a required field.
# encryptedUserIdCandidates[], matchId, gclid and dclid. This or encryptedUserId
# or encryptedUserIdCandidates[] or matchId or gclid or dclid is a required
# field.
# Corresponds to the JSON property `mobileDeviceId`
# @return [String]
attr_accessor :mobile_device_id
@ -2537,6 +2547,7 @@ module Google
def update!(**args)
@child_directed_treatment = args[:child_directed_treatment] if args.key?(:child_directed_treatment)
@custom_variables = args[:custom_variables] if args.key?(:custom_variables)
@dclid = args[:dclid] if args.key?(:dclid)
@encrypted_user_id = args[:encrypted_user_id] if args.key?(:encrypted_user_id)
@encrypted_user_id_candidates = args[:encrypted_user_id_candidates] if args.key?(:encrypted_user_id_candidates)
@floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id)

View File

@ -2128,6 +2128,7 @@ module Google
property :child_directed_treatment, as: 'childDirectedTreatment'
collection :custom_variables, as: 'customVariables', class: Google::Apis::DfareportingV3_4::CustomFloodlightVariable, decorator: Google::Apis::DfareportingV3_4::CustomFloodlightVariable::Representation
property :dclid, as: 'dclid'
property :encrypted_user_id, as: 'encryptedUserId'
collection :encrypted_user_id_candidates, as: 'encryptedUserIdCandidates'
property :floodlight_activity_id, :numeric_string => true, as: 'floodlightActivityId'

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com
module FirebaseV1beta1
VERSION = 'V1beta1'
REVISION = '20200819'
REVISION = '20200822'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/firestore
module FirestoreV1beta1
VERSION = 'V1beta1'
REVISION = '20200801'
REVISION = '20200818'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/fit/rest/v1/get-started
module FitnessV1
VERSION = 'V1'
REVISION = '20200818'
REVISION = '20200820'
# Use Google Fit to see and store your physical activity data
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'

View File

@ -43,8 +43,8 @@ module Google
attr_accessor :quota_user
def initialize
super('https://www.googleapis.com/', 'fitness/v1/users/')
@batch_path = 'batch/fitness/v1'
super('https://fitness.googleapis.com/', 'fitness/v1/users/')
@batch_path = 'batch'
end
# Creates a new data source that is unique across all data sources belonging to

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20200817'
REVISION = '20200824'
# Read, compose, send, and permanently delete all your email from Gmail
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -795,7 +795,8 @@ module Google
# Imports a message into only this user's mailbox, with standard email delivery
# scanning and classification similar to receiving via SMTP. Does not send a
# message.
# message. Note: This function doesn't trigger forwarding rules or filters set
# up by the user.
# @param [String] user_id
# The user's email address. The special value `me` can be used to indicate the
# authenticated user.

View File

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare
module HealthcareV1beta1
VERSION = 'V1beta1'
REVISION = '20200813'
REVISION = '20200819'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -1010,6 +1010,7 @@ module Google
property :golden_store, as: 'goldenStore'
property :info_type_config, as: 'infoTypeConfig', class: Google::Apis::HealthcareV1beta1::InfoTypeConfig, decorator: Google::Apis::HealthcareV1beta1::InfoTypeConfig::Representation
property :name, as: 'name'
end
end
@ -1039,6 +1040,7 @@ module Google
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination::Representation
property :name, as: 'name'
end
end
@ -1383,6 +1385,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource::Representation
property :name, as: 'name'
end
end
@ -1729,6 +1732,7 @@ module Google
property :schematized_parsing_type, as: 'schematizedParsingType'
collection :types, as: 'types', class: Google::Apis::HealthcareV1beta1::Hl7TypesConfig, decorator: Google::Apis::HealthcareV1beta1::Hl7TypesConfig::Representation
property :unexpected_segment_handling, as: 'unexpectedSegmentHandling'
end
end

File diff suppressed because it is too large Load Diff

View File

@ -22,12 +22,15 @@ module Google
#
# Manages identity and access control for Google Cloud Platform resources,
# including the creation of service accounts, which you can use to authenticate
# to Google and make API calls.
# to Google and make API calls. *Note:* This API is tied to the IAM service
# account credentials API ( iamcredentials.googleapis.com). Enabling or
# disabling this API will also enable or disable the IAM service account
# credentials API.
#
# @see https://cloud.google.com/iam/
module IamV1
VERSION = 'V1'
REVISION = '20200806'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -24,7 +24,10 @@ module Google
#
# Manages identity and access control for Google Cloud Platform resources,
# including the creation of service accounts, which you can use to authenticate
# to Google and make API calls.
# to Google and make API calls. *Note:* This API is tied to the IAM service
# account credentials API ( iamcredentials.googleapis.com). Enabling or
# disabling this API will also enable or disable the IAM service account
# credentials API.
#
# @example
# require 'google/apis/iam_v1'

View File

@ -12,24 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/memcache_v1/service.rb'
require 'google/apis/memcache_v1/classes.rb'
require 'google/apis/memcache_v1/representations.rb'
require 'google/apis/localservices_v1/service.rb'
require 'google/apis/localservices_v1/classes.rb'
require 'google/apis/localservices_v1/representations.rb'
module Google
module Apis
# Cloud Memorystore for Memcached API
# Local Services API
#
# Google Cloud Memorystore for Memcached API is used for creating and managing
# Memcached instances in GCP.
#
# @see https://cloud.google.com/memorystore/
module MemcacheV1
#
# @see https://ads.google.com/local-services-ads/
module LocalservicesV1
VERSION = 'V1'
REVISION = '20200817'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
REVISION = '20200821'
end
end
end

View File

@ -0,0 +1,419 @@
# 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 LocalservicesV1
# An Account Report of a GLS account identified by their account id containing
# aggregate data gathered from a particular date range.
class GoogleAdsHomeservicesLocalservicesV1AccountReport
include Google::Apis::Core::Hashable
# Unique identifier of the GLS account.
# Corresponds to the JSON property `accountId`
# @return [Fixnum]
attr_accessor :account_id
# Average review rating score from 1-5 stars.
# Corresponds to the JSON property `averageFiveStarRating`
# @return [Float]
attr_accessor :average_five_star_rating
# Average weekly budget in the currency code of the account.
# Corresponds to the JSON property `averageWeeklyBudget`
# @return [Float]
attr_accessor :average_weekly_budget
# Business name of the account.
# Corresponds to the JSON property `businessName`
# @return [String]
attr_accessor :business_name
# Currency code of the account.
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Number of charged leads the account received in current specified period.
# Corresponds to the JSON property `currentPeriodChargedLeads`
# @return [Fixnum]
attr_accessor :current_period_charged_leads
# Number of connected phone calls (duration over 30s) in current specified
# period.
# Corresponds to the JSON property `currentPeriodConnectedPhoneCalls`
# @return [Fixnum]
attr_accessor :current_period_connected_phone_calls
# Number of phone calls in current specified period, including both connected
# and unconnected calls.
# Corresponds to the JSON property `currentPeriodPhoneCalls`
# @return [Fixnum]
attr_accessor :current_period_phone_calls
# Total cost of the account in current specified period in the account's
# specified currency.
# Corresponds to the JSON property `currentPeriodTotalCost`
# @return [Float]
attr_accessor :current_period_total_cost
# Phone lead responsiveness of the account for the past 90 days from current
# date. This is computed by taking the total number of connected calls from
# charged phone leads and dividing by the total number of calls received.
# Corresponds to the JSON property `phoneLeadResponsiveness`
# @return [Float]
attr_accessor :phone_lead_responsiveness
# Number of charged leads the account received in previous specified period.
# Corresponds to the JSON property `previousPeriodChargedLeads`
# @return [Fixnum]
attr_accessor :previous_period_charged_leads
# Number of connected phone calls (duration over 30s) in previous specified
# period.
# Corresponds to the JSON property `previousPeriodConnectedPhoneCalls`
# @return [Fixnum]
attr_accessor :previous_period_connected_phone_calls
# Number of phone calls in previous specified period, including both connected
# and unconnected calls.
# Corresponds to the JSON property `previousPeriodPhoneCalls`
# @return [Fixnum]
attr_accessor :previous_period_phone_calls
# Total cost of the account in previous specified period in the account's
# specified currency.
# Corresponds to the JSON property `previousPeriodTotalCost`
# @return [Float]
attr_accessor :previous_period_total_cost
# Total number of reviews the account has up to current date.
# Corresponds to the JSON property `totalReview`
# @return [Fixnum]
attr_accessor :total_review
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id)
@average_five_star_rating = args[:average_five_star_rating] if args.key?(:average_five_star_rating)
@average_weekly_budget = args[:average_weekly_budget] if args.key?(:average_weekly_budget)
@business_name = args[:business_name] if args.key?(:business_name)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@current_period_charged_leads = args[:current_period_charged_leads] if args.key?(:current_period_charged_leads)
@current_period_connected_phone_calls = args[:current_period_connected_phone_calls] if args.key?(:current_period_connected_phone_calls)
@current_period_phone_calls = args[:current_period_phone_calls] if args.key?(:current_period_phone_calls)
@current_period_total_cost = args[:current_period_total_cost] if args.key?(:current_period_total_cost)
@phone_lead_responsiveness = args[:phone_lead_responsiveness] if args.key?(:phone_lead_responsiveness)
@previous_period_charged_leads = args[:previous_period_charged_leads] if args.key?(:previous_period_charged_leads)
@previous_period_connected_phone_calls = args[:previous_period_connected_phone_calls] if args.key?(:previous_period_connected_phone_calls)
@previous_period_phone_calls = args[:previous_period_phone_calls] if args.key?(:previous_period_phone_calls)
@previous_period_total_cost = args[:previous_period_total_cost] if args.key?(:previous_period_total_cost)
@total_review = args[:total_review] if args.key?(:total_review)
end
end
# Conatiner for aggregator specific information if lead is for an aggregator GLS
# account.
class GoogleAdsHomeservicesLocalservicesV1AggregatorInfo
include Google::Apis::Core::Hashable
# Provider id (listed in aggregator system) which maps to a account id in GLS
# system.
# Corresponds to the JSON property `aggregatorProviderId`
# @return [String]
attr_accessor :aggregator_provider_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@aggregator_provider_id = args[:aggregator_provider_id] if args.key?(:aggregator_provider_id)
end
end
# A Detailed Lead Report of a lead identified by their lead id and contains
# consumer, account, monetization, and lead data.
class GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport
include Google::Apis::Core::Hashable
# Identifies account that received the lead.
# Corresponds to the JSON property `accountId`
# @return [Fixnum]
attr_accessor :account_id
# Conatiner for aggregator specific information if lead is for an aggregator GLS
# account.
# Corresponds to the JSON property `aggregatorInfo`
# @return [Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AggregatorInfo]
attr_accessor :aggregator_info
# Business name associated to the account.
# Corresponds to the JSON property `businessName`
# @return [String]
attr_accessor :business_name
# Whether the lead has been charged.
# Corresponds to the JSON property `chargeStatus`
# @return [String]
attr_accessor :charge_status
# Currency code.
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Dispute status related to the lead.
# Corresponds to the JSON property `disputeStatus`
# @return [String]
attr_accessor :dispute_status
# Location of the associated account's home city.
# Corresponds to the JSON property `geo`
# @return [String]
attr_accessor :geo
# Lead category (e.g. hvac, plumber)
# Corresponds to the JSON property `leadCategory`
# @return [String]
attr_accessor :lead_category
# Timestamp of when the lead was created.
# Corresponds to the JSON property `leadCreationTimestamp`
# @return [String]
attr_accessor :lead_creation_timestamp
# Unique identifier of a Detailed Lead Report.
# Corresponds to the JSON property `leadId`
# @return [Fixnum]
attr_accessor :lead_id
# Price of the lead (available only after it has been charged).
# Corresponds to the JSON property `leadPrice`
# @return [Float]
attr_accessor :lead_price
# Lead type.
# Corresponds to the JSON property `leadType`
# @return [String]
attr_accessor :lead_type
# Container for message lead specific information.
# Corresponds to the JSON property `messageLead`
# @return [Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead]
attr_accessor :message_lead
# Container for phone lead specific information.
# Corresponds to the JSON property `phoneLead`
# @return [Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1PhoneLead]
attr_accessor :phone_lead
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
# time-zones).
# Corresponds to the JSON property `timezone`
# @return [Google::Apis::LocalservicesV1::GoogleTypeTimeZone]
attr_accessor :timezone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id)
@aggregator_info = args[:aggregator_info] if args.key?(:aggregator_info)
@business_name = args[:business_name] if args.key?(:business_name)
@charge_status = args[:charge_status] if args.key?(:charge_status)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@dispute_status = args[:dispute_status] if args.key?(:dispute_status)
@geo = args[:geo] if args.key?(:geo)
@lead_category = args[:lead_category] if args.key?(:lead_category)
@lead_creation_timestamp = args[:lead_creation_timestamp] if args.key?(:lead_creation_timestamp)
@lead_id = args[:lead_id] if args.key?(:lead_id)
@lead_price = args[:lead_price] if args.key?(:lead_price)
@lead_type = args[:lead_type] if args.key?(:lead_type)
@message_lead = args[:message_lead] if args.key?(:message_lead)
@phone_lead = args[:phone_lead] if args.key?(:phone_lead)
@timezone = args[:timezone] if args.key?(:timezone)
end
end
# Container for message lead specific information.
class GoogleAdsHomeservicesLocalservicesV1MessageLead
include Google::Apis::Core::Hashable
# Consumer phone number associated with the message lead.
# Corresponds to the JSON property `consumerPhoneNumber`
# @return [String]
attr_accessor :consumer_phone_number
# Name of the customer who created the lead.
# Corresponds to the JSON property `customerName`
# @return [String]
attr_accessor :customer_name
# The job type of the specified lead.
# Corresponds to the JSON property `jobType`
# @return [String]
attr_accessor :job_type
# The postal code of the customer who created the lead.
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_phone_number = args[:consumer_phone_number] if args.key?(:consumer_phone_number)
@customer_name = args[:customer_name] if args.key?(:customer_name)
@job_type = args[:job_type] if args.key?(:job_type)
@postal_code = args[:postal_code] if args.key?(:postal_code)
end
end
# Container for phone lead specific information.
class GoogleAdsHomeservicesLocalservicesV1PhoneLead
include Google::Apis::Core::Hashable
# Timestamp of the phone call which resulted in a charged phone lead.
# Corresponds to the JSON property `chargedCallTimestamp`
# @return [String]
attr_accessor :charged_call_timestamp
# Duration of the charged phone call in seconds.
# Corresponds to the JSON property `chargedConnectedCallDurationSeconds`
# @return [String]
attr_accessor :charged_connected_call_duration_seconds
# Consumer phone number associated with the phone lead.
# Corresponds to the JSON property `consumerPhoneNumber`
# @return [String]
attr_accessor :consumer_phone_number
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@charged_call_timestamp = args[:charged_call_timestamp] if args.key?(:charged_call_timestamp)
@charged_connected_call_duration_seconds = args[:charged_connected_call_duration_seconds] if args.key?(:charged_connected_call_duration_seconds)
@consumer_phone_number = args[:consumer_phone_number] if args.key?(:consumer_phone_number)
end
end
# A page of the response received from the SearchAccountReports method. A
# paginated response where more pages are available has `next_page_token` set.
# This token can be used in a subsequent request to retrieve the next request
# page.
class GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse
include Google::Apis::Core::Hashable
# List of account reports which maps 1:1 to a particular linked GLS account.
# Corresponds to the JSON property `accountReports`
# @return [Array<Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AccountReport>]
attr_accessor :account_reports
# Pagination token to retrieve the next page of results. When `next_page_token`
# is not filled in, there is no next page and the list returned is the last page
# in the result set.
# 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)
@account_reports = args[:account_reports] if args.key?(:account_reports)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A page of the response received from the SearchDetailedLeadReports method. A
# paginated response where more pages are available has `next_page_token` set.
# This token can be used in a subsequent request to retrieve the next request
# page.
class GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse
include Google::Apis::Core::Hashable
# List of detailed lead reports uniquely identified by external lead id.
# Corresponds to the JSON property `detailedLeadReports`
# @return [Array<Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport>]
attr_accessor :detailed_lead_reports
# Pagination token to retrieve the next page of results. When `next_page_token`
# is not filled in, there is no next page and the list returned is the last page
# in the result set.
# 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)
@detailed_lead_reports = args[:detailed_lead_reports] if args.key?(:detailed_lead_reports)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
# time-zones).
class GoogleTypeTimeZone
include Google::Apis::Core::Hashable
# IANA Time Zone Database time zone, e.g. "America/New_York".
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Optional. IANA Time Zone Database version number, e.g. "2019a".
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@version = args[:version] if args.key?(:version)
end
end
end
end
end

View File

@ -0,0 +1,172 @@
# 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 LocalservicesV1
class GoogleAdsHomeservicesLocalservicesV1AccountReport
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAdsHomeservicesLocalservicesV1AggregatorInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAdsHomeservicesLocalservicesV1MessageLead
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAdsHomeservicesLocalservicesV1PhoneLead
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleTypeTimeZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAdsHomeservicesLocalservicesV1AccountReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, :numeric_string => true, as: 'accountId'
property :average_five_star_rating, as: 'averageFiveStarRating'
property :average_weekly_budget, as: 'averageWeeklyBudget'
property :business_name, as: 'businessName'
property :currency_code, as: 'currencyCode'
property :current_period_charged_leads, :numeric_string => true, as: 'currentPeriodChargedLeads'
property :current_period_connected_phone_calls, :numeric_string => true, as: 'currentPeriodConnectedPhoneCalls'
property :current_period_phone_calls, :numeric_string => true, as: 'currentPeriodPhoneCalls'
property :current_period_total_cost, as: 'currentPeriodTotalCost'
property :phone_lead_responsiveness, as: 'phoneLeadResponsiveness'
property :previous_period_charged_leads, :numeric_string => true, as: 'previousPeriodChargedLeads'
property :previous_period_connected_phone_calls, :numeric_string => true, as: 'previousPeriodConnectedPhoneCalls'
property :previous_period_phone_calls, :numeric_string => true, as: 'previousPeriodPhoneCalls'
property :previous_period_total_cost, as: 'previousPeriodTotalCost'
property :total_review, as: 'totalReview'
end
end
class GoogleAdsHomeservicesLocalservicesV1AggregatorInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aggregator_provider_id, as: 'aggregatorProviderId'
end
end
class GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, :numeric_string => true, as: 'accountId'
property :aggregator_info, as: 'aggregatorInfo', class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AggregatorInfo, decorator: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AggregatorInfo::Representation
property :business_name, as: 'businessName'
property :charge_status, as: 'chargeStatus'
property :currency_code, as: 'currencyCode'
property :dispute_status, as: 'disputeStatus'
property :geo, as: 'geo'
property :lead_category, as: 'leadCategory'
property :lead_creation_timestamp, as: 'leadCreationTimestamp'
property :lead_id, :numeric_string => true, as: 'leadId'
property :lead_price, as: 'leadPrice'
property :lead_type, as: 'leadType'
property :message_lead, as: 'messageLead', class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead, decorator: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead::Representation
property :phone_lead, as: 'phoneLead', class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1PhoneLead, decorator: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1PhoneLead::Representation
property :timezone, as: 'timezone', class: Google::Apis::LocalservicesV1::GoogleTypeTimeZone, decorator: Google::Apis::LocalservicesV1::GoogleTypeTimeZone::Representation
end
end
class GoogleAdsHomeservicesLocalservicesV1MessageLead
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_phone_number, as: 'consumerPhoneNumber'
property :customer_name, as: 'customerName'
property :job_type, as: 'jobType'
property :postal_code, as: 'postalCode'
end
end
class GoogleAdsHomeservicesLocalservicesV1PhoneLead
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :charged_call_timestamp, as: 'chargedCallTimestamp'
property :charged_connected_call_duration_seconds, as: 'chargedConnectedCallDurationSeconds'
property :consumer_phone_number, as: 'consumerPhoneNumber'
end
end
class GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :account_reports, as: 'accountReports', class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AccountReport, decorator: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AccountReport::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :detailed_lead_reports, as: 'detailedLeadReports', class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport, decorator: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleTypeTimeZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :version, as: 'version'
end
end
end
end
end

View File

@ -0,0 +1,199 @@
# 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 LocalservicesV1
# Local Services API
#
#
#
# @example
# require 'google/apis/localservices_v1'
#
# Localservices = Google::Apis::LocalservicesV1 # Alias the module
# service = Localservices::LocalservicesService.new
#
# @see https://ads.google.com/local-services-ads/
class LocalservicesService < 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://localservices.googleapis.com/', '')
@batch_path = 'batch'
end
# Get account reports containing aggregate account data of all linked GLS
# accounts. Caller needs to provide their manager customer id and the associated
# auth credential that allows them read permissions on their linked accounts.
# @param [Fixnum] end_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# @param [Fixnum] end_date_month
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# @param [Fixnum] end_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# @param [Fixnum] page_size
# The maximum number of accounts to return. If the page size is unset, page size
# will default to 1000. Maximum page_size is 10000. Optional.
# @param [String] page_token
# The `next_page_token` value returned from a previous request to
# SearchAccountReports that indicates where listing should continue. Optional.
# @param [String] query
# A query string for searching for account reports. Caller must provide a
# customer id of their MCC account with an associated Gaia Mint that allows read
# permission on their linked accounts. Search expressions are case insensitive.
# Example query: | Query | Description | |-------------------------|-------------
# ----------------------------------| | manager_customer_id:123 | Get Account
# Report for Manager with id 123. | Required.
# @param [Fixnum] start_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# @param [Fixnum] start_date_month
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# @param [Fixnum] start_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_account_reports(end_date_day: nil, end_date_month: nil, end_date_year: nil, page_size: nil, page_token: nil, query: nil, start_date_day: nil, start_date_month: nil, start_date_year: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accountReports:search', options)
command.response_representation = Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse::Representation
command.response_class = Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse
command.query['endDate.day'] = end_date_day unless end_date_day.nil?
command.query['endDate.month'] = end_date_month unless end_date_month.nil?
command.query['endDate.year'] = end_date_year unless end_date_year.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['startDate.day'] = start_date_day unless start_date_day.nil?
command.query['startDate.month'] = start_date_month unless start_date_month.nil?
command.query['startDate.year'] = start_date_year unless start_date_year.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get detailed lead reports containing leads that have been received by all
# linked GLS accounts. Caller needs to provide their manager customer id and the
# associated auth credential that allows them read permissions on their linked
# accounts.
# @param [Fixnum] end_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# @param [Fixnum] end_date_month
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# @param [Fixnum] end_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# @param [Fixnum] page_size
# The maximum number of accounts to return. If the page size is unset, page size
# will default to 1000. Maximum page_size is 10000. Optional.
# @param [String] page_token
# The `next_page_token` value returned from a previous request to
# SearchDetailedLeadReports that indicates where listing should continue.
# Optional.
# @param [String] query
# A query string for searching for account reports. Caller must provide a
# customer id of their MCC account with an associated Gaia Mint that allows read
# permission on their linked accounts. Search expressions are case insensitive.
# Example query: | Query | Description | |-------------------------|-------------
# ----------------------------------| | manager_customer_id:123 | Get Detailed
# Lead Report for Manager with id | | | 123. | Required.
# @param [Fixnum] start_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
# specifying a year by itself or a year and month where the day is not
# significant.
# @param [Fixnum] start_date_month
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
# and day.
# @param [Fixnum] start_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_detailed_lead_reports(end_date_day: nil, end_date_month: nil, end_date_year: nil, page_size: nil, page_token: nil, query: nil, start_date_day: nil, start_date_month: nil, start_date_year: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/detailedLeadReports:search', options)
command.response_representation = Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse::Representation
command.response_class = Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse
command.query['endDate.day'] = end_date_day unless end_date_day.nil?
command.query['endDate.month'] = end_date_month unless end_date_month.nil?
command.query['endDate.year'] = end_date_year unless end_date_year.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['startDate.day'] = start_date_day unless start_date_day.nil?
command.query['startDate.month'] = start_date_month unless start_date_month.nil?
command.query['startDate.year'] = start_date_year unless start_date_year.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

File diff suppressed because it is too large Load Diff

View File

@ -1,471 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module MemcacheV1
class ApplyParametersRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMemcacheV1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MemcacheParameters
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Node
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateParametersRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ZoneMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApplyParametersRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :apply_all, as: 'applyAll'
collection :node_ids, as: 'nodeIds'
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudMemcacheV1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :cancel_requested, as: 'cancelRequested'
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :status_detail, as: 'statusDetail'
property :target, as: 'target'
property :verb, as: 'verb'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_defined_name, as: 'consumerDefinedName'
property :create_time, as: 'createTime'
hash :labels, as: 'labels'
hash :maintenance_policy_names, as: 'maintenancePolicyNames'
hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule::Representation
property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings::Representation
property :name, as: 'name'
hash :producer_metadata, as: 'producerMetadata'
collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
property :slm_instance_template, as: 'slmInstanceTemplate'
property :slo_metadata, as: 'sloMetadata', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata::Representation
hash :software_versions, as: 'softwareVersions'
property :state, as: 'state'
property :tenant_project_id, as: 'tenantProjectId'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :can_reschedule, as: 'canReschedule'
property :end_time, as: 'endTime'
property :rollout_management_policy, as: 'rolloutManagementPolicy'
property :start_time, as: 'startTime'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exclude, as: 'exclude'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exclusions, as: 'exclusions', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
property :location, as: 'location'
property :node_id, as: 'nodeId'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_type, as: 'resourceType'
property :resource_url, as: 'resourceUrl'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :eligible, as: 'eligible'
property :reason, as: 'reason'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :reason, as: 'reason'
property :sli_name, as: 'sliName'
property :start_time, as: 'startTime'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :eligibility, as: 'eligibility', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation
collection :exclusions, as: 'exclusions', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
collection :nodes, as: 'nodes', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
property :tier, as: 'tier'
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :authorized_network, as: 'authorizedNetwork'
property :create_time, as: 'createTime'
property :discovery_endpoint, as: 'discoveryEndpoint'
property :display_name, as: 'displayName'
collection :instance_messages, as: 'instanceMessages', class: Google::Apis::MemcacheV1::InstanceMessage, decorator: Google::Apis::MemcacheV1::InstanceMessage::Representation
hash :labels, as: 'labels'
property :memcache_full_version, as: 'memcacheFullVersion'
collection :memcache_nodes, as: 'memcacheNodes', class: Google::Apis::MemcacheV1::Node, decorator: Google::Apis::MemcacheV1::Node::Representation
property :memcache_version, as: 'memcacheVersion'
property :name, as: 'name'
property :node_config, as: 'nodeConfig', class: Google::Apis::MemcacheV1::NodeConfig, decorator: Google::Apis::MemcacheV1::NodeConfig::Representation
property :node_count, as: 'nodeCount'
property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1::MemcacheParameters, decorator: Google::Apis::MemcacheV1::MemcacheParameters::Representation
property :state, as: 'state'
property :update_time, as: 'updateTime'
collection :zones, as: 'zones'
end
end
class InstanceMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
end
end
class ListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :resources, as: 'resources', class: Google::Apis::MemcacheV1::Instance, decorator: Google::Apis::MemcacheV1::Instance::Representation
collection :unreachable, as: 'unreachable'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::MemcacheV1::Location, decorator: Google::Apis::MemcacheV1::Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::MemcacheV1::Operation, decorator: Google::Apis::MemcacheV1::Operation::Representation
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
property :name, as: 'name'
end
end
class LocationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :available_zones, as: 'availableZones', class: Google::Apis::MemcacheV1::ZoneMetadata, decorator: Google::Apis::MemcacheV1::ZoneMetadata::Representation
end
end
class MemcacheParameters
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :params, as: 'params'
end
end
class Node
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :node_id, as: 'nodeId'
property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1::MemcacheParameters, decorator: Google::Apis::MemcacheV1::MemcacheParameters::Representation
property :port, as: 'port'
property :state, as: 'state'
property :zone, as: 'zone'
end
end
class NodeConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu_count, as: 'cpuCount'
property :memory_size_mb, as: 'memorySizeMb'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::MemcacheV1::Status, decorator: Google::Apis::MemcacheV1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :cancel_requested, as: 'cancelRequested'
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :status_detail, as: 'statusDetail'
property :target, as: 'target'
property :verb, as: 'verb'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class UpdateParametersRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1::MemcacheParameters, decorator: Google::Apis::MemcacheV1::MemcacheParameters::Representation
property :update_mask, as: 'updateMask'
end
end
class ZoneMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
end
end
end

View File

@ -1,545 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module MemcacheV1
# Cloud Memorystore for Memcached API
#
# Google Cloud Memorystore for Memcached API is used for creating and managing
# Memcached instances in GCP.
#
# @example
# require 'google/apis/memcache_v1'
#
# Memcache = Google::Apis::MemcacheV1 # Alias the module
# service = Memcache::CloudMemorystoreforMemcachedService.new
#
# @see https://cloud.google.com/memorystore/
class CloudMemorystoreforMemcachedService < 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://memcache.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::MemcacheV1::Location] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Location]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::MemcacheV1::Location::Representation
command.response_class = Google::Apis::MemcacheV1::Location
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists information about the supported locations for this service.
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [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::MemcacheV1::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::ListLocationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/locations', options)
command.response_representation = Google::Apis::MemcacheV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::MemcacheV1::ListLocationsResponse
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
# ApplyParameters will update current set of Parameters to the set of specified
# nodes of the Memcached Instance.
# @param [String] name
# Required. Resource name of the Memcached instance for which parameter group
# updates should be applied.
# @param [Google::Apis::MemcacheV1::ApplyParametersRequest] apply_parameters_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::MemcacheV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::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 apply_instance_parameters(name, apply_parameters_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:applyParameters', options)
command.request_representation = Google::Apis::MemcacheV1::ApplyParametersRequest::Representation
command.request_object = apply_parameters_request_object
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
command.response_class = Google::Apis::MemcacheV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new Instance in a given project and location.
# @param [String] parent
# Required. The resource name of the instance location using the form: `projects/
# `project_id`/locations/`location_id`` where `location_id` refers to a GCP
# region
# @param [Google::Apis::MemcacheV1::Instance] instance_object
# @param [String] instance_id
# Required. The logical name of the Memcached instance in the user project with
# the following restrictions: * Must contain only lowercase letters, numbers,
# and hyphens. * Must start with a letter. * Must be between 1-40 characters. *
# Must end with a number or a letter. * Must be unique within the user project /
# 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::MemcacheV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
command.request_representation = Google::Apis::MemcacheV1::Instance::Representation
command.request_object = instance_object
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
command.response_class = Google::Apis::MemcacheV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['instanceId'] = instance_id unless instance_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a single Instance.
# @param [String] name
# Required. Memcached instance resource name in the format: `projects/`
# project_id`/locations/`location_id`/instances/`instance_id`` where `
# location_id` refers to a GCP region
# @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::MemcacheV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
command.response_class = Google::Apis::MemcacheV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details of a single Instance.
# @param [String] name
# Required. Memcached instance resource name in the format: `projects/`
# project_id`/locations/`location_id`/instances/`instance_id`` where `
# location_id` refers to a GCP region
# @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::MemcacheV1::Instance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Instance]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::MemcacheV1::Instance::Representation
command.response_class = Google::Apis::MemcacheV1::Instance
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists Instances in a given project and location.
# @param [String] parent
# Required. The resource name of the instance location using the form: `projects/
# `project_id`/locations/`location_id`` where `location_id` refers to a GCP
# region
# @param [String] filter
# List filter. For example, exclude all Memcached instances with name as my-
# instance by specifying "name != my-instance".
# @param [String] order_by
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
# @param [Fixnum] page_size
# The maximum number of items to return. If not specified, a default value of
# 1000 will be used by the service. Regardless of the page_size value, the
# response may include a partial list and a caller should only rely on response'
# s next_page_token to determine if there are more instances left to be queried.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @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::MemcacheV1::ListInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::ListInstancesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
command.response_representation = Google::Apis::MemcacheV1::ListInstancesResponse::Representation
command.response_class = Google::Apis::MemcacheV1::ListInstancesResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing Instance in a given project and location.
# @param [String] name
# Required. Unique name of the resource in this scope including project and
# location using the form: `projects/`project_id`/locations/`location_id`/
# instances/`instance_id`` Note: Memcached instances are managed and addressed
# at regional level so location_id here refers to a GCP region; however, users
# may choose which zones Memcached nodes within an instances should be
# provisioned in. Refer to [zones] field for more details.
# @param [Google::Apis::MemcacheV1::Instance] instance_object
# @param [String] update_mask
# Required. Mask of fields to update. * `displayName`
# @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::MemcacheV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::MemcacheV1::Instance::Representation
command.request_object = instance_object
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
command.response_class = Google::Apis::MemcacheV1::Operation
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the defined Memcached Parameters for an existing Instance. This method
# only stages the parameters, it must be followed by ApplyParameters to apply
# the parameters to nodes of the Memcached Instance.
# @param [String] name
# Required. Resource name of the Memcached instance for which the parameters
# should be updated.
# @param [Google::Apis::MemcacheV1::UpdateParametersRequest] update_parameters_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::MemcacheV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::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 update_instance_parameters(name, update_parameters_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}:updateParameters', options)
command.request_representation = Google::Apis::MemcacheV1::UpdateParametersRequest::Representation
command.request_object = update_parameters_request_object
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
command.response_class = Google::Apis::MemcacheV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# 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::MemcacheV1::CancelOperationRequest] cancel_operation_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MemcacheV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.request_representation = Google::Apis::MemcacheV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::MemcacheV1::Empty::Representation
command.response_class = Google::Apis::MemcacheV1::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::MemcacheV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::MemcacheV1::Empty::Representation
command.response_class = Google::Apis::MemcacheV1::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::MemcacheV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
command.response_class = Google::Apis::MemcacheV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MemcacheV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MemcacheV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/operations', options)
command.response_representation = Google::Apis::MemcacheV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::MemcacheV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -29,7 +29,7 @@ module Google
# @see https://developers.google.com/safe-browsing/
module SafebrowsingV4
VERSION = 'V4'
REVISION = '20200801'
REVISION = '20200825'
end
end
end

View File

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

View File

@ -1,35 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/securitycenter_v1p1alpha1/service.rb'
require 'google/apis/securitycenter_v1p1alpha1/classes.rb'
require 'google/apis/securitycenter_v1p1alpha1/representations.rb'
module Google
module Apis
# Security Command Center API
#
# Security Command Center API provides access to temporal views of assets and
# findings within an organization.
#
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1alpha1
VERSION = 'V1p1alpha1'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -1,869 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module SecuritycenterV1p1alpha1
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Security Command Center finding. A finding is a record of assessment data like
# security, risk, health, or privacy, that is ingested into Security Command
# Center for presentation, notification, analysis, policy testing, and
# enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
# Engine application is a finding.
class Finding
include Google::Apis::Core::Hashable
# The additional taxonomy group within findings from a given source. This field
# is immutable after creation time. Example: "XSS_FLASH_INJECTION"
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# The time at which the finding was created in Security Command Center.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The URI that, if available, points to a web page outside of Security Command
# Center where additional information about the finding can be found. This field
# is guaranteed to be either empty or a well formed URL.
# Corresponds to the JSON property `externalUri`
# @return [String]
attr_accessor :external_uri
# The relative resource name of this finding. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`/findings/`finding_id`"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The relative resource name of the source the finding belongs to. See: https://
# cloud.google.com/apis/design/resource_names#relative_resource_name This field
# is immutable after creation time. For example: "organizations/`organization_id`
# /sources/`source_id`"
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# For findings on Google Cloud resources, the full resource name of the Google
# Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
# resource_names#full_resource_name When the finding is for a non-Google Cloud
# resource, the resourceName can be a customer or partner defined string. This
# field is immutable after creation time.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# User specified security marks that are attached to the parent Security Command
# Center resource. Security marks are scoped within a Security Command Center
# organization -- they can be modified and viewed by all users who have proper
# permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1p1alpha1::SecurityMarks]
attr_accessor :security_marks
# Source specific properties. These properties are managed by the source that
# writes the finding. The key names in the source_properties map must be between
# 1 and 255 characters, and must start with a letter and contain alphanumeric
# characters or underscores only.
# Corresponds to the JSON property `sourceProperties`
# @return [Hash<String,Object>]
attr_accessor :source_properties
# The state of the finding.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@create_time = args[:create_time] if args.key?(:create_time)
@event_time = args[:event_time] if args.key?(:event_time)
@external_uri = args[:external_uri] if args.key?(:external_uri)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end
end
# Cloud SCC's Notification
class GoogleCloudSecuritycenterV1NotificationMessage
include Google::Apis::Core::Hashable
# Security Command Center finding. A finding is a record of assessment data like
# security, risk, health, or privacy, that is ingested into Security Command
# Center for presentation, notification, analysis, policy testing, and
# enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
# Engine application is a finding.
# Corresponds to the JSON property `finding`
# @return [Google::Apis::SecuritycenterV1p1alpha1::Finding]
attr_accessor :finding
# Name of the notification config that generated current notification.
# Corresponds to the JSON property `notificationConfigName`
# @return [String]
attr_accessor :notification_config_name
# Information related to the Google Cloud resource.
# Corresponds to the JSON property `resource`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1Resource]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finding = args[:finding] if args.key?(:finding)
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
@resource = args[:resource] if args.key?(:resource)
end
end
# Information related to the Google Cloud resource.
class GoogleCloudSecuritycenterV1Resource
include Google::Apis::Core::Hashable
# The full resource name of the resource. See: https://cloud.google.com/apis/
# design/resource_names#full_resource_name
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The full resource name of resource's parent.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The human readable name of resource's parent.
# Corresponds to the JSON property `parentDisplayName`
# @return [String]
attr_accessor :parent_display_name
# The full resource name of project that the resource belongs to.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# The human readable name of project that the resource belongs to.
# Corresponds to the JSON property `projectDisplayName`
# @return [String]
attr_accessor :project_display_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
@project = args[:project] if args.key?(:project)
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
end
end
# Response of asset discovery run
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
# The duration between asset discovery run start and end
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# The state of an asset discovery run.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@state = args[:state] if args.key?(:state)
end
end
# Response of asset discovery run
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
# The duration between asset discovery run start and end
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# The state of an asset discovery run.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@state = args[:state] if args.key?(:state)
end
end
# Security Command Center representation of a Google Cloud resource. The Asset
# is a Security Command Center resource that captures information about a single
# Google Cloud resource. All modifications to an Asset are only within the
# context of Security Command Center and don't affect the referenced Google
# Cloud resource.
class GoogleCloudSecuritycenterV1p1beta1Asset
include Google::Apis::Core::Hashable
# The time at which the asset was created in Security Command Center.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Cloud IAM Policy information associated with the Google Cloud resource
# described by the Security Command Center asset. This information is managed
# and defined by the Google Cloud resource and cannot be modified by the user.
# Corresponds to the JSON property `iamPolicy`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
attr_accessor :iam_policy
# The relative resource name of this asset. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/assets/`asset_id`".
# 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::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
attr_accessor :security_center_properties
# User specified security marks that are attached to the parent Security Command
# Center resource. Security marks are scoped within a Security Command Center
# organization -- they can be modified and viewed by all users who have proper
# permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The time at which the asset was last updated, added, or deleted in Cloud SCC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
@name = args[:name] if args.key?(:name)
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Security Command Center finding. A finding is a record of assessment data (
# security, risk, health or privacy) ingested into Security Command Center for
# presentation, notification, analysis, policy testing, and enforcement. For
# example, an XSS vulnerability in an App Engine application is a finding.
class GoogleCloudSecuritycenterV1p1beta1Finding
include Google::Apis::Core::Hashable
# The additional taxonomy group within findings from a given source. This field
# is immutable after creation time. Example: "XSS_FLASH_INJECTION"
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# The time at which the finding was created in Security Command Center.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The URI that, if available, points to a web page outside of Security Command
# Center where additional information about the finding can be found. This field
# is guaranteed to be either empty or a well formed URL.
# Corresponds to the JSON property `externalUri`
# @return [String]
attr_accessor :external_uri
# The relative resource name of this finding. See: https://cloud.google.com/apis/
# design/resource_names#relative_resource_name Example: "organizations/`
# organization_id`/sources/`source_id`/findings/`finding_id`"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The relative resource name of the source the finding belongs to. See: https://
# cloud.google.com/apis/design/resource_names#relative_resource_name This field
# is immutable after creation time. For example: "organizations/`organization_id`
# /sources/`source_id`"
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# For findings on Google Cloud resources, the full resource name of the Google
# Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
# resource_names#full_resource_name When the finding is for a non-Google Cloud
# resource, the resourceName can be a customer or partner defined string. This
# field is immutable after creation time.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# User specified security marks that are attached to the parent Security Command
# Center resource. Security marks are scoped within a Security Command Center
# organization -- they can be modified and viewed by all users who have proper
# permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The severity of the finding.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Source specific properties. These properties are managed by the source that
# writes the finding. The key names in the source_properties map must be between
# 1 and 255 characters, and must start with a letter and contain alphanumeric
# characters or underscores only.
# Corresponds to the JSON property `sourceProperties`
# @return [Hash<String,Object>]
attr_accessor :source_properties
# The state of the finding.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@create_time = args[:create_time] if args.key?(:create_time)
@event_time = args[:event_time] if args.key?(:event_time)
@external_uri = args[:external_uri] if args.key?(:external_uri)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@severity = args[:severity] if args.key?(:severity)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end
end
# Cloud IAM Policy information associated with the Google Cloud resource
# described by the Security Command Center asset. This information is managed
# and defined by the Google Cloud resource and cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
include Google::Apis::Core::Hashable
# The JSON representation of the Policy associated with the asset. See https://
# cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.
# Corresponds to the JSON property `policyBlob`
# @return [String]
attr_accessor :policy_blob
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
end
end
# Security Command Center's Notification
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
include Google::Apis::Core::Hashable
# Security Command Center finding. A finding is a record of assessment data (
# security, risk, health or privacy) ingested into Security Command Center for
# presentation, notification, analysis, policy testing, and enforcement. For
# example, an XSS vulnerability in an App Engine application is a finding.
# Corresponds to the JSON property `finding`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding]
attr_accessor :finding
# Name of the notification config that generated current notification.
# Corresponds to the JSON property `notificationConfigName`
# @return [String]
attr_accessor :notification_config_name
# Information related to the Google Cloud resource.
# Corresponds to the JSON property `resource`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Resource]
attr_accessor :resource
# Wrapper over asset object that also captures the state change for the asset e.
# g. if it was a newly created asset vs updated or deleted asset.
# Corresponds to the JSON property `temporalAsset`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
attr_accessor :temporal_asset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finding = args[:finding] if args.key?(:finding)
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
@resource = args[:resource] if args.key?(:resource)
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
end
end
# Information related to the Google Cloud resource.
class GoogleCloudSecuritycenterV1p1beta1Resource
include Google::Apis::Core::Hashable
# The full resource name of the resource. See: https://cloud.google.com/apis/
# design/resource_names#full_resource_name
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The full resource name of resource's parent.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The human readable name of resource's parent.
# Corresponds to the JSON property `parentDisplayName`
# @return [String]
attr_accessor :parent_display_name
# The full resource name of project that the resource belongs to.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# The human readable name of project that the resource belongs to.
# Corresponds to the JSON property `projectDisplayName`
# @return [String]
attr_accessor :project_display_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
@project = args[:project] if args.key?(:project)
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
end
end
# Response of asset discovery run
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
# The duration between asset discovery run start and end
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# The state of an asset discovery run.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@state = args[:state] if args.key?(:state)
end
end
# Security Command Center managed properties. These properties are managed by
# Security Command Center and cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
include Google::Apis::Core::Hashable
# The user defined display name for this resource.
# Corresponds to the JSON property `resourceDisplayName`
# @return [String]
attr_accessor :resource_display_name
# The full resource name of the Google Cloud resource this asset represents.
# This field is immutable after create time. See: https://cloud.google.com/apis/
# design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# Owners of the Google Cloud resource.
# Corresponds to the JSON property `resourceOwners`
# @return [Array<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
# Center resource. Security marks are scoped within a Security Command Center
# organization -- they can be modified and viewed by all users who have proper
# permissions on the organization.
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
include Google::Apis::Core::Hashable
# Mutable user specified security marks belonging to the parent resource.
# Constraints are as follows: * Keys and values are treated as case insensitive *
# Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
# numbers, underscores, or dashes * Values have leading and trailing whitespace
# trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
# Corresponds to the JSON property `marks`
# @return [Hash<String,String>]
attr_accessor :marks
# The relative resource name of the SecurityMarks. See: https://cloud.google.com/
# apis/design/resource_names#relative_resource_name Examples: "organizations/`
# organization_id`/assets/`asset_id`/securityMarks" "organizations/`
# organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@marks = args[:marks] if args.key?(:marks)
@name = args[:name] if args.key?(:name)
end
end
# Wrapper over asset object that also captures the state change for the asset e.
# g. if it was a newly created asset vs updated or deleted asset.
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
include Google::Apis::Core::Hashable
# Security Command Center representation of a Google Cloud resource. The Asset
# is a Security Command Center resource that captures information about a single
# Google Cloud resource. All modifications to an Asset are only within the
# context of Security Command Center and don't affect the referenced Google
# Cloud resource.
# Corresponds to the JSON property `asset`
# @return [Google::Apis::SecuritycenterV1p1alpha1::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
# The response message for Operations.ListOperations.
class ListOperationsResponse
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::SecuritycenterV1p1alpha1::Operation>]
attr_accessor :operations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# 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::SecuritycenterV1p1alpha1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# 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
# User specified security marks that are attached to the parent Security Command
# Center resource. Security marks are scoped within a Security Command Center
# organization -- they can be modified and viewed by all users who have proper
# permissions on the organization.
class SecurityMarks
include Google::Apis::Core::Hashable
# Mutable user specified security marks belonging to the parent resource.
# Constraints are as follows: * Keys and values are treated as case insensitive *
# Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
# numbers, underscores, or dashes * Values have leading and trailing whitespace
# trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
# Corresponds to the JSON property `marks`
# @return [Hash<String,String>]
attr_accessor :marks
# The relative resource name of the SecurityMarks. See: https://cloud.google.com/
# apis/design/resource_names#relative_resource_name Examples: "organizations/`
# organization_id`/assets/`asset_id`/securityMarks" "organizations/`
# organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@marks = args[:marks] if args.key?(:marks)
@name = args[:name] if args.key?(:name)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@details = args[:details] if args.key?(:details)
@message = args[:message] if args.key?(:message)
end
end
end
end
end

View File

@ -1,343 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module SecuritycenterV1p1alpha1
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1alpha1::SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1alpha1::SecurityMarks::Representation
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1alpha1::Finding, decorator: Google::Apis::SecuritycenterV1p1alpha1::Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1Resource::Representation
end
end
class GoogleCloudSecuritycenterV1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
property :project, as: 'project'
property :project_display_name, as: 'projectDisplayName'
end
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
property :name, as: 'name'
hash :resource_properties, as: 'resourceProperties'
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSecuritycenterV1p1beta1Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :severity, as: 'severity'
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_blob, as: 'policyBlob'
end
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
end
end
class GoogleCloudSecuritycenterV1p1beta1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
property :project, as: 'project'
property :project_display_name, as: 'projectDisplayName'
end
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :change_type, as: 'changeType'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1p1alpha1::Operation, decorator: Google::Apis::SecuritycenterV1p1alpha1::Operation::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::SecuritycenterV1p1alpha1::Status, decorator: Google::Apis::SecuritycenterV1p1alpha1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
end
end
end

View File

@ -1,207 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module SecuritycenterV1p1alpha1
# Security Command Center API
#
# Security Command Center API provides access to temporal views of assets and
# findings within an organization.
#
# @example
# require 'google/apis/securitycenter_v1p1alpha1'
#
# Securitycenter = Google::Apis::SecuritycenterV1p1alpha1 # Alias the module
# service = Securitycenter::SecurityCommandCenterService.new
#
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
class SecurityCommandCenterService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://securitycenter.googleapis.com/', '')
@batch_path = 'batch'
end
# 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 [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::SecuritycenterV1p1alpha1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SecuritycenterV1p1alpha1::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_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1alpha1/{+name}:cancel', options)
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::Empty::Representation
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::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::SecuritycenterV1p1alpha1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SecuritycenterV1p1alpha1::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_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1p1alpha1/{+name}', options)
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::Empty::Representation
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::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::SecuritycenterV1p1alpha1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SecuritycenterV1p1alpha1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1alpha1/{+name}', options)
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::Operation::Representation
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SecuritycenterV1p1alpha1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SecuritycenterV1p1alpha1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_organization_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1alpha1/{+name}', options)
command.response_representation = Google::Apis::SecuritycenterV1p1alpha1::ListOperationsResponse::Representation
command.response_class = Google::Apis::SecuritycenterV1p1alpha1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -1,35 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/securitycenter_v1p1beta1/service.rb'
require 'google/apis/securitycenter_v1p1beta1/classes.rb'
require 'google/apis/securitycenter_v1p1beta1/representations.rb'
module Google
module Apis
# Security Command Center API
#
# Security Command Center API provides access to temporal views of assets and
# findings within an organization.
#
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,790 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module SecuritycenterV1p1beta1
class AssetDiscoveryConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetPolicyOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupAssetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupFindingsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupFindingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAssetsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFindingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFindingsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListNotificationConfigsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RunAssetDiscoveryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetFindingStateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StreamingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AssetDiscoveryConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inclusion_mode, as: 'inclusionMode'
collection :project_ids, as: 'projectIds'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SecuritycenterV1p1beta1::AuditLogConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::SecuritycenterV1p1beta1::Expr, decorator: Google::Apis::SecuritycenterV1p1beta1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1beta1::SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1beta1::SecurityMarks::Representation
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :options, as: 'options', class: Google::Apis::SecuritycenterV1p1beta1::GetPolicyOptions, decorator: Google::Apis::SecuritycenterV1p1beta1::GetPolicyOptions::Representation
end
end
class GetPolicyOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :requested_policy_version, as: 'requestedPolicyVersion'
end
end
class GoogleCloudSecuritycenterV1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1beta1::Finding, decorator: Google::Apis::SecuritycenterV1p1beta1::Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1Resource::Representation
end
end
class GoogleCloudSecuritycenterV1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
property :project, as: 'project'
property :project_display_name, as: 'projectDisplayName'
end
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
property :name, as: 'name'
hash :resource_properties, as: 'resourceProperties'
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSecuritycenterV1p1beta1Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :severity, as: 'severity'
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_blob, as: 'policyBlob'
end
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
end
end
class GoogleCloudSecuritycenterV1p1beta1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
property :project, as: 'project'
property :project_display_name, as: 'projectDisplayName'
end
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :change_type, as: 'changeType'
end
end
class GroupAssetsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compare_duration, as: 'compareDuration'
property :filter, as: 'filter'
property :group_by, as: 'groupBy'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :read_time, as: 'readTime'
end
end
class GroupAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1p1beta1::GroupResult, decorator: Google::Apis::SecuritycenterV1p1beta1::GroupResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class GroupFindingsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compare_duration, as: 'compareDuration'
property :filter, as: 'filter'
property :group_by, as: 'groupBy'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :read_time, as: 'readTime'
end
end
class GroupFindingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1p1beta1::GroupResult, decorator: Google::Apis::SecuritycenterV1p1beta1::GroupResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class GroupResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
hash :properties, as: 'properties'
end
end
class ListAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :list_assets_results, as: 'listAssetsResults', class: Google::Apis::SecuritycenterV1p1beta1::ListAssetsResult, decorator: Google::Apis::SecuritycenterV1p1beta1::ListAssetsResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class ListAssetsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :state_change, as: 'stateChange'
end
end
class ListFindingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :list_findings_results, as: 'listFindingsResults', class: Google::Apis::SecuritycenterV1p1beta1::ListFindingsResult, decorator: Google::Apis::SecuritycenterV1p1beta1::ListFindingsResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class ListFindingsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1beta1::Resource, decorator: Google::Apis::SecuritycenterV1p1beta1::Resource::Representation
property :state_change, as: 'stateChange'
end
end
class ListNotificationConfigsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :notification_configs, as: 'notificationConfigs', class: Google::Apis::SecuritycenterV1p1beta1::NotificationConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::NotificationConfig::Representation
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1p1beta1::Operation, decorator: Google::Apis::SecuritycenterV1p1beta1::Operation::Representation
end
end
class ListSourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :sources, as: 'sources', class: Google::Apis::SecuritycenterV1p1beta1::Source, decorator: Google::Apis::SecuritycenterV1p1beta1::Source::Representation
end
end
class NotificationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :event_type, as: 'eventType'
property :name, as: 'name'
property :pubsub_topic, as: 'pubsubTopic'
property :service_account, as: 'serviceAccount'
property :streaming_config, as: 'streamingConfig', class: Google::Apis::SecuritycenterV1p1beta1::StreamingConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::StreamingConfig::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::SecuritycenterV1p1beta1::Status, decorator: Google::Apis::SecuritycenterV1p1beta1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class OrganizationSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset_discovery_config, as: 'assetDiscoveryConfig', class: Google::Apis::SecuritycenterV1p1beta1::AssetDiscoveryConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::AssetDiscoveryConfig::Representation
property :enable_asset_discovery, as: 'enableAssetDiscovery'
property :name, as: 'name'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SecuritycenterV1p1beta1::AuditConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::SecuritycenterV1p1beta1::Binding, decorator: Google::Apis::SecuritycenterV1p1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent_display_name, as: 'parentDisplayName'
property :parent_name, as: 'parentName'
property :project_display_name, as: 'projectDisplayName'
property :project_name, as: 'projectName'
end
end
class RunAssetDiscoveryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class SetFindingStateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start_time, as: 'startTime'
property :state, as: 'state'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::SecuritycenterV1p1beta1::Policy, decorator: Google::Apis::SecuritycenterV1p1beta1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
property :name, as: 'name'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class StreamingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServicemanagementV1
VERSION = 'V1'
REVISION = '20200807'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2450,7 +2450,7 @@ module Google
# AccessControl The mixin construct implies that all methods in `AccessControl`
# are also declared with same name and request/response types in `Storage`. A
# documentation generator or annotation processor will see the effective `
# Storage.GetAcl` method after inherting documentation and annotations as
# Storage.GetAcl` method after inheriting documentation and annotations as
# follows: service Storage ` // Get the underlying ACL object. rpc GetAcl(
# GetAclRequest) returns (Acl) ` option (google.api.http).get = "/v2/`resource=**
# `:getAcl"; ` ... ` Note how the version in the path pattern changed from `v1`

View File

@ -1,52 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/tagmanager_v1/service.rb'
require 'google/apis/tagmanager_v1/classes.rb'
require 'google/apis/tagmanager_v1/representations.rb'
module Google
module Apis
# Tag Manager API
#
# This API allows clients to access and modify container and tag configuration.
#
# @see https://developers.google.com/tag-manager
module TagmanagerV1
VERSION = 'V1'
REVISION = '20200803'
# Delete your Google Tag Manager containers
AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
# Manage your Google Tag Manager container and its subcomponents, excluding versioning and publishing
AUTH_TAGMANAGER_EDIT_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.edit.containers'
# Manage your Google Tag Manager container versions
AUTH_TAGMANAGER_EDIT_CONTAINERVERSIONS = 'https://www.googleapis.com/auth/tagmanager.edit.containerversions'
# View and manage your Google Tag Manager accounts
AUTH_TAGMANAGER_MANAGE_ACCOUNTS = 'https://www.googleapis.com/auth/tagmanager.manage.accounts'
# Manage user permissions of your Google Tag Manager account and container
AUTH_TAGMANAGER_MANAGE_USERS = 'https://www.googleapis.com/auth/tagmanager.manage.users'
# Publish your Google Tag Manager container versions
AUTH_TAGMANAGER_PUBLISH = 'https://www.googleapis.com/auth/tagmanager.publish'
# View your Google Tag Manager container and its subcomponents
AUTH_TAGMANAGER_READONLY = 'https://www.googleapis.com/auth/tagmanager.readonly'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,630 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module TagmanagerV1
class Account
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountAccess
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Container
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerAccess
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerVersion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerVersionHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateContainerVersionRequestVersionOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateContainerVersionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Environment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Folder
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderEntities
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAccountUsersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAccountsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListContainerVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListContainersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListEnvironmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFoldersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTagsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTriggersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVariablesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Macro
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Parameter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PublishContainerVersionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetupTag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Tag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TeardownTag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Trigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserAccess
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Variable
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Account
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :share_data, as: 'shareData'
end
end
class AccountAccess
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permission, as: 'permission'
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :type, as: 'type'
end
end
class Container
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
collection :domain_name, as: 'domainName'
collection :enabled_built_in_variable, as: 'enabledBuiltInVariable'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :notes, as: 'notes'
property :public_id, as: 'publicId'
property :time_zone_country_id, as: 'timeZoneCountryId'
property :time_zone_id, as: 'timeZoneId'
collection :usage_context, as: 'usageContext'
end
end
class ContainerAccess
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container_id, as: 'containerId'
collection :permission, as: 'permission'
end
end
class ContainerVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container, as: 'container', class: Google::Apis::TagmanagerV1::Container, decorator: Google::Apis::TagmanagerV1::Container::Representation
property :container_id, as: 'containerId'
property :container_version_id, as: 'containerVersionId'
property :deleted, as: 'deleted'
property :fingerprint, as: 'fingerprint'
collection :folder, as: 'folder', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation
collection :macro, as: 'macro', class: Google::Apis::TagmanagerV1::Macro, decorator: Google::Apis::TagmanagerV1::Macro::Representation
property :name, as: 'name'
property :notes, as: 'notes'
collection :rule, as: 'rule', class: Google::Apis::TagmanagerV1::Rule, decorator: Google::Apis::TagmanagerV1::Rule::Representation
collection :tag, as: 'tag', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
collection :trigger, as: 'trigger', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
collection :variable, as: 'variable', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation
end
end
class ContainerVersionHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
property :container_version_id, as: 'containerVersionId'
property :deleted, as: 'deleted'
property :name, as: 'name'
property :num_macros, as: 'numMacros'
property :num_rules, as: 'numRules'
property :num_tags, as: 'numTags'
property :num_triggers, as: 'numTriggers'
property :num_variables, as: 'numVariables'
end
end
class CreateContainerVersionRequestVersionOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :notes, as: 'notes'
property :quick_preview, as: 'quickPreview'
end
end
class CreateContainerVersionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compiler_error, as: 'compilerError'
property :container_version, as: 'containerVersion', class: Google::Apis::TagmanagerV1::ContainerVersion, decorator: Google::Apis::TagmanagerV1::ContainerVersion::Representation
end
end
class Environment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :authorization_code, as: 'authorizationCode'
property :authorization_timestamp_ms, :numeric_string => true, as: 'authorizationTimestampMs'
property :container_id, as: 'containerId'
property :container_version_id, as: 'containerVersionId'
property :description, as: 'description'
property :enable_debug, as: 'enableDebug'
property :environment_id, as: 'environmentId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :type, as: 'type'
property :url, as: 'url'
end
end
class Folder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
property :fingerprint, as: 'fingerprint'
property :folder_id, as: 'folderId'
property :name, as: 'name'
end
end
class FolderEntities
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :tag, as: 'tag', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
collection :trigger, as: 'trigger', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
collection :variable, as: 'variable', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation
end
end
class ListAccountUsersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :user_access, as: 'userAccess', class: Google::Apis::TagmanagerV1::UserAccess, decorator: Google::Apis::TagmanagerV1::UserAccess::Representation
end
end
class ListAccountsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accounts, as: 'accounts', class: Google::Apis::TagmanagerV1::Account, decorator: Google::Apis::TagmanagerV1::Account::Representation
end
end
class ListContainerVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :container_version, as: 'containerVersion', class: Google::Apis::TagmanagerV1::ContainerVersion, decorator: Google::Apis::TagmanagerV1::ContainerVersion::Representation
collection :container_version_header, as: 'containerVersionHeader', class: Google::Apis::TagmanagerV1::ContainerVersionHeader, decorator: Google::Apis::TagmanagerV1::ContainerVersionHeader::Representation
end
end
class ListContainersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :containers, as: 'containers', class: Google::Apis::TagmanagerV1::Container, decorator: Google::Apis::TagmanagerV1::Container::Representation
end
end
class ListEnvironmentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :environments, as: 'environments', class: Google::Apis::TagmanagerV1::Environment, decorator: Google::Apis::TagmanagerV1::Environment::Representation
end
end
class ListFoldersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :folders, as: 'folders', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation
end
end
class ListTagsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :tags, as: 'tags', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
end
end
class ListTriggersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :triggers, as: 'triggers', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
end
end
class ListVariablesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :variables, as: 'variables', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation
end
end
class Macro
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
collection :disabling_rule_id, as: 'disablingRuleId'
collection :enabling_rule_id, as: 'enablingRuleId'
property :fingerprint, as: 'fingerprint'
property :macro_id, as: 'macroId'
property :name, as: 'name'
property :notes, as: 'notes'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :schedule_end_ms, :numeric_string => true, as: 'scheduleEndMs'
property :schedule_start_ms, :numeric_string => true, as: 'scheduleStartMs'
property :type, as: 'type'
end
end
class Parameter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
collection :list, as: 'list', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
collection :map, as: 'map', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :type, as: 'type'
property :value, as: 'value'
end
end
class PublishContainerVersionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compiler_error, as: 'compilerError'
property :container_version, as: 'containerVersion', class: Google::Apis::TagmanagerV1::ContainerVersion, decorator: Google::Apis::TagmanagerV1::ContainerVersion::Representation
end
end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
collection :condition, as: 'condition', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :container_id, as: 'containerId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :notes, as: 'notes'
property :rule_id, as: 'ruleId'
end
end
class SetupTag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stop_on_setup_failure, as: 'stopOnSetupFailure'
property :tag_name, as: 'tagName'
end
end
class Tag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
collection :blocking_rule_id, as: 'blockingRuleId'
collection :blocking_trigger_id, as: 'blockingTriggerId'
property :container_id, as: 'containerId'
property :fingerprint, as: 'fingerprint'
collection :firing_rule_id, as: 'firingRuleId'
collection :firing_trigger_id, as: 'firingTriggerId'
property :live_only, as: 'liveOnly'
property :name, as: 'name'
property :notes, as: 'notes'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :paused, as: 'paused'
property :priority, as: 'priority', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :schedule_end_ms, :numeric_string => true, as: 'scheduleEndMs'
property :schedule_start_ms, :numeric_string => true, as: 'scheduleStartMs'
collection :setup_tag, as: 'setupTag', class: Google::Apis::TagmanagerV1::SetupTag, decorator: Google::Apis::TagmanagerV1::SetupTag::Representation
property :tag_firing_option, as: 'tagFiringOption'
property :tag_id, as: 'tagId'
collection :teardown_tag, as: 'teardownTag', class: Google::Apis::TagmanagerV1::TeardownTag, decorator: Google::Apis::TagmanagerV1::TeardownTag::Representation
property :type, as: 'type'
end
end
class TeardownTag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stop_teardown_on_failure, as: 'stopTeardownOnFailure'
property :tag_name, as: 'tagName'
end
end
class Trigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
collection :auto_event_filter, as: 'autoEventFilter', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :check_validation, as: 'checkValidation', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :container_id, as: 'containerId'
property :continuous_time_min_milliseconds, as: 'continuousTimeMinMilliseconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
collection :custom_event_filter, as: 'customEventFilter', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :event_name, as: 'eventName', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
collection :filter, as: 'filter', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :fingerprint, as: 'fingerprint'
property :horizontal_scroll_percentage_list, as: 'horizontalScrollPercentageList', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :interval, as: 'interval', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :interval_seconds, as: 'intervalSeconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :limit, as: 'limit', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :max_timer_length_seconds, as: 'maxTimerLengthSeconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :name, as: 'name'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :selector, as: 'selector', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :total_time_min_milliseconds, as: 'totalTimeMinMilliseconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :trigger_id, as: 'triggerId'
property :type, as: 'type'
property :unique_trigger_id, as: 'uniqueTriggerId', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :vertical_scroll_percentage_list, as: 'verticalScrollPercentageList', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :visibility_selector, as: 'visibilitySelector', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :visible_percentage_max, as: 'visiblePercentageMax', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :visible_percentage_min, as: 'visiblePercentageMin', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :wait_for_tags, as: 'waitForTags', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :wait_for_tags_timeout, as: 'waitForTagsTimeout', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
end
end
class UserAccess
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_access, as: 'accountAccess', class: Google::Apis::TagmanagerV1::AccountAccess, decorator: Google::Apis::TagmanagerV1::AccountAccess::Representation
property :account_id, as: 'accountId'
collection :container_access, as: 'containerAccess', class: Google::Apis::TagmanagerV1::ContainerAccess, decorator: Google::Apis::TagmanagerV1::ContainerAccess::Representation
property :email_address, as: 'emailAddress'
property :permission_id, as: 'permissionId'
end
end
class Variable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
collection :disabling_trigger_id, as: 'disablingTriggerId'
collection :enabling_trigger_id, as: 'enablingTriggerId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :notes, as: 'notes'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :schedule_end_ms, :numeric_string => true, as: 'scheduleEndMs'
property :schedule_start_ms, :numeric_string => true, as: 'scheduleStartMs'
property :type, as: 'type'
property :variable_id, as: 'variableId'
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,52 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/tagmanager_v2/service.rb'
require 'google/apis/tagmanager_v2/classes.rb'
require 'google/apis/tagmanager_v2/representations.rb'
module Google
module Apis
# Tag Manager API
#
# This API allows clients to access and modify container and tag configuration.
#
# @see https://developers.google.com/tag-manager
module TagmanagerV2
VERSION = 'V2'
REVISION = '20200803'
# Delete your Google Tag Manager containers
AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
# Manage your Google Tag Manager container and its subcomponents, excluding versioning and publishing
AUTH_TAGMANAGER_EDIT_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.edit.containers'
# Manage your Google Tag Manager container versions
AUTH_TAGMANAGER_EDIT_CONTAINERVERSIONS = 'https://www.googleapis.com/auth/tagmanager.edit.containerversions'
# View and manage your Google Tag Manager accounts
AUTH_TAGMANAGER_MANAGE_ACCOUNTS = 'https://www.googleapis.com/auth/tagmanager.manage.accounts'
# Manage user permissions of your Google Tag Manager account and container
AUTH_TAGMANAGER_MANAGE_USERS = 'https://www.googleapis.com/auth/tagmanager.manage.users'
# Publish your Google Tag Manager container versions
AUTH_TAGMANAGER_PUBLISH = 'https://www.googleapis.com/auth/tagmanager.publish'
# View your Google Tag Manager container and its subcomponents
AUTH_TAGMANAGER_READONLY = 'https://www.googleapis.com/auth/tagmanager.readonly'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20200805'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1368,6 +1368,11 @@ module Google
class IosTestSetup
include Google::Apis::Core::Hashable
# iOS apps to install in addition to those being directly tested.
# Corresponds to the JSON property `additionalIpas`
# @return [Array<Google::Apis::TestingV1::FileReference>]
attr_accessor :additional_ipas
# The network traffic profile used for running the test. Available network
# profiles can be queried by using the NETWORK_CONFIGURATION environment type
# when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.
@ -1381,6 +1386,7 @@ module Google
# Update properties of this object
def update!(**args)
@additional_ipas = args[:additional_ipas] if args.key?(:additional_ipas)
@network_profile = args[:network_profile] if args.key?(:network_profile)
end
end

View File

@ -826,6 +826,8 @@ module Google
class IosTestSetup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_ipas, as: 'additionalIpas', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
property :network_profile, as: 'networkProfile'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://devsite.googleplex.com/youtube/partner/docs/v1/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20200807'
REVISION = '20200825'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'