Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 12 additions & 39 deletions AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified AnalyticsAdmin/metadata/V1Alpha/Resources.php
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2025 Google LLC
*
* 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
*
* https://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.
*/

/*
* GENERATED CODE WARNING
* This file was automatically generated - do not edit!
*/

require_once __DIR__ . '/../../../vendor/autoload.php';

// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync]
use Google\Analytics\Admin\V1alpha\Client\AnalyticsAdminServiceClient;
use Google\Analytics\Admin\V1alpha\GetReportingIdentitySettingsRequest;
use Google\Analytics\Admin\V1alpha\ReportingIdentitySettings;
use Google\ApiCore\ApiException;

/**
* Returns the singleton data retention settings for this property.
*
* @param string $formattedName The name of the settings to lookup.
* Format:
* properties/{property}/reportingIdentitySettings
* Example: "properties/1000/reportingIdentitySettings"
* Please see {@see AnalyticsAdminServiceClient::reportingIdentitySettingsName()} for help formatting this field.
*/
function get_reporting_identity_settings_sample(string $formattedName): void
{
// Create a client.
$analyticsAdminServiceClient = new AnalyticsAdminServiceClient();

// Prepare the request message.
$request = (new GetReportingIdentitySettingsRequest())
->setName($formattedName);

// Call the API and handle any network failures.
try {
/** @var ReportingIdentitySettings $response */
$response = $analyticsAdminServiceClient->getReportingIdentitySettings($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}

/**
* Helper to execute the sample.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
*/
function callSample(): void
{
$formattedName = AnalyticsAdminServiceClient::reportingIdentitySettingsName('[PROPERTY]');

get_reporting_identity_settings_sample($formattedName);
}
// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Google\ApiCore\ApiException;

/**
* Lookup for a single Subproperty Sync Config.
* Lookup for a single `SubpropertySyncConfig`.
*
* @param string $formattedName Resource name of the SubpropertySyncConfig to lookup.
* Format:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Google\ApiCore\PagedListResponse;

/**
* List all Subproperty Sync Configs on a property.
* List all `SubpropertySyncConfig` resources for a property.
*
* @param string $formattedParent Resource name of the property.
* Format: properties/property_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
use Google\ApiCore\ApiException;

/**
* Updates a Subproperty Sync Config.
* Updates a `SubpropertySyncConfig`.
*
* @param int $subpropertySyncConfigCustomDimensionAndMetricSyncMode Specifies the Custom Dimension / Metric synchronization mode for
* the Subproperty.
* the subproperty.
*
* If set to ALL, Custom Dimension / Metric synchronization will be
* immediately enabled. Local configuration of Custom Dimensions / Metrics
* will not be allowed on the Subproperty so long as the synchronization mode
* will not be allowed on the subproperty so long as the synchronization mode
* is set to ALL.
*
* If set to NONE, Custom Dimensions / Metric synchronization is disabled.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading