google-api-client 0.29.2 → 0.30.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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/admin_reports_v1.rb +1 -1
  4. data/generated/google/apis/admin_reports_v1/classes.rb +106 -0
  5. data/generated/google/apis/admin_reports_v1/representations.rb +51 -0
  6. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  7. data/generated/google/apis/alertcenter_v1beta1/classes.rb +6 -0
  8. data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/androidmanagement_v1/classes.rb +2 -3
  11. data/generated/google/apis/composer_v1.rb +1 -1
  12. data/generated/google/apis/composer_v1/classes.rb +24 -21
  13. data/generated/google/apis/composer_v1/service.rb +4 -2
  14. data/generated/google/apis/composer_v1beta1.rb +1 -1
  15. data/generated/google/apis/composer_v1beta1/classes.rb +24 -21
  16. data/generated/google/apis/composer_v1beta1/service.rb +4 -2
  17. data/generated/google/apis/container_v1.rb +1 -1
  18. data/generated/google/apis/container_v1/classes.rb +1 -1
  19. data/generated/google/apis/container_v1beta1.rb +1 -1
  20. data/generated/google/apis/container_v1beta1/classes.rb +36 -1
  21. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  22. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  23. data/generated/google/apis/dataflow_v1b3/service.rb +44 -2
  24. data/generated/google/apis/dialogflow_v2.rb +1 -1
  25. data/generated/google/apis/dialogflow_v2/classes.rb +4 -2
  26. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  27. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
  28. data/generated/google/apis/fcm_v1.rb +1 -1
  29. data/generated/google/apis/fcm_v1/classes.rb +19 -0
  30. data/generated/google/apis/fcm_v1/representations.rb +14 -0
  31. data/generated/google/apis/games_v1.rb +1 -4
  32. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  33. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2 -2
  34. data/generated/google/apis/healthcare_v1alpha2/service.rb +21 -21
  35. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  36. data/generated/google/apis/healthcare_v1beta1/service.rb +21 -21
  37. data/generated/google/apis/logging_v2.rb +1 -1
  38. data/generated/google/apis/logging_v2/classes.rb +8 -1
  39. data/generated/google/apis/logging_v2/representations.rb +1 -0
  40. data/generated/google/apis/redis_v1.rb +1 -1
  41. data/generated/google/apis/redis_v1/classes.rb +1 -1
  42. data/generated/google/apis/redis_v1beta1.rb +1 -1
  43. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  44. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  45. data/generated/google/apis/remotebuildexecution_v1/classes.rb +25 -0
  46. data/generated/google/apis/remotebuildexecution_v1/representations.rb +14 -0
  47. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  48. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +25 -0
  49. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +14 -0
  50. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  51. data/generated/google/apis/remotebuildexecution_v2/classes.rb +25 -0
  52. data/generated/google/apis/remotebuildexecution_v2/representations.rb +14 -0
  53. data/generated/google/apis/run_v1alpha1.rb +1 -1
  54. data/generated/google/apis/run_v1alpha1/classes.rb +354 -0
  55. data/generated/google/apis/run_v1alpha1/representations.rb +129 -0
  56. data/generated/google/apis/run_v1alpha1/service.rb +176 -0
  57. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  58. data/generated/google/apis/securitycenter_v1.rb +1 -1
  59. data/generated/google/apis/securitycenter_v1/classes.rb +2 -4
  60. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  61. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -4
  62. data/generated/google/apis/tagmanager_v1.rb +1 -1
  63. data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
  64. data/generated/google/apis/tagmanager_v2.rb +1 -1
  65. data/generated/google/apis/tagmanager_v2/classes.rb +46 -0
  66. data/generated/google/apis/tagmanager_v2/representations.rb +29 -0
  67. data/generated/google/apis/tagmanager_v2/service.rb +219 -0
  68. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  69. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +6 -1
  70. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +1 -0
  71. data/generated/google/apis/youtube_analytics_v1.rb +2 -17
  72. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -311
  73. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -148
  74. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -419
  75. data/lib/google/apis/version.rb +1 -1
  76. metadata +2 -6
  77. data/generated/google/apis/youtube_analytics_v1beta1.rb +0 -46
  78. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +0 -337
  79. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +0 -174
  80. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +0 -473
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
27
27
  module SecuritycenterV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190503'
