google-apis-dns_v1beta2 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b28b213a8c8958960117dbf35f77f162514db08f3d1885c20502214eb31c7daf
4
- data.tar.gz: 27f5ce1ab858249f6f75d0b567874a8b267cecbf62c6d861ce1d80a6682294b9
3
+ metadata.gz: e8dd595b212e2609dc540f6b769b0b0d7742b082f8f95564a6fc0d6967df370f
4
+ data.tar.gz: 15c84f963ec121b07dfb22cb947bb0520b87cab697f1cd12737b961e954edc23
5
5
  SHA512:
6
- metadata.gz: c7f834ff3d755489256e976acec96c3d82e7126e3b0c5cebbef0cbfa1f3076040c36707c4a0286928199b66afad48f5a3c8bd4c0e1f108cbd0cc974a78a307f1
7
- data.tar.gz: 7ba735775ad1ffb3842acd1c1b11b892976b04f9843d11981ee12be1c340d0378e2a553f99eaf2af4ed4cf77971c1c0d8cae559c545b97292560391bfa2cfb72
6
+ metadata.gz: ea4c0d79f66364942695ab95bccb8d02f70969ff0c235fd0b1001b5deee82f1fcbc416c9c82549f59390a4769790c1091623dac9dcd11a90bfd7f36da81b033a
7
+ data.tar.gz: 22119e5e9e6b1686838ef10618873203e9ab0524d509ca5804665b2c86cc5a5e731dbe954d88db253bbc04bb717c0cf58c92a214d71383b30af8c67380cc0b94
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-dns_v1beta2
2
2
 
3
+ ### v0.2.0 (2021-01-27)
4
+
5
+ * Regenerated from discovery document revision 20210122
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -1607,19 +1607,6 @@ module Google
1607
1607
  end
1608
1608
  end
1609
1609
 
1610
- #
1611
- class ResourceRecordSetsDeleteResponse
1612
- include Google::Apis::Core::Hashable
1613
-
1614
- def initialize(**args)
1615
- update!(**args)
1616
- end
1617
-
1618
- # Update properties of this object
1619
- def update!(**args)
1620
- end
1621
- end
1622
-
1623
1610
  #
1624
1611
  class ResourceRecordSetsListResponse
1625
1612
  include Google::Apis::Core::Hashable
@@ -1684,6 +1671,334 @@ module Google
1684
1671
  @operation_id = args[:operation_id] if args.key?(:operation_id)
1685
1672
  end
1686
1673
  end
