Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync main feature branch provider functions #10291

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
02e7199
fixes: permadiff issue if event trigger region is not specified (#9989)
kumadee Feb 20, 2024
f25a214
Fix GKE front matter, bad field docs (#10018)
rileykarson Feb 20, 2024
3e85823
added default value for minPortsPerVM field at "google_compute_router…
maxi-cit Feb 21, 2024
7369959
add newline removal bash command in guidelines (#9734)
BBBmau Feb 21, 2024
6675072
Update hashicorp/terraform-plugin-framework, hashicorp/terraform-plug…
SarahFrench Feb 21, 2024
b7e1e25
Adding Data Source Forwarding Rules (#10004)
jesse-l Feb 21, 2024
41c5863
Fix broken terraform datasource google_compute_machine_types example …
rwblokzijl Feb 21, 2024
6aba2a9
Add check for Environment proto field before accessing in Dataflow pr…
jrmccluskey Feb 21, 2024
f569926
Add comments to skipped sweeper (#10023)
hao-nan-li Feb 21, 2024
fcf7d34
Add comments for skipped sweepers (#10024)
hao-nan-li Feb 21, 2024
580624e
C3 version schema (#9986)
spapi17 Feb 21, 2024
343ff46
Add Resource Manager Tags support to 'google_container_cluster' (#9531)
maxi-cit Feb 21, 2024
37fb2eb
Add volume replication support for Google Cloud NetApp Volumes (#9816)
okrause Feb 21, 2024
d9c7871
Ensured that beta runs in TeamCity use only beta paths (#10025)
melinath Feb 21, 2024
f45d7c3
Adds description for default value of `cpuidle` field (#10005)
yanweiguo Feb 22, 2024
f60f2e6
Add location field in DNS authorization resource. (#9968)
Hamzawy63 Feb 22, 2024
1e6f874
Add discoveryengine service (#10017)
roaks3 Feb 22, 2024
a58f0e2
Add validations for Composer 2/3 only fields (#9917)
spapi17 Feb 22, 2024
c4260af
Made TestAccContainerCluster_withGatewayApiConfig error regex more fo…
melinath Feb 22, 2024
1470d00
Add ceritificateManagerCertificates field to ComputeRegionTargetHttps…
Hamzawy63 Feb 23, 2024
326caf3
Added missing quote marks to TEST_PREFIX (#10035)
melinath Feb 23, 2024
77453ca
Promote enable_confidential_storage from beta to GA (#9993)
Sneha-at Feb 23, 2024
39bd019
Add IAM resources for Cloud Deploy Target (#9927)
nownabe Feb 23, 2024
0ce23ad
Add comments to skipped sweepers (#10028)
hao-nan-li Feb 23, 2024
7beb4e6
Add sweepers for gkebackupPlan and restorePlan (#10026)
hao-nan-li Feb 23, 2024
8365dfa
add `remote_function_options` to bigquery_routine (#9893)
obada-ab Feb 23, 2024
7c2fc27
Adding documentaiton build_worker_pool (#10022)
NA2047 Feb 23, 2024
5599650
docs: fix import example in google_project_iam (#10007)
yuki0920 Feb 23, 2024
b361a7b
ScottSuarez not on vacation anymore (#10052)
ScottSuarez Feb 26, 2024
14a4129
Promote (R)IGM.AllInstancesConfig to V1 (#9964)
askubis Feb 26, 2024
c3ce700
Promote metric settings in compute region autoscaler to GA (#10045)
pksunkara Feb 26, 2024
b449d45
Fixed flakiness in TestAccDataPipelinePipeline_dataPipelinePipelineEx…
melinath Feb 26, 2024
7faaacc
Retry delete network step while creating a google project. (#10046)
ajaybgunjal1 Feb 26, 2024
3e13564
Adding the namespace_labels field to the GKE Hub Scope resource (#9972)
hosseingolestani Feb 26, 2024
76474ec
Support connectivity fields for Composer 3 (#9889)
spapi17 Feb 26, 2024
9f8d2aa
Fix resource name to have sweepable prefix (#9984)
SarahFrench Feb 27, 2024
b1f7bf9
doc(spanner): update documents to have example for IAM conditions use…
rahul2393 Feb 27, 2024
aee8d1d
Promote Cloud Deploy Automation to GA (#10043)
ChrisGe4 Feb 27, 2024
0a3c61d
Add cloudquota service (#10063)
roaks3 Feb 27, 2024
d4a4dc2
TeamCity: Add validating GHAs that check Kotlin files listing service…
BBBmau Feb 27, 2024
ff1142a
Fixed `runtime` in app engine tests (#10047)
shuyama1 Feb 27, 2024
47d6f3b
Fix google_notebooks_instance labels not being able to be updated (#9…
bcreddy-gcp Feb 27, 2024
0615861
Add IAM resources for Cloud Deploy Custom Target Type (#10051)
mattsanta Feb 28, 2024
78bdab3
Remove unneeded cache step in TeamCity-related GHAs, lint GHA files (…
SarahFrench Feb 28, 2024
d3bed7d
Add output to identifiers, check for project as well as projectsId (#…
slevenick Feb 28, 2024
7bec87d
remove nickelliot/zli82016 from vacation reviewers (#10080)
NickElliot Feb 28, 2024
77cf5eb
Update enrolled_teams.yml (#10082)
melinath Feb 28, 2024
01aba8f
Fix resource_bigquery_dataset ID validation (#10027)
wj-chen Feb 28, 2024
92183ab
Prevent duplicate entries in vcr results (#10068)
trodge Feb 28, 2024
2c4db32
Split github tokens (#9988)
trodge Feb 28, 2024
0877c4f
Instance lifecycle policy default action on failure implementation (#…
askubis Feb 29, 2024
0518fd9
Add wait in `TestAccAppEngineStandardAppVersion_update` test to avoid…
SarahFrench Feb 29, 2024
025526f
Set GITHUB_TOKEN environment variable for hub (#10091)
trodge Feb 29, 2024
fd6d4b7
fix forceNew on master_ipv4_cidr_block and private_endpoint_subnetwor…
yiyinglovecoding Feb 29, 2024
03df3b2
make go-converted YAML compatible with go compiler (#10033)
c2thorn Feb 29, 2024
5d86b61
Revert "Promote metric settings in compute region autoscaler to GA" (…
shuyama1 Mar 1, 2024
0ac8f52
Add type field to DNS authorization reosurce (#10030)
Hamzawy63 Mar 1, 2024
59e75bc
TeamCity: Refactor config tests (#9956)
SarahFrench Mar 1, 2024
8a90833
Update `teamcity-diff-check` script and GHAs to have more explicit ca…
SarahFrench Mar 1, 2024
072343e
TeamCity: enable ad hoc triggers of teamcity-diff-check GHA (#10099)
SarahFrench Mar 1, 2024
c28bd3f
Revert "fix forceNew on master_ipv4_cidr_block and private_endpoint_s…
Francis-Liu Mar 4, 2024
f024ad5
subnetwork and service_account_email params described (17211) (#10102)
makuing Mar 4, 2024
9f98cde
Update provider name in various spots (#10092)
rileykarson Mar 4, 2024
49710e1
Go compiler skeleton and early terraform.rb provider code (#10104)
c2thorn Mar 4, 2024
7d29d87
Remove provider-related caches to address cache issues (#10097)
SarahFrench Mar 4, 2024
ae819d0
Fix hashicorp/terraform-provider-google#17388 (only run tests in beta…
rainshen49 Mar 4, 2024
712cce7
Revert "Fix hashicorp/terraform-provider-google#17388 (only run tests…
rileykarson Mar 4, 2024
3ccc673
Add support for string --> object map for DCL resources (#10039)
slevenick Mar 4, 2024
c4d1efa
fix permadiff by reading empty docker_config field (#10113)
Subserial Mar 4, 2024
d62a06f
Import package golang.org/x/exp/slices in MMv1 go compiler (#10108)
zli82016 Mar 4, 2024
216fffd
fix(kms): certificate chain type to array of strings (#9582)
Zarux Mar 4, 2024
2c6c6a1
Bump GHA actions to navigate deprecations of NodeJS 12 and 16 (#10110)
SarahFrench Mar 5, 2024
3791c34
Address dependency issues in TestAccFirestoreField_* tests (#9957)
SarahFrench Mar 5, 2024
0249d74
add network_url attribute in consumer_accept_list block of google_com…
laurensknoll Mar 5, 2024
d9a0165
Update the GCF resource to reflect transition from Container Registry…
Ectelion Mar 5, 2024
1bc4ace
Handwrite sweepers for networkConnectivity hubs and spokes (#10069)
hao-nan-li Mar 5, 2024
10450a2
Fix wrong variable in override logic (#10125)
c2thorn Mar 5, 2024
5ad9866
Make missing test detector reader into a separate module (#10115)
trodge Mar 5, 2024
978c66d
Use old github token if new tokens are not available (#10114)
trodge Mar 5, 2024
8373cea
Add test for PATCH environment type (#10131)
xuchenma Mar 6, 2024
55a1fa8
Add new resource for Application for Apphub (#10079)
eshagoel06 Mar 6, 2024
17300fa
Add apphub (#10133)
slevenick Mar 6, 2024
1b12d6c
Allow sending empty app_engine and serverless google_compute_region_n…
Cheriit Mar 6, 2024
ffd2cf3
Support service-level min instances in Cloud Run v2 services. (#10083)
bskaplan Mar 6, 2024
787da35
feat: Add CMEK support for Firestore database in Beta provider (#10044)
jinyangtang Mar 6, 2024
bbb0721
Allow vcenter_network to be set (#9946)
naitianliu-google Mar 7, 2024
5780286
Sort resources and set in product in go compiler (#10135)
zli82016 Mar 7, 2024
a688676
fix failing posture test (#10086)
snpd25 Mar 7, 2024
5c5b415
Create support for KMS Ekmconnection resource (#10094)
rishamchokshi Mar 7, 2024
12b3ce1
Fixes two lifecycle rules with different no_age value always generate…
kautikdk Mar 7, 2024
e75074d
TeamCity: Add project for testing the provider functions feature bran…
SarahFrench Mar 7, 2024
7d69486
Add `ephemeral_directories` to google_workstations_workstation_config…
kangy-google Mar 7, 2024
e285c09
App Check DeviceCheck provider (#9978)
rainshen49 Mar 7, 2024
6caf25d
Documentation (#10012)
spapi17 Mar 7, 2024
4940461
Promote metric settings in compute region autoscaler to GA (#10103)
pksunkara Mar 7, 2024
00f7bfb
Clarified permissions for a few workflows (#10124)
melinath Mar 7, 2024
3e97dde
Post statuses earlier (#10128)
melinath Mar 7, 2024
5989a16
Make TestAccDefaultUniverseDomain_doesNotMatchExplicit independent fr…
c2thorn Mar 7, 2024
c6e3d15
Simplified / clarified approval flow for presubmits (#10142)
melinath Mar 8, 2024
eaded1d
Clean up delete template (#10144)
rileykarson Mar 8, 2024
331569f
added missing web documentation about create_timestamp for compute_(r…
askubis Mar 8, 2024
b3dd247
Move pre_delete code closer to the request (#10143)
rileykarson Mar 8, 2024
030e790
Create resource definition for IAP Tunnel DestGroup (#10064)
micrictor Mar 8, 2024
ab21222
Add new resource for Service Project for Apphub (#10048)
eshagoel06 Mar 8, 2024
124dd0e
[#15779] Add google_network_security_firewall_endpoint_association re…
LucaPrete Mar 11, 2024
b16ca4a
update teamcity diff check to run every monday morning also (#10159)
BBBmau Mar 11, 2024
3907a64
Add DisplayName to Product struct (#10161)
zli82016 Mar 11, 2024
922cc70
Add data source for apphub discovered service (#10105)
gurankitt Mar 12, 2024
dd27044
Graduate support of GKE Queued Provisioning to GA (#10053)
tosi3k Mar 12, 2024
b24ef47
Update index page of documentation to link to issue templates for Bug…
SarahFrench Mar 12, 2024
a6ceb9e
Add data source for AppHub discovered workload (#10107)
praseedhaPK Mar 12, 2024
f72682f
Update Documentation for ACM Service Perimeter resources to reflect G…
Charlesleonius Mar 12, 2024
aba1d05
fix tags cause notebooks instances to recreate (#10179)
bcreddy-gcp Mar 12, 2024
9779afc
Documentation Fix compute_security_policy (#9732)
andrew-grasso Mar 12, 2024
ca62aed
Add new resource Workload for Apphub (#10155)
eshagoel06 Mar 12, 2024
8bd772e
Fix for PrivateNat test failures (#10174)
shijeesh-ns Mar 12, 2024
4fa7f7c
Add new resource Service for Apphub (#10132)
eshagoel06 Mar 12, 2024
4555c33
feat: add credentials_secret field in azure blob storage block for go…
kumailkermalli-datatonic Mar 12, 2024
e3a06e3
Added CloudQuotas service and Create QuotaInfo Datasource (#10071)
lola98 Mar 13, 2024
f23cbbe
Update comments in .teamcity/ files for clarity (#10149)
SarahFrench Mar 13, 2024
48d346d
Add fields pathTemplateMatch and pathTemplateRewrite to resource goog…
rostislavbobo Mar 13, 2024
6fc834e
Refactor TeamCity Services Diff Check to run as one job (#10158)
BBBmau Mar 13, 2024
ec1164c
Add explicity dependency on IAM in PubSub acc test config (#9921)
SarahFrench Mar 13, 2024
ab93c2f
Improve the error messages when mmv1 compilation fails (#10191)
roaks3 Mar 13, 2024
ab05386
Update enrolled teams (#10192)
roaks3 Mar 13, 2024
ab81163
Fix generate comment diff processor build failure (#10164)
melinath Mar 13, 2024
6c7c0fb
Rewrite versions related functions (#10181)
zli82016 Mar 13, 2024
7fa5974
Update Dockerfiles to Go 1.21 (#10175)
SarahFrench Mar 13, 2024
7b1ac65
Add an override for generating long form tests (#10162)
trodge Mar 13, 2024
67e2505
Update to go 1.21 (#10169)
SarahFrench Mar 13, 2024
5114e38
Add note about permissions (#10195)
SarahFrench Mar 13, 2024
ca2bf3f
Fix the bug for computed labels and annotations (#10182)
zli82016 Mar 13, 2024
1e3a728
AndroidApp package_name should be immutable & required (#10194)
rainshen49 Mar 14, 2024
10f99b7
Fix service team reviews (#10200)
melinath Mar 14, 2024
16d4f0f
Add gcs volume type to Cloud Run v2 beta provider (#9746)
bskaplan Mar 14, 2024
219ab58
cloudrunv2: Validate number of ports specified restricting to 1. (#10…
aebrahim Mar 14, 2024
fab4b93
Bump google.golang.org/protobuf from 1.28.1 to 1.33.0 in /.ci/magicia…
dependabot[bot] Mar 14, 2024
944450c
attempt at fixing the (R)IGM.status output message (#10188)
askubis Mar 14, 2024
7f8a735
Access Context Manager - make ingress and egress rules immutable (#10…
Charlesleonius Mar 14, 2024
809bb4d
Bump golang.org/x/net from 0.10.0 to 0.17.0 in /.ci/magician (#9243)
dependabot[bot] Mar 14, 2024
3218971
fix datastream private connection sweeper (#10201)
shuyama1 Mar 14, 2024
0152b9d
Add SarahFrench to on vacation list (#10189)
SarahFrench Mar 15, 2024
28c58f9
Modify issue labeler to skip linked issues (#10199)
roaks3 Mar 15, 2024
4c432c6
Remove misleading examples from docs for `google_dataform_repository`…
SarahFrench Mar 15, 2024
fdafe53
Bump google.golang.org/grpc from 1.53.0 to 1.56.3 in /.ci/magician (#…
dependabot[bot] Mar 15, 2024
77816ee
Moving the netapp kmsconfig resource update test to a different regio…
roop2 Mar 15, 2024
6dfce95
Only run mmv1 rake tests and yaml linting if relevant files have chan…
melinath Mar 15, 2024
64b7123
Clean up functions and add slice utility functions (#10210)
zli82016 Mar 15, 2024
1b2c214
Removed github-differ bash scripts (#10208)
melinath Mar 15, 2024
0466814
Add ingestion settings to `google_pubsub_topic` (#9985)
fayssalmartanigcp Mar 15, 2024
7c0a51c
Run Firestore index tests in fresh databases. (#10168)
pcostell Mar 18, 2024
5b99a9a
AccessContextManager - Add dry run service perimeter resource (#10145)
Charlesleonius Mar 18, 2024
55deca5
Create quota infos datasource (#10074)
lola98 Mar 19, 2024
5e5b8d7
fix(spanner): remove validation on version retention period on spanne…
rahul2393 Mar 19, 2024
974267d
initial mmv1 go templating and flags (#10219)
c2thorn Mar 19, 2024
3b9c61b
Adds support for Soft Delete feature, which allows setting soft delet…
kautikdk Mar 19, 2024
f4abf45
Fixes and enhancements after the bug bash. (#10223)
spapi17 Mar 19, 2024
cbd7867
google_monitoring_alert_policy periods doc update & dataproc doc upda…
drandell Mar 19, 2024
676288e
Add support for boost configs in workstations configs (#10176)
joelkattapuram Mar 19, 2024
d58db7c
Add a rule for removing diff suppress functions (#10167)
trodge Mar 19, 2024
5fddaec
Rewrite Resource functions (#10228)
zli82016 Mar 19, 2024
cbcabf7
Add missing guest_os_features enumeration value (#10229)
fijimunkii Mar 19, 2024
8f3a989
add billing project id support to firewall endpoint resource (#10122)
maxi-cit Mar 20, 2024
96a71f8
Upgraded version of actions related to scorecard (#10234)
melinath Mar 20, 2024
50e4091
Don't re-request review if initial PR comment is edited (#10232)
melinath Mar 20, 2024
982d61a
Pinned versions for GitHub Actions (#10239)
melinath Mar 20, 2024
da6130d
Switched from diff-processor adding labels to just computing and retu…
melinath Mar 20, 2024
2aafbc0
change the dataflow zone from us-central1-f to us-east5-b (#10205)
liferoad Mar 20, 2024
7b41c4a
Added `CloudQuotas` service and Create `QuotaPreference` Resource (#…
lola98 Mar 20, 2024
be112da
Magician tgc integration (#9907)
trodge Mar 20, 2024
18fd6b4
Fix https://github.com/hashicorp/terraform-provider-google/issues/173…
rainshen49 Mar 20, 2024
31e31a1
generated_id added to compute_region_backend_service (#10243)
pawelJas Mar 20, 2024
846a01a
Clarify CI README a bit (#10245)
rileykarson Mar 20, 2024
d874e11
Add integrations product. Create Client resource. (#10186)
rohitjangid Mar 20, 2024
de6caa4
Add apphub.admin role for the organization in the test environment (#…
krishnangopal1810 Mar 21, 2024
d62cd8a
Change ItemType to object (#10249)
zli82016 Mar 21, 2024
2089d74
Clarify usage of min/max throughput and instances (#10130)
jashansudan Mar 21, 2024
96be339
Fixed issues with diff-processor caused by GA-only compilation errors…
melinath Mar 21, 2024
89267ec
Consolidate Documentation for App Hub resources and data sources into…
krishnangopal1810 Mar 21, 2024
ae121dd
Corrected names of iam_workload resource and data source files (#10253)
melinath Mar 22, 2024
60917c8
Pin workflow dependency versions (#10256)
melinath Mar 22, 2024
1086889
Rewrite type functions (#10259)
zli82016 Mar 22, 2024
97305d7
Removed double quotes and typo in google_project_iam_member documenta…
aleksvujic Mar 22, 2024
f9a432f
Iniital setup for codeql scanning (#10254)
melinath Mar 22, 2024
c8f6622
Added permissions: read-all to codeql action (#10264)
melinath Mar 22, 2024
4b21578
Remove java-kotlin codeql scanning (#10263)
melinath Mar 22, 2024
bda80a6
Initial resource documentation templating (#10266)
c2thorn Mar 22, 2024
50a4202
Add note about modifying yaml files (#10202)
trodge Mar 22, 2024
6c2de90
bq table - add geojson support (#10215)
DrFaust92 Mar 22, 2024
77aabb0
Add logsBucket (#10267)
trodge Mar 22, 2024
b38e639
Remove SarahFrench from vacation list (#10272)
SarahFrench Mar 25, 2024
9aa4cbc
ci: add missing pathspec dependency for yamllint pipeline (#10269)
srevinsaju Mar 25, 2024
2dded45
remove `pattern` field from `.yaml` files (#10227)
BBBmau Mar 25, 2024
6f7d670
metastore - add support for scheduled backups (#10213)
DrFaust92 Mar 25, 2024
bd86300
Update default TF version used in TeamCity to be `"1.8.0-rc1"` (#10276)
SarahFrench Mar 25, 2024
4abde8d
Add support to delete Client resource of Application Integration (#10…
rohitjangid Mar 25, 2024
8a452f6
Add support for Application Data Source (#10154)
krishnangopal1810 Mar 25, 2024
8410d87
Fix test: TestAccContainer*_withInvalid* (#10277)
kushu42 Mar 25, 2024
f94fe59
Upgrade DCL to 1.64.0 (#10258)
zli82016 Mar 25, 2024
7e35f6b
Merge branch 'FEATURE-BRANCH-provider-functions' into sync-main-FEATU…
SarahFrench Mar 26, 2024
f073cd8
Run `go mod tidy`
SarahFrench Mar 26, 2024
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
3 changes: 1 addition & 2 deletions .ci/magician/cmd/generate_comment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ import (
"reflect"
"testing"

"magician/source"

"github.com/stretchr/testify/assert"
"magician/source"
)

func TestExecGenerateComment(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion mmv1/products/integrations/Client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ base_url: 'projects/{{project}}/locations/{{location}}/clients'
self_link: 'projects/{{project}}/locations/{{location}}/clients'
immutable: true
create_url: 'projects/{{project}}/locations/{{location}}/clients:provision'
delete_url: 'projects/{{project}}/locations/{{location}}/clients:deprovision'
delete_verb: :POST
autogen_async: false
skip_delete: true
import_format:
[
'projects/{{project}}/locations/{{location}}/clients',
Expand Down
2 changes: 1 addition & 1 deletion mmv1/third_party/terraform/go.mod.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21

require (
cloud.google.com/go/bigtable v1.19.0
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.63.0
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.64.0
github.com/apparentlymart/go-cidr v1.1.0
github.com/davecgh/go-spew v1.1.1
github.com/dnaeon/go-vcr v1.0.1
Expand Down
4 changes: 2 additions & 2 deletions mmv1/third_party/terraform/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cloud.google.com/go/longrunning v0.5.5/go.mod h1:WV2LAxD8/rg5Z1cNW6FJ/ZpX4E4VnDn
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.63.0 h1:eSOBYPZVnU2fZul9sAJFGLVCgv6stNVKkmsogKF7UeY=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.63.0/go.mod h1:pL2Qt5HT+x6xrTd806oMiM3awW6kNIXB/iiuClz6m6k=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.64.0 h1:QA90iKudX8ijAW795f/jVbo0oEo7VoevwxLCNyi2qRc=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.64.0/go.mod h1:pL2Qt5HT+x6xrTd806oMiM3awW6kNIXB/iiuClz6m6k=
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
github.com/ProtonMail/go-crypto v1.1.0-alpha.0 h1:nHGfwXmFvJrSR9xu8qL7BkO4DqTHXE9N5vPhgY2I+j0=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var handwrittenDatasources = map[string]*schema.Resource{
"google_artifact_registry_repository": artifactregistry.DataSourceArtifactRegistryRepository(),
"google_apphub_discovered_workload": apphub.DataSourceApphubDiscoveredWorkload(),
"google_app_engine_default_service_account": appengine.DataSourceGoogleAppEngineDefaultServiceAccount(),
"google_apphub_application": apphub.DataSourceGoogleApphubApplication(),
"google_apphub_discovered_service": apphub.DataSourceApphubDiscoveredService(),
<% unless version == 'ga' -%>
"google_backup_dr_management_server": backupdr.DataSourceGoogleCloudBackupDRService(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package apphub

import (
"fmt"

"github.com/hashicorp/terraform-provider-google/google/tpgresource"
transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func DataSourceGoogleApphubApplication() *schema.Resource {
dsSchema := tpgresource.DatasourceSchemaFromResourceSchema(ResourceApphubApplication().Schema)
tpgresource.AddRequiredFieldsToSchema(dsSchema, "project")
tpgresource.AddRequiredFieldsToSchema(dsSchema, "application_id")
tpgresource.AddRequiredFieldsToSchema(dsSchema, "location")

return &schema.Resource{
Read: dataSourceGoogleApphubApplicationRead,
Schema: dsSchema,
}
}

func dataSourceGoogleApphubApplicationRead(d *schema.ResourceData, meta interface{}) error {
config := meta.(*transport_tpg.Config)

id, err := tpgresource.ReplaceVars(d, config, "projects/{{project}}/locations/{{location}}/applications/{{application_id}}")
if err != nil {
return fmt.Errorf("Error constructing id: %s", err)
}
d.SetId(id)
err = resourceApphubApplicationRead(d, meta)
if err != nil {
return err
}

if err := tpgresource.SetDataSourceLabels(d); err != nil {
return err
}

if d.Id() == "" {
return fmt.Errorf("%s not found", id)
}
return nil
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package apphub_test

import (
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-provider-google/google/acctest"
)

func TestDataSourceApphubApplication_basic(t *testing.T) {
t.Parallel()

context := map[string]interface{}{
"random_suffix": acctest.RandString(t, 10),
}

acctest.VcrTest(t, resource.TestCase{
PreCheck: func() { acctest.AccTestPreCheck(t) },
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
CheckDestroy: testAccCheckApphubApplicationDestroyProducer(t),
Steps: []resource.TestStep{
{
Config: testDataSourceApphubApplication_basic(context),
Check: resource.ComposeTestCheckFunc(
acctest.CheckDataSourceStateMatchesResourceState("data.google_apphub_application.example_data", "google_apphub_application.example"),
),
},
},
})
}

func testDataSourceApphubApplication_basic(context map[string]interface{}) string {
return acctest.Nprintf(`

data "google_apphub_application" "example_data" {
project = google_apphub_application.example.project
application_id = google_apphub_application.example.application_id
location = google_apphub_application.example.location
}

resource "google_apphub_application" "example" {
location = "us-central1"
application_id = "tf-test-example-application%{random_suffix}"
display_name = "Application Full New%{random_suffix}"
scope {
type = "REGIONAL"
}
attributes {
environment {
type = "STAGING"
}
criticality {
type = "MISSION_CRITICAL"
}
business_owners {
display_name = "Alice%{random_suffix}"
email = "[email protected]%{random_suffix}"
}
developer_owners {
display_name = "Bob%{random_suffix}"
email = "[email protected]%{random_suffix}"
}
operator_owners {
display_name = "Charlie%{random_suffix}"
email = "[email protected]%{random_suffix}"
}
}
}
`, context)
}
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ func TestAccContainerCluster_withInvalidReleaseChannel(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccContainerCluster_withReleaseChannelEnabled(clusterName, "CANARY", networkName, subnetworkName),
ExpectError: regexp.MustCompile(`expected release_channel\.0\.channel to be one of \[UNSPECIFIED RAPID REGULAR STABLE\], got CANARY`),
ExpectError: regexp.MustCompile(`expected release_channel\.0\.channel to be one of \["?UNSPECIFIED"? "?RAPID"? "?REGULAR"? "?STABLE"?\], got CANARY`),
},
},
})
Expand Down Expand Up @@ -3355,7 +3355,7 @@ func TestAccContainerCluster_withInvalidAutoscalingProfile(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccContainerCluster_withAutoscalingProfile(clusterName, "AS_CHEAP_AS_POSSIBLE", networkName, subnetworkName),
ExpectError: regexp.MustCompile(`expected cluster_autoscaling\.0\.autoscaling_profile to be one of \[BALANCED OPTIMIZE_UTILIZATION\], got AS_CHEAP_AS_POSSIBLE`),
ExpectError: regexp.MustCompile(`expected cluster_autoscaling\.0\.autoscaling_profile to be one of \["?BALANCED"? "?OPTIMIZE_UTILIZATION"?\], got AS_CHEAP_AS_POSSIBLE`),
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ func TestAccContainerNodePool_withInvalidKubeletCpuManagerPolicy(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccContainerNodePool_withKubeletConfig(cluster, np, "dontexist", "100us", networkName, subnetworkName, true, 1024),
ExpectError: regexp.MustCompile(`.*to be one of \[static none \].*`),
ExpectError: regexp.MustCompile(`.*to be one of \["?static"? "?none"? "?"?\].*`),
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func TestAccFirebaseAppCheckServiceConfig_firebaseAppCheckServiceConfigUpdate(t
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
CheckDestroy: testAccCheckFirebaseAppCheckServiceConfigDestroyProducer(t),
ExternalProviders: map[string]resource.ExternalProvider{
"random": {},
"time": {},
},
Steps: []resource.TestStep{
Expand Down Expand Up @@ -86,22 +85,26 @@ resource "google_project_service" "database" {
project = google_project.default.project_id
service = "firebasedatabase.googleapis.com"
disable_on_destroy = false
depends_on = [
google_project_service.firebase,
]
}

resource "google_project_service" "appcheck" {
provider = google-beta
project = google_project.default.project_id
service = "firebaseappcheck.googleapis.com"
disable_on_destroy = false
depends_on = [
google_project_service.database,
]
}

resource "google_firebase_project" "default" {
provider = google-beta
project = google_project.default.project_id

depends_on = [
google_project_service.firebase,
google_project_service.database,
google_project_service.appcheck,
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
subcategory: "App Hub"
description: |-
Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality.
---

# google\_apphub\_application

Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application.


## Example Usage


```hcl
data "google_apphub_application" "application" {
project = "project-id"
application_id = "application"
location = "location"
}
```

## Argument Reference

See [google_resource_application](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/apphub_application#argument-reference) resource for details of the available attributes.

2 changes: 1 addition & 1 deletion tpgtools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
bitbucket.org/creachadair/stringset v0.0.11
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.63.0
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.64.0
github.com/golang/glog v1.1.2
github.com/hashicorp/hcl v1.0.0
github.com/kylelemons/godebug v1.1.0
Expand Down
4 changes: 2 additions & 2 deletions tpgtools/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdi
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.63.0 h1:eSOBYPZVnU2fZul9sAJFGLVCgv6stNVKkmsogKF7UeY=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.63.0/go.mod h1:pL2Qt5HT+x6xrTd806oMiM3awW6kNIXB/iiuClz6m6k=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.64.0 h1:QA90iKudX8ijAW795f/jVbo0oEo7VoevwxLCNyi2qRc=
github.com/GoogleCloudPlatform/declarative-resource-client-library v1.64.0/go.mod h1:pL2Qt5HT+x6xrTd806oMiM3awW6kNIXB/iiuClz6m6k=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
Expand Down
Loading