29
+ REVISION = '20190522'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1481,10 +1481,8 @@ module Google
1481
1481
  # The source's display name.
1482
1482
  # A source's display name must be unique amongst its siblings, for example,
1483
1483
  # two sources with the same parent can't share the same display name.
1484
- # The display name must start and end with a letter or digit, may contain
1485
- # letters, digits, spaces, hyphens, and underscores, and can be no longer
1486
- # than 32 characters. This is captured by the regular expression:
1487
- # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,30`[\p`L`\p`N`])?.
1484
+ # The display name must have a length between 1 and 64 characters
1485
+ # (inclusive).
1488
1486
  # Corresponds to the JSON property `displayName`
1489
1487
  # @return [String]
1490
1488
  attr_accessor :display_name
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
27
27
  module SecuritycenterV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20190503'
29
+ REVISION = '20190522'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1368,10 +1368,8 @@ module Google
1368
1368
  # The source’s display name.
1369
1369
  # A source’s display name must be unique amongst its siblings, for example,
1370
1370
  # two sources with the same parent can't share the same display name.
1371
- # The display name must start and end with a letter or digit, may contain
1372
- # letters, digits, spaces, hyphens, and underscores, and can be no longer
1373
- # than 32 characters. This is captured by the regular expression:
1374
- # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,30`[\p`L`\p`N`])?.
1371
+ # The display name must have a length between 1 and 64 characters
1372
+ # (inclusive).
1375
1373
  # Corresponds to the JSON property `displayName`
1376
1374
  # @return [String]
1377
1375
  attr_accessor :display_name
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/tag-manager/api/v1/
26
26
  module TagmanagerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190220'
28
+ REVISION = '20190516'
29
29
 
30
30
  # Delete your Google Tag Manager containers
31
31
  AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
@@ -923,6 +923,8 @@ module Google
923
923
  # - map: A map of parameters should be specified
924
924
  # - template: The value represents any text; this can include variable
925
925
  # references (even variable references that might return non-string types)
926
+ # - trigger_reference: The value represents a trigger, represented as the
927
+ # trigger id
926
928
  # Corresponds to the JSON property `type`
927
929
  # @return [String]
928
930
  attr_accessor :type
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/tag-manager/api/v2/
26
26
  module TagmanagerV2
27
27
  VERSION = 'V2'
28
- REVISION = '20190220'
28
+ REVISION = '20190516'
29
29
 
30
30
  # Delete your Google Tag Manager containers
31
31
  AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
@@ -1155,6 +1155,31 @@ module Google
1155
1155
  end
1156
1156
  end
1157
1157
 
1158
+ #
1159
+ class ListTemplatesResponse
1160
+ include Google::Apis::Core::Hashable
1161
+
1162
+ # Continuation token for fetching the next page of results.
1163
+ # Corresponds to the JSON property `nextPageToken`
1164
+ # @return [String]
1165
+ attr_accessor :next_page_token
1166
+
1167
+ # All GTM Custom Templates of a GTM Container.
1168
+ # Corresponds to the JSON property `template`
1169
+ # @return [Array<Google::Apis::TagmanagerV2::CustomTemplate>]
1170
+ attr_accessor :template
1171
+
1172
+ def initialize(**args)
1173
+ update!(**args)
1174
+ end
1175
+
1176
+ # Update properties of this object
1177
+ def update!(**args)
1178
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1179
+ @template = args[:template] if args.key?(:template)
1180
+ end
1181
+ end
1182
+
1158
1183
  # List triggers response.
1159
1184
  class ListTriggersResponse
1160
1185
  include Google::Apis::Core::Hashable
@@ -1334,6 +1359,8 @@ module Google
1334
1359
  # - map: A map of parameters should be specified
1335
1360
  # - template: The value represents any text; this can include variable
1336
1361
  # references (even variable references that might return non-string types)
1362
+ # - trigger_reference: The value represents a trigger, represented as the
1363
+ # trigger id
1337
1364
  # Corresponds to the JSON property `type`
1338
1365
  # @return [String]
1339
1366
  attr_accessor :type
@@ -1474,6 +1501,25 @@ module Google
1474
1501
  end
1475
1502
  end
1476
1503
 