1674
+
1675
+ #
1676
+ class ResponsePoliciesListResponse
1677
+ include Google::Apis::Core::Hashable
1678
+
1679
+ # Elements common to every response.
1680
+ # Corresponds to the JSON property `header`
1681
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
1682
+ attr_accessor :header
1683
+
1684
+ # The presence of this field indicates that there exist more results following
1685
+ # your last page of results in pagination order. To fetch them, make another
1686
+ # list request using this value as your page token. In this way you can retrieve
1687
+ # the complete contents of even very large collections one page at a time.
1688
+ # However, if the contents of the collection change between the first and last
1689
+ # paginated list request, the set of all elements returned will be an
1690
+ # inconsistent view of the collection. There is no way to retrieve a consistent
1691
+ # snapshot of a collection larger than the maximum page size.
1692
+ # Corresponds to the JSON property `nextPageToken`
1693
+ # @return [String]
1694
+ attr_accessor :next_page_token
1695
+
1696
+ # The Response Policy resources.
1697
+ # Corresponds to the JSON property `responsePolicies`
1698
+ # @return [Array<Google::Apis::DnsV1beta2::ResponsePolicy>]
1699
+ attr_accessor :response_policies
1700
+
1701
+ def initialize(**args)
1702
+ update!(**args)
1703
+ end
1704
+
1705
+ # Update properties of this object
1706
+ def update!(**args)
1707
+ @header = args[:header] if args.key?(:header)
1708
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1709
+ @response_policies = args[:response_policies] if args.key?(:response_policies)
1710
+ end
1711
+ end
1712
+
1713
+ #
1714
+ class ResponsePoliciesPatchResponse
1715
+ include Google::Apis::Core::Hashable
1716
+
1717
+ # Elements common to every response.
1718
+ # Corresponds to the JSON property `header`
1719
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
1720
+ attr_accessor :header
1721
+
1722
+ # A Response Policy is a collection of selectors that apply to queries made
1723
+ # against one or more Virtual Private Cloud networks.
1724
+ # Corresponds to the JSON property `responsePolicy`
1725
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicy]
1726
+ attr_accessor :response_policy
1727
+
1728
+ def initialize(**args)
1729
+ update!(**args)
1730
+ end
1731
+
1732
+ # Update properties of this object
1733
+ def update!(**args)
1734
+ @header = args[:header] if args.key?(:header)
1735
+ @response_policy = args[:response_policy] if args.key?(:response_policy)
1736
+ end
1737
+ end
1738
+
1739
+ #
1740
+ class ResponsePoliciesUpdateResponse
1741
+ include Google::Apis::Core::Hashable
1742
+
1743
+ # Elements common to every response.
1744
+ # Corresponds to the JSON property `header`
1745
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
1746
+ attr_accessor :header
1747
+
1748
+ # A Response Policy is a collection of selectors that apply to queries made
1749
+ # against one or more Virtual Private Cloud networks.
1750
+ # Corresponds to the JSON property `responsePolicy`
1751
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicy]
1752
+ attr_accessor :response_policy
1753
+
1754
+ def initialize(**args)
1755
+ update!(**args)
1756
+ end
1757
+
1758
+ # Update properties of this object
1759
+ def update!(**args)
1760
+ @header = args[:header] if args.key?(:header)
1761
+ @response_policy = args[:response_policy] if args.key?(:response_policy)
1762
+ end
1763
+ end
1764
+
1765
+ # A Response Policy is a collection of selectors that apply to queries made
1766
+ # against one or more Virtual Private Cloud networks.
1767
+ class ResponsePolicy
1768
+ include Google::Apis::Core::Hashable
1769
+
1770
+ # User-provided description for this Response Policy.
1771
+ # Corresponds to the JSON property `description`
1772
+ # @return [String]
1773
+ attr_accessor :description
1774
+
1775
+ # Unique identifier for the resource; defined by the server (output only).
1776
+ # Corresponds to the JSON property `id`
1777
+ # @return [Fixnum]
1778
+ attr_accessor :id
1779
+
1780
+ #
1781
+ # Corresponds to the JSON property `kind`
1782
+ # @return [String]
1783
+ attr_accessor :kind
1784
+
1785
+ # List of network names specifying networks to which this policy is applied.
1786
+ # Corresponds to the JSON property `networks`
1787
+ # @return [Array<Google::Apis::DnsV1beta2::ResponsePolicyNetwork>]
1788
+ attr_accessor :networks
1789
+
1790
+ # User assigned name for this Response Policy.
1791
+ # Corresponds to the JSON property `responsePolicyName`
1792
+ # @return [String]
1793
+ attr_accessor :response_policy_name
1794
+
1795
+ def initialize(**args)
1796
+ update!(**args)
1797
+ end
1798
+
1799
+ # Update properties of this object
1800
+ def update!(**args)
1801
+ @description = args[:description] if args.key?(:description)
1802
+ @id = args[:id] if args.key?(:id)
1803
+ @kind = args[:kind] if args.key?(:kind)
1804
+ @networks = args[:networks] if args.key?(:networks)
1805
+ @response_policy_name = args[:response_policy_name] if args.key?(:response_policy_name)
1806
+ end
1807
+ end
1808
+
1809
+ #
1810
+ class ResponsePolicyNetwork
1811
+ include Google::Apis::Core::Hashable
1812
+
1813
+ #
1814
+ # Corresponds to the JSON property `kind`
1815
+ # @return [String]
1816
+ attr_accessor :kind
1817
+
1818
+ # The fully qualified URL of the VPC network to bind to. This should be
1819
+ # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
1820
+ # networks/`network`
1821
+ # Corresponds to the JSON property `networkUrl`
1822
+ # @return [String]
1823
+ attr_accessor :network_url
1824
+
1825
+ def initialize(**args)
1826
+ update!(**args)
1827
+ end
1828
+
1829
+ # Update properties of this object
1830
+ def update!(**args)
1831
+ @kind = args[:kind] if args.key?(:kind)
1832
+ @network_url = args[:network_url] if args.key?(:network_url)
1833
+ end
1834
+ end
1835
+
1836
+ # A Response Policy Rule is a selector that applies its behavior to queries that
1837
+ # match the selector. Selectors are DNS names, which may be wildcards or exact
1838
+ # matches. Each DNS query subject to a Response Policy matches at most one
1839
+ # ResponsePolicyRule, as identified by the dns_name field with the longest
1840
+ # matching suffix.
1841
+ class ResponsePolicyRule
1842
+ include Google::Apis::Core::Hashable
1843
+
1844
+ # Answer this query with a behavior rather than DNS data.
1845
+ # Corresponds to the JSON property `behavior`
1846
+ # @return [String]
1847
+ attr_accessor :behavior
1848
+
1849
+ # The DNS name (wildcard or exact) to apply this rule to. Must be unique within
1850
+ # the Response Policy Rule.
1851
+ # Corresponds to the JSON property `dnsName`
1852
+ # @return [String]
1853
+ attr_accessor :dns_name
1854
+
1855
+ #
1856
+ # Corresponds to the JSON property `kind`
1857
+ # @return [String]
1858
+ attr_accessor :kind
1859
+
1860
+ # Answer this query directly with DNS data. These ResourceRecordSets override
1861
+ # any other DNS behavior for the matched name; in particular they override
1862
+ # private zones, the public internet, and GCP internal DNS. No SOA nor NS types
1863
+ # are allowed.
1864
+ # Corresponds to the JSON property `localData`
1865
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRuleLocalData]
1866
+ attr_accessor :local_data
1867
+
1868
+ # An identifier for this rule. Must be unique with the ResponsePolicy.
1869
+ # Corresponds to the JSON property `ruleName`
1870
+ # @return [String]
1871
+ attr_accessor :rule_name
1872
+
1873
+ def initialize(**args)
1874
+ update!(**args)
1875
+ end
1876
+
1877
+ # Update properties of this object
1878
+ def update!(**args)
1879
+ @behavior = args[:behavior] if args.key?(:behavior)
1880
+ @dns_name = args[:dns_name] if args.key?(:dns_name)
1881
+ @kind = args[:kind] if args.key?(:kind)
1882
+ @local_data = args[:local_data] if args.key?(:local_data)
1883
+ @rule_name = args[:rule_name] if args.key?(:rule_name)
1884
+ end
1885
+ end
1886
+
1887
+ #
1888
+ class ResponsePolicyRuleLocalData
1889
+ include Google::Apis::Core::Hashable
1890
+
1891
+ # All resource record sets for this selector, one per resource record type. The
1892
+ # name must match the dns_name.
1893
+ # Corresponds to the JSON property `localDatas`
1894
+ # @return [Array<Google::Apis::DnsV1beta2::ResourceRecordSet>]
1895
+ attr_accessor :local_datas
1896
+
1897
+ def initialize(**args)
1898
+ update!(**args)
1899
+ end
1900
+
1901
+ # Update properties of this object
1902
+ def update!(**args)
1903
+ @local_datas = args[:local_datas] if args.key?(:local_datas)
1904
+ end
1905
+ end
1906
+
1907
+ #
1908
+ class ResponsePolicyRulesListResponse
1909
+ include Google::Apis::Core::Hashable
1910
+
1911
+ # Elements common to every response.
1912
+ # Corresponds to the JSON property `header`
1913
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
1914
+ attr_accessor :header
1915
+
1916
+ # The presence of this field indicates that there exist more results following
1917
+ # your last page of results in pagination order. To fetch them, make another
1918
+ # list request using this value as your page token. In this way you can retrieve
1919
+ # the complete contents of even very large collections one page at a time.
1920
+ # However, if the contents of the collection change between the first and last
1921
+ # paginated list request, the set of all elements returned will be an
1922
+ # inconsistent view of the collection. There is no way to retrieve a consistent
1923
+ # snapshot of a collection larger than the maximum page size.
1924
+ # Corresponds to the JSON property `nextPageToken`
1925
+ # @return [String]
1926
+ attr_accessor :next_page_token
1927
+
1928
+ # The Response Policy Rule resources.
1929
+ # Corresponds to the JSON property `responsePolicyRules`
1930
+ # @return [Array<Google::Apis::DnsV1beta2::ResponsePolicyRule>]
1931
+ attr_accessor :response_policy_rules
1932
+
1933
+ def initialize(**args)
1934
+ update!(**args)
1935
+ end
1936
+
1937
+ # Update properties of this object
1938
+ def update!(**args)
1939
+ @header = args[:header] if args.key?(:header)
1940
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1941
+ @response_policy_rules = args[:response_policy_rules] if args.key?(:response_policy_rules)
1942
+ end
1943
+ end
1944
+
1945
+ #
1946
+ class ResponsePolicyRulesPatchResponse
1947
+ include Google::Apis::Core::Hashable
1948
+
1949
+ # Elements common to every response.
1950
+ # Corresponds to the JSON property `header`
1951
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
1952
+ attr_accessor :header
1953
+
1954
+ # A Response Policy Rule is a selector that applies its behavior to queries that
1955
+ # match the selector. Selectors are DNS names, which may be wildcards or exact
1956
+ # matches. Each DNS query subject to a Response Policy matches at most one
1957
+ # ResponsePolicyRule, as identified by the dns_name field with the longest
1958
+ # matching suffix.
1959
+ # Corresponds to the JSON property `responsePolicyRule`
1960
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRule]
1961
+ attr_accessor :response_policy_rule
1962
+
1963
+ def initialize(**args)
1964
+ update!(**args)
1965
+ end
1966
+
1967
+ # Update properties of this object
1968
+ def update!(**args)
1969
+ @header = args[:header] if args.key?(:header)
1970
+ @response_policy_rule = args[:response_policy_rule] if args.key?(:response_policy_rule)
1971
+ end
1972
+ end
1973
+
1974
+ #
1975
+ class ResponsePolicyRulesUpdateResponse
1976
+ include Google::Apis::Core::Hashable
1977
+
1978
+ # Elements common to every response.
1979
+ # Corresponds to the JSON property `header`
1980
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
1981
+ attr_accessor :header
1982
+
1983
+ # A Response Policy Rule is a selector that applies its behavior to queries that
1984
+ # match the selector. Selectors are DNS names, which may be wildcards or exact
1985
+ # matches. Each DNS query subject to a Response Policy matches at most one
1986
+ # ResponsePolicyRule, as identified by the dns_name field with the longest
1987
+ # matching suffix.
1988
+ # Corresponds to the JSON property `responsePolicyRule`
1989
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRule]
1990
+ attr_accessor :response_policy_rule
1991
+
1992
+ def initialize(**args)
1993
+ update!(**args)
1994
+ end
1995
+
1996
+ # Update properties of this object
1997
+ def update!(**args)
1998
+ @header = args[:header] if args.key?(:header)
1999
+ @response_policy_rule = args[:response_policy_rule] if args.key?(:response_policy_rule)
2000
+ end
2001
+ end
1687
2002
  end
