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

feat: remove LongRunningOperationsManager from Spanner V2 #7490

Closed
wants to merge 340 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
340 commits
Select commit Hold shift + click to select a range
41443d5
feat: A new field `version` is added to message `.grafeas.v1.Complian…
gcf-owl-bot[bot] Jul 30, 2024
84851d0
WIP
bshaffer Jul 30, 2024
cc2ab23
feat(spanner): Add support for Cloud Spanner Incremental Backups (#7568)
gcf-owl-bot[bot] Jul 31, 2024
f292de9
feat: org-level connection bindings
gcf-owl-bot[bot] Jul 31, 2024
2ab5721
docs: [NetApp] A comment for field `active_directory_id` in message `…
gcf-owl-bot[bot] Jul 31, 2024
8825b41
fix(deps): update dependency google/access-context-manager to v1 (#7558)
renovate-bot Jul 31, 2024
f9c9bb2
fix(deps): update dependency google/cloud-iam to v1 (#7559)
renovate-bot Jul 31, 2024
3339a27
feat: move common-protos to google-cloud-php (#7554)
bshaffer Jul 31, 2024
0a62d9e
chore(deps): update python non-major dependencies (#7346)
renovate-bot Jul 31, 2024
2142c0d
fix Backup tests
bshaffer Jul 31, 2024
6669073
chore(deps): update gcr.io/cloud-spanner-emulator/emulator docker tag…
renovate-bot Jul 31, 2024
13ca22e
chore(deps): update phpdoc/phpdoc docker tag to v3.5.3 (#7536)
renovate-bot Aug 1, 2024
ded654e
feat: add file_stripe_level and directory_stripe_level fields to Inst…
gcf-owl-bot[bot] Aug 1, 2024
f295a46
fix!: remove an API that was mistakenly made public (#7563)
gcf-owl-bot[bot] Aug 2, 2024
d177015
feat: enable Dynamic Mute (#7574)
gcf-owl-bot[bot] Aug 2, 2024
7d6d011
feat: add fields and the BackupType proto for Hot Backups (#7576)
gcf-owl-bot[bot] Aug 2, 2024
c5b4542
feat: A new field `imageless_mode` is added to message `.google.cloud…
gcf-owl-bot[bot] Aug 2, 2024
aca00f6
chore!: create V2 release candidates for some components (#7577)
bshaffer Aug 2, 2024
53f9f98
feat: add `GetKeyEvent`, `CreateKeyEvent`, `ListKeyEvents`, `UpdateKe…
gcf-owl-bot[bot] Aug 2, 2024
888dc29
chore(main): release 0.253.0 (#7567)
release-please[bot] Aug 2, 2024
c215263
feat: add the `comparisons` field to the `Metadata` resource (#7578)
gcf-owl-bot[bot] Aug 8, 2024
b524991
feat: enable Dynamic Mute (#7581)
gcf-owl-bot[bot] Aug 9, 2024
d8dde84
docs: Refine usage scope for fields `task_execution` and `task_state`…
gcf-owl-bot[bot] Aug 9, 2024
1c33473
feat: Adds AdaptiveMt HTML/Glossary support (#7582)
gcf-owl-bot[bot] Aug 9, 2024
5741c30
feat: Allow v1 api calls for some dataset_service, llm_utility_servic…
gcf-owl-bot[bot] Aug 9, 2024
95491b1
feat: add the TagResources API (#7585)
gcf-owl-bot[bot] Aug 9, 2024
39a378c
feat: Expose the `FindNearest.distance_result_field` parameter (#7589)
gcf-owl-bot[bot] Aug 9, 2024
7d6cbc8
feat: optional field for specifying a service account to use for the …
gcf-owl-bot[bot] Aug 9, 2024
80addd3
docs: very minor documentation updates (#7592)
gcf-owl-bot[bot] Aug 9, 2024
8563ba4
fix: prevent fatal error when using emulator without grpc (#7588)
kynx Aug 9, 2024
3d20307
fix: ensure common-protos is up-to-date (#7591)
bshaffer Aug 9, 2024
b34e4f4
feat: A new field `satisfies_pzs` is added to message `.google.cloud.…
gcf-owl-bot[bot] Aug 10, 2024
02d7bf9
chore(php): Revert two optional to required fields for dialogflow (#7…
gcf-owl-bot[bot] Aug 10, 2024
1420fae
chore(main): release 0.254.0 (#7593)
release-please[bot] Aug 10, 2024
ff2ff0a
chore: revert pin grpc to fix failing tests, add version to CommonPro…
bshaffer Aug 14, 2024
443e3b5
chore: Add BigQuery Metastore Partition Service API version v1alpha (…
gcf-owl-bot[bot] Aug 15, 2024
c6d6e49
feat(spanner): Add resource reference annotation to backup schedules …
gcf-owl-bot[bot] Aug 15, 2024
fa1f59a
docs: Batch CentOS images and HPC CentOS images are EOS (#7597)
gcf-owl-bot[bot] Aug 15, 2024
3165771
feat: A new method `StreamingSynthesize` is added to service `TextToS…
gcf-owl-bot[bot] Aug 15, 2024
27a5c40
docs: changed API title to official name (#7601)
gcf-owl-bot[bot] Aug 15, 2024
919960b
feat: add HDFS configuration (#7602)
gcf-owl-bot[bot] Aug 15, 2024
32a126e
fix(docs): fixes for reference documentation links (#7606)
bshaffer Aug 19, 2024
357efde
chore: promote release candidates to GA (#7607)
bshaffer Aug 19, 2024
cc0ae2f
chore(main): release 0.255.0 (#7600)
release-please[bot] Aug 19, 2024
6f47e30
feat: inspect template modified cadence discovery config for Cloud SQ…
gcf-owl-bot[bot] Aug 19, 2024
0b23b18
docs: update Long Audio capabilities to include SSML (#7610)
gcf-owl-bot[bot] Aug 21, 2024
1e82e03
docs: deprecate `authorization_code` (#7611)
gcf-owl-bot[bot] Aug 21, 2024
d277d25
docs: clarify tasks success criteria for background runnable (#7612)
gcf-owl-bot[bot] Aug 21, 2024
554d063
docs: update `Certification` field descriptions (#7616)
gcf-owl-bot[bot] Aug 21, 2024
c2d0375
feat: add AddIpOverride RPC (#7615)
gcf-owl-bot[bot] Aug 21, 2024
da5d6c9
feat: A new field `max_chargeable_bytes` is added to message `.google…
gcf-owl-bot[bot] Aug 21, 2024
0f04255
feat!: removed the nonfunctional GatewayService and replaced it with …
gcf-owl-bot[bot] Aug 21, 2024
81bed09
fix(docs): misc reference fixes (#7613)
bshaffer Aug 22, 2024
c2d2f39
fix(deps): update dependency google/geo-common-protos to ^0.2 (#7619)
renovate-bot Aug 22, 2024
26651ff
feat: Introduce ApiHub (#7621)
Hectorhammett Aug 23, 2024
a48b2fc
feat: Release GkeConnectGateway (#7622)
Hectorhammett Aug 23, 2024
f9888b8
chore(main): release 0.256.0 (#7609)
release-please[bot] Aug 26, 2024
4185735
chore(deps): update gcr.io/cloud-devrel-public-resources/storage-test…
renovate-bot Aug 28, 2024
c12b9a4
feat: add AssessmentEnvironment for CreateAssessement to explicitly d…
gcf-owl-bot[bot] Aug 28, 2024
20d2cac
feat: add ReleaseChannel EXTENDED value (#7628)
gcf-owl-bot[bot] Aug 28, 2024
8848f17
feat: add max_wait_duration to Scheduling (#7629)
gcf-owl-bot[bot] Aug 28, 2024
0c70ca2
chore(deps): update gcr.io/cloud-spanner-emulator/emulator docker tag…
renovate-bot Aug 28, 2024
234fb17
chore: remove psr/log:3 conflict in root composer (#7631)
bshaffer Aug 28, 2024
dc1dbc0
chore: remove abandoned package Gaming (#7625)
bshaffer Aug 28, 2024
887fe65
chore!: create V2 release candidates for some components (#7626)
bshaffer Aug 28, 2024
b6816fe
docs: minor doc fixes (#7633)
gcf-owl-bot[bot] Aug 30, 2024
83e7aea
docs: Clarify maximum retention of backups (max 14 weeks) (#7634)
gcf-owl-bot[bot] Aug 30, 2024
31f3d36
feat: add v1 NotebookExecutionJob to Schedule (#7635)
gcf-owl-bot[bot] Aug 30, 2024
d8f70c8
docs: swap comments on `BONDED` and `NON_BONDED` enums in `BondingTyp…
gcf-owl-bot[bot] Aug 30, 2024
012b88f
chore(main): release 0.257.0 (#7630)
release-please[bot] Aug 30, 2024
7c699f0
chore(docs): add MIGRATING.md for migrating to V2 in the project root…
bshaffer Sep 5, 2024
f94f1d4
fix(Bigtable): prevent race condition (#7644)
bshaffer Sep 5, 2024
12c4eb8
feat:add optional parameters (tarball-access) in DiagnoseClusterReque…
gcf-owl-bot[bot] Sep 5, 2024
4fcae28
feat(v1): promote block_project_ssh_keys support to batch v1 API (#7638)
gcf-owl-bot[bot] Sep 5, 2024
1d18490
feat: promote search tuning service to v1 (#7639)
gcf-owl-bot[bot] Sep 5, 2024
8e71db0
feat: add more configurability to feature_group.proto (#7643)
gcf-owl-bot[bot] Sep 5, 2024
40b2fdd
docs: add a note to the CreateTransferConfigRequest and UpdateTransfe…
gcf-owl-bot[bot] Sep 5, 2024
8aec19a
fix: remove gRPC support for client libraries (#7641)
gcf-owl-bot[bot] Sep 5, 2024
24e6efd
fix: add back compatibility for Protobuf v4 (#7648)
bshaffer Sep 6, 2024
ea89f93
feat(dev): add created at and gt/lt operators (#7541)
bshaffer Sep 6, 2024
157f90f
chore: promote RC1 to GA (#7651)
bshaffer Sep 6, 2024
2ccb24f
feat: Add CHAT_SPACE link type support for GA launch (#7649)
gcf-owl-bot[bot] Sep 6, 2024
563ef0c
docs: update comment link for ListTasks filter (#7650)
gcf-owl-bot[bot] Sep 7, 2024
a55ef54
feat: add Database.SourceInfo and Database.source_info (information a…
gcf-owl-bot[bot] Sep 7, 2024
3eccacb
chore!: create V2 release candidates for some components (#7655)
bshaffer Sep 7, 2024
89ea735
chore(docs): add MIGRATING.md for v2 components and reference documen…
bshaffer Sep 7, 2024
848a3e0
chore: remove abandoned package Iot (#7656)
bshaffer Sep 7, 2024
ba0ead7
chore(main): release 0.258.0 (#7646)
release-please[bot] Sep 7, 2024
c8ba2f0
feat: add OFF to HarmBlockThreshold (#7654)
gcf-owl-bot[bot] Sep 9, 2024
88dc570
chore(php): Migrate some GA APIs to NEW_SURFACE_ONLY (#7659)
gcf-owl-bot[bot] Sep 10, 2024
639e4c3
chore(php): Migrate some GA APIs to NEW_SURFACE_ONLY (#7660)
gcf-owl-bot[bot] Sep 10, 2024
7dcbaeb
feat: add support for new Dataproc features (#7661)
gcf-owl-bot[bot] Sep 10, 2024
1f45743
feat: [Dataproc] add support for new Dataproc features (#7662)
gcf-owl-bot[bot] Sep 13, 2024
2bd2f09
docs: [Asset] Comments are clarified for certain fields in messages `…
gcf-owl-bot[bot] Sep 13, 2024
d08872a
feat: minor fields and documentation update (#7669)
gcf-owl-bot[bot] Sep 13, 2024
7ac0592
feat: A new method `CheckUpgrade` is added to service `Environments` …
gcf-owl-bot[bot] Sep 13, 2024
8065ad6
docs: [PubSub] update documentation for 31 day subscription message r…
gcf-owl-bot[bot] Sep 13, 2024
29e9127
feat: Add support for Cloud Bigtable Row Affinity in App Profiles (#7…
gcf-owl-bot[bot] Sep 13, 2024
75b7c43
feat: If you're a domain administrator or a delegated administrator, …
gcf-owl-bot[bot] Sep 13, 2024
cae527e
fix: Field behavior for field `display_name` in message `.google.clou…
gcf-owl-bot[bot] Sep 13, 2024
dd0ea54
chore: add MIGRATING.md for recently promoted 2.0 clients (#7658)
bshaffer Sep 13, 2024
15a849d
feat: [Dataproc] add resource reference for KMS keys and fix comments…
gcf-owl-bot[bot] Sep 13, 2024
0e60592
chore(main): release 0.259.0 (#7657)
release-please[bot] Sep 13, 2024
c252123
feat: add exponential backoff to ResumableStream (#7664)
bshaffer Sep 16, 2024
e38b3a1
feat: An optional field `security_posture_config` in message `.google…
gcf-owl-bot[bot] Sep 18, 2024
a7eb08e
feat(api): A new rpc 'SwitchActiveReplicaZone' is added to service 'g…
gcf-owl-bot[bot] Sep 18, 2024
5edf09f
feat: A new field `generation_config` is added to message `.google.cl…
gcf-owl-bot[bot] Sep 18, 2024
6e6d3ee
feat: Support adding constraints to new method types REMOVE_GRANTS an…
gcf-owl-bot[bot] Sep 18, 2024
fc33366
feat: A new field `response_logprbs` is added to message `.google.clo…
gcf-owl-bot[bot] Sep 20, 2024
3635c21
feat: action for publishing data profiles to SecOps (formelly known a…
gcf-owl-bot[bot] Sep 20, 2024
21a154b
feat: return listing information for subscriptions created via Analyt…
gcf-owl-bot[bot] Sep 20, 2024
d1f547f
fix: ensure attempts increment without exception (#7688)
bshaffer Sep 20, 2024
c337a90
feat: add `GetPropertyQuotasSnapshot` method to the Data API v1alpha …
gcf-owl-bot[bot] Sep 23, 2024
55bcd8c
feat: created new boolean fields in conversation model for zone isola…
gcf-owl-bot[bot] Sep 23, 2024
d49e04c
feat: add TunedModelRef and RebaseTunedModel Api for Vertex GenAiTuni…
gcf-owl-bot[bot] Sep 23, 2024
96c41ea
feat: Add support for Cloud Bigtable Node Scaling Factor for CBT Clus…
gcf-owl-bot[bot] Sep 23, 2024
0538022
fix!: Pagination feature is introduced for method `ListKeyHandles` in…
gcf-owl-bot[bot] Sep 23, 2024
833c58c
feat: Add the OracleDatabase component (#7687)
Hectorhammett Sep 23, 2024
582d912
chore(main): release 0.260.0 (#7677)
release-please[bot] Sep 23, 2024
b5ce71d
feat: Add support for generating route tokens (#7694)
gcf-owl-bot[bot] Sep 24, 2024
e3a138c
feat: add ingestion Cloud Storage fields and Platform Logging fields …
gcf-owl-bot[bot] Sep 26, 2024
c2d140b
feat: add support for Spark Connect sessions in Dataproc Serverless f…
gcf-owl-bot[bot] Sep 27, 2024
cd47348
feat: created new boolean fields in conversation dataset for zone iso…
gcf-owl-bot[bot] Sep 27, 2024
9ed8a41
docs: cleanup of Parallelstore API descriptions (#7703)
gcf-owl-bot[bot] Sep 27, 2024
1ed4b42
feat: Client library for the backupvault api is added (#7704)
gcf-owl-bot[bot] Sep 27, 2024
409b76d
fix!: The type of an existing field `time_zone` is changed from `mess…
gcf-owl-bot[bot] Sep 27, 2024
abe3c50
feat: introduce AdsMarketingPlatformAdmin (#7697)
bshaffer Sep 27, 2024
51c6ec1
feat: Add FileUploads service (#7702)
gcf-owl-bot[bot] Sep 27, 2024
77a919a
fix(deps): update dependency google/cloud-kms to v2 (#7672)
renovate-bot Sep 27, 2024
0b5de87
fix(deps): update dependency google/cloud-osconfig to v2 (#7674)
renovate-bot Sep 27, 2024
524f5a8
chore(deps): update gcr.io/cloud-spanner-emulator/emulator docker tag…
renovate-bot Sep 27, 2024
8ada8a3
chore: revert "feat: [BackupDr] Client library for the backupvault ap…
bshaffer Sep 27, 2024
e13bf25
feat(tests): organize workflows, add system tests (#7695)
bshaffer Sep 27, 2024
9f98803
feat: added support for deploy policies (#7711)
gcf-owl-bot[bot] Sep 28, 2024
5049999
chore(main): release 0.261.0 (#7698)
release-please[bot] Sep 28, 2024
7bbcfd6
feat: add 'force' parameter for accounts.delete method (#7714)
gcf-owl-bot[bot] Sep 30, 2024
b5642e6
tests(storage): add integration test for universe domain (#7713)
thiyaguk09 Sep 30, 2024
1cb914b
feat:Add scheduleOptionsV2 and Error fields for TransferConfig (#7718)
gcf-owl-bot[bot] Sep 30, 2024
132254f
feat: add INTERVAL API (#7712)
gcf-owl-bot[bot] Oct 1, 2024
f3ffdb1
docs: Clarify Batch only supports global custom instance template now…
gcf-owl-bot[bot] Oct 1, 2024
2c48383
feat: add psc_automation_configs to DeployIndex v1 (#7720)
gcf-owl-bot[bot] Oct 2, 2024
291ffac
chore: misc system test fixes and cleanup (#7717)
bshaffer Oct 3, 2024
0c917c4
feat: Add doc for permission settings & announcement space support (#…
gcf-owl-bot[bot] Oct 5, 2024
0e366ef
feat: Define ReplicaComputeCapacity and AsymmetricAutoscalingOption (…
gcf-owl-bot[bot] Oct 5, 2024
7674a3e
feat: add a dynamic retrieval API (#7724)
gcf-owl-bot[bot] Oct 5, 2024
061fec1
docs: adding some more information about supplemental data sources (#…
gcf-owl-bot[bot] Oct 5, 2024
aa62991
feat: Add support for primary_admin_email as customer_identity for Im…
gcf-owl-bot[bot] Oct 5, 2024
72a9414
docs: minor documentation formatting fix for Parallelstore (#7722)
gcf-owl-bot[bot] Oct 5, 2024
3b7f251
feat: add Builds API(#7725)
gcf-owl-bot[bot] Oct 5, 2024
4021aec
chore(main): release 0.262.0 (#7716)
release-please[bot] Oct 5, 2024
534f367
feat: Add import / export IssueModel (#7731)
gcf-owl-bot[bot] Oct 11, 2024
ce39c2e
feat: Add low latency journey option to proto (#7740)
gcf-owl-bot[bot] Oct 11, 2024
438b3e8
feat: Add IngestionFailureEvent to the external proto (#7738)
gcf-owl-bot[bot] Oct 11, 2024
bb22cee
feat: add an effective_cgroup_mode field in node config (#7737)
gcf-owl-bot[bot] Oct 11, 2024
dd48f72
feat: protos for R/W transaction support on multiplexed sessions (#7736)
gcf-owl-bot[bot] Oct 11, 2024
7c553c2
feat: add conversational search (#7734)
gcf-owl-bot[bot] Oct 11, 2024
c4a0d8d
feat: Support for field update operators in the Datastore API and res…
gcf-owl-bot[bot] Oct 11, 2024
3252d24
feat: add Order modification RPCs and License Management Service (#7729)
gcf-owl-bot[bot] Oct 11, 2024
a93ec74
fix: location type annotation (#7739)
gcf-owl-bot[bot] Oct 11, 2024
764bb32
feat: Add backupplan proto (#7732)
gcf-owl-bot[bot] Oct 11, 2024
b3466e9
chore(main): release 0.263.0 (#7741)
release-please[bot] Oct 11, 2024
129458a
fix(ci): ref in backwards-compatibility-checks (#7728)
bshaffer Oct 11, 2024
6865827
feat: add experimental ArrowData type and arrow_data field within App…
gcf-owl-bot[bot] Oct 17, 2024
327de67
feat: Add FindNearest API to the stable branch (#7744)
gcf-owl-bot[bot] Oct 17, 2024
72df650
feat: add messages and fields related to Redis Instances (#7748)
gcf-owl-bot[bot] Oct 17, 2024
21b4eb5
feat: Add `ProvisioningModelMix` to support mixing of spot and standa…
gcf-owl-bot[bot] Oct 17, 2024
273bc5c
feat: discovery of BigQuery snapshots (#7751)
gcf-owl-bot[bot] Oct 17, 2024
8699235
docs: Marks the `google.cloud.essentialcontacts.v1.Contact.validation…
gcf-owl-bot[bot] Oct 17, 2024
600d1af
feat: Add field `instance` to message `.google.cloud.securesourcemana…
gcf-owl-bot[bot] Oct 18, 2024
1d6c067
feat: add `SamplingLevel` type to Data API v1alpha (#7753)
gcf-owl-bot[bot] Oct 18, 2024
6dcd0cd
chore(main): release 0.264.0 (#7742)
release-please[bot] Oct 18, 2024
12921fc
Chore: Rework the compile splitsh command (#7755)
Hectorhammett Oct 21, 2024
be3a11c
feat: Add branch rule APIs (#7754)
gcf-owl-bot[bot] Oct 24, 2024
385c1e7
feat: add `text` field for Grounding metadata support chunk output (#…
gcf-owl-bot[bot] Oct 24, 2024
3b5afb3
feat: add brand voice lite, which lets you clone a voice with just 10…
gcf-owl-bot[bot] Oct 24, 2024
22357f5
feat: add new PSC instance configuration setting and output the PSC D…
gcf-owl-bot[bot] Oct 24, 2024
8afaa8c
feat: A new field `headline_offer_installment` is added to message `.…
gcf-owl-bot[bot] Oct 24, 2024
c134d3d
feat(spanner): Add support for Cloud Spanner Default Backup Schedules…
gcf-owl-bot[bot] Oct 24, 2024
4d427bf
feat: Updated the exponential backoff settings for the Document AI Pr…
gcf-owl-bot[bot] Oct 24, 2024
c8289d5
feat: add Parallelstore V1 (#7764)
bshaffer Oct 28, 2024
9b4de94
feat: introduce AdManager component (#7767)
Hectorhammett Oct 28, 2024
9abf2ba
chore(main): release 0.265.0 (#7756)
release-please[bot] Oct 28, 2024
ebac0c8
fix(dev): allow for packagist components in googleads/ as well (#7771)
bshaffer Oct 28, 2024
37497b9
remove all remaining calls to createAndSendRequest
bshaffer Oct 29, 2024
d9b959c
remove all cases of RequestHandler
bshaffer Oct 29, 2024
8702a30
fixing tests WIP
bshaffer Oct 30, 2024
46ed1e4
WIP
bshaffer Oct 30, 2024
9f9a539
WIP
bshaffer Oct 30, 2024
3c82c64
feat: support external links for Guzzle Promise Interface (#7778)
Hectorhammett Oct 30, 2024
31098df
feat: Add Artifact Registry attachment API (#7768)
gcf-owl-bot[bot] Oct 30, 2024
b1dcfc6
feat: Add feature flags proto for Direct Access (#7770)
gcf-owl-bot[bot] Oct 30, 2024
4e408c3
feat(Storage): add support for restore token (#7775)
thiyaguk09 Oct 31, 2024
6289263
WIP
bshaffer Oct 31, 2024
e0b9c6f
feat: add multi-speaker markup, which allows generating dialogue betw…
gcf-owl-bot[bot] Oct 31, 2024
9e21daa
feat: Publish Eventarc Advanced protos (#7772)
gcf-owl-bot[bot] Oct 31, 2024
4d95d21
feat: support for ListIpOverrides and RemoveIpOverride (#7777)
gcf-owl-bot[bot] Oct 31, 2024
ab36815
feat: Add GroundedGenerationService API (#7781)
gcf-owl-bot[bot] Oct 31, 2024
cb053e3
feat: Add GroundedGenerationService API (#7779)
gcf-owl-bot[bot] Oct 31, 2024
5271d4e
feat: add StopNotebookRuntime method (#7782)
gcf-owl-bot[bot] Oct 31, 2024
0bd701e
feat: add lite search API to allow public website search with API key…
gcf-owl-bot[bot] Oct 31, 2024
d046eb4
chore(ci): fix conventional commit check (#7763)
bshaffer Oct 31, 2024
068f434
doc: Add GroundedGenerationService API (#7780)
gcf-owl-bot[bot] Oct 31, 2024
b8821e3
chore: rename AdsMarketingplatformAdmin (#7776)
bshaffer Nov 1, 2024
a2eb865
feat: add response types for async magic methods (#7773)
gcf-owl-bot[bot] Nov 1, 2024
c059372
docs: publishing v1beta version of Memorystore API (#7787)
gcf-owl-bot[bot] Nov 1, 2024
880808c
docs: add response types for async magic methods (#7784)
gcf-owl-bot[bot] Nov 1, 2024
0414f30
docs: add response types for async magic methods (#7785)
gcf-owl-bot[bot] Nov 1, 2024
60a4541
docs: add response types for async magic methods (#7786)
gcf-owl-bot[bot] Nov 1, 2024
f400f71
docs: fix URLs for new package name (#7790)
bshaffer Nov 1, 2024
e3e1d06
docs: publishing v1 version of Memorystore API (#7788)
gcf-owl-bot[bot] Nov 1, 2024
88be871
chore(main): release 0.266.0 (#7774)
release-please[bot] Nov 1, 2024
24d302c
fix(docs): fix error in publish postrun (#7794)
bshaffer Nov 4, 2024
c393d14
chore(docs): update README to reflect GA status (#7798)
bshaffer Nov 5, 2024
4bd4e0d
fix(docs): Escape HTML characters for generic types (#7807)
Hectorhammett Nov 5, 2024
3f78601
chore: remove body selector from http rule (#7803)
gcf-owl-bot[bot] Nov 5, 2024
8a0df08
chore: add types for async methods (#7801)
gcf-owl-bot[bot] Nov 5, 2024
897ed55
chore: add types for async methods (#7799)
gcf-owl-bot[bot] Nov 5, 2024
8ae7f43
chore: add types for async methods (#7800)
gcf-owl-bot[bot] Nov 5, 2024
f8b7500
chore: add types for async methods (#7805)
gcf-owl-bot[bot] Nov 5, 2024
fdd4559
chore(deps): update gcr.io/cloud-spanner-emulator/emulator docker tag…
renovate-bot Nov 5, 2024
2319433
chore(deps): update gcr.io/cloud-devrel-public-resources/storage-test…
renovate-bot Nov 5, 2024
21fcebc
feat: added support for specifying function response type in Function…
gcf-owl-bot[bot] Nov 5, 2024
28c817f
chore: add types for async methods (#7802)
gcf-owl-bot[bot] Nov 5, 2024
8c38653
chore: add types for async methods (#7804)
gcf-owl-bot[bot] Nov 5, 2024
8217b59
feat: update log entry proto for backup plan for gkebackup platform l…
gcf-owl-bot[bot] Nov 5, 2024
d5d831b
feat: add options of client_certificate_settings, bigquery_export_set…
gcf-owl-bot[bot] Nov 6, 2024
67d8a79
feat: add GlossaryConfig contextual translate (#7809)
bshaffer Nov 6, 2024
eee118e
feat: add GCSVolumeSource.mount_options (#7808)
bshaffer Nov 6, 2024
7d368c2
feat(docs): add support for cross-package references (#7792)
bshaffer Nov 6, 2024
b369460
feat: support excludeTxnFromChangeStreams option (#7749)
bshaffer Nov 6, 2024
57a029b
feat(docs): generate reference docs for GAX (#7797)
bshaffer Nov 6, 2024
ef5d401
feat: added support for ALAW encoding (#7812)
gcf-owl-bot[bot] Nov 6, 2024
b2e13dd
chore(main): release 0.267.0 (#7795)
release-please[bot] Nov 6, 2024
31ad7f0
WIP
bshaffer Nov 6, 2024
f003289
WIP - total test refactor
bshaffer Nov 7, 2024
aa8ee86
feat: add DNS endpoint of Google Kubernetes Engine cluster control pl…
gcf-owl-bot[bot] Nov 8, 2024
32a1cee
docs: add missing doc comments (#7813)
gcf-owl-bot[bot] Nov 8, 2024
f06f521
feat: add LocalSsdEncryptionMode in NodeConfig (#7817)
gcf-owl-bot[bot] Nov 8, 2024
2c1bd44
chore: upgrade docfx to 3.5.3 (#7814)
bshaffer Nov 8, 2024
6743268
WIP
bshaffer Nov 9, 2024
aa226ec
final fixes for DatabaseTest
bshaffer Nov 11, 2024
cb49912
more test fixes
bshaffer Nov 11, 2024
ca2ba78
chore(tests): update GAPIC fixtures for latest updates (#7819)
bshaffer Nov 11, 2024
b6a4b5b
WIP
bshaffer Nov 11, 2024
932e36e
WIP
bshaffer Nov 11, 2024
fe8fe94
WIP
bshaffer Nov 11, 2024
f2e1218
WIP
bshaffer Nov 12, 2024
508dae8
finish fixing unit tests
bshaffer Nov 12, 2024
2fd700f
WIP
bshaffer Nov 12, 2024
f5a852c
Merge branch 'main' into spanner-v2-refactor-lro
bshaffer Nov 12, 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
Prev Previous commit
Next Next commit
feat: Add the OracleDatabase component (#7687)
* Add the OracleDatabase component

* Generated the OracleDatabase client

* Removed accidental script file
Hectorhammett authored Sep 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 833c58cdeabcabc8a5dd397b728768e7c2fda27a
8 changes: 8 additions & 0 deletions .repo-metadata-full.json
Original file line number Diff line number Diff line change
@@ -966,6 +966,14 @@
"library_type": "GAPIC_AUTO",
"api_shortname": "cloudoptimization"
},
"OracleDatabase": {
"language": "php",
"distribution_name": "google/cloud-oracledatabase",
"release_level": "preview",
"client_documentation": "https://cloud.google.com/php/docs/reference/cloud-oracledatabase/latest",
"library_type": "GAPIC_AUTO",
"api_shortname": "oracledatabase"
},
"OrchestrationAirflow": {
"language": "php",
"distribution_name": "google/cloud-orchestration-airflow",
4 changes: 4 additions & 0 deletions OracleDatabase/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
deep-copy-regex:
- source: /google/cloud/oracledatabase/(v1)/.*-php/(.*)
dest: /owl-bot-staging/OracleDatabase/$1/$2
api-name: OracleDatabase
7 changes: 7 additions & 0 deletions OracleDatabase/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*.xml.dist export-ignore
/.OwlBot.yaml export-ignore
/.github export-ignore
/owlbot.py export-ignore
/src/**/gapic_metadata.json export-ignore
/samples export-ignore
/tests export-ignore
24 changes: 24 additions & 0 deletions OracleDatabase/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**PLEASE READ THIS ENTIRE MESSAGE**

Hello, and thank you for your contribution! Please note that this repository is
a read-only split of `googleapis/google-cloud-php`. As such, we are
unable to accept pull requests to this repository.

We welcome your pull request and would be happy to consider it for inclusion in
our library if you follow these steps:

* Clone the parent client library repository:

```sh
$ git clone git@github.com:googleapis/google-cloud-php.git
```

* Move your changes into the correct location in that library. Library code
belongs in `OracleDatabase/src`, and tests in `OracleDatabase/tests`.

* Push the changes in a new branch to a fork, and open a new pull request
[here](https://github.com/googleapis/google-cloud-php).

Thanks again, and we look forward to seeing your proposed change!

The Google Cloud PHP team
10 changes: 10 additions & 0 deletions OracleDatabase/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# How to Contribute

We'd love to accept your patches and contributions to this project. We accept
and review pull requests against the main
[Google Cloud PHP](https://github.com/googleapis/google-cloud-php)
repository, which contains all of our client libraries. You will also need to
sign a Contributor License Agreement. For more details about how to contribute,
see the
[CONTRIBUTING.md](https://github.com/googleapis/google-cloud-php/blob/main/CONTRIBUTING.md)
file in the main Google Cloud PHP repository.
202 changes: 202 additions & 0 deletions OracleDatabase/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}

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.

45 changes: 45 additions & 0 deletions OracleDatabase/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Google Cloud Oracle Database for PHP

> Idiomatic PHP client for [Google Cloud Oracle Database](https://cloud.google.com/oracle/database).

[![Latest Stable Version](https://poser.pugx.org/google/cloud-oracledatabase/v/stable)](https://packagist.org/packages/google/cloud-oracledatabase) [![Packagist](https://img.shields.io/packagist/dm/google/cloud-oracledatabase.svg)](https://packagist.org/packages/google/cloud-oracledatabase)

* [API documentation](https://cloud.google.com/php/docs/reference/cloud-oracledatabase/latest)

**NOTE:** This repository is part of [Google Cloud PHP](https://github.com/googleapis/google-cloud-php). Any
support requests, bug reports, or development contributions should be directed to
that project.

### Installation

To begin, install the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).

Now, install this component:

```sh
$ composer require google/cloud-oracledatabase
```

> Browse the complete list of [Google Cloud APIs](https://cloud.google.com/php/docs/reference)
> for PHP

This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits
offered by gRPC (such as streaming methods) please see our
[gRPC installation guide](https://cloud.google.com/php/grpc).

### Authentication

Please see our [Authentication guide](https://github.com/googleapis/google-cloud-php/blob/main/AUTHENTICATION.md) for more information
on authenticating your client. Once authenticated, you'll be ready to start making requests.

### Sample

See the [samples directory](https://github.com/googleapis/google-cloud-php-oracledatabase/tree/main/samples) for a canonical list of samples.

### Version

This component is considered alpha. As such, it is still a work-in-progress and is more likely to get backwards-incompatible updates.

### Next Steps

1. Understand the [official documentation](https://cloud.google.com/oracle/database/docs).
1 change: 1 addition & 0 deletions OracleDatabase/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
30 changes: 30 additions & 0 deletions OracleDatabase/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "google/cloud-oracledatabase",
"description": "Google Cloud Oracle Database Client for PHP",
"license": "Apache-2.0",
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Google\\Cloud\\OracleDatabase\\": "src",
"GPBMetadata\\Google\\Cloud\\Oracledatabase\\": "metadata"
}
},
"extra": {
"component": {
"id": "cloud-oracledatabase",
"path": "OracleDatabase",
"target": "googleapis/google-cloud-php-oracledatabase"
}
},
"require": {
"php": "^8.0",
"google/gax": "^1.34.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0"
},
"suggest": {
"ext-grpc": "Enables use of gRPC, a universal high-performance RPC framework created by Google.",
"ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions."
}
}
Binary file added OracleDatabase/metadata/V1/AutonomousDatabase.php
Binary file not shown.
Binary file not shown.
Binary file added OracleDatabase/metadata/V1/AutonomousDbBackup.php
Binary file not shown.
36 changes: 36 additions & 0 deletions OracleDatabase/metadata/V1/AutonomousDbVersion.php

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

30 changes: 30 additions & 0 deletions OracleDatabase/metadata/V1/Common.php
Binary file added OracleDatabase/metadata/V1/DbNode.php
Binary file not shown.
Binary file added OracleDatabase/metadata/V1/DbServer.php
Binary file not shown.
44 changes: 44 additions & 0 deletions OracleDatabase/metadata/V1/DbSystemShape.php
Binary file added OracleDatabase/metadata/V1/Entitlement.php
Binary file not shown.
Binary file added OracleDatabase/metadata/V1/ExadataInfra.php
Binary file not shown.
34 changes: 34 additions & 0 deletions OracleDatabase/metadata/V1/GiVersion.php
30 changes: 30 additions & 0 deletions OracleDatabase/metadata/V1/LocationMetadata.php
236 changes: 236 additions & 0 deletions OracleDatabase/metadata/V1/Oracledatabase.php
Binary file added OracleDatabase/metadata/V1/VmCluster.php
Binary file not shown.
56 changes: 56 additions & 0 deletions OracleDatabase/owlbot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 2024 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.

"""This script is used to synthesize generated parts of this library."""

import logging
from pathlib import Path
import subprocess

import synthtool as s
from synthtool.languages import php
from synthtool import _tracked_paths

logging.basicConfig(level=logging.DEBUG)

src = Path(f"../{php.STAGING_DIR}/OracleDatabase").resolve()
dest = Path().resolve()

# Added so that we can pass copy_excludes in the owlbot_main() call
_tracked_paths.add(src)

php.owlbot_main(src=src, dest=dest)

# remove class_alias code
s.replace(
"src/V*/**/*.php",
r"^// Adding a class alias for backwards compatibility with the previous class name.$"
+ "\n"
+ r"^class_alias\(.*\);$"
+ "\n",
'')

# format generated clients
subprocess.run([
'npm',
'exec',
'--yes',
'--package=@prettier/plugin-php@^0.16',
'--',
'prettier',
'**/Client/*',
'--write',
'--parser=php',
'--single-quote',
'--print-width=120'])
16 changes: 16 additions & 0 deletions OracleDatabase/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">src/V[!a-zA-Z]*</directory>
</exclude>
</coverage>
<testsuites>
<testsuite name="Google Cloud Oracle Database Unit Test Suite">
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
</phpunit>
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OracleDatabase\V1\AutonomousDatabase;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\CreateAutonomousDatabaseRequest;
use Google\Rpc\Status;

/**
* Creates a new Autonomous Database in a given project and location.
*
* @param string $formattedParent The name of the parent in the following format:
* projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
* @param string $autonomousDatabaseId The ID of the Autonomous Database to create. This value is
* restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
* 63 characters in length. The value must start with a letter and end with a
* letter or a number.
* @param string $formattedAutonomousDatabaseNetwork The name of the VPC network used by the Autonomous Database in
* the following format: projects/{project}/global/networks/{network}
* Please see {@see OracleDatabaseClient::networkName()} for help formatting this field.
* @param string $autonomousDatabaseCidr The subnet CIDR range for the Autonmous Database.
*/
function create_autonomous_database_sample(
string $formattedParent,
string $autonomousDatabaseId,
string $formattedAutonomousDatabaseNetwork,
string $autonomousDatabaseCidr
): void {
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$autonomousDatabase = (new AutonomousDatabase())
->setNetwork($formattedAutonomousDatabaseNetwork)
->setCidr($autonomousDatabaseCidr);
$request = (new CreateAutonomousDatabaseRequest())
->setParent($formattedParent)
->setAutonomousDatabaseId($autonomousDatabaseId)
->setAutonomousDatabase($autonomousDatabase);

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $oracleDatabaseClient->createAutonomousDatabase($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
/** @var AutonomousDatabase $result */
$result = $response->getResult();
printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
} else {
/** @var Status $error */
$error = $response->getError();
printf('Operation failed with error data: %s' . PHP_EOL, $error->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');
$autonomousDatabaseId = '[AUTONOMOUS_DATABASE_ID]';
$formattedAutonomousDatabaseNetwork = OracleDatabaseClient::networkName('[PROJECT]', '[NETWORK]');
$autonomousDatabaseCidr = '[CIDR]';

create_autonomous_database_sample(
$formattedParent,
$autonomousDatabaseId,
$formattedAutonomousDatabaseNetwork,
$autonomousDatabaseCidr
);
}
// [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure;
use Google\Cloud\OracleDatabase\V1\CreateCloudExadataInfrastructureRequest;
use Google\Rpc\Status;

/**
* Creates a new Exadata Infrastructure in a given project and location.
*
* @param string $formattedParent The parent value for CloudExadataInfrastructure in the following
* format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
* @param string $cloudExadataInfrastructureId The ID of the Exadata Infrastructure to create. This value is
* restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
* 63 characters in length. The value must start with a letter and end with a
* letter or a number.
*/
function create_cloud_exadata_infrastructure_sample(
string $formattedParent,
string $cloudExadataInfrastructureId
): void {
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$cloudExadataInfrastructure = new CloudExadataInfrastructure();
$request = (new CreateCloudExadataInfrastructureRequest())
->setParent($formattedParent)
->setCloudExadataInfrastructureId($cloudExadataInfrastructureId)
->setCloudExadataInfrastructure($cloudExadataInfrastructure);

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $oracleDatabaseClient->createCloudExadataInfrastructure($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
/** @var CloudExadataInfrastructure $result */
$result = $response->getResult();
printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
} else {
/** @var Status $error */
$error = $response->getError();
printf('Operation failed with error data: %s' . PHP_EOL, $error->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');
$cloudExadataInfrastructureId = '[CLOUD_EXADATA_INFRASTRUCTURE_ID]';

create_cloud_exadata_infrastructure_sample($formattedParent, $cloudExadataInfrastructureId);
}
// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\CloudVmCluster;
use Google\Cloud\OracleDatabase\V1\CreateCloudVmClusterRequest;
use Google\Rpc\Status;

/**
* Creates a new VM Cluster in a given project and location.
*
* @param string $formattedParent The name of the parent in the following format:
* projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
* @param string $cloudVmClusterId The ID of the VM Cluster to create. This value is restricted
* to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
* characters in length. The value must start with a letter and end with
* a letter or a number.
* @param string $formattedCloudVmClusterExadataInfrastructure The name of the Exadata Infrastructure resource on which VM
* cluster resource is created, in the following format:
* projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
* Please see {@see OracleDatabaseClient::cloudExadataInfrastructureName()} for help formatting this field.
* @param string $cloudVmClusterCidr Network settings. CIDR to use for cluster IP allocation.
* @param string $cloudVmClusterBackupSubnetCidr CIDR range of the backup subnet.
* @param string $formattedCloudVmClusterNetwork The name of the VPC network.
* Format: projects/{project}/global/networks/{network}
* Please see {@see OracleDatabaseClient::networkName()} for help formatting this field.
*/
function create_cloud_vm_cluster_sample(
string $formattedParent,
string $cloudVmClusterId,
string $formattedCloudVmClusterExadataInfrastructure,
string $cloudVmClusterCidr,
string $cloudVmClusterBackupSubnetCidr,
string $formattedCloudVmClusterNetwork
): void {
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$cloudVmCluster = (new CloudVmCluster())
->setExadataInfrastructure($formattedCloudVmClusterExadataInfrastructure)
->setCidr($cloudVmClusterCidr)
->setBackupSubnetCidr($cloudVmClusterBackupSubnetCidr)
->setNetwork($formattedCloudVmClusterNetwork);
$request = (new CreateCloudVmClusterRequest())
->setParent($formattedParent)
->setCloudVmClusterId($cloudVmClusterId)
->setCloudVmCluster($cloudVmCluster);

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $oracleDatabaseClient->createCloudVmCluster($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
/** @var CloudVmCluster $result */
$result = $response->getResult();
printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
} else {
/** @var Status $error */
$error = $response->getError();
printf('Operation failed with error data: %s' . PHP_EOL, $error->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');
$cloudVmClusterId = '[CLOUD_VM_CLUSTER_ID]';
$formattedCloudVmClusterExadataInfrastructure = OracleDatabaseClient::cloudExadataInfrastructureName(
'[PROJECT]',
'[LOCATION]',
'[CLOUD_EXADATA_INFRASTRUCTURE]'
);
$cloudVmClusterCidr = '[CIDR]';
$cloudVmClusterBackupSubnetCidr = '[BACKUP_SUBNET_CIDR]';
$formattedCloudVmClusterNetwork = OracleDatabaseClient::networkName('[PROJECT]', '[NETWORK]');

create_cloud_vm_cluster_sample(
$formattedParent,
$cloudVmClusterId,
$formattedCloudVmClusterExadataInfrastructure,
$cloudVmClusterCidr,
$cloudVmClusterBackupSubnetCidr,
$formattedCloudVmClusterNetwork
);
}
// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\DeleteAutonomousDatabaseRequest;
use Google\Rpc\Status;

/**
* Deletes a single Autonomous Database.
*
* @param string $formattedName The name of the resource in the following format:
* projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see
* {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field.
*/
function delete_autonomous_database_sample(string $formattedName): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

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

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $oracleDatabaseClient->deleteAutonomousDatabase($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
printf('Operation completed successfully.' . PHP_EOL);
} else {
/** @var Status $error */
$error = $response->getError();
printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = OracleDatabaseClient::autonomousDatabaseName(
'[PROJECT]',
'[LOCATION]',
'[AUTONOMOUS_DATABASE]'
);

delete_autonomous_database_sample($formattedName);
}
// [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\DeleteCloudExadataInfrastructureRequest;
use Google\Rpc\Status;

/**
* Deletes a single Exadata Infrastructure.
*
* @param string $formattedName The name of the Cloud Exadata Infrastructure in the following
* format:
* projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. Please see
* {@see OracleDatabaseClient::cloudExadataInfrastructureName()} for help formatting this field.
*/
function delete_cloud_exadata_infrastructure_sample(string $formattedName): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

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

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $oracleDatabaseClient->deleteCloudExadataInfrastructure($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
printf('Operation completed successfully.' . PHP_EOL);
} else {
/** @var Status $error */
$error = $response->getError();
printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = OracleDatabaseClient::cloudExadataInfrastructureName(
'[PROJECT]',
'[LOCATION]',
'[CLOUD_EXADATA_INFRASTRUCTURE]'
);

delete_cloud_exadata_infrastructure_sample($formattedName);
}
// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\DeleteCloudVmClusterRequest;
use Google\Rpc\Status;

/**
* Deletes a single VM Cluster.
*
* @param string $formattedName The name of the Cloud VM Cluster in the following format:
* projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. Please see
* {@see OracleDatabaseClient::cloudVmClusterName()} for help formatting this field.
*/
function delete_cloud_vm_cluster_sample(string $formattedName): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

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

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $oracleDatabaseClient->deleteCloudVmCluster($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
printf('Operation completed successfully.' . PHP_EOL);
} else {
/** @var Status $error */
$error = $response->getError();
printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = OracleDatabaseClient::cloudVmClusterName(
'[PROJECT]',
'[LOCATION]',
'[CLOUD_VM_CLUSTER]'
);

delete_cloud_vm_cluster_sample($formattedName);
}
// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\GenerateAutonomousDatabaseWalletRequest;
use Google\Cloud\OracleDatabase\V1\GenerateAutonomousDatabaseWalletResponse;

/**
* Generates a wallet for an Autonomous Database.
*
* @param string $formattedName The name of the Autonomous Database in the following format:
* projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see
* {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field.
* @param string $password The password used to encrypt the keys inside the wallet. The
* password must be a minimum of 8 characters.
*/
function generate_autonomous_database_wallet_sample(string $formattedName, string $password): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

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

// Call the API and handle any network failures.
try {
/** @var GenerateAutonomousDatabaseWalletResponse $response */
$response = $oracleDatabaseClient->generateAutonomousDatabaseWallet($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 = OracleDatabaseClient::autonomousDatabaseName(
'[PROJECT]',
'[LOCATION]',
'[AUTONOMOUS_DATABASE]'
);
$password = '[PASSWORD]';

generate_autonomous_database_wallet_sample($formattedName, $password);
}
// [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OracleDatabase\V1\AutonomousDatabase;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\GetAutonomousDatabaseRequest;

/**
* Gets the details of a single Autonomous Database.
*
* @param string $formattedName The name of the Autonomous Database in the following format:
* projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see
* {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field.
*/
function get_autonomous_database_sample(string $formattedName): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

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

// Call the API and handle any network failures.
try {
/** @var AutonomousDatabase $response */
$response = $oracleDatabaseClient->getAutonomousDatabase($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 = OracleDatabaseClient::autonomousDatabaseName(
'[PROJECT]',
'[LOCATION]',
'[AUTONOMOUS_DATABASE]'
);

get_autonomous_database_sample($formattedName);
}
// [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure;
use Google\Cloud\OracleDatabase\V1\GetCloudExadataInfrastructureRequest;

/**
* Gets details of a single Exadata Infrastructure.
*
* @param string $formattedName The name of the Cloud Exadata Infrastructure in the following
* format:
* projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. Please see
* {@see OracleDatabaseClient::cloudExadataInfrastructureName()} for help formatting this field.
*/
function get_cloud_exadata_infrastructure_sample(string $formattedName): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

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

// Call the API and handle any network failures.
try {
/** @var CloudExadataInfrastructure $response */
$response = $oracleDatabaseClient->getCloudExadataInfrastructure($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 = OracleDatabaseClient::cloudExadataInfrastructureName(
'[PROJECT]',
'[LOCATION]',
'[CLOUD_EXADATA_INFRASTRUCTURE]'
);

get_cloud_exadata_infrastructure_sample($formattedName);
}
// [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\CloudVmCluster;
use Google\Cloud\OracleDatabase\V1\GetCloudVmClusterRequest;

/**
* Gets details of a single VM Cluster.
*
* @param string $formattedName The name of the Cloud VM Cluster in the following format:
* projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. Please see
* {@see OracleDatabaseClient::cloudVmClusterName()} for help formatting this field.
*/
function get_cloud_vm_cluster_sample(string $formattedName): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

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

// Call the API and handle any network failures.
try {
/** @var CloudVmCluster $response */
$response = $oracleDatabaseClient->getCloudVmCluster($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 = OracleDatabaseClient::cloudVmClusterName(
'[PROJECT]',
'[LOCATION]',
'[CLOUD_VM_CLUSTER]'
);

get_cloud_vm_cluster_sample($formattedName);
}
// [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync]
57 changes: 57 additions & 0 deletions OracleDatabase/samples/V1/OracleDatabaseClient/get_location.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_GetLocation_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\Location\GetLocationRequest;
use Google\Cloud\Location\Location;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;

/**
* Gets information about a location.
*
* 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 get_location_sample(): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = new GetLocationRequest();

// Call the API and handle any network failures.
try {
/** @var Location $response */
$response = $oracleDatabaseClient->getLocation($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}
// [END oracledatabase_v1_generated_OracleDatabase_GetLocation_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListAutonomousDatabaseBackupsRequest;

/**
* Lists the long-term and automatic backups of an Autonomous Database.
*
* @param string $formattedParent The parent value for ListAutonomousDatabaseBackups in the
* following format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_autonomous_database_backups_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListAutonomousDatabaseBackupsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listAutonomousDatabaseBackups($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_autonomous_database_backups_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListAutonomousDatabaseCharacterSetsRequest;

/**
* Lists Autonomous Database Character Sets in a given project and location.
*
* @param string $formattedParent The parent value for the Autonomous Database in the following
* format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_autonomous_database_character_sets_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListAutonomousDatabaseCharacterSetsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listAutonomousDatabaseCharacterSets($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_autonomous_database_character_sets_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListAutonomousDatabasesRequest;

/**
* Lists the Autonomous Databases in a given project and location.
*
* @param string $formattedParent The parent value for the Autonomous Database in the following
* format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_autonomous_databases_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListAutonomousDatabasesRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listAutonomousDatabases($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_autonomous_databases_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListAutonomousDbVersionsRequest;

/**
* Lists all the available Autonomous Database versions for a project and
* location.
*
* @param string $formattedParent The parent value for the Autonomous Database in the following
* format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_autonomous_db_versions_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListAutonomousDbVersionsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listAutonomousDbVersions($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_autonomous_db_versions_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListCloudExadataInfrastructuresRequest;

/**
* Lists Exadata Infrastructures in a given project and location.
*
* @param string $formattedParent The parent value for CloudExadataInfrastructure in the following
* format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_cloud_exadata_infrastructures_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListCloudExadataInfrastructuresRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listCloudExadataInfrastructures($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_cloud_exadata_infrastructures_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListCloudVmClustersRequest;

/**
* Lists the VM Clusters in a given project and location.
*
* @param string $formattedParent The name of the parent in the following format:
* projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_cloud_vm_clusters_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListCloudVmClustersRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listCloudVmClusters($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_cloud_vm_clusters_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync]
79 changes: 79 additions & 0 deletions OracleDatabase/samples/V1/OracleDatabaseClient/list_db_nodes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListDbNodesRequest;

/**
* Lists the database nodes of a VM Cluster.
*
* @param string $formattedParent The parent value for database node in the following format:
* projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. Please see
* {@see OracleDatabaseClient::cloudVmClusterName()} for help formatting this field.
*/
function list_db_nodes_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListDbNodesRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listDbNodes($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::cloudVmClusterName(
'[PROJECT]',
'[LOCATION]',
'[CLOUD_VM_CLUSTER]'
);

list_db_nodes_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync]
79 changes: 79 additions & 0 deletions OracleDatabase/samples/V1/OracleDatabaseClient/list_db_servers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListDbServersRequest;

/**
* Lists the database servers of an Exadata Infrastructure instance.
*
* @param string $formattedParent The parent value for database server in the following format:
* projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. Please see
* {@see OracleDatabaseClient::cloudExadataInfrastructureName()} for help formatting this field.
*/
function list_db_servers_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListDbServersRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listDbServers($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::cloudExadataInfrastructureName(
'[PROJECT]',
'[LOCATION]',
'[CLOUD_EXADATA_INFRASTRUCTURE]'
);

list_db_servers_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListDbSystemShapesRequest;

/**
* Lists the database system shapes available for the project and location.
*
* @param string $formattedParent The parent value for Database System Shapes in the following
* format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_db_system_shapes_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListDbSystemShapesRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listDbSystemShapes($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_db_system_shapes_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListEntitlementsRequest;

/**
* Lists the entitlements in a given project.
*
* @param string $formattedParent The parent value for the entitlement in the following format:
* projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_entitlements_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListEntitlementsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listEntitlements($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_entitlements_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\ListGiVersionsRequest;

/**
* Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
* project and location.
*
* @param string $formattedParent The parent value for Grid Infrastructure Version in the following
* format: Format: projects/{project}/locations/{location}. Please see
* {@see OracleDatabaseClient::locationName()} for help formatting this field.
*/
function list_gi_versions_sample(string $formattedParent): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = (new ListGiVersionsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listGiVersions($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->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
{
$formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]');

list_gi_versions_sample($formattedParent);
}
// [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync]
60 changes: 60 additions & 0 deletions OracleDatabase/samples/V1/OracleDatabaseClient/list_locations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_ListLocations_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\Location\ListLocationsRequest;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;

/**
* Lists information about the supported locations for this service.
*
* 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 list_locations_sample(): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$request = new ListLocationsRequest();

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $oracleDatabaseClient->listLocations($request);

foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
}
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}
// [END oracledatabase_v1_generated_OracleDatabase_ListLocations_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2024 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 oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OracleDatabase\V1\AutonomousDatabase;
use Google\Cloud\OracleDatabase\V1\Client\OracleDatabaseClient;
use Google\Cloud\OracleDatabase\V1\RestoreAutonomousDatabaseRequest;
use Google\Protobuf\Timestamp;
use Google\Rpc\Status;

/**
* Restores a single Autonomous Database.
*
* @param string $formattedName The name of the Autonomous Database in the following format:
* projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see
* {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field.
*/
function restore_autonomous_database_sample(string $formattedName): void
{
// Create a client.
$oracleDatabaseClient = new OracleDatabaseClient();

// Prepare the request message.
$restoreTime = new Timestamp();
$request = (new RestoreAutonomousDatabaseRequest())
->setName($formattedName)
->setRestoreTime($restoreTime);

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $oracleDatabaseClient->restoreAutonomousDatabase($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
/** @var AutonomousDatabase $result */
$result = $response->getResult();
printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
} else {
/** @var Status $error */
$error = $response->getError();
printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = OracleDatabaseClient::autonomousDatabaseName(
'[PROJECT]',
'[LOCATION]',
'[AUTONOMOUS_DATABASE]'
);

restore_autonomous_database_sample($formattedName);
}
// [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync]
Loading