diff --git a/api_names_out.yaml b/api_names_out.yaml index 7fbab7c11..d42cce8de 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -6405,6 +6405,331 @@ "/analytics:v3/key": key "/analytics:v3/quotaUser": quota_user "/analytics:v3/userIp": user_ip +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccount": google_analytics_admin_v1alpha_account +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccount/countryCode": country_code +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccount/createTime": create_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccount/deleted": deleted +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccount/displayName": display_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccount/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccount/updateTime": update_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccountSummary": google_analytics_admin_v1alpha_account_summary +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccountSummary/account": account +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccountSummary/displayName": display_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccountSummary/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccountSummary/propertySummaries": property_summaries +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAccountSummary/propertySummaries/property_summary": property_summary +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAndroidAppDataStream": google_analytics_admin_v1alpha_android_app_data_stream +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAndroidAppDataStream/createTime": create_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAndroidAppDataStream/displayName": display_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAndroidAppDataStream/firebaseAppId": firebase_app_id +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAndroidAppDataStream/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAndroidAppDataStream/packageName": package_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAndroidAppDataStream/updateTime": update_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLink": google_analytics_admin_v1alpha_audit_user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLink/directRoles": direct_roles +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLink/directRoles/direct_role": direct_role +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLink/effectiveRoles": effective_roles +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLink/effectiveRoles/effective_role": effective_role +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLink/emailAddress": email_address +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLink/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLinksRequest": google_analytics_admin_v1alpha_audit_user_links_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLinksRequest/pageSize": page_size +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLinksRequest/pageToken": page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse": google_analytics_admin_v1alpha_audit_user_links_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse/userLinks": user_links +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse/userLinks/user_link": user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest": google_analytics_admin_v1alpha_batch_create_user_links_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest/notifyNewUsers": notify_new_users +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest/requests": requests +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest/requests/request": request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse": google_analytics_admin_v1alpha_batch_create_user_links_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse/userLinks": user_links +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse/userLinks/user_link": user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest": google_analytics_admin_v1alpha_batch_delete_user_links_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest/requests": requests +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest/requests/request": request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse": google_analytics_admin_v1alpha_batch_get_user_links_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse/userLinks": user_links +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse/userLinks/user_link": user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest": google_analytics_admin_v1alpha_batch_update_user_links_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest/requests": requests +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest/requests/request": request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse": google_analytics_admin_v1alpha_batch_update_user_links_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse/userLinks": user_links +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse/userLinks/user_link": user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaCreateUserLinkRequest": google_analytics_admin_v1alpha_create_user_link_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaCreateUserLinkRequest/notifyNewUser": notify_new_user +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaCreateUserLinkRequest/parent": parent +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaCreateUserLinkRequest/userLink": user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDataSharingSettings": google_analytics_admin_v1alpha_data_sharing_settings +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDataSharingSettings/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDataSharingSettings/sharingWithGoogleAnySalesEnabled": sharing_with_google_any_sales_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDataSharingSettings/sharingWithGoogleAssignedSalesEnabled": sharing_with_google_assigned_sales_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDataSharingSettings/sharingWithGoogleProductsEnabled": sharing_with_google_products_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDataSharingSettings/sharingWithGoogleSupportEnabled": sharing_with_google_support_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDataSharingSettings/sharingWithOthersEnabled": sharing_with_others_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest": google_analytics_admin_v1alpha_delete_user_link_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings": google_analytics_admin_v1alpha_enhanced_measurement_settings +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/articlesAndBlogsEnabled": articles_and_blogs_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/contentViewsEnabled": content_views_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/dataTaggedElementClicksEnabled": data_tagged_element_clicks_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/excludedDomains": excluded_domains +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/fileDownloadsEnabled": file_downloads_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/formInteractionsEnabled": form_interactions_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/outboundClicksEnabled": outbound_clicks_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/pageChangesEnabled": page_changes_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/pageLoadsEnabled": page_loads_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/pageViewsEnabled": page_views_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/productsAndEcommerceEnabled": products_and_ecommerce_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/scrollsEnabled": scrolls_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/searchQueryParameter": search_query_parameter +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/siteSearchEnabled": site_search_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/streamEnabled": stream_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/urlQueryParameter": url_query_parameter +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings/videoEngagementEnabled": video_engagement_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink": google_analytics_admin_v1alpha_firebase_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink/createTime": create_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink/maximumUserAccess": maximum_user_access +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink/project": project +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGlobalSiteTag": google_analytics_admin_v1alpha_global_site_tag +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGlobalSiteTag/snippet": snippet +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink": google_analytics_admin_v1alpha_google_ads_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/adsPersonalizationEnabled": ads_personalization_enabled +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/canManageClients": can_manage_clients +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/createTime": create_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/customerId": customer_id +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/emailAddress": email_address +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/parent": parent +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaGoogleAdsLink/updateTime": update_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaIosAppDataStream": google_analytics_admin_v1alpha_ios_app_data_stream +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaIosAppDataStream/bundleId": bundle_id +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaIosAppDataStream/createTime": create_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaIosAppDataStream/displayName": display_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaIosAppDataStream/firebaseAppId": firebase_app_id +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaIosAppDataStream/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaIosAppDataStream/updateTime": update_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountSummariesResponse": google_analytics_admin_v1alpha_list_account_summaries_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountSummariesResponse/accountSummaries": account_summaries +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountSummariesResponse/accountSummaries/account_summary": account_summary +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountSummariesResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountsResponse": google_analytics_admin_v1alpha_list_accounts_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountsResponse/accounts": accounts +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountsResponse/accounts/account": account +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAccountsResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse": google_analytics_admin_v1alpha_list_android_app_data_streams_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse/androidAppDataStreams": android_app_data_streams +? "/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse/androidAppDataStreams/android_app_data_stream" +: android_app_data_stream +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse": google_analytics_admin_v1alpha_list_firebase_links_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse/firebaseLinks": firebase_links +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse/firebaseLinks/firebase_link": firebase_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse": google_analytics_admin_v1alpha_list_google_ads_links_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse/googleAdsLinks": google_ads_links +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse/googleAdsLinks/google_ads_link": google_ads_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse": google_analytics_admin_v1alpha_list_ios_app_data_streams_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse/iosAppDataStreams": ios_app_data_streams +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse/iosAppDataStreams/ios_app_data_stream": ios_app_data_stream +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListPropertiesResponse": google_analytics_admin_v1alpha_list_properties_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListPropertiesResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListPropertiesResponse/properties": properties +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListPropertiesResponse/properties/property": property +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListUserLinksResponse": google_analytics_admin_v1alpha_list_user_links_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListUserLinksResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListUserLinksResponse/userLinks": user_links +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListUserLinksResponse/userLinks/user_link": user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse": google_analytics_admin_v1alpha_list_web_data_streams_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse/nextPageToken": next_page_token +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse/webDataStreams": web_data_streams +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse/webDataStreams/web_data_stream": web_data_stream +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty": google_analytics_admin_v1alpha_property +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/createTime": create_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/currencyCode": currency_code +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/deleted": deleted +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/displayName": display_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/industryCategory": industry_category +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/parent": parent +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/timeZone": time_zone +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProperty/updateTime": update_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaPropertySummary": google_analytics_admin_v1alpha_property_summary +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaPropertySummary/displayName": display_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaPropertySummary/property": property +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest": google_analytics_admin_v1alpha_provision_account_ticket_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest/account": account +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest/redirectUri": redirect_uri +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse": google_analytics_admin_v1alpha_provision_account_ticket_response +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse/accountTicketId": account_ticket_id +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest": google_analytics_admin_v1alpha_update_user_link_request +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest/userLink": user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUserLink": google_analytics_admin_v1alpha_user_link +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUserLink/directRoles": direct_roles +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUserLink/directRoles/direct_role": direct_role +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUserLink/emailAddress": email_address +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUserLink/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream": google_analytics_admin_v1alpha_web_data_stream +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream/createTime": create_time +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream/defaultUri": default_uri +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream/displayName": display_name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream/firebaseAppId": firebase_app_id +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream/measurementId": measurement_id +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream/name": name +"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaWebDataStream/updateTime": update_time +"/analyticsadmin:v1alpha/GoogleProtobufEmpty": google_protobuf_empty +"/analyticsadmin:v1alpha/analyticsadmin.accountSummaries.list": list_account_summaries +"/analyticsadmin:v1alpha/analyticsadmin.accountSummaries.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.accountSummaries.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.accounts.delete": delete_account +"/analyticsadmin:v1alpha/analyticsadmin.accounts.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.accounts.get": get_account +"/analyticsadmin:v1alpha/analyticsadmin.accounts.get/name": name +"/analyticsadmin:v1alpha/analyticsadmin.accounts.getDataSharingSettings": get_account_data_sharing_settings +"/analyticsadmin:v1alpha/analyticsadmin.accounts.getDataSharingSettings/name": name +"/analyticsadmin:v1alpha/analyticsadmin.accounts.list": list_accounts +"/analyticsadmin:v1alpha/analyticsadmin.accounts.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.accounts.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.accounts.list/showDeleted": show_deleted +"/analyticsadmin:v1alpha/analyticsadmin.accounts.patch": patch_account +"/analyticsadmin:v1alpha/analyticsadmin.accounts.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.accounts.patch/updateMask": update_mask +"/analyticsadmin:v1alpha/analyticsadmin.accounts.provisionAccountTicket": provision_account_account_ticket +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.audit": audit_account_user_link +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.audit/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchCreate": batch_account_user_link_create +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchCreate/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchDelete": batch_account_user_link_delete +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchDelete/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchGet": batch_account_user_link_get +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchGet/names": names +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchGet/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchUpdate": batch_account_user_link_update +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.batchUpdate/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.create": create_account_user_link +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.create/notifyNewUser": notify_new_user +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.create/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.delete": delete_account_user_link +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.get": get_account_user_link +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.get/name": name +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.list": list_account_user_links +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.list/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.patch": patch_account_user_link +"/analyticsadmin:v1alpha/analyticsadmin.accounts.userLinks.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.create": create_property_android_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.create/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.delete": delete_property_android_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.get": get_property_android_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.get/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.list": list_property_android_app_data_streams +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.list/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.patch": patch_property_android_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.androidAppDataStreams.patch/updateMask": update_mask +"/analyticsadmin:v1alpha/analyticsadmin.properties.create": create_property +"/analyticsadmin:v1alpha/analyticsadmin.properties.delete": delete_property +"/analyticsadmin:v1alpha/analyticsadmin.properties.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.create": create_property_firebase_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.create/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.delete": delete_property_firebase_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.list": list_property_firebase_links +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.list/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.patch": patch_property_firebase_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.patch/updateMask": update_mask +"/analyticsadmin:v1alpha/analyticsadmin.properties.get": get_property +"/analyticsadmin:v1alpha/analyticsadmin.properties.get/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.create": create_property_google_ads_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.create/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.delete": delete_property_google_ads_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.list": list_property_google_ads_links +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.list/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.patch": patch_property_google_ads_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.googleAdsLinks.patch/updateMask": update_mask +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.create": create_property_ios_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.create/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.delete": delete_property_ios_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.get": get_property_ios_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.get/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.list": list_property_ios_app_data_streams +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.list/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.patch": patch_property_ios_app_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.iosAppDataStreams.patch/updateMask": update_mask +"/analyticsadmin:v1alpha/analyticsadmin.properties.list": list_properties +"/analyticsadmin:v1alpha/analyticsadmin.properties.list/filter": filter +"/analyticsadmin:v1alpha/analyticsadmin.properties.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.properties.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.properties.list/showDeleted": show_deleted +"/analyticsadmin:v1alpha/analyticsadmin.properties.patch": patch_property +"/analyticsadmin:v1alpha/analyticsadmin.properties.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.patch/updateMask": update_mask +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.audit": audit_property_user_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.audit/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchCreate": batch_property_user_link_create +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchCreate/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchDelete": batch_property_user_link_delete +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchDelete/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchGet": batch_property_user_link_get +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchGet/names": names +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchGet/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchUpdate": batch_property_user_link_update +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.batchUpdate/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.create": create_property_user_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.create/notifyNewUser": notify_new_user +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.create/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.delete": delete_property_user_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.get": get_property_user_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.get/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.list": list_property_user_links +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.list/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.patch": patch_property_user_link +"/analyticsadmin:v1alpha/analyticsadmin.properties.userLinks.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.create": create_property_web_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.create/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.delete": delete_property_web_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.delete/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.get": get_property_web_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.get/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.getEnhancedMeasurementSettings": get_property_web_data_stream_enhanced_measurement_settings +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.getEnhancedMeasurementSettings/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.getGlobalSiteTag": get_property_web_data_stream_global_site_tag +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.getGlobalSiteTag/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.list": list_property_web_data_streams +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.list/pageSize": page_size +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.list/pageToken": page_token +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.list/parent": parent +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.patch": patch_property_web_data_stream +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.patch/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.patch/updateMask": update_mask +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.updateEnhancedMeasurementSettings": update_property_web_data_stream_enhanced_measurement_settings +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.updateEnhancedMeasurementSettings/name": name +"/analyticsadmin:v1alpha/analyticsadmin.properties.webDataStreams.updateEnhancedMeasurementSettings/updateMask": update_mask +"/analyticsadmin:v1alpha/fields": fields +"/analyticsadmin:v1alpha/key": key +"/analyticsadmin:v1alpha/quotaUser": quota_user "/analyticsdata:v1alpha/BatchRunPivotReportsRequest": batch_run_pivot_reports_request "/analyticsdata:v1alpha/BatchRunPivotReportsRequest/entity": entity "/analyticsdata:v1alpha/BatchRunPivotReportsRequest/requests": requests @@ -14420,6 +14745,8 @@ "/bigquery:v2/JobConfigurationLoad/autodetect": autodetect "/bigquery:v2/JobConfigurationLoad/clustering": clustering "/bigquery:v2/JobConfigurationLoad/createDisposition": create_disposition +"/bigquery:v2/JobConfigurationLoad/decimalTargetTypes": decimal_target_types +"/bigquery:v2/JobConfigurationLoad/decimalTargetTypes/decimal_target_type": decimal_target_type "/bigquery:v2/JobConfigurationLoad/destinationEncryptionConfiguration": destination_encryption_configuration "/bigquery:v2/JobConfigurationLoad/destinationTable": destination_table "/bigquery:v2/JobConfigurationLoad/destinationTableProperties": destination_table_properties @@ -16370,6 +16697,12 @@ "/binaryauthorization:v1/AdmissionRule/requireAttestationsBy/require_attestations_by": require_attestations_by "/binaryauthorization:v1/AdmissionWhitelistPattern": admission_whitelist_pattern "/binaryauthorization:v1/AdmissionWhitelistPattern/namePattern": name_pattern +"/binaryauthorization:v1/AttestationOccurrence": attestation_occurrence +"/binaryauthorization:v1/AttestationOccurrence/jwts": jwts +"/binaryauthorization:v1/AttestationOccurrence/jwts/jwt": jwt +"/binaryauthorization:v1/AttestationOccurrence/serializedPayload": serialized_payload +"/binaryauthorization:v1/AttestationOccurrence/signatures": signatures +"/binaryauthorization:v1/AttestationOccurrence/signatures/signature": signature "/binaryauthorization:v1/Attestor": attestor "/binaryauthorization:v1/Attestor/description": description "/binaryauthorization:v1/Attestor/name": name @@ -16397,6 +16730,8 @@ "/binaryauthorization:v1/IamPolicy/bindings/binding": binding "/binaryauthorization:v1/IamPolicy/etag": etag "/binaryauthorization:v1/IamPolicy/version": version +"/binaryauthorization:v1/Jwt": jwt +"/binaryauthorization:v1/Jwt/compactJwt": compact_jwt "/binaryauthorization:v1/ListAttestorsResponse": list_attestors_response "/binaryauthorization:v1/ListAttestorsResponse/attestors": attestors "/binaryauthorization:v1/ListAttestorsResponse/attestors/attestor": attestor @@ -16416,6 +16751,9 @@ "/binaryauthorization:v1/Policy/updateTime": update_time "/binaryauthorization:v1/SetIamPolicyRequest": set_iam_policy_request "/binaryauthorization:v1/SetIamPolicyRequest/policy": policy +"/binaryauthorization:v1/Signature": signature +"/binaryauthorization:v1/Signature/publicKeyId": public_key_id +"/binaryauthorization:v1/Signature/signature": signature "/binaryauthorization:v1/TestIamPermissionsRequest": test_iam_permissions_request "/binaryauthorization:v1/TestIamPermissionsRequest/permissions": permissions "/binaryauthorization:v1/TestIamPermissionsRequest/permissions/permission": permission @@ -16427,6 +16765,13 @@ "/binaryauthorization:v1/UserOwnedGrafeasNote/noteReference": note_reference "/binaryauthorization:v1/UserOwnedGrafeasNote/publicKeys": public_keys "/binaryauthorization:v1/UserOwnedGrafeasNote/publicKeys/public_key": public_key +"/binaryauthorization:v1/ValidateAttestationOccurrenceRequest": validate_attestation_occurrence_request +"/binaryauthorization:v1/ValidateAttestationOccurrenceRequest/attestation": attestation +"/binaryauthorization:v1/ValidateAttestationOccurrenceRequest/occurrenceNote": occurrence_note +"/binaryauthorization:v1/ValidateAttestationOccurrenceRequest/occurrenceResourceUri": occurrence_resource_uri +"/binaryauthorization:v1/ValidateAttestationOccurrenceResponse": validate_attestation_occurrence_response +"/binaryauthorization:v1/ValidateAttestationOccurrenceResponse/denialReason": denial_reason +"/binaryauthorization:v1/ValidateAttestationOccurrenceResponse/result": result "/binaryauthorization:v1/binaryauthorization.projects.attestors.create": create_project_attestor "/binaryauthorization:v1/binaryauthorization.projects.attestors.create/attestorId": attestor_id "/binaryauthorization:v1/binaryauthorization.projects.attestors.create/parent": parent @@ -16447,6 +16792,8 @@ "/binaryauthorization:v1/binaryauthorization.projects.attestors.testIamPermissions/resource": resource "/binaryauthorization:v1/binaryauthorization.projects.attestors.update": update_project_attestor "/binaryauthorization:v1/binaryauthorization.projects.attestors.update/name": name +"/binaryauthorization:v1/binaryauthorization.projects.attestors.validateAttestationOccurrence": validate_attestor_attestation_occurrence +"/binaryauthorization:v1/binaryauthorization.projects.attestors.validateAttestationOccurrence/attestor": attestor "/binaryauthorization:v1/binaryauthorization.projects.getPolicy": get_project_policy "/binaryauthorization:v1/binaryauthorization.projects.getPolicy/name": name "/binaryauthorization:v1/binaryauthorization.projects.policy.getIamPolicy": get_project_policy_iam_policy @@ -16468,6 +16815,12 @@ "/binaryauthorization:v1beta1/AdmissionRule/requireAttestationsBy/require_attestations_by": require_attestations_by "/binaryauthorization:v1beta1/AdmissionWhitelistPattern": admission_whitelist_pattern "/binaryauthorization:v1beta1/AdmissionWhitelistPattern/namePattern": name_pattern +"/binaryauthorization:v1beta1/AttestationOccurrence": attestation_occurrence +"/binaryauthorization:v1beta1/AttestationOccurrence/jwts": jwts +"/binaryauthorization:v1beta1/AttestationOccurrence/jwts/jwt": jwt +"/binaryauthorization:v1beta1/AttestationOccurrence/serializedPayload": serialized_payload +"/binaryauthorization:v1beta1/AttestationOccurrence/signatures": signatures +"/binaryauthorization:v1beta1/AttestationOccurrence/signatures/signature": signature "/binaryauthorization:v1beta1/Attestor": attestor "/binaryauthorization:v1beta1/Attestor/description": description "/binaryauthorization:v1beta1/Attestor/name": name @@ -16495,6 +16848,8 @@ "/binaryauthorization:v1beta1/IamPolicy/bindings/binding": binding "/binaryauthorization:v1beta1/IamPolicy/etag": etag "/binaryauthorization:v1beta1/IamPolicy/version": version +"/binaryauthorization:v1beta1/Jwt": jwt +"/binaryauthorization:v1beta1/Jwt/compactJwt": compact_jwt "/binaryauthorization:v1beta1/ListAttestorsResponse": list_attestors_response "/binaryauthorization:v1beta1/ListAttestorsResponse/attestors": attestors "/binaryauthorization:v1beta1/ListAttestorsResponse/attestors/attestor": attestor @@ -16514,6 +16869,9 @@ "/binaryauthorization:v1beta1/Policy/updateTime": update_time "/binaryauthorization:v1beta1/SetIamPolicyRequest": set_iam_policy_request "/binaryauthorization:v1beta1/SetIamPolicyRequest/policy": policy +"/binaryauthorization:v1beta1/Signature": signature +"/binaryauthorization:v1beta1/Signature/publicKeyId": public_key_id +"/binaryauthorization:v1beta1/Signature/signature": signature "/binaryauthorization:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request "/binaryauthorization:v1beta1/TestIamPermissionsRequest/permissions": permissions "/binaryauthorization:v1beta1/TestIamPermissionsRequest/permissions/permission": permission @@ -16525,6 +16883,13 @@ "/binaryauthorization:v1beta1/UserOwnedDrydockNote/noteReference": note_reference "/binaryauthorization:v1beta1/UserOwnedDrydockNote/publicKeys": public_keys "/binaryauthorization:v1beta1/UserOwnedDrydockNote/publicKeys/public_key": public_key +"/binaryauthorization:v1beta1/ValidateAttestationOccurrenceRequest": validate_attestation_occurrence_request +"/binaryauthorization:v1beta1/ValidateAttestationOccurrenceRequest/attestation": attestation +"/binaryauthorization:v1beta1/ValidateAttestationOccurrenceRequest/occurrenceNote": occurrence_note +"/binaryauthorization:v1beta1/ValidateAttestationOccurrenceRequest/occurrenceResourceUri": occurrence_resource_uri +"/binaryauthorization:v1beta1/ValidateAttestationOccurrenceResponse": validate_attestation_occurrence_response +"/binaryauthorization:v1beta1/ValidateAttestationOccurrenceResponse/denialReason": denial_reason +"/binaryauthorization:v1beta1/ValidateAttestationOccurrenceResponse/result": result "/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.create": create_project_attestor "/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.create/attestorId": attestor_id "/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.create/parent": parent @@ -16545,6 +16910,8 @@ "/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.testIamPermissions/resource": resource "/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.update": update_project_attestor "/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.update/name": name +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.validateAttestationOccurrence": validate_attestor_attestation_occurrence +"/binaryauthorization:v1beta1/binaryauthorization.projects.attestors.validateAttestationOccurrence/attestor": attestor "/binaryauthorization:v1beta1/binaryauthorization.projects.getPolicy": get_project_policy "/binaryauthorization:v1beta1/binaryauthorization.projects.getPolicy/name": name "/binaryauthorization:v1beta1/binaryauthorization.projects.policy.getIamPolicy": get_project_policy_iam_policy @@ -18456,6 +18823,7 @@ "/chat:v1/ActionResponse/url": url "/chat:v1/Annotation": annotation "/chat:v1/Annotation/length": length +"/chat:v1/Annotation/slashCommand": slash_command "/chat:v1/Annotation/startIndex": start_index "/chat:v1/Annotation/type": type "/chat:v1/Annotation/userMention": user_mention @@ -18552,6 +18920,7 @@ "/chat:v1/Message/name": name "/chat:v1/Message/previewText": preview_text "/chat:v1/Message/sender": sender +"/chat:v1/Message/slashCommand": slash_command "/chat:v1/Message/space": space "/chat:v1/Message/text": text "/chat:v1/Message/thread": thread @@ -18564,6 +18933,14 @@ "/chat:v1/Section/header": header "/chat:v1/Section/widgets": widgets "/chat:v1/Section/widgets/widget": widget +"/chat:v1/SlashCommand": slash_command +"/chat:v1/SlashCommand/commandId": command_id +"/chat:v1/SlashCommandMetadata": slash_command_metadata +"/chat:v1/SlashCommandMetadata/bot": bot +"/chat:v1/SlashCommandMetadata/commandId": command_id +"/chat:v1/SlashCommandMetadata/commandName": command_name +"/chat:v1/SlashCommandMetadata/triggersDialog": triggers_dialog +"/chat:v1/SlashCommandMetadata/type": type "/chat:v1/Space": space "/chat:v1/Space/displayName": display_name "/chat:v1/Space/name": name @@ -21537,6 +21914,8 @@ "/cloudfunctions:v1/CallFunctionResponse/result": result "/cloudfunctions:v1/CloudFunction": cloud_function "/cloudfunctions:v1/CloudFunction/availableMemoryMb": available_memory_mb +"/cloudfunctions:v1/CloudFunction/buildEnvironmentVariables": build_environment_variables +"/cloudfunctions:v1/CloudFunction/buildEnvironmentVariables/build_environment_variable": build_environment_variable "/cloudfunctions:v1/CloudFunction/buildId": build_id "/cloudfunctions:v1/CloudFunction/description": description "/cloudfunctions:v1/CloudFunction/entryPoint": entry_point @@ -88054,6 +88433,8 @@ "/displayvideo:v1/LineItem/partnerCosts/partner_cost": partner_cost "/displayvideo:v1/LineItem/partnerRevenueModel": partner_revenue_model "/displayvideo:v1/LineItem/updateTime": update_time +"/displayvideo:v1/LineItem/warningMessages": warning_messages +"/displayvideo:v1/LineItem/warningMessages/warning_message": warning_message "/displayvideo:v1/LineItemBudget": line_item_budget "/displayvideo:v1/LineItemBudget/budgetAllocationType": budget_allocation_type "/displayvideo:v1/LineItemBudget/budgetUnit": budget_unit @@ -108794,6 +109175,10 @@ "/logging:v2/ListSinksResponse/nextPageToken": next_page_token "/logging:v2/ListSinksResponse/sinks": sinks "/logging:v2/ListSinksResponse/sinks/sink": sink +"/logging:v2/ListViewsResponse": list_views_response +"/logging:v2/ListViewsResponse/nextPageToken": next_page_token +"/logging:v2/ListViewsResponse/views": views +"/logging:v2/ListViewsResponse/views/view": view "/logging:v2/LogBucket": log_bucket "/logging:v2/LogBucket/createTime": create_time "/logging:v2/LogBucket/description": description @@ -108873,6 +109258,12 @@ "/logging:v2/LogSink/startTime": start_time "/logging:v2/LogSink/updateTime": update_time "/logging:v2/LogSink/writerIdentity": writer_identity +"/logging:v2/LogView": log_view +"/logging:v2/LogView/createTime": create_time +"/logging:v2/LogView/description": description +"/logging:v2/LogView/filter": filter +"/logging:v2/LogView/name": name +"/logging:v2/LogView/updateTime": update_time "/logging:v2/MetricDescriptor": metric_descriptor "/logging:v2/MetricDescriptor/description": description "/logging:v2/MetricDescriptor/displayName": display_name @@ -108967,6 +109358,8 @@ "/logging:v2/key": key "/logging:v2/logging.billingAccounts.buckets.get": get_billing_account_bucket "/logging:v2/logging.billingAccounts.buckets.get/name": name +"/logging:v2/logging.billingAccounts.buckets.views.get": get_billing_account_bucket_view +"/logging:v2/logging.billingAccounts.buckets.views.get/name": name "/logging:v2/logging.billingAccounts.exclusions.create": create_billing_account_exclusion "/logging:v2/logging.billingAccounts.exclusions.create/parent": parent "/logging:v2/logging.billingAccounts.exclusions.delete": delete_billing_account_exclusion @@ -108994,6 +109387,18 @@ "/logging:v2/logging.billingAccounts.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.billingAccounts.locations.buckets.undelete": undelete_billing_account_location_bucket "/logging:v2/logging.billingAccounts.locations.buckets.undelete/name": name +"/logging:v2/logging.billingAccounts.locations.buckets.views.create": create_billing_account_location_bucket_view +"/logging:v2/logging.billingAccounts.locations.buckets.views.create/parent": parent +"/logging:v2/logging.billingAccounts.locations.buckets.views.create/viewId": view_id +"/logging:v2/logging.billingAccounts.locations.buckets.views.delete": delete_billing_account_location_bucket_view +"/logging:v2/logging.billingAccounts.locations.buckets.views.delete/name": name +"/logging:v2/logging.billingAccounts.locations.buckets.views.list": list_billing_account_location_bucket_views +"/logging:v2/logging.billingAccounts.locations.buckets.views.list/pageSize": page_size +"/logging:v2/logging.billingAccounts.locations.buckets.views.list/pageToken": page_token +"/logging:v2/logging.billingAccounts.locations.buckets.views.list/parent": parent +"/logging:v2/logging.billingAccounts.locations.buckets.views.patch": patch_billing_account_location_bucket_view +"/logging:v2/logging.billingAccounts.locations.buckets.views.patch/name": name +"/logging:v2/logging.billingAccounts.locations.buckets.views.patch/updateMask": update_mask "/logging:v2/logging.billingAccounts.logs.delete": delete_billing_account_log "/logging:v2/logging.billingAccounts.logs.delete/logName": log_name "/logging:v2/logging.billingAccounts.logs.list": list_billing_account_logs @@ -109063,6 +109468,20 @@ "/logging:v2/logging.folders.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.folders.locations.buckets.undelete": undelete_folder_location_bucket "/logging:v2/logging.folders.locations.buckets.undelete/name": name +"/logging:v2/logging.folders.locations.buckets.views.create": create_folder_location_bucket_view +"/logging:v2/logging.folders.locations.buckets.views.create/parent": parent +"/logging:v2/logging.folders.locations.buckets.views.create/viewId": view_id +"/logging:v2/logging.folders.locations.buckets.views.delete": delete_folder_location_bucket_view +"/logging:v2/logging.folders.locations.buckets.views.delete/name": name +"/logging:v2/logging.folders.locations.buckets.views.get": get_folder_location_bucket_view +"/logging:v2/logging.folders.locations.buckets.views.get/name": name +"/logging:v2/logging.folders.locations.buckets.views.list": list_folder_location_bucket_views +"/logging:v2/logging.folders.locations.buckets.views.list/pageSize": page_size +"/logging:v2/logging.folders.locations.buckets.views.list/pageToken": page_token +"/logging:v2/logging.folders.locations.buckets.views.list/parent": parent +"/logging:v2/logging.folders.locations.buckets.views.patch": patch_folder_location_bucket_view +"/logging:v2/logging.folders.locations.buckets.views.patch/name": name +"/logging:v2/logging.folders.locations.buckets.views.patch/updateMask": update_mask "/logging:v2/logging.folders.logs.delete": delete_folder_log "/logging:v2/logging.folders.logs.delete/logName": log_name "/logging:v2/logging.folders.logs.list": list_folder_logs @@ -109105,6 +109524,20 @@ "/logging:v2/logging.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.locations.buckets.undelete": undelete_location_bucket "/logging:v2/logging.locations.buckets.undelete/name": name +"/logging:v2/logging.locations.buckets.views.create": create_location_bucket_view +"/logging:v2/logging.locations.buckets.views.create/parent": parent +"/logging:v2/logging.locations.buckets.views.create/viewId": view_id +"/logging:v2/logging.locations.buckets.views.delete": delete_location_bucket_view +"/logging:v2/logging.locations.buckets.views.delete/name": name +"/logging:v2/logging.locations.buckets.views.get": get_location_bucket_view +"/logging:v2/logging.locations.buckets.views.get/name": name +"/logging:v2/logging.locations.buckets.views.list": list_location_bucket_views +"/logging:v2/logging.locations.buckets.views.list/pageSize": page_size +"/logging:v2/logging.locations.buckets.views.list/pageToken": page_token +"/logging:v2/logging.locations.buckets.views.list/parent": parent +"/logging:v2/logging.locations.buckets.views.patch": patch_location_bucket_view +"/logging:v2/logging.locations.buckets.views.patch/name": name +"/logging:v2/logging.locations.buckets.views.patch/updateMask": update_mask "/logging:v2/logging.logs.delete": delete_log "/logging:v2/logging.logs.delete/logName": log_name "/logging:v2/logging.logs.list": list_logs @@ -109145,6 +109578,20 @@ "/logging:v2/logging.organizations.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.organizations.locations.buckets.undelete": undelete_organization_location_bucket "/logging:v2/logging.organizations.locations.buckets.undelete/name": name +"/logging:v2/logging.organizations.locations.buckets.views.create": create_organization_location_bucket_view +"/logging:v2/logging.organizations.locations.buckets.views.create/parent": parent +"/logging:v2/logging.organizations.locations.buckets.views.create/viewId": view_id +"/logging:v2/logging.organizations.locations.buckets.views.delete": delete_organization_location_bucket_view +"/logging:v2/logging.organizations.locations.buckets.views.delete/name": name +"/logging:v2/logging.organizations.locations.buckets.views.get": get_organization_location_bucket_view +"/logging:v2/logging.organizations.locations.buckets.views.get/name": name +"/logging:v2/logging.organizations.locations.buckets.views.list": list_organization_location_bucket_views +"/logging:v2/logging.organizations.locations.buckets.views.list/pageSize": page_size +"/logging:v2/logging.organizations.locations.buckets.views.list/pageToken": page_token +"/logging:v2/logging.organizations.locations.buckets.views.list/parent": parent +"/logging:v2/logging.organizations.locations.buckets.views.patch": patch_organization_location_bucket_view +"/logging:v2/logging.organizations.locations.buckets.views.patch/name": name +"/logging:v2/logging.organizations.locations.buckets.views.patch/updateMask": update_mask "/logging:v2/logging.organizations.logs.delete": delete_organization_log "/logging:v2/logging.organizations.logs.delete/logName": log_name "/logging:v2/logging.organizations.logs.list": list_organization_logs @@ -109202,6 +109649,20 @@ "/logging:v2/logging.projects.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.projects.locations.buckets.undelete": undelete_project_location_bucket "/logging:v2/logging.projects.locations.buckets.undelete/name": name +"/logging:v2/logging.projects.locations.buckets.views.create": create_project_location_bucket_view +"/logging:v2/logging.projects.locations.buckets.views.create/parent": parent +"/logging:v2/logging.projects.locations.buckets.views.create/viewId": view_id +"/logging:v2/logging.projects.locations.buckets.views.delete": delete_project_location_bucket_view +"/logging:v2/logging.projects.locations.buckets.views.delete/name": name +"/logging:v2/logging.projects.locations.buckets.views.get": get_project_location_bucket_view +"/logging:v2/logging.projects.locations.buckets.views.get/name": name +"/logging:v2/logging.projects.locations.buckets.views.list": list_project_location_bucket_views +"/logging:v2/logging.projects.locations.buckets.views.list/pageSize": page_size +"/logging:v2/logging.projects.locations.buckets.views.list/pageToken": page_token +"/logging:v2/logging.projects.locations.buckets.views.list/parent": parent +"/logging:v2/logging.projects.locations.buckets.views.patch": patch_project_location_bucket_view +"/logging:v2/logging.projects.locations.buckets.views.patch/name": name +"/logging:v2/logging.projects.locations.buckets.views.patch/updateMask": update_mask "/logging:v2/logging.projects.logs.delete": delete_project_log "/logging:v2/logging.projects.logs.delete/logName": log_name "/logging:v2/logging.projects.logs.list": list_project_logs @@ -136293,6 +136754,10 @@ "/sqladmin:v1beta4/DemoteMasterMySqlReplicaConfiguration/kind": kind "/sqladmin:v1beta4/DemoteMasterMySqlReplicaConfiguration/password": password "/sqladmin:v1beta4/DemoteMasterMySqlReplicaConfiguration/username": username +"/sqladmin:v1beta4/DenyMaintenancePeriod": deny_maintenance_period +"/sqladmin:v1beta4/DenyMaintenancePeriod/endDate": end_date +"/sqladmin:v1beta4/DenyMaintenancePeriod/startDate": start_date +"/sqladmin:v1beta4/DenyMaintenancePeriod/time": time "/sqladmin:v1beta4/DiskEncryptionConfiguration": disk_encryption_configuration "/sqladmin:v1beta4/DiskEncryptionConfiguration/kind": kind "/sqladmin:v1beta4/DiskEncryptionConfiguration/kmsKeyName": kms_key_name @@ -136468,6 +136933,7 @@ "/sqladmin:v1beta4/RotateServerCaContext/nextVersion": next_version "/sqladmin:v1beta4/Settings": settings "/sqladmin:v1beta4/Settings/activationPolicy": activation_policy +"/sqladmin:v1beta4/Settings/activeDirectoryConfig": active_directory_config "/sqladmin:v1beta4/Settings/authorizedGaeApplications": authorized_gae_applications "/sqladmin:v1beta4/Settings/authorizedGaeApplications/authorized_gae_application": authorized_gae_application "/sqladmin:v1beta4/Settings/availabilityType": availability_type @@ -136479,6 +136945,8 @@ "/sqladmin:v1beta4/Settings/databaseFlags": database_flags "/sqladmin:v1beta4/Settings/databaseFlags/database_flag": database_flag "/sqladmin:v1beta4/Settings/databaseReplicationEnabled": database_replication_enabled +"/sqladmin:v1beta4/Settings/denyMaintenancePeriods": deny_maintenance_periods +"/sqladmin:v1beta4/Settings/denyMaintenancePeriods/deny_maintenance_period": deny_maintenance_period "/sqladmin:v1beta4/Settings/ipConfiguration": ip_configuration "/sqladmin:v1beta4/Settings/kind": kind "/sqladmin:v1beta4/Settings/locationPreference": location_preference @@ -136493,6 +136961,9 @@ "/sqladmin:v1beta4/Settings/tier": tier "/sqladmin:v1beta4/Settings/userLabels": user_labels "/sqladmin:v1beta4/Settings/userLabels/user_label": user_label +"/sqladmin:v1beta4/SqlActiveDirectoryConfig": sql_active_directory_config +"/sqladmin:v1beta4/SqlActiveDirectoryConfig/domain": domain +"/sqladmin:v1beta4/SqlActiveDirectoryConfig/kind": kind "/sqladmin:v1beta4/SqlExternalSyncSettingError": sql_external_sync_setting_error "/sqladmin:v1beta4/SqlExternalSyncSettingError/detail": detail "/sqladmin:v1beta4/SqlExternalSyncSettingError/kind": kind diff --git a/generated/google/apis/analyticsadmin_v1alpha.rb b/generated/google/apis/analyticsadmin_v1alpha.rb new file mode 100644 index 000000000..aea2767a2 --- /dev/null +++ b/generated/google/apis/analyticsadmin_v1alpha.rb @@ -0,0 +1,43 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/analyticsadmin_v1alpha/service.rb' +require 'google/apis/analyticsadmin_v1alpha/classes.rb' +require 'google/apis/analyticsadmin_v1alpha/representations.rb' + +module Google + module Apis + # Google Analytics Admin API + # + # + # + # @see http://code.google.com/apis/analytics/docs/mgmt/home.html + module AnalyticsadminV1alpha + VERSION = 'V1alpha' + REVISION = '20200924' + + # Edit Google Analytics management entities + AUTH_ANALYTICS_EDIT = 'https://www.googleapis.com/auth/analytics.edit' + + # Manage Google Analytics Account users by email address + AUTH_ANALYTICS_MANAGE_USERS = 'https://www.googleapis.com/auth/analytics.manage.users' + + # View Google Analytics user permissions + AUTH_ANALYTICS_MANAGE_USERS_READONLY = 'https://www.googleapis.com/auth/analytics.manage.users.readonly' + + # View your Google Analytics data + AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly' + end + end +end diff --git a/generated/google/apis/analyticsadmin_v1alpha/classes.rb b/generated/google/apis/analyticsadmin_v1alpha/classes.rb new file mode 100644 index 000000000..89d661baa --- /dev/null +++ b/generated/google/apis/analyticsadmin_v1alpha/classes.rb @@ -0,0 +1,1361 @@ +# 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 AnalyticsadminV1alpha + + # A resource message representing a Google Analytics account. + class GoogleAnalyticsAdminV1alphaAccount + include Google::Apis::Core::Hashable + + # Country of business. Must be a non-deprecated code for a UN M.49 region. https: + # //unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49. + # html + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # Output only. Time when this account was originally created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. Indicates whether this Account is soft-deleted or not. Deleted + # accounts are excluded from List results unless specifically requested. + # Corresponds to the JSON property `deleted` + # @return [Boolean] + attr_accessor :deleted + alias_method :deleted?, :deleted + + # Required. Human-readable display name for this account. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. Resource name of this account. Format: accounts/`account` Example: + # "accounts/100" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time when account payload fields were last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_code = args[:country_code] if args.key?(:country_code) + @create_time = args[:create_time] if args.key?(:create_time) + @deleted = args[:deleted] if args.key?(:deleted) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # A virtual resource representing an overview of an account and all its child + # App+Web properties. + class GoogleAnalyticsAdminV1alphaAccountSummary + include Google::Apis::Core::Hashable + + # Resource name of account referred to by this account summary Format: accounts/` + # account_id` Example: "accounts/1000" + # Corresponds to the JSON property `account` + # @return [String] + attr_accessor :account + + # Display name for the account referred to in this account summary. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Resource name for this account summary. Format: accountSummaries/`account_id` + # Example: "accountSummaries/1000" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # List of summaries for child accounts of this account. + # Corresponds to the JSON property `propertySummaries` + # @return [Array] + attr_accessor :property_summaries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account = args[:account] if args.key?(:account) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @property_summaries = args[:property_summaries] if args.key?(:property_summaries) + end + end + + # A resource message representing a Google Analytics Android app stream. + class GoogleAnalyticsAdminV1alphaAndroidAppDataStream + include Google::Apis::Core::Hashable + + # Output only. Time when this stream was originally created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Human-readable display name for the Data Stream. The max allowed display name + # length is 255 UTF-16 code units. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. ID of the corresponding Android app in Firebase, if any. This ID + # can change if the Android app is deleted and recreated. + # Corresponds to the JSON property `firebaseAppId` + # @return [String] + attr_accessor :firebase_app_id + + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/androidAppDataStreams/`stream_id` Example: "properties/1000/ + # androidAppDataStreams/2000" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Immutable. The package name for the app being measured. Example: "com.example. + # myandroidapp" + # Corresponds to the JSON property `packageName` + # @return [String] + attr_accessor :package_name + + # Output only. Time when stream payload fields were last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @display_name = args[:display_name] if args.key?(:display_name) + @firebase_app_id = args[:firebase_app_id] if args.key?(:firebase_app_id) + @name = args[:name] if args.key?(:name) + @package_name = args[:package_name] if args.key?(:package_name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Read-only resource used to summarize a principal's effective roles. + class GoogleAnalyticsAdminV1alphaAuditUserLink + include Google::Apis::Core::Hashable + + # Roles directly assigned to this user for this entity. Format: predefinedRoles/ + # read Excludes roles that are inherited from an account (if this is for a + # property), group, or organization admin role. + # Corresponds to the JSON property `directRoles` + # @return [Array] + attr_accessor :direct_roles + + # Union of all permissions a user has at this account or property (includes + # direct permissions, group-inherited permissions, etc.). Format: + # predefinedRoles/read + # Corresponds to the JSON property `effectiveRoles` + # @return [Array] + attr_accessor :effective_roles + + # Email address of the linked user + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + # Example format: properties/1234/userLinks/5678 + # 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) + @direct_roles = args[:direct_roles] if args.key?(:direct_roles) + @effective_roles = args[:effective_roles] if args.key?(:effective_roles) + @email_address = args[:email_address] if args.key?(:email_address) + @name = args[:name] if args.key?(:name) + end + end + + # Request message for AuditUserLinks RPC. + class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest + include Google::Apis::Core::Hashable + + # The maximum number of user links to return. The service may return fewer than + # this value. If unspecified, at most 1000 user links will be returned. The + # maximum value is 5000; values above 5000 will be coerced to 5000. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # A page token, received from a previous `AuditUserLinks` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `AuditUserLinks` must match the call that provided the page token. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + end + end + + # Response message for AuditUserLinks RPC. + class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of AuditUserLinks. These will be ordered stably, but in an arbitrary + # order. + # Corresponds to the JSON property `userLinks` + # @return [Array] + attr_accessor :user_links + + 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) + @user_links = args[:user_links] if args.key?(:user_links) + end + end + + # Request message for BatchCreateUserLinks RPC. + class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest + include Google::Apis::Core::Hashable + + # Optional. If notify_new_users is set, then email new users that they've been + # given permissions on the resource. + # Corresponds to the JSON property `notifyNewUsers` + # @return [Boolean] + attr_accessor :notify_new_users + alias_method :notify_new_users?, :notify_new_users + + # The requests specifying the user links to create. A maximum of 1000 user links + # can be created in a batch. + # Corresponds to the JSON property `requests` + # @return [Array] + attr_accessor :requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @notify_new_users = args[:notify_new_users] if args.key?(:notify_new_users) + @requests = args[:requests] if args.key?(:requests) + end + end + + # Response message for BatchCreateUserLinks RPC. + class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse + include Google::Apis::Core::Hashable + + # The user links created. + # Corresponds to the JSON property `userLinks` + # @return [Array] + attr_accessor :user_links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_links = args[:user_links] if args.key?(:user_links) + end + end + + # Request message for BatchDeleteUserLinks RPC. + class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest + include Google::Apis::Core::Hashable + + # The requests specifying the user links to update. A maximum of 1000 user links + # can be updated in a batch. + # Corresponds to the JSON property `requests` + # @return [Array] + attr_accessor :requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requests = args[:requests] if args.key?(:requests) + end + end + + # Response message for BatchGetUserLinks RPC. + class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse + include Google::Apis::Core::Hashable + + # The requested user links. + # Corresponds to the JSON property `userLinks` + # @return [Array] + attr_accessor :user_links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_links = args[:user_links] if args.key?(:user_links) + end + end + + # Request message for BatchUpdateUserLinks RPC. + class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest + include Google::Apis::Core::Hashable + + # The requests specifying the user links to update. A maximum of 1000 user links + # can be updated in a batch. + # Corresponds to the JSON property `requests` + # @return [Array] + attr_accessor :requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requests = args[:requests] if args.key?(:requests) + end + end + + # Response message for BatchUpdateUserLinks RPC. + class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse + include Google::Apis::Core::Hashable + + # The user links updated. + # Corresponds to the JSON property `userLinks` + # @return [Array] + attr_accessor :user_links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_links = args[:user_links] if args.key?(:user_links) + end + end + + # Request message for CreateUserLink RPC. Users can have multiple email + # addresses associated with their Google account, and one of these email + # addresses is the "primary" email address. Any of the email addresses + # associated with a Google account may be used for a new UserLink, but the + # returned UserLink will always contain the "primary" email address. As a result, + # the input and output email address for this request may differ. + class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest + include Google::Apis::Core::Hashable + + # Optional. If notify_new_user is set, then email new user that they've been + # given permissions on the resource. + # Corresponds to the JSON property `notifyNewUser` + # @return [Boolean] + attr_accessor :notify_new_user + alias_method :notify_new_user?, :notify_new_user + + # Required. Example format: accounts/1234 + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # A resource message representing a user's permissions on an Account or Property + # resource. + # Corresponds to the JSON property `userLink` + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + attr_accessor :user_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @notify_new_user = args[:notify_new_user] if args.key?(:notify_new_user) + @parent = args[:parent] if args.key?(:parent) + @user_link = args[:user_link] if args.key?(:user_link) + end + end + + # A resource message representing data sharing settings of a Google Analytics + # account. + class GoogleAnalyticsAdminV1alphaDataSharingSettings + include Google::Apis::Core::Hashable + + # Output only. Resource name. Format: accounts/`account`/dataSharingSettings + # Example: "accounts/1000/dataSharingSettings" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Allows any of Google sales to access the data in order to suggest + # configuration changes to improve results. + # Corresponds to the JSON property `sharingWithGoogleAnySalesEnabled` + # @return [Boolean] + attr_accessor :sharing_with_google_any_sales_enabled + alias_method :sharing_with_google_any_sales_enabled?, :sharing_with_google_any_sales_enabled + + # Allows Google sales teams that are assigned to the customer to access the data + # in order to suggest configuration changes to improve results. Sales team + # restrictions still apply when enabled. + # Corresponds to the JSON property `sharingWithGoogleAssignedSalesEnabled` + # @return [Boolean] + attr_accessor :sharing_with_google_assigned_sales_enabled + alias_method :sharing_with_google_assigned_sales_enabled?, :sharing_with_google_assigned_sales_enabled + + # Allows Google to use the data to improve other Google products or services. + # Corresponds to the JSON property `sharingWithGoogleProductsEnabled` + # @return [Boolean] + attr_accessor :sharing_with_google_products_enabled + alias_method :sharing_with_google_products_enabled?, :sharing_with_google_products_enabled + + # Allows Google support to access the data in order to help troubleshoot issues. + # Corresponds to the JSON property `sharingWithGoogleSupportEnabled` + # @return [Boolean] + attr_accessor :sharing_with_google_support_enabled + alias_method :sharing_with_google_support_enabled?, :sharing_with_google_support_enabled + + # Allows Google to share the data anonymously in aggregate form with others. + # Corresponds to the JSON property `sharingWithOthersEnabled` + # @return [Boolean] + attr_accessor :sharing_with_others_enabled + alias_method :sharing_with_others_enabled?, :sharing_with_others_enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @sharing_with_google_any_sales_enabled = args[:sharing_with_google_any_sales_enabled] if args.key?(:sharing_with_google_any_sales_enabled) + @sharing_with_google_assigned_sales_enabled = args[:sharing_with_google_assigned_sales_enabled] if args.key?(:sharing_with_google_assigned_sales_enabled) + @sharing_with_google_products_enabled = args[:sharing_with_google_products_enabled] if args.key?(:sharing_with_google_products_enabled) + @sharing_with_google_support_enabled = args[:sharing_with_google_support_enabled] if args.key?(:sharing_with_google_support_enabled) + @sharing_with_others_enabled = args[:sharing_with_others_enabled] if args.key?(:sharing_with_others_enabled) + end + end + + # Request message for DeleteUserLink RPC. + class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest + include Google::Apis::Core::Hashable + + # Required. Example format: accounts/1234/userLinks/5678 + # 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) + @name = args[:name] if args.key?(:name) + end + end + + # Singleton resource under a WebDataStream, configuring measurement of + # additional site interactions and content. + class GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings + include Google::Apis::Core::Hashable + + # Capture events when your visitors view content on your site that has articles + # or blog posts. + # Corresponds to the JSON property `articlesAndBlogsEnabled` + # @return [Boolean] + attr_accessor :articles_and_blogs_enabled + alias_method :articles_and_blogs_enabled?, :articles_and_blogs_enabled + + # Capture events when your visitors view content on your site that has + # structured data (eg, articles, blog posts, product details screens, etc.). + # Corresponds to the JSON property `contentViewsEnabled` + # @return [Boolean] + attr_accessor :content_views_enabled + alias_method :content_views_enabled?, :content_views_enabled + + # If enabled, capture a click event each time a visitor clicks a link or element + # that has data attributes beginning with "data-ga". + # Corresponds to the JSON property `dataTaggedElementClicksEnabled` + # @return [Boolean] + attr_accessor :data_tagged_element_clicks_enabled + alias_method :data_tagged_element_clicks_enabled?, :data_tagged_element_clicks_enabled + + # Domains to exclude from measurement. Max length is 1024 characters. + # Corresponds to the JSON property `excludedDomains` + # @return [String] + attr_accessor :excluded_domains + + # If enabled, capture a file download event each time a link is clicked with a + # common document, compressed file, application, video, or audio extension. + # Corresponds to the JSON property `fileDownloadsEnabled` + # @return [Boolean] + attr_accessor :file_downloads_enabled + alias_method :file_downloads_enabled?, :file_downloads_enabled + + # If enabled, capture a view search results event each time a visitor interacts + # with a form on your site. + # Corresponds to the JSON property `formInteractionsEnabled` + # @return [Boolean] + attr_accessor :form_interactions_enabled + alias_method :form_interactions_enabled?, :form_interactions_enabled + + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/webDataStreams/`stream_id`/enhancedMeasurementSettings Example: " + # properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # If enabled, capture an outbound click event each time a visitor clicks a link + # that leads them away from your domain. + # Corresponds to the JSON property `outboundClicksEnabled` + # @return [Boolean] + attr_accessor :outbound_clicks_enabled + alias_method :outbound_clicks_enabled?, :outbound_clicks_enabled + + # If enabled, capture a page view event each time the website changes the + # browser history state. + # Corresponds to the JSON property `pageChangesEnabled` + # @return [Boolean] + attr_accessor :page_changes_enabled + alias_method :page_changes_enabled?, :page_changes_enabled + + # If enabled, capture a page view event each time a page loads. + # Corresponds to the JSON property `pageLoadsEnabled` + # @return [Boolean] + attr_accessor :page_loads_enabled + alias_method :page_loads_enabled?, :page_loads_enabled + + # Output only. If enabled, capture a page view event each time a page loads or + # the website changes the browser history state. + # Corresponds to the JSON property `pageViewsEnabled` + # @return [Boolean] + attr_accessor :page_views_enabled + alias_method :page_views_enabled?, :page_views_enabled + + # Capture events when your visitors view content on your site that has product + # details screens, etc. + # Corresponds to the JSON property `productsAndEcommerceEnabled` + # @return [Boolean] + attr_accessor :products_and_ecommerce_enabled + alias_method :products_and_ecommerce_enabled?, :products_and_ecommerce_enabled + + # If enabled, capture scroll events each time a visitor gets to the bottom of a + # page. + # Corresponds to the JSON property `scrollsEnabled` + # @return [Boolean] + attr_accessor :scrolls_enabled + alias_method :scrolls_enabled?, :scrolls_enabled + + # Required. URL query parameters to interpret as site search parameters. Max + # length is 1024 characters. Must not be empty. + # Corresponds to the JSON property `searchQueryParameter` + # @return [String] + attr_accessor :search_query_parameter + + # If enabled, capture a view search results event each time a visitor performs a + # search on your site (based on a query parameter). + # Corresponds to the JSON property `siteSearchEnabled` + # @return [Boolean] + attr_accessor :site_search_enabled + alias_method :site_search_enabled?, :site_search_enabled + + # Indicates whether Enhanced Measurement Settings will be used to automatically + # measure interactions and content on this web stream. Changing this value does + # not affect the settings themselves, but determines whether they are respected. + # Corresponds to the JSON property `streamEnabled` + # @return [Boolean] + attr_accessor :stream_enabled + alias_method :stream_enabled?, :stream_enabled + + # Additional URL query parameters. Max length is 1024 characters. + # Corresponds to the JSON property `urlQueryParameter` + # @return [String] + attr_accessor :url_query_parameter + + # If enabled, capture video play, progress, and complete events as visitors view + # embedded videos on your site. + # Corresponds to the JSON property `videoEngagementEnabled` + # @return [Boolean] + attr_accessor :video_engagement_enabled + alias_method :video_engagement_enabled?, :video_engagement_enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @articles_and_blogs_enabled = args[:articles_and_blogs_enabled] if args.key?(:articles_and_blogs_enabled) + @content_views_enabled = args[:content_views_enabled] if args.key?(:content_views_enabled) + @data_tagged_element_clicks_enabled = args[:data_tagged_element_clicks_enabled] if args.key?(:data_tagged_element_clicks_enabled) + @excluded_domains = args[:excluded_domains] if args.key?(:excluded_domains) + @file_downloads_enabled = args[:file_downloads_enabled] if args.key?(:file_downloads_enabled) + @form_interactions_enabled = args[:form_interactions_enabled] if args.key?(:form_interactions_enabled) + @name = args[:name] if args.key?(:name) + @outbound_clicks_enabled = args[:outbound_clicks_enabled] if args.key?(:outbound_clicks_enabled) + @page_changes_enabled = args[:page_changes_enabled] if args.key?(:page_changes_enabled) + @page_loads_enabled = args[:page_loads_enabled] if args.key?(:page_loads_enabled) + @page_views_enabled = args[:page_views_enabled] if args.key?(:page_views_enabled) + @products_and_ecommerce_enabled = args[:products_and_ecommerce_enabled] if args.key?(:products_and_ecommerce_enabled) + @scrolls_enabled = args[:scrolls_enabled] if args.key?(:scrolls_enabled) + @search_query_parameter = args[:search_query_parameter] if args.key?(:search_query_parameter) + @site_search_enabled = args[:site_search_enabled] if args.key?(:site_search_enabled) + @stream_enabled = args[:stream_enabled] if args.key?(:stream_enabled) + @url_query_parameter = args[:url_query_parameter] if args.key?(:url_query_parameter) + @video_engagement_enabled = args[:video_engagement_enabled] if args.key?(:video_engagement_enabled) + end + end + + # A link between an App+Web property and a Firebase project. + class GoogleAnalyticsAdminV1alphaFirebaseLink + include Google::Apis::Core::Hashable + + # Output only. Time when this FirebaseLink was originally created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Maximum user access to the App + Web property allowed to admins of the linked + # Firebase project. + # Corresponds to the JSON property `maximumUserAccess` + # @return [String] + attr_accessor :maximum_user_access + + # Output only. Example format: properties/1234/firebaseLinks/5678 + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Immutable. Firebase project resource name. When creating a FirebaseLink, you + # may provide this resource name using either a project number or project ID. + # Once this resource has been created, returned FirebaseLinks will always have a + # project_name that contains a project number. Format: 'projects/`project number` + # ' Example: 'projects/1234' + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @maximum_user_access = args[:maximum_user_access] if args.key?(:maximum_user_access) + @name = args[:name] if args.key?(:name) + @project = args[:project] if args.key?(:project) + end + end + + # Read-only resource with the tag for sending data from a website to a + # WebDataStream. + class GoogleAnalyticsAdminV1alphaGlobalSiteTag + include Google::Apis::Core::Hashable + + # Immutable. JavaScript code snippet to be pasted as the first item into the + # head tag of every webpage to measure. + # Corresponds to the JSON property `snippet` + # @return [String] + attr_accessor :snippet + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @snippet = args[:snippet] if args.key?(:snippet) + end + end + + # A link between an App+Web property and a Google Ads account. + class GoogleAnalyticsAdminV1alphaGoogleAdsLink + include Google::Apis::Core::Hashable + + # Enable personalized advertising features with this integration. Automatically + # publish my Google Analytics audience lists and Google Analytics remarketing + # events/parameters to the linked Google Ads account. If this field is not set + # on create/update it will be defaulted to true. + # Corresponds to the JSON property `adsPersonalizationEnabled` + # @return [Boolean] + attr_accessor :ads_personalization_enabled + alias_method :ads_personalization_enabled?, :ads_personalization_enabled + + # Output only. If true, this link is for a Google Ads manager account. + # Corresponds to the JSON property `canManageClients` + # @return [Boolean] + attr_accessor :can_manage_clients + alias_method :can_manage_clients?, :can_manage_clients + + # Output only. Time when this link was originally created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Immutable. Google Ads customer ID. + # Corresponds to the JSON property `customerId` + # @return [String] + attr_accessor :customer_id + + # Output only. Email address of the user that created the link. An empty string + # will be returned if the email address can't be retrieved. + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + # Output only. Format: properties/`propertyId`/googleAdsLinks/`googleAdsLinkId` + # Note: googleAdsLinkId is not the Google Ads customer ID. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Immutable. Format: properties/`propertyId` + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Output only. Time when this link was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ads_personalization_enabled = args[:ads_personalization_enabled] if args.key?(:ads_personalization_enabled) + @can_manage_clients = args[:can_manage_clients] if args.key?(:can_manage_clients) + @create_time = args[:create_time] if args.key?(:create_time) + @customer_id = args[:customer_id] if args.key?(:customer_id) + @email_address = args[:email_address] if args.key?(:email_address) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # A resource message representing a Google Analytics IOS app stream. + class GoogleAnalyticsAdminV1alphaIosAppDataStream + include Google::Apis::Core::Hashable + + # Required. Immutable. The Apple App Store Bundle ID for the app Example: "com. + # example.myiosapp" + # Corresponds to the JSON property `bundleId` + # @return [String] + attr_accessor :bundle_id + + # Output only. Time when this stream was originally created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Human-readable display name for the Data Stream. The max allowed display name + # length is 255 UTF-16 code units. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. ID of the corresponding iOS app in Firebase, if any. This ID can + # change if the iOS app is deleted and recreated. + # Corresponds to the JSON property `firebaseAppId` + # @return [String] + attr_accessor :firebase_app_id + + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/iosAppDataStreams/`stream_id` Example: "properties/1000/ + # iosAppDataStreams/2000" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time when stream payload fields were last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bundle_id = args[:bundle_id] if args.key?(:bundle_id) + @create_time = args[:create_time] if args.key?(:create_time) + @display_name = args[:display_name] if args.key?(:display_name) + @firebase_app_id = args[:firebase_app_id] if args.key?(:firebase_app_id) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response message for ListAccountSummaries RPC. + class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse + include Google::Apis::Core::Hashable + + # Account summaries of all accounts the caller has access to. + # Corresponds to the JSON property `accountSummaries` + # @return [Array] + attr_accessor :account_summaries + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # 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_summaries = args[:account_summaries] if args.key?(:account_summaries) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Request message for ListAccounts RPC. + class GoogleAnalyticsAdminV1alphaListAccountsResponse + include Google::Apis::Core::Hashable + + # Results that were accessible to the caller. + # Corresponds to the JSON property `accounts` + # @return [Array] + attr_accessor :accounts + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # 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) + @accounts = args[:accounts] if args.key?(:accounts) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Request message for ListAndroidDataStreams RPC. + class GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse + include Google::Apis::Core::Hashable + + # Results that matched the filter criteria and were accessible to the caller. + # Corresponds to the JSON property `androidAppDataStreams` + # @return [Array] + attr_accessor :android_app_data_streams + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # 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) + @android_app_data_streams = args[:android_app_data_streams] if args.key?(:android_app_data_streams) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for ListFirebaseLinks RPC + class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse + include Google::Apis::Core::Hashable + + # List of FirebaseLinks. This will have at most one value. + # Corresponds to the JSON property `firebaseLinks` + # @return [Array] + attr_accessor :firebase_links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @firebase_links = args[:firebase_links] if args.key?(:firebase_links) + end + end + + # Response message for ListGoogleAdsLinks RPC. + class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse + include Google::Apis::Core::Hashable + + # List of GoogleAdsLinks. + # Corresponds to the JSON property `googleAdsLinks` + # @return [Array] + attr_accessor :google_ads_links + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # 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) + @google_ads_links = args[:google_ads_links] if args.key?(:google_ads_links) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Request message for ListIosAppDataStreams RPC. + class GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse + include Google::Apis::Core::Hashable + + # Results that matched the filter criteria and were accessible to the caller. + # Corresponds to the JSON property `iosAppDataStreams` + # @return [Array] + attr_accessor :ios_app_data_streams + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # 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) + @ios_app_data_streams = args[:ios_app_data_streams] if args.key?(:ios_app_data_streams) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for ListProperties RPC. + class GoogleAnalyticsAdminV1alphaListPropertiesResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Results that matched the filter criteria and were accessible to the caller. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + 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) + @properties = args[:properties] if args.key?(:properties) + end + end + + # Response message for ListUserLinks RPC. + class GoogleAnalyticsAdminV1alphaListUserLinksResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of UserLinks. These will be ordered stably, but in an arbitrary order. + # Corresponds to the JSON property `userLinks` + # @return [Array] + attr_accessor :user_links + + 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) + @user_links = args[:user_links] if args.key?(:user_links) + end + end + + # Request message for ListWebDataStreams RPC. + class GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Results that matched the filter criteria and were accessible to the caller. + # Corresponds to the JSON property `webDataStreams` + # @return [Array] + attr_accessor :web_data_streams + + 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) + @web_data_streams = args[:web_data_streams] if args.key?(:web_data_streams) + end + end + + # A resource message representing a Google Analytics App+Web property. + class GoogleAnalyticsAdminV1alphaProperty + include Google::Apis::Core::Hashable + + # Output only. Time when the entity was originally created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The currency type used in reports involving monetary values. Format: https:// + # en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Output only. Indicates whether this Property is soft-deleted or not. Deleted + # properties are excluded from List results unless specifically requested. + # Corresponds to the JSON property `deleted` + # @return [Boolean] + attr_accessor :deleted + alias_method :deleted?, :deleted + + # Required. Human-readable display name for this property. The max allowed + # display name length is 100 UTF-16 code units. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK + # Corresponds to the JSON property `industryCategory` + # @return [String] + attr_accessor :industry_category + + # Output only. Resource name of this property. Format: properties/`property_id` + # Example: "properties/1000" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Immutable. Resource name of this property's logical parent. Note: The Property- + # Moving UI can be used to change the parent. Format: accounts/`account` Example: + # "accounts/100" + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Reporting Time Zone, used as the day boundary for reports, regardless of where + # the data originates. If the time zone honors DST, Analytics will automatically + # adjust for the changes. NOTE: Changing the time zone only affects data going + # forward, and is not applied retroactively. Format: https://www.iana.org/time- + # zones Example: "America/Los_Angeles" + # Corresponds to the JSON property `timeZone` + # @return [String] + attr_accessor :time_zone + + # Output only. Time when entity payload fields were last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @deleted = args[:deleted] if args.key?(:deleted) + @display_name = args[:display_name] if args.key?(:display_name) + @industry_category = args[:industry_category] if args.key?(:industry_category) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # A virtual resource representing metadata for an App+Web property. + class GoogleAnalyticsAdminV1alphaPropertySummary + include Google::Apis::Core::Hashable + + # Display name for the property referred to in this account summary. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Resource name of property referred to by this property summary Format: + # properties/`property_id` Example: "properties/1000" + # Corresponds to the JSON property `property` + # @return [String] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @property = args[:property] if args.key?(:property) + end + end + + # Request message for ProvisionAccountTicket RPC. + class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest + include Google::Apis::Core::Hashable + + # A resource message representing a Google Analytics account. + # Corresponds to the JSON property `account` + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] + attr_accessor :account + + # Redirect URI where the user will be sent after accepting Terms of Service. + # Must be configured in Developers Console as a Redirect URI + # Corresponds to the JSON property `redirectUri` + # @return [String] + attr_accessor :redirect_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account = args[:account] if args.key?(:account) + @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri) + end + end + + # Response message for ProvisionAccountTicket RPC. + class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse + include Google::Apis::Core::Hashable + + # The param to be passed in the ToS link. + # Corresponds to the JSON property `accountTicketId` + # @return [String] + attr_accessor :account_ticket_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_ticket_id = args[:account_ticket_id] if args.key?(:account_ticket_id) + end + end + + # Request message for UpdateUserLink RPC. + class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest + include Google::Apis::Core::Hashable + + # A resource message representing a user's permissions on an Account or Property + # resource. + # Corresponds to the JSON property `userLink` + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + attr_accessor :user_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_link = args[:user_link] if args.key?(:user_link) + end + end + + # A resource message representing a user's permissions on an Account or Property + # resource. + class GoogleAnalyticsAdminV1alphaUserLink + include Google::Apis::Core::Hashable + + # Roles directly assigned to this user for this account or property. Valid + # values: predefinedRoles/read predefinedRoles/collaborate predefinedRoles/edit + # predefinedRoles/manage-users Excludes roles that are inherited from a higher- + # level entity, group, or organization admin role. A UserLink that is updated to + # have an empty list of direct_roles will be deleted. + # Corresponds to the JSON property `directRoles` + # @return [Array] + attr_accessor :direct_roles + + # Email address of the user to link + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + # Example format: properties/1234/userLinks/5678 + # 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) + @direct_roles = args[:direct_roles] if args.key?(:direct_roles) + @email_address = args[:email_address] if args.key?(:email_address) + @name = args[:name] if args.key?(:name) + end + end + + # A resource message representing a Google Analytics web stream. + class GoogleAnalyticsAdminV1alphaWebDataStream + include Google::Apis::Core::Hashable + + # Output only. Time when this stream was originally created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Immutable. Domain name of the web app being measured, or empty. Example: "http: + # //www.google.com", "https://www.google.com" + # Corresponds to the JSON property `defaultUri` + # @return [String] + attr_accessor :default_uri + + # Required. Human-readable display name for the Data Stream. The max allowed + # display name length is 100 UTF-16 code units. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. ID of the corresponding web app in Firebase, if any. This ID can + # change if the web app is deleted and recreated. + # Corresponds to the JSON property `firebaseAppId` + # @return [String] + attr_accessor :firebase_app_id + + # Output only. Analytics "Measurement ID", without the "G-" prefix. Example: "G- + # 1A2BCD345E" would just be "1A2BCD345E" + # Corresponds to the JSON property `measurementId` + # @return [String] + attr_accessor :measurement_id + + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/webDataStreams/`stream_id` Example: "properties/1000/ + # webDataStreams/2000" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time when stream payload fields were last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @default_uri = args[:default_uri] if args.key?(:default_uri) + @display_name = args[:display_name] if args.key?(:display_name) + @firebase_app_id = args[:firebase_app_id] if args.key?(:firebase_app_id) + @measurement_id = args[:measurement_id] if args.key?(:measurement_id) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + end + end +end diff --git a/generated/google/apis/analyticsadmin_v1alpha/representations.rb b/generated/google/apis/analyticsadmin_v1alpha/representations.rb new file mode 100644 index 000000000..e6e6113cb --- /dev/null +++ b/generated/google/apis/analyticsadmin_v1alpha/representations.rb @@ -0,0 +1,610 @@ +# 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 AnalyticsadminV1alpha + + class GoogleAnalyticsAdminV1alphaAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaAccountSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaAndroidAppDataStream + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaAuditUserLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaDataSharingSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaFirebaseLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaGlobalSiteTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaGoogleAdsLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaIosAppDataStream + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListPropertiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListUserLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaPropertySummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaUserLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaWebDataStream + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAnalyticsAdminV1alphaAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :create_time, as: 'createTime' + property :deleted, as: 'deleted' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class GoogleAnalyticsAdminV1alphaAccountSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account' + property :display_name, as: 'displayName' + property :name, as: 'name' + collection :property_summaries, as: 'propertySummaries', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaPropertySummary, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaPropertySummary::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaAndroidAppDataStream + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :display_name, as: 'displayName' + property :firebase_app_id, as: 'firebaseAppId' + property :name, as: 'name' + property :package_name, as: 'packageName' + property :update_time, as: 'updateTime' + end + end + + class GoogleAnalyticsAdminV1alphaAuditUserLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :direct_roles, as: 'directRoles' + collection :effective_roles, as: 'effectiveRoles' + property :email_address, as: 'emailAddress' + property :name, as: 'name' + end + end + + class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + end + end + + class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :notify_new_users, as: 'notifyNewUsers' + collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateUserLinkRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateUserLinkRequest::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :notify_new_user, as: 'notifyNewUser' + property :parent, as: 'parent' + property :user_link, as: 'userLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaDataSharingSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :sharing_with_google_any_sales_enabled, as: 'sharingWithGoogleAnySalesEnabled' + property :sharing_with_google_assigned_sales_enabled, as: 'sharingWithGoogleAssignedSalesEnabled' + property :sharing_with_google_products_enabled, as: 'sharingWithGoogleProductsEnabled' + property :sharing_with_google_support_enabled, as: 'sharingWithGoogleSupportEnabled' + property :sharing_with_others_enabled, as: 'sharingWithOthersEnabled' + end + end + + class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :articles_and_blogs_enabled, as: 'articlesAndBlogsEnabled' + property :content_views_enabled, as: 'contentViewsEnabled' + property :data_tagged_element_clicks_enabled, as: 'dataTaggedElementClicksEnabled' + property :excluded_domains, as: 'excludedDomains' + property :file_downloads_enabled, as: 'fileDownloadsEnabled' + property :form_interactions_enabled, as: 'formInteractionsEnabled' + property :name, as: 'name' + property :outbound_clicks_enabled, as: 'outboundClicksEnabled' + property :page_changes_enabled, as: 'pageChangesEnabled' + property :page_loads_enabled, as: 'pageLoadsEnabled' + property :page_views_enabled, as: 'pageViewsEnabled' + property :products_and_ecommerce_enabled, as: 'productsAndEcommerceEnabled' + property :scrolls_enabled, as: 'scrollsEnabled' + property :search_query_parameter, as: 'searchQueryParameter' + property :site_search_enabled, as: 'siteSearchEnabled' + property :stream_enabled, as: 'streamEnabled' + property :url_query_parameter, as: 'urlQueryParameter' + property :video_engagement_enabled, as: 'videoEngagementEnabled' + end + end + + class GoogleAnalyticsAdminV1alphaFirebaseLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :maximum_user_access, as: 'maximumUserAccess' + property :name, as: 'name' + property :project, as: 'project' + end + end + + class GoogleAnalyticsAdminV1alphaGlobalSiteTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :snippet, as: 'snippet' + end + end + + class GoogleAnalyticsAdminV1alphaGoogleAdsLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ads_personalization_enabled, as: 'adsPersonalizationEnabled' + property :can_manage_clients, as: 'canManageClients' + property :create_time, as: 'createTime' + property :customer_id, as: 'customerId' + property :email_address, as: 'emailAddress' + property :name, as: 'name' + property :parent, as: 'parent' + property :update_time, as: 'updateTime' + end + end + + class GoogleAnalyticsAdminV1alphaIosAppDataStream + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bundle_id, as: 'bundleId' + property :create_time, as: 'createTime' + property :display_name, as: 'displayName' + property :firebase_app_id, as: 'firebaseAppId' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_summaries, as: 'accountSummaries', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccountSummary, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccountSummary::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAnalyticsAdminV1alphaListAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :accounts, as: 'accounts', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :android_app_data_streams, as: 'androidAppDataStreams', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :firebase_links, as: 'firebaseLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :google_ads_links, as: 'googleAdsLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ios_app_data_streams, as: 'iosAppDataStreams', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleAnalyticsAdminV1alphaListPropertiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :properties, as: 'properties', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaListUserLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :web_data_streams, as: 'webDataStreams', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :currency_code, as: 'currencyCode' + property :deleted, as: 'deleted' + property :display_name, as: 'displayName' + property :industry_category, as: 'industryCategory' + property :name, as: 'name' + property :parent, as: 'parent' + property :time_zone, as: 'timeZone' + property :update_time, as: 'updateTime' + end + end + + class GoogleAnalyticsAdminV1alphaPropertySummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :property, as: 'property' + end + end + + class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation + + property :redirect_uri, as: 'redirectUri' + end + end + + class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_ticket_id, as: 'accountTicketId' + end + end + + class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :user_link, as: 'userLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + + end + end + + class GoogleAnalyticsAdminV1alphaUserLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :direct_roles, as: 'directRoles' + property :email_address, as: 'emailAddress' + property :name, as: 'name' + end + end + + class GoogleAnalyticsAdminV1alphaWebDataStream + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :default_uri, as: 'defaultUri' + property :display_name, as: 'displayName' + property :firebase_app_id, as: 'firebaseAppId' + property :measurement_id, as: 'measurementId' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + end + end +end diff --git a/generated/google/apis/analyticsadmin_v1alpha/service.rb b/generated/google/apis/analyticsadmin_v1alpha/service.rb new file mode 100644 index 000000000..2467ba97c --- /dev/null +++ b/generated/google/apis/analyticsadmin_v1alpha/service.rb @@ -0,0 +1,2135 @@ +# 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 AnalyticsadminV1alpha + # Google Analytics Admin API + # + # + # + # @example + # require 'google/apis/analyticsadmin_v1alpha' + # + # Analyticsadmin = Google::Apis::AnalyticsadminV1alpha # Alias the module + # service = Analyticsadmin::GoogleAnalyticsAdminService.new + # + # @see http://code.google.com/apis/analytics/docs/mgmt/home.html + class GoogleAnalyticsAdminService < 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://analyticsadmin.googleapis.com/', '') + @batch_path = 'batch' + end + + # Returns summaries of all accounts accessible by the caller. + # @param [Fixnum] page_size + # The maximum number of AccountSummary resources to return. The service may + # return fewer than this value, even if there are additional pages. If + # unspecified, at most 50 resources will be returned. The maximum value is 200; ( + # higher values will be coerced to the maximum) + # @param [String] page_token + # A page token, received from a previous `ListAccountSummaries` call. Provide + # this to retrieve the subsequent page. When paginating, all other parameters + # provided to `ListAccountSummaries` must match the call that provided the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse] + # + # @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_account_summaries(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/accountSummaries', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse + 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 + + # Marks target Account as soft-deleted (ie: "trashed") and returns it. This API + # does not have a method to restore soft-deleted accounts. However, they can be + # restored using the Trash Can UI. If the accounts are not restored before the + # expiration time, the account and all child resources (eg: Properties, + # GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https:// + # support.google.com/analytics/answer/6154772 Returns an error if the target is + # not found. + # @param [String] name + # Required. The name of the Account to soft-delete. Format: accounts/`account` + # Example: "accounts/100" + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_account(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 + + # Lookup for a single Account. Throws "Target not found" if no such account + # found, or if caller does not have permissions to access it. + # @param [String] name + # Required. The name of the account to lookup. Format: accounts/`account` + # Example: "accounts/100" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] + # + # @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_account(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get data sharing settings on an account. Data sharing settings are singletons. + # @param [String] name + # Required. The name of the settings to lookup. Format: accounts/`account`/ + # dataSharingSettings Example: "accounts/1000/dataSharingSettings" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings] + # + # @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_account_data_sharing_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings + 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 + + # Returns all accounts accessible by the caller. Note that these accounts might + # not currently have App+Web properties. Soft-deleted (ie: "trashed") accounts + # are excluded by default. Returns an empty list if no relevant accounts are + # found. + # @param [Fixnum] page_size + # The maximum number of resources to return. The service may return fewer than + # this value, even if there are additional pages. If unspecified, at most 50 + # resources will be returned. The maximum value is 200; (higher values will be + # coerced to the maximum) + # @param [String] page_token + # A page token, received from a previous `ListAccounts` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `ListAccounts` must match the call that provided the page token. + # @param [Boolean] show_deleted + # Whether to include soft-deleted (ie: "trashed") Accounts in the results. + # Accounts can be inspected to determine whether they are deleted or not. + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse] + # + # @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_accounts(page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/accounts', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['showDeleted'] = show_deleted unless show_deleted.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 account. + # @param [String] name + # Output only. Resource name of this account. Format: accounts/`account` Example: + # "accounts/100" + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] google_analytics_admin_v1alpha_account_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] + # + # @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_account(name, google_analytics_admin_v1alpha_account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation + command.request_object = google_analytics_admin_v1alpha_account_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount + 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 + + # Requests a ticket for creating an account. + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest] google_analytics_admin_v1alpha_provision_account_ticket_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse] + # + # @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 provision_account_account_ticket(google_analytics_admin_v1alpha_provision_account_ticket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/accounts:provisionAccountTicket', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest::Representation + command.request_object = google_analytics_admin_v1alpha_provision_account_ticket_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all user links on an account or property, including implicit ones that + # come from effective permissions granted by groups or organization admin roles. + # If a returned user link does not have direct permissions, they cannot be + # removed from the account or property directly with the DeleteUserLink command. + # They have to be removed from the group/etc that gives them permissions, which + # is currently only usable/discoverable in the GA or GMP UIs. + # @param [String] parent + # Required. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest] google_analytics_admin_v1alpha_audit_user_links_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse] + # + # @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 audit_account_user_link(parent, google_analytics_admin_v1alpha_audit_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:audit', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_audit_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates information about multiple users' links to an account or property. + # This method is transactional. If any UserLink cannot be created, none of the + # UserLinks will be created. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # This field is required. The parent field in the CreateUserLinkRequest messages + # must either be empty or match this field. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest] google_analytics_admin_v1alpha_batch_create_user_links_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse] + # + # @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 batch_account_user_link_create(parent, google_analytics_admin_v1alpha_batch_create_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchCreate', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_batch_create_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes information about multiple users' links to an account or property. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # The parent of all values for user link names to delete must match this field. + # Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest] google_analytics_admin_v1alpha_batch_delete_user_links_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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_account_user_link_delete(parent, google_analytics_admin_v1alpha_batch_delete_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchDelete', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_batch_delete_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about multiple users' links to an account or property. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # The parent of all provided values for the 'names' field must match this field. + # Example format: accounts/1234 + # @param [Array, String] names + # Required. The names of the user links to retrieve. A maximum of 1000 user + # links can be retrieved in a batch. Format: accounts/`accountId`/userLinks/` + # userLinkId` + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse] + # + # @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 batch_account_user_link_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks:batchGet', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['names'] = names unless names.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 information about multiple users' links to an account or property. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # The parent field in the UpdateUserLinkRequest messages must either be empty or + # match this field. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest] google_analytics_admin_v1alpha_batch_update_user_links_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse] + # + # @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 batch_account_user_link_update(parent, google_analytics_admin_v1alpha_batch_update_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchUpdate', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_batch_update_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a user link on an account or property. If the user with the specified + # email already has permissions on the account or property, then the user's + # existing permissions will be unioned with the permissions specified in the new + # UserLink. + # @param [String] parent + # Required. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object + # @param [Boolean] notify_new_user + # Optional. If notify_new_user is set, then email new user that they've been + # given permissions on the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + # + # @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_account_user_link(parent, google_analytics_admin_v1alpha_user_link_object = nil, notify_new_user: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.request_object = google_analytics_admin_v1alpha_user_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink + command.params['parent'] = parent unless parent.nil? + command.query['notifyNewUser'] = notify_new_user unless notify_new_user.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 user link on an account or property. + # @param [String] name + # Required. Example format: accounts/1234/userLinks/5678 + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_account_user_link(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 information about a user's link to an account or property. + # @param [String] name + # Required. Example format: accounts/1234/userLinks/5678 + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + # + # @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_account_user_link(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink + 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 all user links on an account or property. + # @param [String] parent + # Required. Example format: accounts/1234 + # @param [Fixnum] page_size + # The maximum number of user links to return. The service may return fewer than + # this value. If unspecified, at most 200 user links will be returned. The + # maximum value is 500; values above 500 will be coerced to 500. + # @param [String] page_token + # A page token, received from a previous `ListUserLinks` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `ListUserLinks` must match the call that provided the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse] + # + # @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_account_user_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a user link on an account or property. + # @param [String] name + # Example format: properties/1234/userLinks/5678 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + # + # @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_account_user_link(name, google_analytics_admin_v1alpha_user_link_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.request_object = google_analytics_admin_v1alpha_user_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink + 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 an "App+Web" property with the specified location and attributes. + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] google_analytics_admin_v1alpha_property_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] + # + # @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_property(google_analytics_admin_v1alpha_property_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/properties', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation + command.request_object = google_analytics_admin_v1alpha_property_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Marks target Property as soft-deleted (ie: "trashed") and returns it. This API + # does not have a method to restore soft-deleted properties. However, they can + # be restored using the Trash Can UI. If the properties are not restored before + # the expiration time, the Property and all child resources (eg: GoogleAdsLinks, + # Streams, UserLinks) will be permanently purged. https://support.google.com/ + # analytics/answer/6154772 Returns an error if the target is not found, or is + # not an App+Web Property. + # @param [String] name + # Required. The name of the Property to soft-delete. Format: properties/` + # property_id` Example: "properties/1000" + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_property(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 + + # Lookup for a single "App+Web" Property. Throws "Target not found" if no such + # property found, if property is not of the type "App+Web", or if caller does + # not have permissions to access it. + # @param [String] name + # Required. The name of the property to lookup. Format: properties/`property_id` + # Example: "properties/1000" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] + # + # @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_property(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty + 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 + + # Returns child Properties under the specified parent Account. Only "App+Web" + # properties will be returned. Properties will be excluded if the caller does + # not have access. Soft-deleted (ie: "trashed") properties are excluded by + # default. Returns an empty list if no relevant properties are found. + # @param [String] filter + # Required. An expression for filtering the results of the request. Fields + # eligible for filtering are: `parent:`(The resource name of the parent account) + # or `firebase_project:`(The id or number of the linked firebase project). Some + # examples of filters: | Filter | Description | |-----------------------------|-- + # -----------------------------------------| | parent:accounts/123 | The account + # with account id: 123. | | firebase_project:project-id | The firebase project + # with id: project-id. | | firebase_project:123 | The firebase project with + # number: 123. | + # @param [Fixnum] page_size + # The maximum number of resources to return. The service may return fewer than + # this value, even if there are additional pages. If unspecified, at most 50 + # resources will be returned. The maximum value is 200; (higher values will be + # coerced to the maximum) + # @param [String] page_token + # A page token, received from a previous `ListProperties` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `ListProperties` must match the call that provided the page token. + # @param [Boolean] show_deleted + # Whether to include soft-deleted (ie: "trashed") Properties in the results. + # Properties can be inspected to determine whether they are deleted or not. + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse] + # + # @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_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/properties', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse + 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['showDeleted'] = show_deleted unless show_deleted.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a property. + # @param [String] name + # Output only. Resource name of this property. Format: properties/`property_id` + # Example: "properties/1000" + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] google_analytics_admin_v1alpha_property_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] + # + # @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_property(name, google_analytics_admin_v1alpha_property_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation + command.request_object = google_analytics_admin_v1alpha_property_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty + 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 + + # Creates an android app stream with the specified location and attributes. + # @param [String] parent + # Required. The parent resource where this android app data stream will be + # created. Format: properties/123 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] google_analytics_admin_v1alpha_android_app_data_stream_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] + # + # @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_property_android_app_data_stream(parent, google_analytics_admin_v1alpha_android_app_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/androidAppDataStreams', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation + command.request_object = google_analytics_admin_v1alpha_android_app_data_stream_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an android app stream on a property. + # @param [String] name + # Required. The name of the android app data stream to delete. Format: + # properties/`property_id`/androidAppDataStreams/`stream_id` Example: " + # properties/123/androidAppDataStreams/456" + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_property_android_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 + + # Lookup for a single AndroidAppDataStream Throws "Target not found" if no such + # android app data stream found, or if the caller does not have permissions to + # access it. + # @param [String] name + # Required. The name of the android app data stream to lookup. Format: + # properties/`property_id`/androidAppDataStreams/`stream_id` Example: " + # properties/123/androidAppDataStreams/456" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] + # + # @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_property_android_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream + 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 + + # Returns child android app streams under the specified parent property. Android + # app streams will be excluded if the caller does not have access. Returns an + # empty list if no relevant android app streams are found. + # @param [String] parent + # Required. The name of the parent property. For example, to limit results to + # app streams under the property with Id 123: "properties/123" + # @param [Fixnum] page_size + # The maximum number of resources to return. If unspecified, at most 50 + # resources will be returned. The maximum value is 200; (higher values will be + # coerced to the maximum) + # @param [String] page_token + # A page token, received from a previous call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to ` + # ListAndroidAppDataStreams` must match the call that provided the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse] + # + # @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_property_android_app_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/androidAppDataStreams', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse + command.params['parent'] = parent unless parent.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 android app stream on a property. + # @param [String] name + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/androidAppDataStreams/`stream_id` Example: "properties/1000/ + # androidAppDataStreams/2000" + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] google_analytics_admin_v1alpha_android_app_data_stream_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] + # + # @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_property_android_app_data_stream(name, google_analytics_admin_v1alpha_android_app_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation + command.request_object = google_analytics_admin_v1alpha_android_app_data_stream_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream + 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 + + # Creates a FirebaseLink. Properties can have at most one FirebaseLink. + # @param [String] parent + # Required. Format: properties/`property_id` Example: properties/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] + # + # @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_property_firebase_link(parent, google_analytics_admin_v1alpha_firebase_link_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/firebaseLinks', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation + command.request_object = google_analytics_admin_v1alpha_firebase_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a FirebaseLink on a property + # @param [String] name + # Required. Format: properties/`property_id`/firebaseLinks/`firebase_link_id` + # Example: properties/1234/firebaseLinks/5678 + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_property_firebase_link(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 FirebaseLinks on a property. Properties can have at most one + # FirebaseLink. + # @param [String] parent + # Required. Format: properties/`property_id` Example: properties/1234 + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse] + # + # @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_property_firebase_links(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/firebaseLinks', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a FirebaseLink on a property + # @param [String] name + # Output only. Example format: properties/1234/firebaseLinks/5678 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] + # + # @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_property_firebase_link(name, google_analytics_admin_v1alpha_firebase_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation + command.request_object = google_analytics_admin_v1alpha_firebase_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink + 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 + + # Creates a GoogleAdsLink. + # @param [String] parent + # Required. Example format: properties/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] + # + # @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_property_google_ads_link(parent, google_analytics_admin_v1alpha_google_ads_link_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/googleAdsLinks', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation + command.request_object = google_analytics_admin_v1alpha_google_ads_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a GoogleAdsLink on a property + # @param [String] name + # Required. Example format: properties/1234/googleAdsLinks/5678 + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_property_google_ads_link(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 GoogleAdsLinks on a property. + # @param [String] parent + # Required. Example format: properties/1234 + # @param [Fixnum] page_size + # The maximum number of resources to return. If unspecified, at most 50 + # resources will be returned. The maximum value is 200 (higher values will be + # coerced to the maximum). + # @param [String] page_token + # A page token, received from a previous `ListGoogleAdsLinks` call. Provide this + # to retrieve the subsequent page. When paginating, all other parameters + # provided to `ListGoogleAdsLinks` must match the call that provided the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse] + # + # @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_property_google_ads_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/googleAdsLinks', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a GoogleAdsLink on a property + # @param [String] name + # Output only. Format: properties/`propertyId`/googleAdsLinks/`googleAdsLinkId` + # Note: googleAdsLinkId is not the Google Ads customer ID. + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] + # + # @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_property_google_ads_link(name, google_analytics_admin_v1alpha_google_ads_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation + command.request_object = google_analytics_admin_v1alpha_google_ads_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink + 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 + + # Creates an iOS app data stream with the specified location and attributes. + # @param [String] parent + # Required. The parent resource where this ios app data stream will be created. + # Format: properties/123 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] google_analytics_admin_v1alpha_ios_app_data_stream_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] + # + # @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_property_ios_app_data_stream(parent, google_analytics_admin_v1alpha_ios_app_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/iosAppDataStreams', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation + command.request_object = google_analytics_admin_v1alpha_ios_app_data_stream_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an iOS app stream on a property. + # @param [String] name + # Required. The name of the iOS app data stream to delete. Format: properties/` + # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/ + # iosAppDataStreams/456" + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 + + # Lookup for a single IosAppDataStream Throws "Target not found" if no such iOS + # app data stream found, or if the caller does not have permissions to access it. + # @param [String] name + # Required. The name of the iOS app data stream to lookup. Format: properties/` + # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/ + # iosAppDataStreams/456" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] + # + # @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_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream + 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 + + # Returns child iOS app data streams under the specified parent property. iOS + # app data streams will be excluded if the caller does not have access. Returns + # an empty list if no relevant iOS app data streams are found. + # @param [String] parent + # Required. The name of the parent property. For example, to list results of app + # streams under the property with Id 123: "properties/123" + # @param [Fixnum] page_size + # The maximum number of resources to return. If unspecified, at most 50 + # resources will be returned. The maximum value is 200; (higher values will be + # coerced to the maximum) + # @param [String] page_token + # A page token, received from a previous `ListIosAppDataStreams` call. Provide + # this to retrieve the subsequent page. When paginating, all other parameters + # provided to `ListIosAppDataStreams` must match the call that provided the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse] + # + # @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_property_ios_app_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/iosAppDataStreams', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse + command.params['parent'] = parent unless parent.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 iOS app stream on a property. + # @param [String] name + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/iosAppDataStreams/`stream_id` Example: "properties/1000/ + # iosAppDataStreams/2000" + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] google_analytics_admin_v1alpha_ios_app_data_stream_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] + # + # @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_property_ios_app_data_stream(name, google_analytics_admin_v1alpha_ios_app_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation + command.request_object = google_analytics_admin_v1alpha_ios_app_data_stream_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream + 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 + + # Lists all user links on an account or property, including implicit ones that + # come from effective permissions granted by groups or organization admin roles. + # If a returned user link does not have direct permissions, they cannot be + # removed from the account or property directly with the DeleteUserLink command. + # They have to be removed from the group/etc that gives them permissions, which + # is currently only usable/discoverable in the GA or GMP UIs. + # @param [String] parent + # Required. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest] google_analytics_admin_v1alpha_audit_user_links_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse] + # + # @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 audit_property_user_link(parent, google_analytics_admin_v1alpha_audit_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:audit', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_audit_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates information about multiple users' links to an account or property. + # This method is transactional. If any UserLink cannot be created, none of the + # UserLinks will be created. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # This field is required. The parent field in the CreateUserLinkRequest messages + # must either be empty or match this field. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest] google_analytics_admin_v1alpha_batch_create_user_links_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse] + # + # @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 batch_property_user_link_create(parent, google_analytics_admin_v1alpha_batch_create_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchCreate', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_batch_create_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes information about multiple users' links to an account or property. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # The parent of all values for user link names to delete must match this field. + # Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest] google_analytics_admin_v1alpha_batch_delete_user_links_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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_property_user_link_delete(parent, google_analytics_admin_v1alpha_batch_delete_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchDelete', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_batch_delete_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about multiple users' links to an account or property. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # The parent of all provided values for the 'names' field must match this field. + # Example format: accounts/1234 + # @param [Array, String] names + # Required. The names of the user links to retrieve. A maximum of 1000 user + # links can be retrieved in a batch. Format: accounts/`accountId`/userLinks/` + # userLinkId` + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse] + # + # @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 batch_property_user_link_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks:batchGet', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['names'] = names unless names.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 information about multiple users' links to an account or property. + # @param [String] parent + # Required. The account or property that all user links in the request are for. + # The parent field in the UpdateUserLinkRequest messages must either be empty or + # match this field. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest] google_analytics_admin_v1alpha_batch_update_user_links_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse] + # + # @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 batch_property_user_link_update(parent, google_analytics_admin_v1alpha_batch_update_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchUpdate', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest::Representation + command.request_object = google_analytics_admin_v1alpha_batch_update_user_links_request_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a user link on an account or property. If the user with the specified + # email already has permissions on the account or property, then the user's + # existing permissions will be unioned with the permissions specified in the new + # UserLink. + # @param [String] parent + # Required. Example format: accounts/1234 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object + # @param [Boolean] notify_new_user + # Optional. If notify_new_user is set, then email new user that they've been + # given permissions on the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + # + # @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_property_user_link(parent, google_analytics_admin_v1alpha_user_link_object = nil, notify_new_user: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.request_object = google_analytics_admin_v1alpha_user_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink + command.params['parent'] = parent unless parent.nil? + command.query['notifyNewUser'] = notify_new_user unless notify_new_user.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 user link on an account or property. + # @param [String] name + # Required. Example format: accounts/1234/userLinks/5678 + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_property_user_link(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 information about a user's link to an account or property. + # @param [String] name + # Required. Example format: accounts/1234/userLinks/5678 + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + # + # @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_property_user_link(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink + 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 all user links on an account or property. + # @param [String] parent + # Required. Example format: accounts/1234 + # @param [Fixnum] page_size + # The maximum number of user links to return. The service may return fewer than + # this value. If unspecified, at most 200 user links will be returned. The + # maximum value is 500; values above 500 will be coerced to 500. + # @param [String] page_token + # A page token, received from a previous `ListUserLinks` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `ListUserLinks` must match the call that provided the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse] + # + # @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_property_user_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a user link on an account or property. + # @param [String] name + # Example format: properties/1234/userLinks/5678 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] + # + # @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_property_user_link(name, google_analytics_admin_v1alpha_user_link_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.request_object = google_analytics_admin_v1alpha_user_link_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink + 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 web stream with the specified location and attributes. + # @param [String] parent + # Required. The parent resource where this web data stream will be created. + # Format: properties/123 + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] google_analytics_admin_v1alpha_web_data_stream_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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] + # + # @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_property_web_data_stream(parent, google_analytics_admin_v1alpha_web_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/webDataStreams', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation + command.request_object = google_analytics_admin_v1alpha_web_data_stream_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a web stream on a property. + # @param [String] name + # Required. The name of the web data stream to delete. Format: properties/` + # property_id`/webDataStreams/`stream_id` Example: "properties/123/ + # webDataStreams/456" + # @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::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_property_web_data_stream(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty + 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 + + # Lookup for a single WebDataStream Throws "Target not found" if no such web + # data stream found, or if the caller does not have permissions to access it. + # @param [String] name + # Required. The name of the web data stream to lookup. Format: properties/` + # property_id`/webDataStreams/`stream_id` Example: "properties/123/ + # webDataStreams/456" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] + # + # @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_property_web_data_stream(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream + 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 + + # Returns the singleton enhanced measurement settings for this web stream. Note + # that the stream must enable enhanced measurement for these settings to take + # effect. + # @param [String] name + # Required. The name of the settings to lookup. Format: properties/`property_id`/ + # webDataStreams/`stream_id`/enhancedMeasurementSettings Example: "properties/ + # 1000/webDataStreams/2000/enhancedMeasurementSettings" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] + # + # @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_property_web_data_stream_enhanced_measurement_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings + 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 + + # Returns the Site Tag for the specified web stream. Site Tags are immutable + # singletons. + # @param [String] name + # Required. The name of the site tag to lookup. Note that site tags are + # singletons and do not have unique IDs. Format: properties/`property_id`/ + # webDataStreams/`stream_id`/globalSiteTag Example: "properties/123/ + # webDataStreams/456/globalSiteTag" + # @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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag] + # + # @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_property_web_data_stream_global_site_tag(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag + 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 + + # Returns child web data streams under the specified parent property. Web data + # streams will be excluded if the caller does not have access. Returns an empty + # list if no relevant web data streams are found. + # @param [String] parent + # Required. The name of the parent property. For example, to list results of web + # streams under the property with Id 123: "properties/123" + # @param [Fixnum] page_size + # The maximum number of resources to return. If unspecified, at most 50 + # resources will be returned. The maximum value is 200; (higher values will be + # coerced to the maximum) + # @param [String] page_token + # A page token, received from a previous `ListWebDataStreams` call. Provide this + # to retrieve the subsequent page. When paginating, all other parameters + # provided to `ListWebDataStreams` must match the call that provided the 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::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse] + # + # @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_property_web_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/webDataStreams', options) + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a web stream on a property. + # @param [String] name + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/webDataStreams/`stream_id` Example: "properties/1000/ + # webDataStreams/2000" + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] google_analytics_admin_v1alpha_web_data_stream_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] + # + # @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_property_web_data_stream(name, google_analytics_admin_v1alpha_web_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation + command.request_object = google_analytics_admin_v1alpha_web_data_stream_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream + 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 singleton enhanced measurement settings for this web stream. Note + # that the stream must enable enhanced measurement for these settings to take + # effect. + # @param [String] name + # Output only. Resource name of this Data Stream. Format: properties/` + # property_id`/webDataStreams/`stream_id`/enhancedMeasurementSettings Example: " + # properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] google_analytics_admin_v1alpha_enhanced_measurement_settings_object + # @param [String] update_mask + # The list of fields to be updated. Omitted fields will not be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] + # + # @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_property_web_data_stream_enhanced_measurement_settings(name, google_analytics_admin_v1alpha_enhanced_measurement_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings::Representation + command.request_object = google_analytics_admin_v1alpha_enhanced_measurement_settings_object + command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings::Representation + command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 17c1374ce..bf0cd4a6a 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20200827' + REVISION = '20200916' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 5fe876e9a..ec2ec33ce 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -2855,6 +2855,27 @@ module Google # @return [String] attr_accessor :create_disposition + # [Trusted Tester] Defines the list of possible SQL data types to which the + # source decimal values are converted. This list and the precision and the scale + # parameters of the decimal field determine the target type. In the order of + # NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified + # list and if it supports the precision and the scale. STRING supports all + # precision and scale values. If none of the listed types supports the precision + # and the scale, the type supporting the widest range in the specified list is + # picked, and if a value exceeds the supported range when reading the data, an + # error will be thrown. For example: suppose decimal_target_type = ["NUMERIC", " + # BIGNUMERIC"]. Then if (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> + # BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC ( + # NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) - + # > BIGNUMERIC (error if value exeeds supported range). For duplicated types in + # this field, only one will be considered and the rest will be ignored. The + # order of the types in this field is ignored. For example, ["BIGNUMERIC", " + # NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes + # precedence over BIGNUMERIC. + # Corresponds to the JSON property `decimalTargetTypes` + # @return [Array] + attr_accessor :decimal_target_types + # Custom encryption configuration (e.g., Cloud KMS keys). # Corresponds to the JSON property `destinationEncryptionConfiguration` # @return [Google::Apis::BigqueryV2::EncryptionConfiguration] @@ -3044,6 +3065,7 @@ module Google @autodetect = args[:autodetect] if args.key?(:autodetect) @clustering = args[:clustering] if args.key?(:clustering) @create_disposition = args[:create_disposition] if args.key?(:create_disposition) + @decimal_target_types = args[:decimal_target_types] if args.key?(:decimal_target_types) @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration) @destination_table = args[:destination_table] if args.key?(:destination_table) @destination_table_properties = args[:destination_table_properties] if args.key?(:destination_table_properties) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 283cc5990..4e523b491 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -1495,6 +1495,7 @@ module Google property :clustering, as: 'clustering', class: Google::Apis::BigqueryV2::Clustering, decorator: Google::Apis::BigqueryV2::Clustering::Representation property :create_disposition, as: 'createDisposition' + collection :decimal_target_types, as: 'decimalTargetTypes' property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation diff --git a/generated/google/apis/binaryauthorization_v1.rb b/generated/google/apis/binaryauthorization_v1.rb index dfd5f74f1..4410a21bd 100644 --- a/generated/google/apis/binaryauthorization_v1.rb +++ b/generated/google/apis/binaryauthorization_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1 VERSION = 'V1' - REVISION = '20200828' + REVISION = '20200918' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/binaryauthorization_v1/classes.rb b/generated/google/apis/binaryauthorization_v1/classes.rb index b36cd7058..b29c542ef 100644 --- a/generated/google/apis/binaryauthorization_v1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1/classes.rb @@ -83,6 +83,53 @@ module Google end end + # Occurrence that represents a single "attestation". The authenticity of an + # attestation can be verified using the attached signature. If the verifier + # trusts the public key of the signer, then verifying the signature is + # sufficient to establish trust. In this circumstance, the authority to which + # this attestation is attached is primarily useful for lookup (how to find this + # attestation if you already know the authority and artifact to be verified) and + # intent (for which authority this attestation was intended to sign. + class AttestationOccurrence + include Google::Apis::Core::Hashable + + # One or more JWTs encoding a self-contained attestation. Each JWT encodes the + # payload that it verifies within the JWT itself. Verifier implementation SHOULD + # ignore the `serialized_payload` field when verifying these JWTs. If only JWTs + # are present on this AttestationOccurrence, then the `serialized_payload` + # SHOULD be left empty. Each JWT SHOULD encode a claim specific to the ` + # resource_uri` of this Occurrence, but this is not validated by Grafeas + # metadata API implementations. The JWT itself is opaque to Grafeas. + # Corresponds to the JSON property `jwts` + # @return [Array] + attr_accessor :jwts + + # Required. The serialized payload that is verified by one or more `signatures`. + # Corresponds to the JSON property `serializedPayload` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :serialized_payload + + # One or more signatures over `serialized_payload`. Verifier implementations + # should consider this attestation message verified if at least one `signature` + # verifies `serialized_payload`. See `Signature` in common.proto for more + # details on signature structure and verification. + # Corresponds to the JSON property `signatures` + # @return [Array] + attr_accessor :signatures + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @jwts = args[:jwts] if args.key?(:jwts) + @serialized_payload = args[:serialized_payload] if args.key?(:serialized_payload) + @signatures = args[:signatures] if args.key?(:signatures) + end + end + # An attestor that attests to container image artifacts. An existing attestor # cannot be modified except where indicated. class Attestor @@ -406,6 +453,27 @@ module Google end end + # + class Jwt + include Google::Apis::Core::Hashable + + # The compact encoding of a JWS, which is always three base64 encoded strings + # joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html# + # section-3.1 + # Corresponds to the JSON property `compactJwt` + # @return [String] + attr_accessor :compact_jwt + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compact_jwt = args[:compact_jwt] if args.key?(:compact_jwt) + end + end + # Response message for BinauthzManagementService.ListAttestors. class ListAttestorsResponse include Google::Apis::Core::Hashable @@ -578,6 +646,61 @@ module Google end end + # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to + # the trust anchors defined in policy (e.g. a Kritis policy). Typically this + # means that the verifier has been configured with a map from `public_key_id` to + # public key material (and any required parameters, e.g. signing algorithm). In + # particular, verification implementations MUST NOT treat the signature ` + # public_key_id` as anything more than a key lookup hint. The `public_key_id` + # DOES NOT validate or authenticate a public key; it only provides a mechanism + # for quickly selecting a public key ALREADY CONFIGURED on the verifier through + # a trusted channel. Verification implementations MUST reject signatures in any + # of the following circumstances: * The `public_key_id` is not recognized by the + # verifier. * The public key that `public_key_id` refers to does not verify the + # signature with respect to the payload. The `signature` contents SHOULD NOT be " + # attached" (where the payload is included with the serialized `signature` bytes) + # . Verifiers MUST ignore any "attached" payload and only verify signatures with + # respect to explicitly provided payload (e.g. a `payload` field on the proto + # message that holds this Signature, or the canonical serialization of the proto + # message that holds this signature). + class Signature + include Google::Apis::Core::Hashable + + # The identifier for the public key that verifies this signature. * The ` + # public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 + # conformant URI. * When possible, the `public_key_id` SHOULD be an immutable + # reference, such as a cryptographic digest. Examples of valid `public_key_id`s: + # OpenPGP V4 public key fingerprint: * "openpgp4fpr: + # 74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See https://www.iana.org/assignments/ + # uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest- + # named SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256; + # cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256; + # 703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" + # Corresponds to the JSON property `publicKeyId` + # @return [String] + attr_accessor :public_key_id + + # The content of the signature, an opaque bytestring. The payload that this + # signature verifies MUST be unambiguously provided with the Signature during + # verification. A wrapper message might provide the payload explicitly. + # Alternatively, a message might have a canonical serialization that can always + # be unambiguously computed to derive the payload. + # Corresponds to the JSON property `signature` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :signature + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @public_key_id = args[:public_key_id] if args.key?(:public_key_id) + @signature = args[:signature] if args.key?(:signature) + end + end + # Request message for `TestIamPermissions` method. class TestIamPermissionsRequest include Google::Apis::Core::Hashable @@ -664,6 +787,70 @@ module Google @public_keys = args[:public_keys] if args.key?(:public_keys) end end + + # Request message for ValidationHelperV1.ValidateAttestationOccurrence. + class ValidateAttestationOccurrenceRequest + include Google::Apis::Core::Hashable + + # Occurrence that represents a single "attestation". The authenticity of an + # attestation can be verified using the attached signature. If the verifier + # trusts the public key of the signer, then verifying the signature is + # sufficient to establish trust. In this circumstance, the authority to which + # this attestation is attached is primarily useful for lookup (how to find this + # attestation if you already know the authority and artifact to be verified) and + # intent (for which authority this attestation was intended to sign. + # Corresponds to the JSON property `attestation` + # @return [Google::Apis::BinaryauthorizationV1::AttestationOccurrence] + attr_accessor :attestation + + # Required. The resource name of the Note to which the containing Occurrence is + # associated. + # Corresponds to the JSON property `occurrenceNote` + # @return [String] + attr_accessor :occurrence_note + + # Required. The URI of the artifact (e.g. container image) that is the subject + # of the containing Occurrence. + # Corresponds to the JSON property `occurrenceResourceUri` + # @return [String] + attr_accessor :occurrence_resource_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attestation = args[:attestation] if args.key?(:attestation) + @occurrence_note = args[:occurrence_note] if args.key?(:occurrence_note) + @occurrence_resource_uri = args[:occurrence_resource_uri] if args.key?(:occurrence_resource_uri) + end + end + + # Response message for ValidationHelperV1.ValidateAttestationOccurrence. + class ValidateAttestationOccurrenceResponse + include Google::Apis::Core::Hashable + + # The reason for denial if the Attestation couldn't be validated. + # Corresponds to the JSON property `denialReason` + # @return [String] + attr_accessor :denial_reason + + # The result of the Attestation validation. + # Corresponds to the JSON property `result` + # @return [String] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @denial_reason = args[:denial_reason] if args.key?(:denial_reason) + @result = args[:result] if args.key?(:result) + end + end end end end diff --git a/generated/google/apis/binaryauthorization_v1/representations.rb b/generated/google/apis/binaryauthorization_v1/representations.rb index c856006d6..6793dced1 100644 --- a/generated/google/apis/binaryauthorization_v1/representations.rb +++ b/generated/google/apis/binaryauthorization_v1/representations.rb @@ -34,6 +34,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AttestationOccurrence + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Attestor class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Jwt + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListAttestorsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,6 +106,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Signature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TestIamPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +130,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ValidateAttestationOccurrenceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValidateAttestationOccurrenceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AdmissionRule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -128,6 +158,17 @@ module Google end end + class AttestationOccurrence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :jwts, as: 'jwts', class: Google::Apis::BinaryauthorizationV1::Jwt, decorator: Google::Apis::BinaryauthorizationV1::Jwt::Representation + + property :serialized_payload, :base64 => true, as: 'serializedPayload' + collection :signatures, as: 'signatures', class: Google::Apis::BinaryauthorizationV1::Signature, decorator: Google::Apis::BinaryauthorizationV1::Signature::Representation + + end + end + class Attestor # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -187,6 +228,13 @@ module Google end end + class Jwt + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compact_jwt, as: 'compactJwt' + end + end + class ListAttestorsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -228,6 +276,14 @@ module Google end end + class Signature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :public_key_id, as: 'publicKeyId' + property :signature, :base64 => true, as: 'signature' + end + end + class TestIamPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -251,6 +307,24 @@ module Google end end + + class ValidateAttestationOccurrenceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attestation, as: 'attestation', class: Google::Apis::BinaryauthorizationV1::AttestationOccurrence, decorator: Google::Apis::BinaryauthorizationV1::AttestationOccurrence::Representation + + property :occurrence_note, as: 'occurrenceNote' + property :occurrence_resource_uri, as: 'occurrenceResourceUri' + end + end + + class ValidateAttestationOccurrenceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :denial_reason, as: 'denialReason' + property :result, as: 'result' + end + end end end end diff --git a/generated/google/apis/binaryauthorization_v1/service.rb b/generated/google/apis/binaryauthorization_v1/service.rb index b10a110ee..320f62750 100644 --- a/generated/google/apis/binaryauthorization_v1/service.rb +++ b/generated/google/apis/binaryauthorization_v1/service.rb @@ -409,6 +409,41 @@ module Google execute_or_queue_command(command, &block) end + # Returns whether the given Attestation for the given image URI was signed by + # the given Attestor + # @param [String] attestor + # Required. The resource name of the Attestor of the occurrence, in the format ` + # projects/*/attestors/*`. + # @param [Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceRequest] validate_attestation_occurrence_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::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse] + # + # @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 validate_attestor_attestation_occurrence(attestor, validate_attestation_occurrence_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+attestor}:validateAttestationOccurrence', options) + command.request_representation = Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceRequest::Representation + command.request_object = validate_attestation_occurrence_request_object + command.response_representation = Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse + command.params['attestor'] = attestor unless attestor.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the access control policy for a resource. Returns an empty policy if the # resource exists and does not have a policy set. # @param [String] resource diff --git a/generated/google/apis/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb index e6f50c14d..e8185b7eb 100644 --- a/generated/google/apis/binaryauthorization_v1beta1.rb +++ b/generated/google/apis/binaryauthorization_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1beta1 VERSION = 'V1beta1' - REVISION = '20200828' + REVISION = '20200918' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/binaryauthorization_v1beta1/classes.rb b/generated/google/apis/binaryauthorization_v1beta1/classes.rb index 55f8af9e4..22a639c53 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/classes.rb @@ -83,6 +83,53 @@ module Google end end + # Occurrence that represents a single "attestation". The authenticity of an + # attestation can be verified using the attached signature. If the verifier + # trusts the public key of the signer, then verifying the signature is + # sufficient to establish trust. In this circumstance, the authority to which + # this attestation is attached is primarily useful for lookup (how to find this + # attestation if you already know the authority and artifact to be verified) and + # intent (for which authority this attestation was intended to sign. + class AttestationOccurrence + include Google::Apis::Core::Hashable + + # One or more JWTs encoding a self-contained attestation. Each JWT encodes the + # payload that it verifies within the JWT itself. Verifier implementation SHOULD + # ignore the `serialized_payload` field when verifying these JWTs. If only JWTs + # are present on this AttestationOccurrence, then the `serialized_payload` + # SHOULD be left empty. Each JWT SHOULD encode a claim specific to the ` + # resource_uri` of this Occurrence, but this is not validated by Grafeas + # metadata API implementations. The JWT itself is opaque to Grafeas. + # Corresponds to the JSON property `jwts` + # @return [Array] + attr_accessor :jwts + + # Required. The serialized payload that is verified by one or more `signatures`. + # Corresponds to the JSON property `serializedPayload` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :serialized_payload + + # One or more signatures over `serialized_payload`. Verifier implementations + # should consider this attestation message verified if at least one `signature` + # verifies `serialized_payload`. See `Signature` in common.proto for more + # details on signature structure and verification. + # Corresponds to the JSON property `signatures` + # @return [Array] + attr_accessor :signatures + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @jwts = args[:jwts] if args.key?(:jwts) + @serialized_payload = args[:serialized_payload] if args.key?(:serialized_payload) + @signatures = args[:signatures] if args.key?(:signatures) + end + end + # An attestor that attests to container image artifacts. An existing attestor # cannot be modified except where indicated. class Attestor @@ -406,6 +453,27 @@ module Google end end + # + class Jwt + include Google::Apis::Core::Hashable + + # The compact encoding of a JWS, which is always three base64 encoded strings + # joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html# + # section-3.1 + # Corresponds to the JSON property `compactJwt` + # @return [String] + attr_accessor :compact_jwt + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compact_jwt = args[:compact_jwt] if args.key?(:compact_jwt) + end + end + # Response message for BinauthzManagementService.ListAttestors. class ListAttestorsResponse include Google::Apis::Core::Hashable @@ -578,6 +646,61 @@ module Google end end + # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to + # the trust anchors defined in policy (e.g. a Kritis policy). Typically this + # means that the verifier has been configured with a map from `public_key_id` to + # public key material (and any required parameters, e.g. signing algorithm). In + # particular, verification implementations MUST NOT treat the signature ` + # public_key_id` as anything more than a key lookup hint. The `public_key_id` + # DOES NOT validate or authenticate a public key; it only provides a mechanism + # for quickly selecting a public key ALREADY CONFIGURED on the verifier through + # a trusted channel. Verification implementations MUST reject signatures in any + # of the following circumstances: * The `public_key_id` is not recognized by the + # verifier. * The public key that `public_key_id` refers to does not verify the + # signature with respect to the payload. The `signature` contents SHOULD NOT be " + # attached" (where the payload is included with the serialized `signature` bytes) + # . Verifiers MUST ignore any "attached" payload and only verify signatures with + # respect to explicitly provided payload (e.g. a `payload` field on the proto + # message that holds this Signature, or the canonical serialization of the proto + # message that holds this signature). + class Signature + include Google::Apis::Core::Hashable + + # The identifier for the public key that verifies this signature. * The ` + # public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 + # conformant URI. * When possible, the `public_key_id` SHOULD be an immutable + # reference, such as a cryptographic digest. Examples of valid `public_key_id`s: + # OpenPGP V4 public key fingerprint: * "openpgp4fpr: + # 74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See https://www.iana.org/assignments/ + # uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest- + # named SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256; + # cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256; + # 703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" + # Corresponds to the JSON property `publicKeyId` + # @return [String] + attr_accessor :public_key_id + + # The content of the signature, an opaque bytestring. The payload that this + # signature verifies MUST be unambiguously provided with the Signature during + # verification. A wrapper message might provide the payload explicitly. + # Alternatively, a message might have a canonical serialization that can always + # be unambiguously computed to derive the payload. + # Corresponds to the JSON property `signature` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :signature + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @public_key_id = args[:public_key_id] if args.key?(:public_key_id) + @signature = args[:signature] if args.key?(:signature) + end + end + # Request message for `TestIamPermissions` method. class TestIamPermissionsRequest include Google::Apis::Core::Hashable @@ -664,6 +787,70 @@ module Google @public_keys = args[:public_keys] if args.key?(:public_keys) end end + + # Request message for ValidationHelperV1.ValidateAttestationOccurrence. + class ValidateAttestationOccurrenceRequest + include Google::Apis::Core::Hashable + + # Occurrence that represents a single "attestation". The authenticity of an + # attestation can be verified using the attached signature. If the verifier + # trusts the public key of the signer, then verifying the signature is + # sufficient to establish trust. In this circumstance, the authority to which + # this attestation is attached is primarily useful for lookup (how to find this + # attestation if you already know the authority and artifact to be verified) and + # intent (for which authority this attestation was intended to sign. + # Corresponds to the JSON property `attestation` + # @return [Google::Apis::BinaryauthorizationV1beta1::AttestationOccurrence] + attr_accessor :attestation + + # Required. The resource name of the Note to which the containing Occurrence is + # associated. + # Corresponds to the JSON property `occurrenceNote` + # @return [String] + attr_accessor :occurrence_note + + # Required. The URI of the artifact (e.g. container image) that is the subject + # of the containing Occurrence. + # Corresponds to the JSON property `occurrenceResourceUri` + # @return [String] + attr_accessor :occurrence_resource_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attestation = args[:attestation] if args.key?(:attestation) + @occurrence_note = args[:occurrence_note] if args.key?(:occurrence_note) + @occurrence_resource_uri = args[:occurrence_resource_uri] if args.key?(:occurrence_resource_uri) + end + end + + # Response message for ValidationHelperV1.ValidateAttestationOccurrence. + class ValidateAttestationOccurrenceResponse + include Google::Apis::Core::Hashable + + # The reason for denial if the Attestation couldn't be validated. + # Corresponds to the JSON property `denialReason` + # @return [String] + attr_accessor :denial_reason + + # The result of the Attestation validation. + # Corresponds to the JSON property `result` + # @return [String] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @denial_reason = args[:denial_reason] if args.key?(:denial_reason) + @result = args[:result] if args.key?(:result) + end + end end end end diff --git a/generated/google/apis/binaryauthorization_v1beta1/representations.rb b/generated/google/apis/binaryauthorization_v1beta1/representations.rb index 45b2ddc23..4ebc196cb 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/representations.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/representations.rb @@ -34,6 +34,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AttestationOccurrence + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Attestor class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Jwt + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListAttestorsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,6 +106,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Signature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TestIamPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +130,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ValidateAttestationOccurrenceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValidateAttestationOccurrenceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AdmissionRule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -128,6 +158,17 @@ module Google end end + class AttestationOccurrence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :jwts, as: 'jwts', class: Google::Apis::BinaryauthorizationV1beta1::Jwt, decorator: Google::Apis::BinaryauthorizationV1beta1::Jwt::Representation + + property :serialized_payload, :base64 => true, as: 'serializedPayload' + collection :signatures, as: 'signatures', class: Google::Apis::BinaryauthorizationV1beta1::Signature, decorator: Google::Apis::BinaryauthorizationV1beta1::Signature::Representation + + end + end + class Attestor # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -187,6 +228,13 @@ module Google end end + class Jwt + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compact_jwt, as: 'compactJwt' + end + end + class ListAttestorsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -228,6 +276,14 @@ module Google end end + class Signature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :public_key_id, as: 'publicKeyId' + property :signature, :base64 => true, as: 'signature' + end + end + class TestIamPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -251,6 +307,24 @@ module Google end end + + class ValidateAttestationOccurrenceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attestation, as: 'attestation', class: Google::Apis::BinaryauthorizationV1beta1::AttestationOccurrence, decorator: Google::Apis::BinaryauthorizationV1beta1::AttestationOccurrence::Representation + + property :occurrence_note, as: 'occurrenceNote' + property :occurrence_resource_uri, as: 'occurrenceResourceUri' + end + end + + class ValidateAttestationOccurrenceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :denial_reason, as: 'denialReason' + property :result, as: 'result' + end + end end end end diff --git a/generated/google/apis/binaryauthorization_v1beta1/service.rb b/generated/google/apis/binaryauthorization_v1beta1/service.rb index b5e7bed7c..2a61331de 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/service.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/service.rb @@ -409,6 +409,41 @@ module Google execute_or_queue_command(command, &block) end + # Returns whether the given Attestation for the given image URI was signed by + # the given Attestor + # @param [String] attestor + # Required. The resource name of the Attestor of the occurrence, in the format ` + # projects/*/attestors/*`. + # @param [Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceRequest] validate_attestation_occurrence_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::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse] + # + # @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 validate_attestor_attestation_occurrence(attestor, validate_attestation_occurrence_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+attestor}:validateAttestationOccurrence', options) + command.request_representation = Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceRequest::Representation + command.request_object = validate_attestation_occurrence_request_object + command.response_representation = Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse::Representation + command.response_class = Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse + command.params['attestor'] = attestor unless attestor.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the access control policy for a resource. Returns an empty policy if the # resource exists and does not have a policy set. # @param [String] resource diff --git a/generated/google/apis/chat_v1.rb b/generated/google/apis/chat_v1.rb index 49a12a7a2..695090510 100644 --- a/generated/google/apis/chat_v1.rb +++ b/generated/google/apis/chat_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/hangouts/chat module ChatV1 VERSION = 'V1' - REVISION = '20200909' + REVISION = '20200919' end end end diff --git a/generated/google/apis/chat_v1/classes.rb b/generated/google/apis/chat_v1/classes.rb index 5d5cef72b..e2f809c83 100644 --- a/generated/google/apis/chat_v1/classes.rb +++ b/generated/google/apis/chat_v1/classes.rb @@ -90,6 +90,11 @@ module Google # @return [Fixnum] attr_accessor :length + # Annotation metadata for slash commands (/). + # Corresponds to the JSON property `slashCommand` + # @return [Google::Apis::ChatV1::SlashCommandMetadata] + attr_accessor :slash_command + # Start index (0-based, inclusive) in the plain-text message body this # annotation corresponds to. # Corresponds to the JSON property `startIndex` @@ -113,6 +118,7 @@ module Google # Update properties of this object def update!(**args) @length = args[:length] if args.key?(:length) + @slash_command = args[:slash_command] if args.key?(:slash_command) @start_index = args[:start_index] if args.key?(:start_index) @type = args[:type] if args.key?(:type) @user_mention = args[:user_mention] if args.key?(:user_mention) @@ -695,8 +701,7 @@ module Google # @return [Google::Apis::ChatV1::User] attr_accessor :member - # Resource name of the membership, in the form "spaces/*/members/*". Example: - # spaces/AAAAMpdlehY/members/105115627578887013105 + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -779,6 +784,11 @@ module Google # @return [Google::Apis::ChatV1::User] attr_accessor :sender + # A Slash Command in Hangouts Chat. + # Corresponds to the JSON property `slashCommand` + # @return [Google::Apis::ChatV1::SlashCommand] + attr_accessor :slash_command + # A room or DM in Hangouts Chat. # Corresponds to the JSON property `space` # @return [Google::Apis::ChatV1::Space] @@ -810,6 +820,7 @@ module Google @name = args[:name] if args.key?(:name) @preview_text = args[:preview_text] if args.key?(:preview_text) @sender = args[:sender] if args.key?(:sender) + @slash_command = args[:slash_command] if args.key?(:slash_command) @space = args[:space] if args.key?(:space) @text = args[:text] if args.key?(:text) @thread = args[:thread] if args.key?(:thread) @@ -888,6 +899,69 @@ module Google end end + # A Slash Command in Hangouts Chat. + class SlashCommand + include Google::Apis::Core::Hashable + + # The id of the slash command invoked. + # Corresponds to the JSON property `commandId` + # @return [Fixnum] + attr_accessor :command_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @command_id = args[:command_id] if args.key?(:command_id) + end + end + + # Annotation metadata for slash commands (/). + class SlashCommandMetadata + include Google::Apis::Core::Hashable + + # A user in Hangouts Chat. + # Corresponds to the JSON property `bot` + # @return [Google::Apis::ChatV1::User] + attr_accessor :bot + + # The command id of the invoked slash command. + # Corresponds to the JSON property `commandId` + # @return [Fixnum] + attr_accessor :command_id + + # The name of the invoked slash command. + # Corresponds to the JSON property `commandName` + # @return [String] + attr_accessor :command_name + + # Indicating whether the slash command is for a dialog. + # Corresponds to the JSON property `triggersDialog` + # @return [Boolean] + attr_accessor :triggers_dialog + alias_method :triggers_dialog?, :triggers_dialog + + # The type of slash command. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bot = args[:bot] if args.key?(:bot) + @command_id = args[:command_id] if args.key?(:command_id) + @command_name = args[:command_name] if args.key?(:command_name) + @triggers_dialog = args[:triggers_dialog] if args.key?(:triggers_dialog) + @type = args[:type] if args.key?(:type) + end + end + # A room or DM in Hangouts Chat. class Space include Google::Apis::Core::Hashable diff --git a/generated/google/apis/chat_v1/representations.rb b/generated/google/apis/chat_v1/representations.rb index e383f0b10..60a0a2849 100644 --- a/generated/google/apis/chat_v1/representations.rb +++ b/generated/google/apis/chat_v1/representations.rb @@ -166,6 +166,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SlashCommand + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SlashCommandMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Space class Representation < Google::Apis::Core::JsonRepresentation; end @@ -228,6 +240,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :length, as: 'length' + property :slash_command, as: 'slashCommand', class: Google::Apis::ChatV1::SlashCommandMetadata, decorator: Google::Apis::ChatV1::SlashCommandMetadata::Representation + property :start_index, as: 'startIndex' property :type, as: 'type' property :user_mention, as: 'userMention', class: Google::Apis::ChatV1::UserMentionMetadata, decorator: Google::Apis::ChatV1::UserMentionMetadata::Representation @@ -432,6 +446,8 @@ module Google property :preview_text, as: 'previewText' property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation + property :slash_command, as: 'slashCommand', class: Google::Apis::ChatV1::SlashCommand, decorator: Google::Apis::ChatV1::SlashCommand::Representation + property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation property :text, as: 'text' @@ -466,6 +482,25 @@ module Google end end + class SlashCommand + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command_id, :numeric_string => true, as: 'commandId' + end + end + + class SlashCommandMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bot, as: 'bot', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation + + property :command_id, :numeric_string => true, as: 'commandId' + property :command_name, as: 'commandName' + property :triggers_dialog, as: 'triggersDialog' + property :type, as: 'type' + end + end + class Space # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index 01e840b63..3bf8c5ac5 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1 VERSION = 'V1' - REVISION = '20200806' + REVISION = '20200917' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb index 02cb38cad..cdf97ef98 100644 --- a/generated/google/apis/cloudfunctions_v1/classes.rb +++ b/generated/google/apis/cloudfunctions_v1/classes.rb @@ -226,6 +226,11 @@ module Google # @return [Fixnum] attr_accessor :available_memory_mb + # Build environment variables that shall be available during build time. + # Corresponds to the JSON property `buildEnvironmentVariables` + # @return [Hash] + attr_accessor :build_environment_variables + # Output only. The Cloud Build ID of the latest successful deployment of the # function. # Corresponds to the JSON property `buildId` @@ -272,7 +277,12 @@ module Google attr_accessor :labels # The limit on the maximum number of function instances that may coexist at a - # given time. + # given time. In some cases, such as rapid traffic surges, Cloud Functions may, + # for a short period of time, create more instances than the specified max + # instances limit. If your function cannot tolerate this temporary behavior, you + # may want to factor in a safety margin and set a lower max instances value than + # your function can tolerate. See the [Max Instances](https://cloud.google.com/ + # functions/docs/max-instances) Guide for more details. # Corresponds to the JSON property `maxInstances` # @return [Fixnum] attr_accessor :max_instances @@ -375,6 +385,7 @@ module Google # Update properties of this object def update!(**args) @available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb) + @build_environment_variables = args[:build_environment_variables] if args.key?(:build_environment_variables) @build_id = args[:build_id] if args.key?(:build_id) @description = args[:description] if args.key?(:description) @entry_point = args[:entry_point] if args.key?(:entry_point) diff --git a/generated/google/apis/cloudfunctions_v1/representations.rb b/generated/google/apis/cloudfunctions_v1/representations.rb index d7b79e6e4..bc8bd25b2 100644 --- a/generated/google/apis/cloudfunctions_v1/representations.rb +++ b/generated/google/apis/cloudfunctions_v1/representations.rb @@ -231,6 +231,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :available_memory_mb, as: 'availableMemoryMb' + hash :build_environment_variables, as: 'buildEnvironmentVariables' property :build_id, as: 'buildId' property :description, as: 'description' property :entry_point, as: 'entryPoint' diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 31bfd67be..3642ef30b 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20200908' + REVISION = '20200916' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index 46040e091..b9fd757de 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -1582,7 +1582,7 @@ module Google execute_or_queue_command(command, &block) end - # Update the local inventory of a product in your Merchant Center account. + # Updates the local inventory of a product in your Merchant Center account. # @param [Fixnum] merchant_id # The ID of the account that contains the product. This account cannot be a # multi-client account. diff --git a/generated/google/apis/datacatalog_v1beta1.rb b/generated/google/apis/datacatalog_v1beta1.rb index 9dac1dc10..9919b0b72 100644 --- a/generated/google/apis/datacatalog_v1beta1.rb +++ b/generated/google/apis/datacatalog_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/data-catalog/docs/ module DatacatalogV1beta1 VERSION = 'V1beta1' - REVISION = '20200831' + REVISION = '20200918' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/datacatalog_v1beta1/classes.rb b/generated/google/apis/datacatalog_v1beta1/classes.rb index c6ccf0c46..13069005c 100644 --- a/generated/google/apis/datacatalog_v1beta1/classes.rb +++ b/generated/google/apis/datacatalog_v1beta1/classes.rb @@ -1088,7 +1088,7 @@ module Google # Unreachable locations. Search result does not include data from those # locations. Users can get additional information on the error by repeating the # search request with a more restrictive parameter -- setting the value for ` - # SearchDataCatalogRequest.scope.include_locations`. + # SearchDataCatalogRequest.scope.restricted_locations`. # Corresponds to the JSON property `unreachable` # @return [Array] attr_accessor :unreachable diff --git a/generated/google/apis/displayvideo_v1.rb b/generated/google/apis/displayvideo_v1.rb index 5b8cfdfa2..0ca1508fa 100644 --- a/generated/google/apis/displayvideo_v1.rb +++ b/generated/google/apis/displayvideo_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/display-video/ module DisplayvideoV1 VERSION = 'V1' - REVISION = '20200901' + REVISION = '20200924' # Create, see, edit, and permanently delete your Display & Video 360 entities and reports AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' diff --git a/generated/google/apis/displayvideo_v1/classes.rb b/generated/google/apis/displayvideo_v1/classes.rb index 615635f7d..9fc3b71a1 100644 --- a/generated/google/apis/displayvideo_v1/classes.rb +++ b/generated/google/apis/displayvideo_v1/classes.rb @@ -5310,6 +5310,13 @@ module Google # @return [String] attr_accessor :update_time + # Output only. The warning messages generated by the line item. These warnings + # do not block saving the line item, but some may block the line item from + # running. + # Corresponds to the JSON property `warningMessages` + # @return [Array] + attr_accessor :warning_messages + def initialize(**args) update!(**args) end @@ -5336,6 +5343,7 @@ module Google @partner_costs = args[:partner_costs] if args.key?(:partner_costs) @partner_revenue_model = args[:partner_revenue_model] if args.key?(:partner_revenue_model) @update_time = args[:update_time] if args.key?(:update_time) + @warning_messages = args[:warning_messages] if args.key?(:warning_messages) end end diff --git a/generated/google/apis/displayvideo_v1/representations.rb b/generated/google/apis/displayvideo_v1/representations.rb index f149102fa..a4b7283c5 100644 --- a/generated/google/apis/displayvideo_v1/representations.rb +++ b/generated/google/apis/displayvideo_v1/representations.rb @@ -2775,6 +2775,7 @@ module Google property :partner_revenue_model, as: 'partnerRevenueModel', class: Google::Apis::DisplayvideoV1::PartnerRevenueModel, decorator: Google::Apis::DisplayvideoV1::PartnerRevenueModel::Representation property :update_time, as: 'updateTime' + collection :warning_messages, as: 'warningMessages' end end diff --git a/generated/google/apis/firestore_v1.rb b/generated/google/apis/firestore_v1.rb index 6ff837aa1..4dfc80c1d 100644 --- a/generated/google/apis/firestore_v1.rb +++ b/generated/google/apis/firestore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1 VERSION = 'V1' - REVISION = '20200821' + REVISION = '20200912' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/firestore_v1beta1.rb b/generated/google/apis/firestore_v1beta1.rb index c86e0c12f..1e26769a9 100644 --- a/generated/google/apis/firestore_v1beta1.rb +++ b/generated/google/apis/firestore_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta1 VERSION = 'V1beta1' - REVISION = '20200822' + REVISION = '20200912' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index 1762e475e..1ddb02b9d 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20200801' + REVISION = '20200918' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index 15fae9baa..95045313c 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -534,8 +534,13 @@ module Google # Required. Names of one or more parent resources from which to retrieve log # entries: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" " - # billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Projects listed in - # the project_ids field are added to this list. + # billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" May alternatively + # be one or more views projects/PROJECT_ID/locations/LOCATION_ID/buckets/ + # BUCKET_ID/views/VIEW_ID organization/ORGANIZATION_ID/locations/LOCATION_ID/ + # buckets/BUCKET_ID/views/VIEW_ID billingAccounts/BILLING_ACCOUNT_ID/locations/ + # LOCATION_ID/buckets/BUCKET_ID/views/VIEW_ID folders/FOLDER_ID/locations/ + # LOCATION_ID/buckets/BUCKET_ID/views/VIEW_IDProjects listed in the project_ids + # field are added to this list. # Corresponds to the JSON property `resourceNames` # @return [Array] attr_accessor :resource_names @@ -699,6 +704,33 @@ module Google end end + # The response from ListViews. + class ListViewsResponse + include Google::Apis::Core::Hashable + + # If there might be more results than appear in this response, then + # nextPageToken is included. To get the next set of results, call the same + # method again using the value of nextPageToken as pageToken. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of views. + # Corresponds to the JSON property `views` + # @return [Array] + attr_accessor :views + + 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) + @views = args[:views] if args.key?(:views) + end + end + # Describes a repository of logs (Beta). class LogBucket include Google::Apis::Core::Hashable @@ -1188,13 +1220,7 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable.The following are specific rules for service defined - # Monitoring metric descriptors: type, metric_kind, value_type and description - # fields are all required. The unit field must be specified if the value_type is - # any of DOUBLE, INT64, DISTRIBUTION. Maximum of default 500 metric descriptors - # per service is allowed. Maximum of default 10 labels per metric descriptor is - # allowed.The default maximum limit can be overridden. Please follow https:// - # cloud.google.com/monitoring/quotas + # existing data unusable. # Corresponds to the JSON property `metricDescriptor` # @return [Google::Apis::LoggingV2::MetricDescriptor] attr_accessor :metric_descriptor @@ -1388,15 +1414,55 @@ module Google end end + # Describes a view over logs in a bucket. + class LogView + include Google::Apis::Core::Hashable + + # Output only. The creation timestamp of the view. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Describes this view. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Filter that restricts which log entries in a bucket are visible in this view. + # Filters are restricted to be a logical AND of ==/!= of any of the following: + # originating project/folder/organization/billing account. resource type log id + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # The resource name of the view. For example "projects/my-project-id/locations/ + # my-location/buckets/my-bucket-id/views/my-view + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The last update timestamp of the view. + # 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) + @description = args[:description] if args.key?(:description) + @filter = args[:filter] if args.key?(:filter) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's - # existing data unusable.The following are specific rules for service defined - # Monitoring metric descriptors: type, metric_kind, value_type and description - # fields are all required. The unit field must be specified if the value_type is - # any of DOUBLE, INT64, DISTRIBUTION. Maximum of default 500 metric descriptors - # per service is allowed. Maximum of default 10 labels per metric descriptor is - # allowed.The default maximum limit can be overridden. Please follow https:// - # cloud.google.com/monitoring/quotas + # existing data unusable. class MetricDescriptor include Google::Apis::Core::Hashable @@ -1414,12 +1480,10 @@ module Google attr_accessor :display_name # The set of labels that can be used to describe a specific instance of this - # metric type.The label key name must follow: Only upper and lower-case letters, - # digits and underscores (_) are allowed. Label name must start with a letter or - # digit. The maximum length of a label name is 100 characters.For example, the - # appengine.googleapis.com/http/server/response_latencies metric type has a - # label for the HTTP response code, response_code, so you can look at latencies - # for successful responses or just for responses that failed. + # metric type. For example, the appengine.googleapis.com/http/server/ + # response_latencies metric type has a label for the HTTP response code, + # response_code, so you can look at latencies for successful responses or just + # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -1454,16 +1518,11 @@ module Google attr_accessor :name # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of `service name`/`relative metric name`, such as cloudsql.googleapis. - # com/database/cpu/utilization. The relative metric name must follow: Only upper - # and lower-case letters, digits, '/' and underscores '_' are allowed. The - # maximum number of characters allowed for the relative_metric_name is 100.All - # user-defined metric types have the DNS name custom.googleapis.com, external. - # googleapis.com, or logging.googleapis.com/user/.Metric types should use a - # natural hierarchical grouping. For example: "custom.googleapis.com/invoice/ - # paid/amount" "external.googleapis.com/prometheus/up" "appengine.googleapis.com/ - # http/server/response_latencies" + # All user-defined metric types have the DNS name custom.googleapis.com or + # external.googleapis.com. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1619,16 +1678,9 @@ module Google # name and a set of labels. For example, the monitored resource descriptor for # Google Compute Engine VM instances has a type of "gce_instance" and specifies # the use of the labels "instance_id" and "zone" to identify particular VM - # instances.Different services can support different monitored resource types. - # The following are specific rules to service defined monitored resources for - # Monitoring and Logging: The type, display_name, description, labels and - # launch_stage fields are all required. The first label of the monitored - # resource descriptor must be resource_container. There are legacy monitored - # resource descritptors start with project_id. It must include a location label. - # Maximum of default 5 service defined monitored resource descriptors is allowed - # per service. Maximum of default 10 labels per monitored resource is allowed. - # The default maximum limit can be overridden. Please follow https://cloud. - # google.com/monitoring/quotas + # instances.Different APIs can support different monitored resource types. APIs + # generally provide a list method that returns the monitored resource + # descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable @@ -1646,11 +1698,8 @@ module Google attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. The label key name must follow: Only upper and lower-case - # letters, digits and underscores (_) are allowed. Label name must start with a - # letter or digit. The maximum length of a label name is 100 characters.For - # example, an individual Google Cloud SQL database is identified by values for - # the labels database_id and location. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels "database_id" and "zone". # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -1670,14 +1719,8 @@ module Google # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type cloudsql_database - # represents databases in Google Cloud SQL.All service defined monitored - # resource types must be prefixed with the service name, in the format of ` - # service name`/`relative resource name`. The relative resource name must follow: - # Only upper and lower-case letters and digits are allowed. It must start with - # upper case character and is recommended to use Upper Camel Case style. The - # maximum number of characters allowed for the relative_resource_name is 100. - # Note there are legacy service monitored resources not following this rule. + # Required. The monitored resource type. For example, the type " + # cloudsql_database" represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/logging_v2/representations.rb b/generated/google/apis/logging_v2/representations.rb index 56bc6f498..7d9b4dd76 100644 --- a/generated/google/apis/logging_v2/representations.rb +++ b/generated/google/apis/logging_v2/representations.rb @@ -124,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListViewsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogBucket class Representation < Google::Apis::Core::JsonRepresentation; end @@ -172,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LogView + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MetricDescriptor class Representation < Google::Apis::Core::JsonRepresentation; end @@ -402,6 +414,15 @@ module Google end end + class ListViewsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :views, as: 'views', class: Google::Apis::LoggingV2::LogView, decorator: Google::Apis::LoggingV2::LogView::Representation + + end + end + class LogBucket # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -523,6 +544,17 @@ module Google end end + class LogView + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :filter, as: 'filter' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + class MetricDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/logging_v2/service.rb b/generated/google/apis/logging_v2/service.rb index de7af15c8..e350fe31a 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -85,6 +85,38 @@ module Google execute_or_queue_command(command, &block) end + # Gets a view. + # @param [String] name + # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[ + # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my- + # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_billing_account_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 exclusion in a specified parent resource. Only log entries # belonging to that resource can be excluded. You can have up to 10 exclusions # in a resource. @@ -493,6 +525,164 @@ module Google execute_or_queue_command(command, &block) end + # Creates a view over logs in a bucket. A bucket may contain a maximum of 50 + # views. + # @param [String] parent + # Required. The bucket in which to create the view "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging- + # project/locations/my-location/buckets/my-bucket" + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] view_id + # Required. The id to use for this view. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_billing_account_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/views', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + command.params['parent'] = parent unless parent.nil? + command.query['viewId'] = view_id unless view_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 view from a bucket. + # @param [String] name + # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_billing_account_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 + + # Lists views on a bucket.. + # @param [String] parent + # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListViewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListViewsResponse] + # + # @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_billing_account_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/views', options) + command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListViewsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a view. This method replaces the following fields in the existing view + # with values from the new view: filter. + # @param [String] name + # Required. The full resource name of the view to update "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] update_mask + # Optional. Field mask that specifies the fields in view that need an update. A + # field will be overwritten if, and only if, it is in the update mask. name and + # output only fields cannot be updated.For a detailed FieldMask definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # google.protobuf.FieldMaskExample: updateMask=filter. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_billing_account_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. Entries received after the delete operation with a timestamp before @@ -1557,6 +1747,196 @@ module Google execute_or_queue_command(command, &block) end + # Creates a view over logs in a bucket. A bucket may contain a maximum of 50 + # views. + # @param [String] parent + # Required. The bucket in which to create the view "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging- + # project/locations/my-location/buckets/my-bucket" + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] view_id + # Required. The id to use for this view. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_folder_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/views', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + command.params['parent'] = parent unless parent.nil? + command.query['viewId'] = view_id unless view_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 view from a bucket. + # @param [String] name + # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 a view. + # @param [String] name + # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[ + # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my- + # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 views on a bucket.. + # @param [String] parent + # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListViewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListViewsResponse] + # + # @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_folder_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/views', options) + command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListViewsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a view. This method replaces the following fields in the existing view + # with values from the new view: filter. + # @param [String] name + # Required. The full resource name of the view to update "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] update_mask + # Optional. Field mask that specifies the fields in view that need an update. A + # field will be overwritten if, and only if, it is in the update mask. name and + # output only fields cannot be updated.For a detailed FieldMask definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # google.protobuf.FieldMaskExample: updateMask=filter. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_folder_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. Entries received after the delete operation with a timestamp before @@ -2167,6 +2547,196 @@ module Google execute_or_queue_command(command, &block) end + # Creates a view over logs in a bucket. A bucket may contain a maximum of 50 + # views. + # @param [String] parent + # Required. The bucket in which to create the view "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging- + # project/locations/my-location/buckets/my-bucket" + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] view_id + # Required. The id to use for this view. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/views', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + command.params['parent'] = parent unless parent.nil? + command.query['viewId'] = view_id unless view_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 view from a bucket. + # @param [String] name + # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 a view. + # @param [String] name + # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[ + # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my- + # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 views on a bucket.. + # @param [String] parent + # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListViewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListViewsResponse] + # + # @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_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/views', options) + command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListViewsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a view. This method replaces the following fields in the existing view + # with values from the new view: filter. + # @param [String] name + # Required. The full resource name of the view to update "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] update_mask + # Optional. Field mask that specifies the fields in view that need an update. A + # field will be overwritten if, and only if, it is in the update mask. name and + # output only fields cannot be updated.For a detailed FieldMask definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # google.protobuf.FieldMaskExample: updateMask=filter. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. Entries received after the delete operation with a timestamp before @@ -2820,6 +3390,196 @@ module Google execute_or_queue_command(command, &block) end + # Creates a view over logs in a bucket. A bucket may contain a maximum of 50 + # views. + # @param [String] parent + # Required. The bucket in which to create the view "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging- + # project/locations/my-location/buckets/my-bucket" + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] view_id + # Required. The id to use for this view. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_organization_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/views', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + command.params['parent'] = parent unless parent.nil? + command.query['viewId'] = view_id unless view_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 view from a bucket. + # @param [String] name + # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 a view. + # @param [String] name + # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[ + # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my- + # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 views on a bucket.. + # @param [String] parent + # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListViewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListViewsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organization_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/views', options) + command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListViewsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a view. This method replaces the following fields in the existing view + # with values from the new view: filter. + # @param [String] name + # Required. The full resource name of the view to update "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] update_mask + # Optional. Field mask that specifies the fields in view that need an update. A + # field will be overwritten if, and only if, it is in the update mask. name and + # output only fields cannot be updated.For a detailed FieldMask definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # google.protobuf.FieldMaskExample: updateMask=filter. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_organization_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. Entries received after the delete operation with a timestamp before @@ -3624,6 +4384,196 @@ module Google execute_or_queue_command(command, &block) end + # Creates a view over logs in a bucket. A bucket may contain a maximum of 50 + # views. + # @param [String] parent + # Required. The bucket in which to create the view "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging- + # project/locations/my-location/buckets/my-bucket" + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] view_id + # Required. The id to use for this view. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/views', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + command.params['parent'] = parent unless parent.nil? + command.query['viewId'] = view_id unless view_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 view from a bucket. + # @param [String] name + # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 a view. + # @param [String] name + # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[ + # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my- + # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 views on a bucket.. + # @param [String] parent + # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @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::LoggingV2::ListViewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListViewsResponse] + # + # @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_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/views', options) + command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListViewsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a view. This method replaces the following fields in the existing view + # with values from the new view: filter. + # @param [String] name + # Required. The full resource name of the view to update "projects/[PROJECT_ID]/ + # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: " + # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my- + # view-id". + # @param [Google::Apis::LoggingV2::LogView] log_view_object + # @param [String] update_mask + # Optional. Field mask that specifies the fields in view that need an update. A + # field will be overwritten if, and only if, it is in the update mask. name and + # output only fields cannot be updated.For a detailed FieldMask definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # google.protobuf.FieldMaskExample: updateMask=filter. + # @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::LoggingV2::LogView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::LogView] + # + # @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_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::LoggingV2::LogView::Representation + command.request_object = log_view_object + command.response_representation = Google::Apis::LoggingV2::LogView::Representation + command.response_class = Google::Apis::LoggingV2::LogView + 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 + # Deletes all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. Entries received after the delete operation with a timestamp before diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index 9c53939ef..7d647ed17 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20200813' + REVISION = '20200923' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index 67c6baf44..153fc18dc 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -574,12 +574,14 @@ module Google # Each path should start with `person.`: for example, `person.names` or `person. # photos`. # @param [Array, String] resource_names - # Required. The resource names of the people to provide information about. - To - # get information about the authenticated user, specify `people/me`. - To get - # information about a google account, specify `people/`account_id``. - To get - # information about a contact, specify the resource name that identifies the - # contact as returned by [`people.connections.list`](/people/api/rest/v1/people. - # connections/list). You can include up to 50 resource names in one request. + # Required. The resource names of the people to provide information about. It's + # repeatable. The URL query parameter should be resourceNames=& + # resourceNames=&... - To get information about the authenticated user, + # specify `people/me`. - To get information about a google account, specify ` + # people/`account_id``. - To get information about a contact, specify the + # resource name that identifies the contact as returned by [`people.connections. + # list`](/people/api/rest/v1/people.connections/list). You can include up to 50 + # resource names in one request. # @param [Array, String] sources # Optional. A mask of what source types to return. Defaults to ReadSourceType. # CONTACT and ReadSourceType.PROFILE if not set. diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index 24a2315a5..29c8dcf02 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20200907' + REVISION = '20200918' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index 10d22e5b8..cff26452e 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -1528,84 +1528,6 @@ module Google end end - # Cloud Run fully managed: not supported Cloud Run on GKE: supported Namespace - # provides a scope for Names. Use of multiple namespaces is optional. - class Namespace - include Google::Apis::Core::Hashable - - # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted - # resources must have, which includes all objects users must create. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::ObjectMeta] - attr_accessor :metadata - - # Cloud Run fully managed: not supported Cloud Run on GKE: supported - # NamespaceSpec describes the attributes on a Namespace. - # Corresponds to the JSON property `spec` - # @return [Google::Apis::RunV1::NamespaceSpec] - attr_accessor :spec - - # Cloud Run fully managed: not supported Cloud Run on GKE: supported - # NamespaceStatus is information about the current status of a Namespace. - # Corresponds to the JSON property `status` - # @return [Google::Apis::RunV1::NamespaceStatus] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metadata = args[:metadata] if args.key?(:metadata) - @spec = args[:spec] if args.key?(:spec) - @status = args[:status] if args.key?(:status) - end - end - - # Cloud Run fully managed: not supported Cloud Run on GKE: supported - # NamespaceSpec describes the attributes on a Namespace. - class NamespaceSpec - include Google::Apis::Core::Hashable - - # Finalizers is an opaque list of values that must be empty to permanently - # remove object from storage. More info: https://kubernetes.io/docs/tasks/ - # administer-cluster/namespaces/ - # Corresponds to the JSON property `finalizers` - # @return [Array] - attr_accessor :finalizers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @finalizers = args[:finalizers] if args.key?(:finalizers) - end - end - - # Cloud Run fully managed: not supported Cloud Run on GKE: supported - # NamespaceStatus is information about the current status of a Namespace. - class NamespaceStatus - include Google::Apis::Core::Hashable - - # Phase is the current lifecycle phase of the namespace. More info: https:// - # kubernetes.io/docs/tasks/administer-cluster/namespaces/ - # Corresponds to the JSON property `phase` - # @return [String] - attr_accessor :phase - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @phase = args[:phase] if args.key?(:phase) - end - end - # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted # resources must have, which includes all objects users must create. class ObjectMeta @@ -2401,52 +2323,6 @@ module Google end end - # Cloud Run fully managed: not supported Cloud Run on GKE: supported Secret - # holds secret data of a certain type. The total bytes of the values in the Data - # field must be less than MaxSecretSize bytes. - class Secret - include Google::Apis::Core::Hashable - - # Data contains the secret data. Each key must consist of alphanumeric - # characters, '-', '_' or '.'. The serialized form of the secret data is a - # base64 encoded string, representing the arbitrary (possibly non-string) data - # value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - # Corresponds to the JSON property `data` - # @return [Hash] - attr_accessor :data - - # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted - # resources must have, which includes all objects users must create. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::ObjectMeta] - attr_accessor :metadata - - # stringData allows specifying non-binary secret data in string form. It is - # provided as a write-only convenience method. All keys and values are merged - # into the data field on write, overwriting any existing values. It is never - # output when reading from the API. +k8s:conversion-gen=false - # Corresponds to the JSON property `stringData` - # @return [Hash] - attr_accessor :string_data - - # Used to facilitate programmatic handling of secret data. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data = args[:data] if args.key?(:data) - @metadata = args[:metadata] if args.key?(:metadata) - @string_data = args[:string_data] if args.key?(:string_data) - @type = args[:type] if args.key?(:type) - end - end - # Cloud Run fully managed: not supported Cloud Run for Anthos: supported # SecretEnvSource selects a Secret to populate the environment variables with. # The contents of the target Secret's Data field will represent the key-value diff --git a/generated/google/apis/run_v1/representations.rb b/generated/google/apis/run_v1/representations.rb index 7673929fb..8c629b3fa 100644 --- a/generated/google/apis/run_v1/representations.rb +++ b/generated/google/apis/run_v1/representations.rb @@ -232,24 +232,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Namespace - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class NamespaceSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class NamespaceStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ObjectMeta class Representation < Google::Apis::Core::JsonRepresentation; end @@ -328,12 +310,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Secret - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SecretEnvSource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -816,32 +792,6 @@ module Google end end - class Namespace - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation - - property :spec, as: 'spec', class: Google::Apis::RunV1::NamespaceSpec, decorator: Google::Apis::RunV1::NamespaceSpec::Representation - - property :status, as: 'status', class: Google::Apis::RunV1::NamespaceStatus, decorator: Google::Apis::RunV1::NamespaceStatus::Representation - - end - end - - class NamespaceSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :finalizers, as: 'finalizers' - end - end - - class NamespaceStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :phase, as: 'phase' - end - end - class ObjectMeta # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1007,17 +957,6 @@ module Google end end - class Secret - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :data, as: 'data' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation - - hash :string_data, as: 'stringData' - property :type, as: 'type' - end - end - class SecretEnvSource # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/run_v1/service.rb b/generated/google/apis/run_v1/service.rb index 2b675674a..b06e90544 100644 --- a/generated/google/apis/run_v1/service.rb +++ b/generated/google/apis/run_v1/service.rb @@ -48,177 +48,6 @@ module Google @batch_path = 'batch' end - # Rpc to get information about a namespace. - # @param [String] name - # Required. The name of the namespace being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Namespace] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Namespace] - # - # @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_api_v1_namespace(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'api/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Namespace::Representation - command.response_class = Google::Apis::RunV1::Namespace - 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 - - # Rpc to update a namespace. - # @param [String] name - # Required. The name of the namespace being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [Google::Apis::RunV1::Namespace] namespace_object - # @param [String] update_mask - # Required. Indicates which fields in the provided namespace to update. This - # field is currently unused. - # @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::RunV1::Namespace] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Namespace] - # - # @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_api_v1_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'api/v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::Namespace::Representation - command.request_object = namespace_object - command.response_representation = Google::Apis::RunV1::Namespace::Representation - command.response_class = Google::Apis::RunV1::Namespace - 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 - - # Creates a new secret. - # @param [String] parent - # Required. The project ID or project number in which this secret should be - # created. - # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Secret] - # - # @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_api_v1_namespace_secret(parent, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'api/v1/{+parent}/secrets', options) - command.request_representation = Google::Apis::RunV1::Secret::Representation - command.request_object = secret_object - command.response_representation = Google::Apis::RunV1::Secret::Representation - command.response_class = Google::Apis::RunV1::Secret - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to get information about a secret. - # @param [String] name - # Required. The name of the secret being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Secret] - # - # @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_api_v1_namespace_secret(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'api/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Secret::Representation - command.response_class = Google::Apis::RunV1::Secret - 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 - - # Rpc to replace a secret. Only the spec and metadata labels and annotations are - # modifiable. After the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. May provide metadata.resourceVersion to enforce - # update from last read for optimistic concurrency control. - # @param [String] name - # Required. The name of the secret being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Secret] - # - # @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 replace_api_v1_namespace_secret_secret(name, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'api/v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::Secret::Representation - command.request_object = secret_object - command.response_representation = Google::Apis::RunV1::Secret::Representation - command.response_class = Google::Apis::RunV1::Secret - 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 - # List authorized domains. # @param [String] parent # Name of the parent Project resource. Example: `projects/myproject`. @@ -1290,75 +1119,6 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to get information about a namespace. - # @param [String] name - # Required. The name of the namespace being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Namespace] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Namespace] - # - # @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_namespace(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Namespace::Representation - command.response_class = Google::Apis::RunV1::Namespace - 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 - - # Rpc to update a namespace. - # @param [String] name - # Required. The name of the namespace being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [Google::Apis::RunV1::Namespace] namespace_object - # @param [String] update_mask - # Required. Indicates which fields in the provided namespace to update. This - # field is currently unused. - # @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::RunV1::Namespace] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Namespace] - # - # @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_namespace(name, namespace_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::RunV1::Namespace::Representation - command.request_object = namespace_object - command.response_representation = Google::Apis::RunV1::Namespace::Representation - command.response_class = Google::Apis::RunV1::Namespace - 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 - # Delete a revision. # @param [String] name # The name of the revision to delete. For Cloud Run (fully managed), replace ` @@ -1577,108 +1337,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new secret. - # @param [String] parent - # Required. The project ID or project number in which this secret should be - # created. - # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Secret] - # - # @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_secret(parent, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+parent}/secrets', options) - command.request_representation = Google::Apis::RunV1::Secret::Representation - command.request_object = secret_object - command.response_representation = Google::Apis::RunV1::Secret::Representation - command.response_class = Google::Apis::RunV1::Secret - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to get information about a secret. - # @param [String] name - # Required. The name of the secret being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Secret] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Secret] - # - # @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_secret(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Secret::Representation - command.response_class = Google::Apis::RunV1::Secret - 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 - - # Rpc to replace a secret. Only the spec and metadata labels and annotations are - # modifiable. After the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. May provide metadata.resourceVersion to enforce - # update from last read for optimistic concurrency control. - # @param [String] name - # Required. The name of the secret being retrieved. If needed, replace ` - # namespace_id` with the project ID. - # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Secret] - # - # @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 replace_project_location_secret_secret(name, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::Secret::Representation - command.request_object = secret_object - command.response_representation = Google::Apis::RunV1::Secret::Representation - command.response_class = Google::Apis::RunV1::Secret - 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 - # Create a service. # @param [String] parent # The namespace in which the service should be created. For Cloud Run (fully diff --git a/generated/google/apis/sourcerepo_v1.rb b/generated/google/apis/sourcerepo_v1.rb index 0fa7e0ada..a52171fa3 100644 --- a/generated/google/apis/sourcerepo_v1.rb +++ b/generated/google/apis/sourcerepo_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/source-repositories/docs/apis module SourcerepoV1 VERSION = 'V1' - REVISION = '20200729' + REVISION = '20200914' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sourcerepo_v1/classes.rb b/generated/google/apis/sourcerepo_v1/classes.rb index 6e09ed3c1..24dc80336 100644 --- a/generated/google/apis/sourcerepo_v1/classes.rb +++ b/generated/google/apis/sourcerepo_v1/classes.rb @@ -22,53 +22,21 @@ module Google module Apis module SourcerepoV1 - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -77,9 +45,9 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -95,28 +63,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -142,69 +97,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::SourcerepoV1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -221,13 +164,11 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -240,52 +181,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -303,13 +235,13 @@ module Google end end - # Response for ListRepos. The size is not set in the returned repositories. + # Response for ListRepos. The size is not set in the returned repositories. class ListReposResponse include Google::Apis::Core::Hashable - # If non-empty, additional repositories exist within the project. These - # can be retrieved by including this value in the next ListReposRequest's - # page_token field. + # If non-empty, additional repositories exist within the project. These can be + # retrieved by including this value in the next ListReposRequest's page_token + # field. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -330,14 +262,14 @@ module Google end end - # Configuration to automatically mirror a repository from another - # hosting service, for example GitHub or Bitbucket. + # Configuration to automatically mirror a repository from another hosting + # service, for example GitHub or Bitbucket. class MirrorConfig include Google::Apis::Core::Hashable - # ID of the SSH deploy key at the other hosting service. - # Removing this key from the other service would deauthorize - # Google Cloud Source Repositories from mirroring. + # ID of the SSH deploy key at the other hosting service. Removing this key from + # the other service would deauthorize Google Cloud Source Repositories from + # mirroring. # Corresponds to the JSON property `deployKeyId` # @return [String] attr_accessor :deploy_key_id @@ -347,10 +279,9 @@ module Google # @return [String] attr_accessor :url - # ID of the webhook listening to updates to trigger mirroring. - # Removing this webhook from the other hosting service will stop - # Google Cloud Source Repositories from receiving notifications, - # and thereby disabling mirroring. + # ID of the webhook listening to updates to trigger mirroring. Removing this + # webhook from the other hosting service will stop Google Cloud Source + # Repositories from receiving notifications, and thereby disabling mirroring. # Corresponds to the JSON property `webhookId` # @return [String] attr_accessor :webhook_id @@ -372,47 +303,45 @@ module Google class Operation include Google::Apis::Core::Hashable - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. # Corresponds to the JSON property `done` # @return [Boolean] attr_accessor :done alias_method :done?, :done - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::SourcerepoV1::Status] attr_accessor :error - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -432,66 +361,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -500,48 +395,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -569,13 +460,13 @@ module Google attr_accessor :enable_private_key_check alias_method :enable_private_key_check?, :enable_private_key_check - # The name of the project. Values are of the form `projects/`. + # The name of the project. Values are of the form `projects/`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # How this project publishes a change in the repositories through Cloud - # Pub/Sub. Keyed by the topic names. + # How this project publishes a change in the repositories through Cloud Pub/Sub. + # Keyed by the topic names. # Corresponds to the JSON property `pubsubConfigs` # @return [Hash] attr_accessor :pubsub_configs @@ -603,16 +494,15 @@ module Google # Email address of the service account used for publishing Cloud Pub/Sub # messages. This service account needs to be in the same project as the - # PubsubConfig. When added, the caller needs to have - # iam.serviceAccounts.actAs permission on this service account. If - # unspecified, it defaults to the compute engine default service account. + # PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs + # permission on this service account. If unspecified, it defaults to the compute + # engine default service account. # Corresponds to the JSON property `serviceAccountEmail` # @return [String] attr_accessor :service_account_email - # A topic of Cloud Pub/Sub. Values are of the form - # `projects//topics/`. The project needs to be the same - # project as this config is in. + # A topic of Cloud Pub/Sub. Values are of the form `projects//topics/`. The + # project needs to be the same project as this config is in. # Corresponds to the JSON property `topic` # @return [String] attr_accessor :topic @@ -633,33 +523,32 @@ module Google class Repo include Google::Apis::Core::Hashable - # Configuration to automatically mirror a repository from another - # hosting service, for example GitHub or Bitbucket. + # Configuration to automatically mirror a repository from another hosting + # service, for example GitHub or Bitbucket. # Corresponds to the JSON property `mirrorConfig` # @return [Google::Apis::SourcerepoV1::MirrorConfig] attr_accessor :mirror_config - # Resource name of the repository, of the form - # `projects//repos/`. The repo name may contain slashes. - # eg, `projects/myproject/repos/name/with/slash` + # Resource name of the repository, of the form `projects//repos/`. The repo name + # may contain slashes. eg, `projects/myproject/repos/name/with/slash` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # How this repository publishes a change in the repository through Cloud - # Pub/Sub. Keyed by the topic names. + # How this repository publishes a change in the repository through Cloud Pub/Sub. + # Keyed by the topic names. # Corresponds to the JSON property `pubsubConfigs` # @return [Hash] attr_accessor :pubsub_configs - # The disk usage of the repo, in bytes. Read-only field. Size is only - # returned by GetRepo. + # The disk usage of the repo, in bytes. Read-only field. Size is only returned + # by GetRepo. # Corresponds to the JSON property `size` # @return [Fixnum] attr_accessor :size - # URL to clone the repository from Google Cloud Source Repositories. - # Read-only field. + # URL to clone the repository from Google Cloud Source Repositories. Read-only + # field. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -683,74 +572,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::SourcerepoV1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -766,12 +620,12 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -780,15 +634,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message @@ -805,13 +659,12 @@ module Google end end - # Metadata of SyncRepo. - # This message is in the metadata field of Operation. + # Metadata of SyncRepo. This message is in the metadata field of Operation. class SyncRepoMetadata include Google::Apis::Core::Hashable - # The name of the repo being synchronized. Values are of the form - # `projects//repos/`. + # The name of the repo being synchronized. Values are of the form `projects// + # repos/`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -861,10 +714,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -883,8 +735,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -908,9 +759,9 @@ module Google # @return [Google::Apis::SourcerepoV1::ProjectConfig] attr_accessor :project_config - # A FieldMask specifying which fields of the project_config to modify. Only - # the fields in the mask will be modified. If no mask is provided, this - # request is no-op. + # A FieldMask specifying which fields of the project_config to modify. Only the + # fields in the mask will be modified. If no mask is provided, this request is + # no-op. # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -935,9 +786,8 @@ module Google # @return [Google::Apis::SourcerepoV1::Repo] attr_accessor :repo - # A FieldMask specifying which fields of the repo to modify. Only the fields - # in the mask will be modified. If no mask is provided, this request is - # no-op. + # A FieldMask specifying which fields of the repo to modify. Only the fields in + # the mask will be modified. If no mask is provided, this request is no-op. # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask diff --git a/generated/google/apis/sourcerepo_v1/service.rb b/generated/google/apis/sourcerepo_v1/service.rb index c8a04aade..18ed9d1bc 100644 --- a/generated/google/apis/sourcerepo_v1/service.rb +++ b/generated/google/apis/sourcerepo_v1/service.rb @@ -49,8 +49,7 @@ module Google # Returns the Cloud Source Repositories configuration of the project. # @param [String] name - # The name of the requested project. Values are of the form - # `projects/`. + # The name of the requested project. Values are of the form `projects/`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -80,8 +79,7 @@ module Google # Updates the Cloud Source Repositories configuration of the project. # @param [String] name - # The name of the requested project. Values are of the form - # `projects/`. + # The name of the requested project. Values are of the form `projects/`. # @param [Google::Apis::SourcerepoV1::UpdateProjectConfigRequest] update_project_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -112,12 +110,10 @@ module Google execute_or_queue_command(command, &block) end - # Creates a repo in the given project with the given name. - # If the named repository already exists, `CreateRepo` returns - # `ALREADY_EXISTS`. + # Creates a repo in the given project with the given name. If the named + # repository already exists, `CreateRepo` returns `ALREADY_EXISTS`. # @param [String] parent - # The project in which to create the repo. Values are of the form - # `projects/`. + # The project in which to create the repo. Values are of the form `projects/`. # @param [Google::Apis::SourcerepoV1::Repo] repo_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -150,8 +146,7 @@ module Google # Deletes a repo. # @param [String] name - # The name of the repo to delete. Values are of the form - # `projects//repos/`. + # The name of the repo to delete. Values are of the form `projects//repos/`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -181,8 +176,8 @@ module Google # Returns information about a repo. # @param [String] name - # The name of the requested repository. Values are of the form - # `projects//repos/`. + # The name of the requested repository. Values are of the form `projects//repos/` + # . # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -210,22 +205,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -254,18 +246,18 @@ module Google execute_or_queue_command(command, &block) end - # Returns all repos belonging to a project. The sizes of the repos are - # not set by ListRepos. To get the size of a repo, use GetRepo. + # Returns all repos belonging to a project. The sizes of the repos are not set + # by ListRepos. To get the size of a repo, use GetRepo. # @param [String] name - # The project ID whose repos should be listed. Values are of the form - # `projects/`. + # The project ID whose repos should be listed. Values are of the form `projects/` + # . # @param [Fixnum] page_size - # Maximum number of repositories to return; between 1 and 500. - # If not set or zero, defaults to 100 at the server. + # Maximum number of repositories to return; between 1 and 500. If not set or + # zero, defaults to 100 at the server. # @param [String] page_token - # Resume listing repositories where a prior ListReposResponse - # left off. This is an opaque token that must be obtained from - # a recent, prior ListReposResponse's next_page_token field. + # Resume listing repositories where a prior ListReposResponse left off. This is + # an opaque token that must be obtained from a recent, prior ListReposResponse's + # next_page_token field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -297,8 +289,8 @@ module Google # Updates information about a repo. # @param [String] name - # The name of the requested repository. Values are of the form - # `projects//repos/`. + # The name of the requested repository. Values are of the form `projects//repos/` + # . # @param [Google::Apis::SourcerepoV1::UpdateRepoRequest] update_repo_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -332,8 +324,8 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::SourcerepoV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -364,11 +356,10 @@ module Google execute_or_queue_command(command, &block) end - # Synchronize a connected repo. - # The response contains SyncRepoMetadata in the metadata field. + # Synchronize a connected repo. The response contains SyncRepoMetadata in the + # metadata field. # @param [String] name - # The name of the repo to synchronize. Values are of the form - # `projects//repos/`. + # The name of the repo to synchronize. Values are of the form `projects//repos/`. # @param [Google::Apis::SourcerepoV1::SyncRepoRequest] sync_repo_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -399,12 +390,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a NOT_FOUND error. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a + # NOT_FOUND error. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::SourcerepoV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index 783c064b4..e519b70ae 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-sql/ module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20200903' + REVISION = '20200919' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index b183c8765..373762f9d 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -488,11 +488,11 @@ module Google attr_accessor :current_disk_size # The database engine type and version. The *databaseVersion* field cannot be - # changed after instance creation. MySQL instances: *MYSQL_5_7* (default), or * - # MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*, *POSTGRES_11* - # or *POSTGRES_12* (default). SQL Server instances: *SQLSERVER_2017_STANDARD* ( - # default), *SQLSERVER_2017_ENTERPRISE*, *SQLSERVER_2017_EXPRESS*, or * - # SQLSERVER_2017_WEB*. + # changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* ( + # default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*, + # *POSTGRES_11* or *POSTGRES_12* (default). SQL Server instances: * + # SQLSERVER_2017_STANDARD* (default), *SQLSERVER_2017_ENTERPRISE*, * + # SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*. # Corresponds to the JSON property `databaseVersion` # @return [String] attr_accessor :database_version @@ -855,6 +855,45 @@ module Google end end + # Deny Maintenance Periods. This specifies a date range during when all CSA + # rollout will be denied. + class DenyMaintenancePeriod + include Google::Apis::Core::Hashable + + # "deny maintenance period" end date. If the year of the end date is empty, the + # year of the start date also must be empty. In this case, it means the deny + # maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., + # 2020-11-01, or mm-dd, i.e., 11-01 + # Corresponds to the JSON property `endDate` + # @return [String] + attr_accessor :end_date + + # "deny maintenance period" start date. If the year of the start date is empty, + # the year of the end date also must be empty. In this case, it means the deny + # maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., + # 2020-11-01, or mm-dd, i.e., 11-01 + # Corresponds to the JSON property `startDate` + # @return [String] + attr_accessor :start_date + + # Time in UTC when the "deny maintenance period" starts on start_date and ends + # on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00 + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @start_date = args[:start_date] if args.key?(:start_date) + @time = args[:time] if args.key?(:time) + end + end + # Disk encryption configuration for an instance. class DiskEncryptionConfiguration include Google::Apis::Core::Hashable @@ -1087,8 +1126,8 @@ module Google # @return [Array] attr_accessor :allowed_string_values - # The database version this flag applies to. Can be *MYSQL_5_5*, *MYSQL_5_6*, or - # *MYSQL_5_7*. *MYSQL_5_7* is applicable only to Second Generation instances. + # The database version this flag applies to. Can be *MYSQL_8_0*, *MYSQL_5_6*, or + # *MYSQL_5_7*. # Corresponds to the JSON property `appliesTo` # @return [Array] attr_accessor :applies_to @@ -1659,45 +1698,6 @@ module Google end end - # Maintenance Deny Periods. This specifies a date range during when all CSA - # rollout will be denied. - class MaintenanceDenyPeriod - include Google::Apis::Core::Hashable - - # "maintenance deny period" end date. If the year of the end date is empty, the - # year of the start date also must be empty. In this case, it means the no - # maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., - # 2020-11-01, or mm-dd, i.e., 11-01 - # Corresponds to the JSON property `endDate` - # @return [String] - attr_accessor :end_date - - # "maintenance deny period" start date. If the year of the start date is empty, - # the year of the end date also must be empty. In this case, it means the no - # maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., - # 2020-11-01, or mm-dd, i.e., 11-01 - # Corresponds to the JSON property `startDate` - # @return [String] - attr_accessor :start_date - - # Time in UTC when the "no maintenance interval" starts on start_date and ends - # on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00 - # Corresponds to the JSON property `time` - # @return [String] - attr_accessor :time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end_date = args[:end_date] if args.key?(:end_date) - @start_date = args[:start_date] if args.key?(:start_date) - @time = args[:time] if args.key?(:time) - end - end - # Maintenance window. This specifies when a Cloud SQL instance is restarted for # system maintenance purposes. class MaintenanceWindow @@ -2225,6 +2225,11 @@ module Google # @return [String] attr_accessor :activation_policy + # Active Directory configuration, for now relevant only for SQL Server + # Corresponds to the JSON property `activeDirectoryConfig` + # @return [Google::Apis::SqladminV1beta4::SqlActiveDirectoryConfig] + attr_accessor :active_directory_config + # The App Engine app IDs that can access this instance. (Deprecated) Applied to # First Generation instances only. # Corresponds to the JSON property `authorizedGaeApplications` @@ -2281,6 +2286,11 @@ module Google attr_accessor :database_replication_enabled alias_method :database_replication_enabled?, :database_replication_enabled + # Deny maintenance periods + # Corresponds to the JSON property `denyMaintenancePeriods` + # @return [Array] + attr_accessor :deny_maintenance_periods + # IP Management configuration. # Corresponds to the JSON property `ipConfiguration` # @return [Google::Apis::SqladminV1beta4::IpConfiguration] @@ -2300,11 +2310,6 @@ module Google # @return [Google::Apis::SqladminV1beta4::LocationPreference] attr_accessor :location_preference - # Maintenance deny periods - # Corresponds to the JSON property `maintenanceDenyPeriods` - # @return [Array] - attr_accessor :maintenance_deny_periods - # Maintenance window. This specifies when a Cloud SQL instance is restarted for # system maintenance purposes. # Corresponds to the JSON property `maintenanceWindow` @@ -2364,6 +2369,7 @@ module Google # Update properties of this object def update!(**args) @activation_policy = args[:activation_policy] if args.key?(:activation_policy) + @active_directory_config = args[:active_directory_config] if args.key?(:active_directory_config) @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications) @availability_type = args[:availability_type] if args.key?(:availability_type) @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) @@ -2373,10 +2379,10 @@ module Google @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type) @database_flags = args[:database_flags] if args.key?(:database_flags) @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled) + @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods) @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) @kind = args[:kind] if args.key?(:kind) @location_preference = args[:location_preference] if args.key?(:location_preference) - @maintenance_deny_periods = args[:maintenance_deny_periods] if args.key?(:maintenance_deny_periods) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) @replication_type = args[:replication_type] if args.key?(:replication_type) @@ -2388,6 +2394,31 @@ module Google end end + # Active Directory configuration, for now relevant only for SQL Server + class SqlActiveDirectoryConfig + include Google::Apis::Core::Hashable + + # Domain name + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # This will be always sql#activeDirectoryConfig. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain = args[:domain] if args.key?(:domain) + @kind = args[:kind] if args.key?(:kind) + end + end + # External primary instance migration setting error. class SqlExternalSyncSettingError include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sqladmin_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb index 32bc45892..dad83a217 100644 --- a/generated/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -112,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DenyMaintenancePeriod + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DiskEncryptionConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end @@ -268,12 +274,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class MaintenanceDenyPeriod - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class MaintenanceWindow class Representation < Google::Apis::Core::JsonRepresentation; end @@ -346,6 +346,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SqlActiveDirectoryConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SqlExternalSyncSettingError class Representation < Google::Apis::Core::JsonRepresentation; end @@ -652,6 +658,15 @@ module Google end end + class DenyMaintenancePeriod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate' + property :start_date, as: 'startDate' + property :time, as: 'time' + end + end + class DiskEncryptionConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -895,15 +910,6 @@ module Google end end - class MaintenanceDenyPeriod - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_date, as: 'endDate' - property :start_date, as: 'startDate' - property :time, as: 'time' - end - end - class MaintenanceWindow # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1037,6 +1043,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :activation_policy, as: 'activationPolicy' + property :active_directory_config, as: 'activeDirectoryConfig', class: Google::Apis::SqladminV1beta4::SqlActiveDirectoryConfig, decorator: Google::Apis::SqladminV1beta4::SqlActiveDirectoryConfig::Representation + collection :authorized_gae_applications, as: 'authorizedGaeApplications' property :availability_type, as: 'availabilityType' property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1beta4::BackupConfiguration, decorator: Google::Apis::SqladminV1beta4::BackupConfiguration::Representation @@ -1048,13 +1056,13 @@ module Google collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta4::DatabaseFlags, decorator: Google::Apis::SqladminV1beta4::DatabaseFlags::Representation property :database_replication_enabled, as: 'databaseReplicationEnabled' + collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod::Representation + property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta4::IpConfiguration, decorator: Google::Apis::SqladminV1beta4::IpConfiguration::Representation property :kind, as: 'kind' property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta4::LocationPreference, decorator: Google::Apis::SqladminV1beta4::LocationPreference::Representation - collection :maintenance_deny_periods, as: 'maintenanceDenyPeriods', class: Google::Apis::SqladminV1beta4::MaintenanceDenyPeriod, decorator: Google::Apis::SqladminV1beta4::MaintenanceDenyPeriod::Representation - property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation property :pricing_plan, as: 'pricingPlan' @@ -1067,6 +1075,14 @@ module Google end end + class SqlActiveDirectoryConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :domain, as: 'domain' + property :kind, as: 'kind' + end + end + class SqlExternalSyncSettingError # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 7cb269b27..32d40d139 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20200814' + REVISION = '20200821' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 5bdce776b..52fa53370 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -1446,8 +1446,8 @@ module Google # @return [String] attr_accessor :kind - # Cloud KMS Key used to encrypt this object, if the object is encrypted by such - # a key. + # Not currently supported. Specifying the parameter causes the request to fail + # with status code 400 - Bad Request. # Corresponds to the JSON property `kmsKeyName` # @return [String] attr_accessor :kms_key_name diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb index edc59f734..adafac310 100644 --- a/generated/google/apis/storage_v1/service.rb +++ b/generated/google/apis/storage_v1/service.rb @@ -1617,8 +1617,9 @@ module Google # Makes the operation conditional on whether the object's current metageneration # matches the given value. # @param [String] kms_key_name - # Not currently supported. Specifying the parameter causes the request to fail - # with status code 400 - Bad Request. + # Resource name of the Cloud KMS key, of the form projects/my-project/locations/ + # global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the + # object. Overrides the object metadata's kms_key_name value, if any. # @param [String] provisional_user_project # The project to be billed for this request if the target bucket is requester- # pays bucket. diff --git a/generated/google/apis/sts_v1beta.rb b/generated/google/apis/sts_v1beta.rb index 63d20bb9b..445b07a64 100644 --- a/generated/google/apis/sts_v1beta.rb +++ b/generated/google/apis/sts_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see http://cloud.google.com/iam/docs/workload-identity-federation module StsV1beta VERSION = 'V1beta' - REVISION = '20200908' + REVISION = '20200919' end end end diff --git a/generated/google/apis/sts_v1beta/classes.rb b/generated/google/apis/sts_v1beta/classes.rb index 80a20abd6..99888f221 100644 --- a/generated/google/apis/sts_v1beta/classes.rb +++ b/generated/google/apis/sts_v1beta/classes.rb @@ -150,7 +150,10 @@ module Google include Google::Apis::Core::Hashable # An OAuth 2.0 security token, issued by Google, in response to the token - # exchange request. + # exchange request. Tokens can vary in size (mainly depending on the size of + # mapped claims), currently up to the 12288 bytes (12 KB) size limit. Google + # reserves the right to change token size, including increasing these limits. + # Your application must support variable token sizes accordingly. # Corresponds to the JSON property `access_token` # @return [String] attr_accessor :access_token diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index fc3e02d23..716d98a7b 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://devsite.googleplex.com/youtube/partner/docs/v1/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20200918' + REVISION = '20200924' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'