1688
2003
  end
1689
2004
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DnsV1beta2
18
18
  # Version of the google-apis-dns_v1beta2 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201116"
25
+ REVISION = "20210122"
26
26
  end
27
27
  end
28
28
  end
@@ -244,19 +244,73 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
- class ResourceRecordSetsDeleteResponse
247
+ class ResourceRecordSetsListResponse
248
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
249
 
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
- class ResourceRecordSetsListResponse
253
+ class ResponseHeader
254
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
255
 
256
256
  include Google::Apis::Core::JsonObjectSupport
257
257
  end
258
258
 
259
- class ResponseHeader
259
+ class ResponsePoliciesListResponse
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class ResponsePoliciesPatchResponse
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class ResponsePoliciesUpdateResponse
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class ResponsePolicy
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class ResponsePolicyNetwork
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class ResponsePolicyRule
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class ResponsePolicyRuleLocalData
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class ResponsePolicyRulesListResponse
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class ResponsePolicyRulesPatchResponse
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class ResponsePolicyRulesUpdateResponse
260
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
315
 
262
316
  include Google::Apis::Core::JsonObjectSupport
@@ -687,28 +741,124 @@ module Google
687
741
  end
688
742
  end
689
743
 
690
- class ResourceRecordSetsDeleteResponse
744
+ class ResourceRecordSetsListResponse
691
745
  # @private
