Skip to content

Commit 62ceacc

Browse files
1 parent b1d32e4 commit 62ceacc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/Dns.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
676676
'type' => 'string',
677677
'required' => true,
678678
],
679+
'filter' => [
680+
'location' => 'query',
681+
'type' => 'string',
682+
],
679683
'maxResults' => [
680684
'location' => 'query',
681685
'type' => 'integer',

src/Dns/Resource/ResourceRecordSets.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ public function get($project, $managedZone, $name, $type, $optParams = [])
106106
* request. Can be the managed zone name or ID.
107107
* @param array $optParams Optional parameters.
108108
*
109+
* @opt_param string filter Specify a filter expression to view records that
110+
* exactly match the specified domain. Both the name and type parameters are not
111+
* supported when you use filter and must be omitted. Your filter expression
112+
* must conform to AIP-160 and you must specify a domain in the name field.
113+
* Optionally, you can include the type field to filter records by type. You can
114+
* also include the has_suffix function to view records that match by domain
115+
* suffix. Examples: - name="example.com." - name="example.com." AND type="A" -
116+
* name=has_suffix("example.com.") - name=has_suffix("example.com.") AND
117+
* type="A"
109118
* @opt_param int maxResults Optional. Maximum number of results to be returned.
110119
* If unspecified, the server decides how many results to return.
111120
* @opt_param string name Specify a fully qualified domain name to view only

0 commit comments

Comments
 (0)