Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.1 (#188)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

docs: add autogenerated code snippets
PiperOrigin-RevId: 426256923

Source-Link: googleapis/googleapis@9ebabfa

Source-Link: googleapis/googleapis-gen@a881752
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTg4MTc1MjYzZTYwYTFkNDVkM2E0NDc4NDg2NTJiMGY2NzBiMmNiOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Feb 4, 2022
1 parent 77a9213 commit 4e78fe0
Show file tree
Hide file tree
Showing 171 changed files with 18,208 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for AcknowledgeUserDataCollection
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_AcknowledgeUserDataCollection_async]
from google.analytics import admin_v1alpha


async def sample_acknowledge_user_data_collection():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceAsyncClient()

# Initialize request argument(s)
request = admin_v1alpha.AcknowledgeUserDataCollectionRequest(
property="property_value",
acknowledgement="acknowledgement_value",
)

# Make the request
response = await client.acknowledge_user_data_collection(request=request)

# Handle response
print(response)

# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_AcknowledgeUserDataCollection_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for AcknowledgeUserDataCollection
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_AcknowledgeUserDataCollection_sync]
from google.analytics import admin_v1alpha


def sample_acknowledge_user_data_collection():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceClient()

# Initialize request argument(s)
request = admin_v1alpha.AcknowledgeUserDataCollectionRequest(
property="property_value",
acknowledgement="acknowledgement_value",
)

# Make the request
response = client.acknowledge_user_data_collection(request=request)

# Handle response
print(response)

# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_AcknowledgeUserDataCollection_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for ApproveDisplayVideo360AdvertiserLinkProposal
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async]
from google.analytics import admin_v1alpha


async def sample_approve_display_video360_advertiser_link_proposal():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceAsyncClient()

# Initialize request argument(s)
request = admin_v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(
name="name_value",
)

# Make the request
response = await client.approve_display_video360_advertiser_link_proposal(request=request)

# Handle response
print(response)

# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for ApproveDisplayVideo360AdvertiserLinkProposal
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync]
from google.analytics import admin_v1alpha


def sample_approve_display_video360_advertiser_link_proposal():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceClient()

# Initialize request argument(s)
request = admin_v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(
name="name_value",
)

# Make the request
response = client.approve_display_video360_advertiser_link_proposal(request=request)

# Handle response
print(response)

# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for ArchiveCustomDimension
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomDimension_async]
from google.analytics import admin_v1alpha


async def sample_archive_custom_dimension():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceAsyncClient()

# Initialize request argument(s)
request = admin_v1alpha.ArchiveCustomDimensionRequest(
name="name_value",
)

# Make the request
response = await client.archive_custom_dimension(request=request)


# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomDimension_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for ArchiveCustomDimension
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomDimension_sync]
from google.analytics import admin_v1alpha


def sample_archive_custom_dimension():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceClient()

# Initialize request argument(s)
request = admin_v1alpha.ArchiveCustomDimensionRequest(
name="name_value",
)

# Make the request
response = client.archive_custom_dimension(request=request)


# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomDimension_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for ArchiveCustomMetric
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomMetric_async]
from google.analytics import admin_v1alpha


async def sample_archive_custom_metric():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceAsyncClient()

# Initialize request argument(s)
request = admin_v1alpha.ArchiveCustomMetricRequest(
name="name_value",
)

# Make the request
response = await client.archive_custom_metric(request=request)


# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomMetric_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for ArchiveCustomMetric
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-analytics-admin


# [START analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomMetric_sync]
from google.analytics import admin_v1alpha


def sample_archive_custom_metric():
# Create a client
client = admin_v1alpha.AnalyticsAdminServiceClient()

# Initialize request argument(s)
request = admin_v1alpha.ArchiveCustomMetricRequest(
name="name_value",
)

# Make the request
response = client.archive_custom_metric(request=request)


# [END analyticsadmin_generated_admin_v1alpha_AnalyticsAdminService_ArchiveCustomMetric_sync]
Loading

0 comments on commit 4e78fe0

Please sign in to comment.