692
746
  class Representation < Google::Apis::Core::JsonRepresentation
747
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
748
+
749
+ property :kind, as: 'kind'
750
+ property :next_page_token, as: 'nextPageToken'
751
+ collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
752
+
693
753
  end
694
754
  end
695
755
 
696
- class ResourceRecordSetsListResponse
756
+ class ResponseHeader
757
+ # @private
758
+ class Representation < Google::Apis::Core::JsonRepresentation
759
+ property :operation_id, as: 'operationId'
760
+ end
761
+ end
762
+
763
+ class ResponsePoliciesListResponse
764
+ # @private
765
+ class Representation < Google::Apis::Core::JsonRepresentation
766
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
767
+
768
+ property :next_page_token, as: 'nextPageToken'
769
+ collection :response_policies, as: 'responsePolicies', class: Google::Apis::DnsV1beta2::ResponsePolicy, decorator: Google::Apis::DnsV1beta2::ResponsePolicy::Representation
770
+
771
+ end
772
+ end
773
+
774
+ class ResponsePoliciesPatchResponse
697
775
  # @private
698
776
  class Representation < Google::Apis::Core::JsonRepresentation
699
777
  property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
700
778
 
779
+ property :response_policy, as: 'responsePolicy', class: Google::Apis::DnsV1beta2::ResponsePolicy, decorator: Google::Apis::DnsV1beta2::ResponsePolicy::Representation
780
+
781
+ end
782
+ end
783
+
784
+ class ResponsePoliciesUpdateResponse
785
+ # @private
786
+ class Representation < Google::Apis::Core::JsonRepresentation
787
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
788
+
789
+ property :response_policy, as: 'responsePolicy', class: Google::Apis::DnsV1beta2::ResponsePolicy, decorator: Google::Apis::DnsV1beta2::ResponsePolicy::Representation
790
+
791
+ end
792
+ end
793
+
794
+ class ResponsePolicy
795
+ # @private
796
+ class Representation < Google::Apis::Core::JsonRepresentation
797
+ property :description, as: 'description'
798
+ property :id, :numeric_string => true, as: 'id'
799
+ property :kind, as: 'kind'
800
+ collection :networks, as: 'networks', class: Google::Apis::DnsV1beta2::ResponsePolicyNetwork, decorator: Google::Apis::DnsV1beta2::ResponsePolicyNetwork::Representation
801
+
802
+ property :response_policy_name, as: 'responsePolicyName'
803
+ end
804
+ end
805
+
806
+ class ResponsePolicyNetwork
807
+ # @private
808
+ class Representation < Google::Apis::Core::JsonRepresentation
809
+ property :kind, as: 'kind'
810
+ property :network_url, as: 'networkUrl'
811
+ end
812
+ end
813
+
814
+ class ResponsePolicyRule
815
+ # @private
816
+ class Representation < Google::Apis::Core::JsonRepresentation
817
+ property :behavior, as: 'behavior'
818
+ property :dns_name, as: 'dnsName'
701
819
  property :kind, as: 'kind'