1504
+ # The result of reverting a template in a workspace.
1505
+ class RevertTemplateResponse
1506
+ include Google::Apis::Core::Hashable
1507
+
1508
+ # Represents a Google Tag Manager Custom Template's contents.
1509
+ # Corresponds to the JSON property `template`
1510
+ # @return [Google::Apis::TagmanagerV2::CustomTemplate]
1511
+ attr_accessor :template
1512
+
1513
+ def initialize(**args)
1514
+ update!(**args)
1515
+ end
1516
+
1517
+ # Update properties of this object
1518
+ def update!(**args)
1519
+ @template = args[:template] if args.key?(:template)
1520
+ end
1521
+ end
1522
+
1477
1523
  # The result of reverting a trigger in a workspace.
1478
1524
  class RevertTriggerResponse
1479
1525
  include Google::Apis::Core::Hashable
@@ -166,6 +166,12 @@ module Google
166
166
  include Google::Apis::Core::JsonObjectSupport
167
167
  end
168
168
 
169
+ class ListTemplatesResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
169
175
  class ListTriggersResponse
170
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
177
 
@@ -238,6 +244,12 @@ module Google
238
244
  include Google::Apis::Core::JsonObjectSupport
239
245
  end
240
246
 
247
+ class RevertTemplateResponse
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
241
253
  class RevertTriggerResponse
242
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
255
 
@@ -641,6 +653,15 @@ module Google
641
653
  end
642
654
  end
643
655
 
656
+ class ListTemplatesResponse
657
+ # @private
658
+ class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :next_page_token, as: 'nextPageToken'
660
+ collection :template, as: 'template', class: Google::Apis::TagmanagerV2::CustomTemplate, decorator: Google::Apis::TagmanagerV2::CustomTemplate::Representation
661
+
662
+ end
663
+ end
664
+
644
665
  class ListTriggersResponse
645
666
  # @private
646
667
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -752,6 +773,14 @@ module Google
752
773
  end
753
774
  end
754
775
 
776
+ class RevertTemplateResponse
777
+ # @private
778
+ class Representation < Google::Apis::Core::JsonRepresentation
779
+ property :template, as: 'template', class: Google::Apis::TagmanagerV2::CustomTemplate, decorator: Google::Apis::TagmanagerV2::CustomTemplate::Representation
780
+
781
+ end
782
+ end
783
+
755
784
  class RevertTriggerResponse
756
785
  # @private
757
786
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1909,6 +1909,225 @@ module Google
1909
1909
  execute_or_queue_command(command, &block)
1910
1910
  end
1911
1911
 
