Skip to content

Commit 4f327dd

Browse files
Add SHA and etag to AndroidApp and update package_name (#7066) (#13444)
Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent 9bd90d9 commit 4f327dd

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

.changelog/7066.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```release-note:enhancement
2+
android_app: Added general fields `sha1_hashes`, `sha256_hashes` and `etag` to `google_firebase_android_app`.
3+
```
4+
```release-note:bug
5+
android_app: Modify the `package_name` field suffix to always start with a letter in `google_firebase_android_app`.
6+
```

website/docs/d/firebase_android_app.html.markdown

+13-3
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,25 @@ In addition to the arguments listed above, the following computed attributes are
3737
* `id` - an identifier for the resource with format `{{name}}`
3838

3939
* `name` -
40-
The fully qualified resource name of the App, for example:
40+
The fully qualified resource name of the AndroidApp, for example:
4141
projects/projectId/androidApps/appId
4242

4343
* `app_id` -
44-
Immutable. The globally unique, Firebase-assigned identifier of the App.
44+
Immutable. The globally unique, Firebase-assigned identifier of the AndroidApp.
4545
This identifier should be treated as an opaque token, as the data format is not specified.
4646

4747
* `display_name` -
48-
The user-assigned display name of the App.
48+
The user-assigned display name of the AndroidApp.
4949

5050
* `package_name` -
5151
The canonical package name of the Android app as would appear in the Google Play Developer Console.
52+
53+
* `sha1_hashes` -
54+
The SHA1 certificate hashes for the AndroidApp.
55+
56+
* `sha256_hashes` -
57+
The SHA256 certificate hashes for the AndroidApp.
58+
59+
* `etag` -
60+
This checksum is computed by the server based on the value of other fields, and it may be sent
61+
with update requests to ensure the client has an up-to-date value before proceeding.

website/docs/r/firebase_android_app.html.markdown

+17-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ resource "google_firebase_android_app" "basic" {
4040
project = "my-project-name"
4141
display_name = "Display Name Basic"
4242
package_name = ""
43+
sha1_hashes = ["2145bdf698b8715039bd0e83f2069bed435ac21c"]
44+
sha256_hashes = ["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"]
4345
}
4446
```
4547

@@ -50,7 +52,7 @@ The following arguments are supported:
5052

5153
* `display_name` -
5254
(Required)
53-
The user-assigned display name of the App.
55+
The user-assigned display name of the AndroidApp.
5456

5557

5658
- - -
@@ -61,6 +63,14 @@ The following arguments are supported:
6163
Immutable. The canonical package name of the Android app as would appear in the Google Play
6264
Developer Console.
6365

66+
* `sha1_hashes` -
67+
(Optional)
68+
The SHA1 certificate hashes for the AndroidApp.
69+
70+
* `sha256_hashes` -
71+
(Optional)
72+
The SHA256 certificate hashes for the AndroidApp.
73+
6474
* `deletion_policy` -
6575
(Optional)
6676
(Optional) Set to `ABANDON` to allow the AndroidApp to be untracked from terraform state
@@ -78,13 +88,17 @@ In addition to the arguments listed above, the following computed attributes are
7888
* `id` - an identifier for the resource with format `{{name}}`
7989

8090
* `name` -
81-
The fully qualified resource name of the App, for example:
91+
The fully qualified resource name of the AndroidApp, for example:
8292
projects/projectId/androidApps/appId
8393

8494
* `app_id` -
85-
The globally unique, Firebase-assigned identifier of the App.
95+
The globally unique, Firebase-assigned identifier of the AndroidApp.
8696
This identifier should be treated as an opaque token, as the data format is not specified.
8797

98+
* `etag` -
99+
This checksum is computed by the server based on the value of other fields, and it may be sent
100+
with update requests to ensure the client has an up-to-date value before proceeding.
101+
88102

89103
## Timeouts
90104

0 commit comments

Comments
 (0)