820
+ property :local_data, as: 'localData', class: Google::Apis::DnsV1beta2::ResponsePolicyRuleLocalData, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRuleLocalData::Representation
821
+
822
+ property :rule_name, as: 'ruleName'
823
+ end
824
+ end
825
+
826
+ class ResponsePolicyRuleLocalData
827
+ # @private
828
+ class Representation < Google::Apis::Core::JsonRepresentation
829
+ collection :local_datas, as: 'localDatas', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
830
+
831
+ end
832
+ end
833
+
834
+ class ResponsePolicyRulesListResponse
835
+ # @private
836
+ class Representation < Google::Apis::Core::JsonRepresentation
837
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
838
+
702
839
  property :next_page_token, as: 'nextPageToken'
703
- collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
840
+ collection :response_policy_rules, as: 'responsePolicyRules', class: Google::Apis::DnsV1beta2::ResponsePolicyRule, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
704
841
 
705
842
  end
706
843
  end
707
844
 
708
- class ResponseHeader
845
+ class ResponsePolicyRulesPatchResponse
709
846
  # @private
710
847
  class Representation < Google::Apis::Core::JsonRepresentation
711
- property :operation_id, as: 'operationId'
848
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
849
+
850
+ property :response_policy_rule, as: 'responsePolicyRule', class: Google::Apis::DnsV1beta2::ResponsePolicyRule, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
851
+
852
+ end
853
+ end
854
+
855
+ class ResponsePolicyRulesUpdateResponse
856
+ # @private
857
+ class Representation < Google::Apis::Core::JsonRepresentation
858
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
859
+
860
+ property :response_policy_rule, as: 'responsePolicyRule', class: Google::Apis::DnsV1beta2::ResponsePolicyRule, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
861
+
712
862
  end
713
863
  end
714
864
  end
@@ -916,18 +916,16 @@ module Google
916
916
  # Request-specific options
917
917
  #
918
918
  # @yield [result, err] Result & error if block supplied
919
- # @yieldparam result [Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse] parsed result object
919
+ # @yieldparam result [NilClass] No result returned for this method
920
920
  # @yieldparam err [StandardError] error object if request failed
921
921
  #
922
- # @return [Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse]
922
+ # @return [void]
923
923
  #
924
924
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
925
925
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
926
926
  # @raise [Google::Apis::AuthorizationError] Authorization is required