1912
+ # Creates a GTM Custom Template.
1913
+ # @param [String] parent
1914
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1915
+ # container_id`/workspaces/`workspace_id`
1916
+ # @param [Google::Apis::TagmanagerV2::CustomTemplate] custom_template_object
1917
+ # @param [String] fields
1918
+ # Selector specifying which fields to include in a partial response.
1919
+ # @param [String] quota_user
1920
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1921
+ # characters.
1922
+ # @param [String] user_ip
1923
+ # Deprecated. Please use quotaUser instead.
1924
+ # @param [Google::Apis::RequestOptions] options
1925
+ # Request-specific options
1926
+ #
1927
+ # @yield [result, err] Result & error if block supplied
1928
+ # @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
1929
+ # @yieldparam err [StandardError] error object if request failed
1930
+ #
1931
+ # @return [Google::Apis::TagmanagerV2::CustomTemplate]
1932
+ #
1933
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1934
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1935
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1936
+ def create_account_container_workspace_template(parent, custom_template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1937
+ command = make_simple_command(:post, '{+parent}/templates', options)
1938
+ command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
1939
+ command.request_object = custom_template_object
1940
+ command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
1941
+ command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
1942
+ command.params['parent'] = parent unless parent.nil?
1943
+ command.query['fields'] = fields unless fields.nil?
1944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1945
+ command.query['userIp'] = user_ip unless user_ip.nil?
1946
+ execute_or_queue_command(command, &block)
1947
+ end
1948
+
1949
+ # Deletes a GTM Template.
1950
+ # @param [String] path
1951
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
1952
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
1953
+ # @param [String] fields
1954
+ # Selector specifying which fields to include in a partial response.
1955
+ # @param [String] quota_user
1956
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1957
+ # characters.
1958
+ # @param [String] user_ip
1959
+ # Deprecated. Please use quotaUser instead.
1960
+ # @param [Google::Apis::RequestOptions] options
1961
+ # Request-specific options
1962
+ #
1963
+ # @yield [result, err] Result & error if block supplied
1964
+ # @yieldparam result [NilClass] No result returned for this method
1965
+ # @yieldparam err [StandardError] error object if request failed
1966
+ #
1967
+ # @return [void]
1968
+ #
1969
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1970
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1971
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1972
+ def delete_account_container_workspace_template(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1973
+ command = make_simple_command(:delete, '{+path}', options)
1974
+ command.params['path'] = path unless path.nil?
1975
+ command.query['fields'] = fields unless fields.nil?
1976
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1977
+ command.query['userIp'] = user_ip unless user_ip.nil?
1978
+ execute_or_queue_command(command, &block)
1979
+ end
1980
+
1981
+ # Gets a GTM Template.
1982
+ # @param [String] path
1983
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
1984
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
1985
+ # @param [String] fields
1986
+ # Selector specifying which fields to include in a partial response.
1987
+ # @param [String] quota_user
1988
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1989
+ # characters.
1990
+ # @param [String] user_ip
1991
+ # Deprecated. Please use quotaUser instead.
1992
+ # @param [Google::Apis::RequestOptions] options
1993
+ # Request-specific options
1994
+ #
1995
+ # @yield [result, err] Result & error if block supplied
1996
+ # @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
1997
+ # @yieldparam err [StandardError] error object if request failed
1998
+ #
1999
+ # @return [Google::Apis::TagmanagerV2::CustomTemplate]
2000
+ #
2001
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2002
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2003
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2004
+ def get_account_container_workspace_template(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2005
+ command = make_simple_command(:get, '{+path}', options)
2006
+ command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
2007
+ command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
2008
+ command.params['path'] = path unless path.nil?
2009
+ command.query['fields'] = fields unless fields.nil?
2010
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2011
+ command.query['userIp'] = user_ip unless user_ip.nil?
2012
+ execute_or_queue_command(command, &block)
2013
+ end
2014
+
2015
+ # Lists all GTM Templates of a GTM container workspace.
2016
+ # @param [String] parent
2017
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2018
+ # container_id`/workspaces/`workspace_id`
2019
+ # @param [String] page_token
2020
+ # Continuation token for fetching the next page of results.
2021
+ # @param [String] fields
2022
+ # Selector specifying which fields to include in a partial response.
2023
+ # @param [String] quota_user
2024
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2025
+ # characters.
2026
+ # @param [String] user_ip
2027
+ # Deprecated. Please use quotaUser instead.
2028
+ # @param [Google::Apis::RequestOptions] options
2029
+ # Request-specific options
2030
+ #
2031
+ # @yield [result, err] Result & error if block supplied
2032
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListTemplatesResponse] parsed result object
2033
+ # @yieldparam err [StandardError] error object if request failed
2034
+ #
2035
+ # @return [Google::Apis::TagmanagerV2::ListTemplatesResponse]
2036
+ #
2037
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2038
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2039
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2040
+ def list_account_container_workspace_templates(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2041
+ command = make_simple_command(:get, '{+parent}/templates', options)
2042
+ command.response_representation = Google::Apis::TagmanagerV2::ListTemplatesResponse::Representation
2043
+ command.response_class = Google::Apis::TagmanagerV2::ListTemplatesResponse
2044
+ command.params['parent'] = parent unless parent.nil?
2045
+ command.query['pageToken'] = page_token unless page_token.nil?
2046
+ command.query['fields'] = fields unless fields.nil?
2047
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2048
+ command.query['userIp'] = user_ip unless user_ip.nil?
2049
+ execute_or_queue_command(command, &block)
2050
+ end
2051
+
2052
+ # Reverts changes to a GTM Template in a GTM Workspace.
2053
+ # @param [String] path
2054
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
2055
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
2056
+ # @param [String] fingerprint
2057
+ # When provided, this fingerprint must match the fingerprint of the template in
2058
+ # storage.
2059
+ # @param [String] fields
2060
+ # Selector specifying which fields to include in a partial response.
2061
+ # @param [String] quota_user
2062
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2063
+ # characters.
2064
+ # @param [String] user_ip
2065
+ # Deprecated. Please use quotaUser instead.
2066
+ # @param [Google::Apis::RequestOptions] options
2067
+ # Request-specific options
2068
+ #
2069
+ # @yield [result, err] Result & error if block supplied
2070
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertTemplateResponse] parsed result object
2071
+ # @yieldparam err [StandardError] error object if request failed
2072
+ #
2073
+ # @return [Google::Apis::TagmanagerV2::RevertTemplateResponse]
2074
+ #
2075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2078
+ def revert_account_container_workspace_template(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2079
+ command = make_simple_command(:post, '{+path}:revert', options)
2080
+ command.response_representation = Google::Apis::TagmanagerV2::RevertTemplateResponse::Representation
2081
+ command.response_class = Google::Apis::TagmanagerV2::RevertTemplateResponse
2082
+ command.params['path'] = path unless path.nil?
2083
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2084
+ command.query['fields'] = fields unless fields.nil?
2085
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2086
+ command.query['userIp'] = user_ip unless user_ip.nil?
2087
+ execute_or_queue_command(command, &block)
2088
+ end
2089
+
2090
+ # Updates a GTM Template.
2091
+ # @param [String] path
2092
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
2093
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
2094
+ # @param [Google::Apis::TagmanagerV2::CustomTemplate] custom_template_object
2095
+ # @param [String] fingerprint
2096
+ # When provided, this fingerprint must match the fingerprint of the templates in
2097
+ # storage.
2098
+ # @param [String] fields
2099
+ # Selector specifying which fields to include in a partial response.
2100
+ # @param [String] quota_user
2101
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2102
+ # characters.
2103
+ # @param [String] user_ip
2104
+ # Deprecated. Please use quotaUser instead.
2105
+ # @param [Google::Apis::RequestOptions] options
2106
+ # Request-specific options
2107
+ #
2108
+ # @yield [result, err] Result & error if block supplied
2109
+ # @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
2110
+ # @yieldparam err [StandardError] error object if request failed
2111
+ #
2112
+ # @return [Google::Apis::TagmanagerV2::CustomTemplate]
2113
+ #
2114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2117
+ def update_account_container_workspace_template(path, custom_template_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2118
+ command = make_simple_command(:put, '{+path}', options)
2119
+ command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
2120
+ command.request_object = custom_template_object
2121
+ command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
2122
+ command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
2123
+ command.params['path'] = path unless path.nil?
2124
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2125
+ command.query['fields'] = fields unless fields.nil?
2126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2127
+ command.query['userIp'] = user_ip unless user_ip.nil?
2128
+ execute_or_queue_command(command, &block)
2129
+ end
2130
+
1912
2131
  # Creates a GTM Trigger.
1913
2132
  # @param [String] parent
1914
2133
  # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/`
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/security-scanner/
26
26
  module WebsecurityscannerV1beta
27
27
  VERSION = 'V1beta'
28
- REVISION = '20190503'
28
+ REVISION = '20190519'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -532,7 +532,6 @@ module Google
532
532
  end
533
533
 
534
534
  # A ScanConfig resource contains the configurations to launch a scan.
535
- # next id: 12
536
535
  class ScanConfig
537
536
  include Google::Apis::Core::Hashable
538
537
 
@@ -580,6 +579,11 @@ module Google
580
579
  # @return [String]
581
580
  attr_accessor :name
582
581
 
582
+ # The risk level selected for the scan
583
+ # Corresponds to the JSON property `riskLevel`
584
+ # @return [String]
585
+ attr_accessor :risk_level
586
+
583
587
  # Scan schedule configuration.
584
588
  # Corresponds to the JSON property `schedule`
585
589
  # @return [Google::Apis::WebsecurityscannerV1beta::Schedule]
@@ -615,6 +619,7 @@ module Google
615
619
  @latest_run = args[:latest_run] if args.key?(:latest_run)
616
620
  @max_qps = args[:max_qps] if args.key?(:max_qps)
617
621
  @name = args[:name] if args.key?(:name)
622
+ @risk_level = args[:risk_level] if args.key?(:risk_level)
618
623
  @schedule = args[:schedule] if args.key?(:schedule)
619
624
  @starting_urls = args[:starting_urls] if args.key?(:starting_urls)
620
625
  @target_platforms = args[:target_platforms] if args.key?(:target_platforms)