Skip to content

Commit e1c6ba4

Browse files
authored
chore: retire IoT samples (GoogleCloudPlatform#1905)
* chore: deprecate IoT samples modify README with up to date deprecation message remove sample tests
1 parent fa6f3a4 commit e1c6ba4

File tree

4 files changed

+27
-53
lines changed

4 files changed

+27
-53
lines changed

CODEOWNERS

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,47 @@
1-
# Code owners file.
2-
# This file controls who is tagged for review for any given pull request.
1+
# Code owners file
2+
3+
# This file controls who is tagged for review for any given pull request
4+
35
#
4-
# For syntax help see:
5-
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
66

7+
# For syntax help see
8+
9+
# <https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax>
710

811
# The php-admins team is the default owner for anything not
9-
# explicitly taken by someone else.
10-
* @GoogleCloudPlatform/php-samples-reviewers
12+
13+
# explicitly taken by someone else
14+
15+
* @GoogleCloudPlatform/php-samples-reviewers
1116

1217
# Kokoro
18+
1319
.kokoro @GoogleCloudPlatform/php-admins
1420

1521
/bigtable/**/*.php @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/php-samples-reviewers
1622
/cloud_sql/**/*.php @GoogleCloudPlatform/infra-db-dpes @GoogleCloudPlatform/php-samples-reviewers
1723
/datastore/**/*.php @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/php-samples-reviewers
1824
/firestore/**/*.php @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/php-samples-reviewers
19-
/iot/ @GoogleCloudPlatform/api-iot @GoogleCloudPlatform/php-samples-reviewers
2025
/storage/ @GoogleCloudPlatform/cloud-storage-dpe @GoogleCloudPlatform/php-samples-reviewers
2126
/spanner/ @GoogleCloudPlatform/api-spanner @GoogleCloudPlatform/php-samples-reviewers
2227

2328
# Serverless, Orchestration, DevOps
29+
2430
/appengine/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers
25-
/functions/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers
31+
/functions/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers
2632
/run/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers
2733
/eventarc/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers
2834

2935
# Functions samples owned by the Firebase team
30-
/functions/firebase_analytics @schandel
36+
37+
/functions/firebase_analytics @schandel
3138

3239
# DLP samples owned by DLP team
40+
3341
/dlp/ @GoogleCloudPlatform/googleapis-dlp
3442

3543
# Brent is taking ownership of these samples as they are not supported by the ML team
44+
3645
/dialogflow/ @bshaffer
3746
/language/ @bshaffer
3847
/speech/ @bshaffer
@@ -42,4 +51,9 @@
4251
/video/ @bshaffer
4352

4453
# Compute samples owned by Remik
54+
4555
/compute/cloud-client/ @rsamborski
56+
57+
# Deprecated
58+
59+
/iot/ @GoogleCloudPlatform/php-samples-reviewers

iot/README.md

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,7 @@
1-
# Google IOT PHP Sample Application
1+
# Deprecation Notice
22

3-
[![Open in Cloud Shell][shell_img]][shell_link]
3+
* <h3>Google Cloud IoT Core will be <a href="https://cloud.google.com/iot/docs/release-notes#August_16_2022">retired as of August 16, 2023</a>.</h3>
44

5-
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.svg
6-
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googlecloudplatform/php-docs-samples&page=editor&working_dir=iot
5+
* <h3>Hence, the samples in this directory are archived and are no longer maintained.</h3>
76

8-
## Description
9-
10-
This simple command-line application demonstrates how to invoke Google
11-
IOT API from PHP. These samples are best seen in the context of the
12-
[Official API Documentation](https://cloud.google.com/iot/docs).
13-
14-
## Build and Run
15-
1. **Enable APIs** - [Enable the IOT API](
16-
https://console.cloud.google.com/flows/enableapi?apiid=iot.googleapis.com)
17-
and create a new project or select an existing project.
18-
2. **Download The Credentials** - Click "Go to credentials" after enabling the APIs. Click
19-
"New Credentials"
20-
and select "Service Account Key". Create a new service account, use the JSON key type, and
21-
select "Create". Once downloaded, set the environment variable `GOOGLE_APPLICATION_CREDENTIALS`
22-
to the path of the JSON key that was downloaded.
23-
3. **Clone the repo** and cd into this directory
24-
```
25-
$ git clone https://github.com/GoogleCloudPlatform/php-docs-samples
26-
$ cd php-docs-samples/iot
27-
```
28-
4. **Install dependencies** via [Composer](http://getcomposer.org/doc/00-intro.md).
29-
Run `php composer.phar install` (if composer is installed locally) or `composer install`
30-
(if composer is installed globally).
31-
5. To run the IOT Samples, run any of the files in `src/` on the CLI. Run them without arguments to print usage instructions:
32-
```
33-
$ php src/list_registries.php
34-
35-
Usage: list_registries.php $projectId [$location='us-central1']
36-
37-
@param string $projectId Google Cloud project ID
38-
@param string $location (Optional) Google Cloud region
39-
```
40-
41-
## Contributing changes
42-
43-
* See [CONTRIBUTING.md](../CONTRIBUTING.md)
44-
45-
## Licensing
46-
47-
* See [LICENSE](../LICENSE)
7+
* <h3>If you are customer with an assigned Google Cloud account team, contact your account team for more information.</h3>

0 commit comments

Comments
 (0)