927
927
  def delete_project_managed_zone_rrset(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
928
928
  command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', options)
929
- command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse::Representation
930
- command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse
931
929
  command.params['project'] = project unless project.nil?
932
930
  command.params['managedZone'] = managed_zone unless managed_zone.nil?
933
931
  command.params['name'] = name unless name.nil?
@@ -1078,6 +1076,479 @@ module Google
1078
1076
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1079
1077
  execute_or_queue_command(command, &block)
1080
1078
  end
1079
+
1080
+ # Create a new Response Policy
1081
+ # @param [String] project
1082
+ # Identifies the project addressed by this request.
1083
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicy] response_policy_object
1084
+ # @param [String] client_operation_id
1085
+ # For mutating operation requests only. An optional identifier specified by the
1086
+ # client. Must be unique for operation resources in the Operations collection.
1087
+ # @param [String] fields
1088
+ # Selector specifying which fields to include in a partial response.
1089
+ # @param [String] quota_user
1090
+ # Available to use for quota purposes for server-side applications. Can be any
1091
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1092
+ # @param [Google::Apis::RequestOptions] options
1093
+ # Request-specific options
1094
+ #
1095
+ # @yield [result, err] Result & error if block supplied
1096
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicy] parsed result object
1097
+ # @yieldparam err [StandardError] error object if request failed
1098
+ #
1099
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicy]
1100
+ #
1101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1104
+ def create_response_policy(project, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1105
+ command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/responsePolicies', options)
1106
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1107
+ command.request_object = response_policy_object
1108
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1109
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicy
1110
+ command.params['project'] = project unless project.nil?
1111
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1112
+ command.query['fields'] = fields unless fields.nil?
1113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1114
+ execute_or_queue_command(command, &block)
1115
+ end
1116
+
1117
+ # Delete a previously created Response Policy. Will fail if the response policy
1118
+ # is non-empty or still being referenced by a network.
1119
+ # @param [String] project
1120
+ # Identifies the project addressed by this request.
1121
+ # @param [String] response_policy
1122
+ # User assigned name of the Response Policy addressed by this request.
1123
+ # @param [String] client_operation_id
1124
+ # For mutating operation requests only. An optional identifier specified by the
1125
+ # client. Must be unique for operation resources in the Operations collection.
1126
+ # @param [String] fields
1127
+ # Selector specifying which fields to include in a partial response.
1128
+ # @param [String] quota_user
1129
+ # Available to use for quota purposes for server-side applications. Can be any
1130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1131
+ # @param [Google::Apis::RequestOptions] options
1132
+ # Request-specific options
1133
+ #
1134
+ # @yield [result, err] Result & error if block supplied
1135
+ # @yieldparam result [NilClass] No result returned for this method
1136
+ # @yieldparam err [StandardError] error object if request failed
1137
+ #
1138
+ # @return [void]
1139
+ #
1140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1143
+ def delete_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1144
+ command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1145
+ command.params['project'] = project unless project.nil?
1146
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1147
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1148
+ command.query['fields'] = fields unless fields.nil?
1149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
+ execute_or_queue_command(command, &block)
1151
+ end
1152
+
1153
+ # Fetch the representation of an existing Response Policy.
1154
+ # @param [String] project
1155
+ # Identifies the project addressed by this request.
1156
+ # @param [String] response_policy
1157
+ # User assigned name of the Response Policy addressed by this request.
1158
+ # @param [String] client_operation_id
1159
+ # For mutating operation requests only. An optional identifier specified by the
1160
+ # client. Must be unique for operation resources in the Operations collection.
1161
+ # @param [String] fields
1162
+ # Selector specifying which fields to include in a partial response.
1163
+ # @param [String] quota_user
1164
+ # Available to use for quota purposes for server-side applications. Can be any
1165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1166
+ # @param [Google::Apis::RequestOptions] options
1167
+ # Request-specific options
1168
+ #
1169
+ # @yield [result, err] Result & error if block supplied
1170
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicy] parsed result object
1171
+ # @yieldparam err [StandardError] error object if request failed
1172
+ #
1173
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicy]
1174
+ #
1175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1178
+ def get_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1179
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1180
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1181
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicy
1182
+ command.params['project'] = project unless project.nil?
1183
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1184
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1185
+ command.query['fields'] = fields unless fields.nil?
1186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1187
+ execute_or_queue_command(command, &block)
1188
+ end
1189
+
1190
+ # Enumerate all Response Policies associated with a project.
1191
+ # @param [String] project
1192
+ # Identifies the project addressed by this request.
1193
+ # @param [Fixnum] max_results
1194
+ # Optional. Maximum number of results to be returned. If unspecified, the server
1195
+ # will decide how many results to return.
1196
+ # @param [String] page_token
1197
+ # Optional. A tag returned by a previous list request that was truncated. Use
1198
+ # this parameter to continue a previous list request.
1199
+ # @param [String] fields
1200
+ # Selector specifying which fields to include in a partial response.
1201
+ # @param [String] quota_user
1202
+ # Available to use for quota purposes for server-side applications. Can be any
1203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1204
+ # @param [Google::Apis::RequestOptions] options
1205
+ # Request-specific options
1206
+ #
1207
+ # @yield [result, err] Result & error if block supplied
1208
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePoliciesListResponse] parsed result object
1209
+ # @yieldparam err [StandardError] error object if request failed
1210
+ #
1211
+ # @return [Google::Apis::DnsV1beta2::ResponsePoliciesListResponse]
1212
+ #
1213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1216
+ def list_response_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1217
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies', options)
1218
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesListResponse::Representation
1219
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesListResponse
1220
+ command.params['project'] = project unless project.nil?
1221
+ command.query['maxResults'] = max_results unless max_results.nil?
1222
+ command.query['pageToken'] = page_token unless page_token.nil?
1223
+ command.query['fields'] = fields unless fields.nil?
1224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1225
+ execute_or_queue_command(command, &block)
1226
+ end
1227
+
1228
+ # Apply a partial update to an existing Response Policy.
1229
+ # @param [String] project
1230
+ # Identifies the project addressed by this request.
1231
+ # @param [String] response_policy
1232
+ # User assigned name of the Respones Policy addressed by this request.
1233
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicy] response_policy_object
1234
+ # @param [String] client_operation_id
1235
+ # For mutating operation requests only. An optional identifier specified by the
1236
+ # client. Must be unique for operation resources in the Operations collection.
1237
+ # @param [String] fields
1238
+ # Selector specifying which fields to include in a partial response.
1239
+ # @param [String] quota_user
1240
+ # Available to use for quota purposes for server-side applications. Can be any
1241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1242
+ # @param [Google::Apis::RequestOptions] options
1243
+ # Request-specific options
1244
+ #
1245
+ # @yield [result, err] Result & error if block supplied
1246
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse] parsed result object
1247
+ # @yieldparam err [StandardError] error object if request failed
1248
+ #
1249
+ # @return [Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse]
1250
+ #
1251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1254
+ def patch_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1255
+ command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1256
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1257
+ command.request_object = response_policy_object
1258
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse::Representation
1259
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse
1260
+ command.params['project'] = project unless project.nil?
1261
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1262
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1263
+ command.query['fields'] = fields unless fields.nil?
1264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1265
+ execute_or_queue_command(command, &block)
1266
+ end
1267
+
1268
+ # Update an existing Response Policy.
1269
+ # @param [String] project
1270
+ # Identifies the project addressed by this request.
1271
+ # @param [String] response_policy
1272
+ # User assigned name of the Response Policy addressed by this request.
1273
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicy] response_policy_object
1274
+ # @param [String] client_operation_id
1275
+ # For mutating operation requests only. An optional identifier specified by the
1276
+ # client. Must be unique for operation resources in the Operations collection.
1277
+ # @param [String] fields
1278
+ # Selector specifying which fields to include in a partial response.
1279
+ # @param [String] quota_user
1280
+ # Available to use for quota purposes for server-side applications. Can be any
1281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1282
+ # @param [Google::Apis::RequestOptions] options
1283
+ # Request-specific options
1284
+ #
1285
+ # @yield [result, err] Result & error if block supplied
1286
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse] parsed result object
1287
+ # @yieldparam err [StandardError] error object if request failed
1288
+ #
1289
+ # @return [Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse]
1290
+ #
1291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1294
+ def update_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1295
+ command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1296
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1297
+ command.request_object = response_policy_object
1298
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse::Representation
1299
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse
1300
+ command.params['project'] = project unless project.nil?
1301
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1302
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1303
+ command.query['fields'] = fields unless fields.nil?
1304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1305
+ execute_or_queue_command(command, &block)
1306
+ end
1307
+
1308
+ # Create a new Response Policy Rule.
1309
+ # @param [String] project
1310
+ # Identifies the project addressed by this request.
1311
+ # @param [String] response_policy
1312
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1313
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicyRule] response_policy_rule_object
1314
+ # @param [String] client_operation_id
1315
+ # For mutating operation requests only. An optional identifier specified by the
1316
+ # client. Must be unique for operation resources in the Operations collection.
1317
+ # @param [String] fields
1318
+ # Selector specifying which fields to include in a partial response.
1319
+ # @param [String] quota_user
1320
+ # Available to use for quota purposes for server-side applications. Can be any
1321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1322
+ # @param [Google::Apis::RequestOptions] options
1323
+ # Request-specific options
1324
+ #
1325
+ # @yield [result, err] Result & error if block supplied
1326
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRule] parsed result object
1327
+ # @yieldparam err [StandardError] error object if request failed
1328
+ #
1329
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRule]
1330
+ #
1331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1334
+ def create_response_policy_rule(project, response_policy, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1335
+ command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules', options)
1336
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1337
+ command.request_object = response_policy_rule_object
1338
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1339
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRule
1340
+ command.params['project'] = project unless project.nil?
1341
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1342
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1343
+ command.query['fields'] = fields unless fields.nil?
1344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1345
+ execute_or_queue_command(command, &block)
1346
+ end
1347
+
1348
+ # Delete a previously created Response Policy Rule.
1349
+ # @param [String] project
1350
+ # Identifies the project addressed by this request.
1351
+ # @param [String] response_policy
1352
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1353
+ # @param [String] response_policy_rule
1354
+ # User assigned name of the Response Policy Rule addressed by this request.
1355
+ # @param [String] client_operation_id
1356
+ # For mutating operation requests only. An optional identifier specified by the
1357
+ # client. Must be unique for operation resources in the Operations collection.
1358
+ # @param [String] fields
1359
+ # Selector specifying which fields to include in a partial response.
1360
+ # @param [String] quota_user
1361
+ # Available to use for quota purposes for server-side applications. Can be any
1362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1363
+ # @param [Google::Apis::RequestOptions] options
1364
+ # Request-specific options
1365
+ #
1366
+ # @yield [result, err] Result & error if block supplied
1367
+ # @yieldparam result [NilClass] No result returned for this method
1368
+ # @yieldparam err [StandardError] error object if request failed
1369
+ #
1370
+ # @return [void]
1371
+ #
1372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1375
+ def delete_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1376
+ command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1377
+ command.params['project'] = project unless project.nil?
1378
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1379
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1380
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1381
+ command.query['fields'] = fields unless fields.nil?
1382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1383
+ execute_or_queue_command(command, &block)
1384
+ end
1385
+
1386
+ # Fetch the representation of an existing Response Policy Rule.
1387
+ # @param [String] project
1388
+ # Identifies the project addressed by this request.
1389
+ # @param [String] response_policy
1390
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1391
+ # @param [String] response_policy_rule
1392
+ # User assigned name of the Response Policy Rule addressed by this request.
1393
+ # @param [String] client_operation_id
1394
+ # For mutating operation requests only. An optional identifier specified by the
1395
+ # client. Must be unique for operation resources in the Operations collection.
1396
+ # @param [String] fields
1397
+ # Selector specifying which fields to include in a partial response.
1398
+ # @param [String] quota_user
1399
+ # Available to use for quota purposes for server-side applications. Can be any
1400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1401
+ # @param [Google::Apis::RequestOptions] options
1402
+ # Request-specific options
1403
+ #
1404
+ # @yield [result, err] Result & error if block supplied
1405
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRule] parsed result object
1406
+ # @yieldparam err [StandardError] error object if request failed
1407
+ #
1408
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRule]
1409
+ #
1410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1413
+ def get_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1414
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1415
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1416
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRule
1417
+ command.params['project'] = project unless project.nil?
1418
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1419
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1420
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1421
+ command.query['fields'] = fields unless fields.nil?
1422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1423
+ execute_or_queue_command(command, &block)
1424
+ end
1425
+
1426
+ # Enumerate all Response Policy Rules associated with a project.
1427
+ # @param [String] project
1428
+ # Identifies the project addressed by this request.
1429
+ # @param [String] response_policy
1430
+ # User assigned name of the Response Policy to list.
1431
+ # @param [Fixnum] max_results
1432
+ # Optional. Maximum number of results to be returned. If unspecified, the server
1433
+ # will decide how many results to return.
1434
+ # @param [String] page_token
1435
+ # Optional. A tag returned by a previous list request that was truncated. Use
1436
+ # this parameter to continue a previous list request.
1437
+ # @param [String] fields
1438
+ # Selector specifying which fields to include in a partial response.
1439
+ # @param [String] quota_user
1440
+ # Available to use for quota purposes for server-side applications. Can be any
1441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1442
+ # @param [Google::Apis::RequestOptions] options
1443
+ # Request-specific options
1444
+ #
1445
+ # @yield [result, err] Result & error if block supplied
1446
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse] parsed result object
1447
+ # @yieldparam err [StandardError] error object if request failed
1448
+ #
1449
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse]
1450
+ #
1451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1454
+ def list_response_policy_rules(project, response_policy, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1455
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules', options)
1456
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse::Representation
1457
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse
1458
+ command.params['project'] = project unless project.nil?
1459
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1460
+ command.query['maxResults'] = max_results unless max_results.nil?
1461
+ command.query['pageToken'] = page_token unless page_token.nil?
1462
+ command.query['fields'] = fields unless fields.nil?
1463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1464
+ execute_or_queue_command(command, &block)
1465
+ end
1466
+
1467
+ # Apply a partial update to an existing Response Policy Rule.
1468
+ # @param [String] project
1469
+ # Identifies the project addressed by this request.
1470
+ # @param [String] response_policy
1471
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1472
+ # @param [String] response_policy_rule
1473
+ # User assigned name of the Response Policy Rule addressed by this request.
1474
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicyRule] response_policy_rule_object
1475
+ # @param [String] client_operation_id
1476
+ # For mutating operation requests only. An optional identifier specified by the
1477
+ # client. Must be unique for operation resources in the Operations collection.
1478
+ # @param [String] fields
1479
+ # Selector specifying which fields to include in a partial response.
1480
+ # @param [String] quota_user
1481
+ # Available to use for quota purposes for server-side applications. Can be any
1482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1483
+ # @param [Google::Apis::RequestOptions] options
1484
+ # Request-specific options
1485
+ #
1486
+ # @yield [result, err] Result & error if block supplied
1487
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse] parsed result object
1488
+ # @yieldparam err [StandardError] error object if request failed
1489
+ #
1490
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse]
1491
+ #
1492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1495
+ def patch_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1496
+ command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1497
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1498
+ command.request_object = response_policy_rule_object
1499
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse::Representation
1500
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse
1501
+ command.params['project'] = project unless project.nil?
1502
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1503
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1504
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1505
+ command.query['fields'] = fields unless fields.nil?
1506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1507
+ execute_or_queue_command(command, &block)
1508
+ end
1509
+
1510
+ # Update an existing Response Policy Rule.
1511
+ # @param [String] project
1512
+ # Identifies the project addressed by this request.
1513
+ # @param [String] response_policy
1514
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1515
+ # @param [String] response_policy_rule
1516
+ # User assigned name of the Response Policy Rule addressed by this request.
1517
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicyRule] response_policy_rule_object
1518
+ # @param [String] client_operation_id
1519
+ # For mutating operation requests only. An optional identifier specified by the
1520
+ # client. Must be unique for operation resources in the Operations collection.
1521
+ # @param [String] fields
1522
+ # Selector specifying which fields to include in a partial response.
1523
+ # @param [String] quota_user
1524
+ # Available to use for quota purposes for server-side applications. Can be any
1525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1526
+ # @param [Google::Apis::RequestOptions] options
1527
+ # Request-specific options
1528
+ #
1529
+ # @yield [result, err] Result & error if block supplied
1530
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse] parsed result object
1531
+ # @yieldparam err [StandardError] error object if request failed
1532
+ #
1533
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse]
1534
+ #
1535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1538
+ def update_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1539
+ command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1540
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1541
+ command.request_object = response_policy_rule_object
1542
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse::Representation
1543
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse
1544
+ command.params['project'] = project unless project.nil?
1545
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1546
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1547
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1548
+ command.query['fields'] = fields unless fields.nil?
1549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1550
+ execute_or_queue_command(command, &block)
1551
+ end
1081
1552
 
1082
1553
  protected
1083
1554
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dns_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dns_v1beta2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1beta2/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1beta2/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dns_v1beta2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud DNS API V1beta2