google-api-client 0.20.0 → 0.20.1

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2 -1
  5. data/generated/google/apis/bigquery_v2.rb +1 -1
  6. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  7. data/generated/google/apis/classroom_v1.rb +1 -1
  8. data/generated/google/apis/classroom_v1/classes.rb +2 -1
  9. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  10. data/generated/google/apis/cloudbuild_v1/classes.rb +34 -0
  11. data/generated/google/apis/cloudbuild_v1/representations.rb +17 -0
  12. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  13. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -1
  14. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  15. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +0 -1
  16. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  17. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +0 -1
  18. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  19. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +0 -1
  20. data/generated/google/apis/compute_alpha.rb +1 -1
  21. data/generated/google/apis/compute_alpha/classes.rb +536 -20
  22. data/generated/google/apis/compute_alpha/representations.rb +228 -2
  23. data/generated/google/apis/compute_alpha/service.rb +1860 -593
  24. data/generated/google/apis/compute_beta.rb +1 -1
  25. data/generated/google/apis/compute_beta/classes.rb +14 -0
  26. data/generated/google/apis/compute_beta/representations.rb +3 -0
  27. data/generated/google/apis/compute_beta/service.rb +3 -3
  28. data/generated/google/apis/compute_v1.rb +1 -1
  29. data/generated/google/apis/compute_v1/classes.rb +698 -21
  30. data/generated/google/apis/compute_v1/representations.rb +268 -0
  31. data/generated/google/apis/compute_v1/service.rb +778 -14
  32. data/generated/google/apis/content_v2.rb +1 -1
  33. data/generated/google/apis/content_v2/classes.rb +53 -1
  34. data/generated/google/apis/content_v2/representations.rb +18 -0
  35. data/generated/google/apis/content_v2/service.rb +62 -4
  36. data/generated/google/apis/dataproc_v1.rb +1 -1
  37. data/generated/google/apis/dataproc_v1/classes.rb +11 -7
  38. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  39. data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -5
  40. data/generated/google/apis/dlp_v2.rb +1 -1
  41. data/generated/google/apis/dlp_v2/classes.rb +2 -1
  42. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  43. data/generated/google/apis/dlp_v2beta1/classes.rb +2 -1
  44. data/generated/google/apis/dlp_v2beta2.rb +1 -1
  45. data/generated/google/apis/dlp_v2beta2/classes.rb +2 -1
  46. data/generated/google/apis/drive_v2.rb +1 -1
  47. data/generated/google/apis/drive_v2/classes.rb +2 -1
  48. data/generated/google/apis/drive_v2/service.rb +6 -5
  49. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  50. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +141 -1
  51. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +56 -0
  52. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +40 -0
  53. data/generated/google/apis/genomics_v1.rb +1 -1
  54. data/generated/google/apis/genomics_v1/classes.rb +0 -16
  55. data/generated/google/apis/genomics_v1/service.rb +0 -120
  56. data/generated/google/apis/groupssettings_v1.rb +1 -1
  57. data/generated/google/apis/groupssettings_v1/classes.rb +4 -3
  58. data/generated/google/apis/iam_v1.rb +1 -1
  59. data/generated/google/apis/iam_v1/classes.rb +0 -1
  60. data/generated/google/apis/manufacturers_v1.rb +1 -1
  61. data/generated/google/apis/manufacturers_v1/classes.rb +70 -7
  62. data/generated/google/apis/manufacturers_v1/representations.rb +23 -0
  63. data/generated/google/apis/manufacturers_v1/service.rb +17 -3
  64. data/generated/google/apis/partners_v2.rb +1 -1
  65. data/generated/google/apis/partners_v2/classes.rb +10 -1
  66. data/generated/google/apis/partners_v2/representations.rb +1 -0
  67. data/generated/google/apis/people_v1.rb +1 -1
  68. data/generated/google/apis/people_v1/classes.rb +2 -1
  69. data/generated/google/apis/safebrowsing_v4.rb +2 -2
  70. data/generated/google/apis/safebrowsing_v4/service.rb +1 -1
  71. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  72. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -7
  73. data/generated/google/apis/serviceuser_v1.rb +1 -1
  74. data/generated/google/apis/serviceuser_v1/classes.rb +1 -6
  75. data/generated/google/apis/spanner_v1.rb +1 -1
  76. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  77. data/generated/google/apis/storagetransfer_v1/classes.rb +25 -27
  78. data/generated/google/apis/testing_v1.rb +2 -2
  79. data/generated/google/apis/testing_v1/classes.rb +2 -1
  80. data/generated/google/apis/testing_v1/service.rb +1 -1
  81. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  82. data/lib/google/apis/version.rb +1 -1
  83. metadata +2 -2
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2
29
29
  VERSION = 'V2'
30
- REVISION = '20180328'
30
+ REVISION = '20180404'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -6363,7 +6363,8 @@ module Google
6363
6363
  # @return [Fixnum]
6364
6364
  attr_accessor :day
6365
6365
 
6366
- # Month of year. Must be from 1 to 12.
6366
+ # Month of year. Must be from 1 to 12, or 0 if specifying a date without a
6367
+ # month.
6367
6368
  # Corresponds to the JSON property `month`
6368
6369
  # @return [Fixnum]
6369
6370
  attr_accessor :month
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2beta1
29
29
  VERSION = 'V2beta1'
30
- REVISION = '20180320'
30
+ REVISION = '20180404'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -3751,7 +3751,8 @@ module Google
3751
3751
  # @return [Fixnum]
3752
3752
  attr_accessor :day
3753
3753
 
3754
- # Month of year. Must be from 1 to 12.
3754
+ # Month of year. Must be from 1 to 12, or 0 if specifying a date without a
3755
+ # month.
3755
3756
  # Corresponds to the JSON property `month`
3756
3757
  # @return [Fixnum]
3757
3758
  attr_accessor :month
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2beta2
29
29
  VERSION = 'V2beta2'
30
- REVISION = '20180320'
30
+ REVISION = '20180404'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -6317,7 +6317,8 @@ module Google
6317
6317
  # @return [Fixnum]
6318
6318
  attr_accessor :day
6319
6319
 
6320
- # Month of year. Must be from 1 to 12.
6320
+ # Month of year. Must be from 1 to 12, or 0 if specifying a date without a
6321
+ # month.
6321
6322
  # Corresponds to the JSON property `month`
6322
6323
  # @return [Fixnum]
6323
6324
  attr_accessor :month
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
29
- REVISION = '20180209'
29
+ REVISION = '20180330'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -2684,7 +2684,8 @@ module Google
2684
2684
  # @return [String]
2685
2685
  attr_accessor :value
2686
2686
 
2687
- # The visibility of this property.
2687
+ # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (
2688
+ # Default: PRIVATE)
2688
2689
  # Corresponds to the JSON property `visibility`
2689
2690
  # @return [String]
2690
2691
  attr_accessor :visibility
@@ -2303,15 +2303,15 @@ module Google
2303
2303
  execute_or_queue_command(command, &block)
2304
2304
  end
2305
2305
 
2306
- # Updates a property, or adds it if it doesn't exist. This method supports patch
2307
- # semantics.
2306
+ # Updates a property. This method supports patch semantics.
2308
2307
  # @param [String] file_id
2309
2308
  # The ID of the file.
2310
2309
  # @param [String] property_key
2311
2310
  # The key of the property.
2312
2311
  # @param [Google::Apis::DriveV2::Property] property_object
2313
2312
  # @param [String] visibility
2314
- # The visibility of the property.
2313
+ # The visibility of the property. Allowed values are PRIVATE and PUBLIC. (
2314
+ # Default: PRIVATE)
2315
2315
  # @param [String] fields
2316
2316
  # Selector specifying which fields to include in a partial response.
2317
2317
  # @param [String] quota_user
@@ -2348,14 +2348,15 @@ module Google
2348
2348
  execute_or_queue_command(command, &block)
2349
2349
  end
2350
2350
 
2351
- # Updates a property, or adds it if it doesn't exist.
2351
+ # Updates a property.
2352
2352
  # @param [String] file_id
2353
2353
  # The ID of the file.
2354
2354
  # @param [String] property_key
2355
2355
  # The key of the property.
2356
2356
  # @param [Google::Apis::DriveV2::Property] property_object
2357
2357
  # @param [String] visibility
2358
- # The visibility of the property.
2358
+ # The visibility of the property. Allowed values are PRIVATE and PUBLIC. (
2359
+ # Default: PRIVATE)
2359
2360
  # @param [String] fields
2360
2361
  # Selector specifying which fields to include in a partial response.
2361
2362
  # @param [String] quota_user
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://firebase.google.com/docs/dynamic-links/
26
26
  module FirebasedynamiclinksV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180303'
28
+ REVISION = '20180403'
29
29
 
30
30
  # View and administer all your Firebase data and settings
31
31
  AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
@@ -87,6 +87,81 @@ module Google
87
87
  end
88
88
  end
89
89
 
90
+ # Request to create a managed Short Dynamic Link.
91
+ class CreateManagedShortLinkRequest
92
+ include Google::Apis::Core::Hashable
93
+
94
+ # Information about a Dynamic Link.
95
+ # Corresponds to the JSON property `dynamicLinkInfo`
96
+ # @return [Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo]
97
+ attr_accessor :dynamic_link_info
98
+
99
+ # Full long Dynamic Link URL with desired query parameters specified.
100
+ # For example,
101
+ # "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample",
102
+ # [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-
103
+ # shortener).
104
+ # Corresponds to the JSON property `longDynamicLink`
105
+ # @return [String]
106
+ attr_accessor :long_dynamic_link
107
+
108
+ # Link name to associate with the link. It's used for marketer to identify
109
+ # manually-created links in the Firebase console
110
+ # (https://console.firebase.google.com/).
111
+ # Links must be named to be tracked.
112
+ # Corresponds to the JSON property `name`
113
+ # @return [String]
114
+ attr_accessor :name
115
+
116
+ # Short Dynamic Link suffix.
117
+ # Corresponds to the JSON property `suffix`
118
+ # @return [Google::Apis::FirebasedynamiclinksV1::Suffix]
119
+ attr_accessor :suffix
120
+
121
+ def initialize(**args)
122
+ update!(**args)
123
+ end
124
+
125
+ # Update properties of this object
126
+ def update!(**args)
127
+ @dynamic_link_info = args[:dynamic_link_info] if args.key?(:dynamic_link_info)
128
+ @long_dynamic_link = args[:long_dynamic_link] if args.key?(:long_dynamic_link)
129
+ @name = args[:name] if args.key?(:name)
130
+ @suffix = args[:suffix] if args.key?(:suffix)
131
+ end
132
+ end
133
+
134
+ # Response to create a short Dynamic Link.
135
+ class CreateManagedShortLinkResponse
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # Managed Short Link.
139
+ # Corresponds to the JSON property `managedShortLink`
140
+ # @return [Google::Apis::FirebasedynamiclinksV1::ManagedShortLink]
141
+ attr_accessor :managed_short_link
142
+
143
+ # Preview link to show the link flow chart. (debug info.)
144
+ # Corresponds to the JSON property `previewLink`
145
+ # @return [String]
146
+ attr_accessor :preview_link
147
+
148
+ # Information about potential warnings on link creation.
149
+ # Corresponds to the JSON property `warning`
150
+ # @return [Array<Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning>]
151
+ attr_accessor :warning
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @managed_short_link = args[:managed_short_link] if args.key?(:managed_short_link)
160
+ @preview_link = args[:preview_link] if args.key?(:preview_link)
161
+ @warning = args[:warning] if args.key?(:warning)
162
+ end
163
+ end
164
+
90
165
  # Request to create a short Dynamic Link.
91
166
  class CreateShortDynamicLinkRequest
92
167
  include Google::Apis::Core::Hashable
@@ -126,7 +201,7 @@ module Google
126
201
  class CreateShortDynamicLinkResponse
127
202
  include Google::Apis::Core::Hashable
128
203
 
129
- # Preivew link to show the link flow chart.
204
+ # Preview link to show the link flow chart. (debug info.)
130
205
  # Corresponds to the JSON property `previewLink`
131
206
  # @return [String]
132
207
  attr_accessor :preview_link
@@ -281,6 +356,13 @@ module Google
281
356
  # @return [Google::Apis::FirebasedynamiclinksV1::DesktopInfo]
282
357
  attr_accessor :desktop_info
283
358
 
359
+ # E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps
360
+ # More examples can be found in description of getNormalizedUriPrefix in
361
+ # j/c/g/firebase/dynamiclinks/uri/DdlDomain.java
362
+ # Corresponds to the JSON property `domainUriPrefix`
363
+ # @return [String]
364
+ attr_accessor :domain_uri_prefix
365
+
284
366
  # Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl
285
367
  # [Learn more](https://firebase.google.com/docs/dynamic-links/android/receive)
286
368
  # on how to set up Dynamic Link domain associated with your Firebase project.
@@ -324,6 +406,7 @@ module Google
324
406
  @analytics_info = args[:analytics_info] if args.key?(:analytics_info)
325
407
  @android_info = args[:android_info] if args.key?(:android_info)
326
408
  @desktop_info = args[:desktop_info] if args.key?(:desktop_info)
409
+ @domain_uri_prefix = args[:domain_uri_prefix] if args.key?(:domain_uri_prefix)
327
410
  @dynamic_link_domain = args[:dynamic_link_domain] if args.key?(:dynamic_link_domain)
328
411
  @ios_info = args[:ios_info] if args.key?(:ios_info)
329
412
  @link = args[:link] if args.key?(:link)
@@ -710,6 +793,57 @@ module Google
710
793
  end
711
794
  end
712
795
 
796
+ # Managed Short Link.
797
+ class ManagedShortLink
798
+ include Google::Apis::Core::Hashable
799
+
800
+ # Creation timestamp of the short link.
801
+ # Corresponds to the JSON property `creationTime`
802
+ # @return [String]
803
+ attr_accessor :creation_time
804
+
805
+ # Attributes that have been flagged about this short url.
806
+ # Corresponds to the JSON property `flaggedAttribute`
807
+ # @return [Array<String>]
808
+ attr_accessor :flagged_attribute
809
+
810
+ # Information about a Dynamic Link.
811
+ # Corresponds to the JSON property `info`
812
+ # @return [Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo]
813
+ attr_accessor :info
814
+
815
+ # Short durable link url, for example, "https://sample.app.goo.gl/xyz123".
816
+ # Required.
817
+ # Corresponds to the JSON property `link`
818
+ # @return [String]
819
+ attr_accessor :link
820
+
821
+ # Link name defined by the creator.
822
+ # Required.
823
+ # Corresponds to the JSON property `linkName`
824
+ # @return [String]
825
+ attr_accessor :link_name
826
+
827
+ # Visibility status of link.
828
+ # Corresponds to the JSON property `visibility`
829
+ # @return [String]
830
+ attr_accessor :visibility
831
+
832
+ def initialize(**args)
833
+ update!(**args)
834
+ end
835
+
836
+ # Update properties of this object
837
+ def update!(**args)
838
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
839
+ @flagged_attribute = args[:flagged_attribute] if args.key?(:flagged_attribute)
840
+ @info = args[:info] if args.key?(:info)
841
+ @link = args[:link] if args.key?(:link)
842
+ @link_name = args[:link_name] if args.key?(:link_name)
843
+ @visibility = args[:visibility] if args.key?(:visibility)
844
+ end
845
+ end
846
+
713
847
  # Information of navigation behavior.
714
848
  class NavigationInfo
715
849
  include Google::Apis::Core::Hashable
@@ -767,6 +901,11 @@ module Google
767
901
  class Suffix
768
902
  include Google::Apis::Core::Hashable
769
903
 
904
+ # Only applies to Option.CUSTOM.
905
+ # Corresponds to the JSON property `customSuffix`
906
+ # @return [String]
907
+ attr_accessor :custom_suffix
908
+
770
909
  # Suffix option.
771
910
  # Corresponds to the JSON property `option`
772
911
  # @return [String]
@@ -778,6 +917,7 @@ module Google
778
917
 
779
918
  # Update properties of this object
780
919
  def update!(**args)
920
+ @custom_suffix = args[:custom_suffix] if args.key?(:custom_suffix)
781
921
  @option = args[:option] if args.key?(:option)
782
922
  end
783
923
  end
@@ -34,6 +34,18 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class CreateManagedShortLinkRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CreateManagedShortLinkResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class CreateShortDynamicLinkRequest
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -112,6 +124,12 @@ module Google
112
124
  include Google::Apis::Core::JsonObjectSupport
113
125
  end
114
126
 
127
+ class ManagedShortLink
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
115
133
  class NavigationInfo
116
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
135
 
@@ -150,6 +168,29 @@ module Google
150
168
  end
151
169
  end
152
170
 
171
+ class CreateManagedShortLinkRequest
172
+ # @private
173
+ class Representation < Google::Apis::Core::JsonRepresentation
174
+ property :dynamic_link_info, as: 'dynamicLinkInfo', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo::Representation
175
+
176
+ property :long_dynamic_link, as: 'longDynamicLink'
177
+ property :name, as: 'name'
178
+ property :suffix, as: 'suffix', class: Google::Apis::FirebasedynamiclinksV1::Suffix, decorator: Google::Apis::FirebasedynamiclinksV1::Suffix::Representation
179
+
180
+ end
181
+ end
182
+
183
+ class CreateManagedShortLinkResponse
184
+ # @private
185
+ class Representation < Google::Apis::Core::JsonRepresentation
186
+ property :managed_short_link, as: 'managedShortLink', class: Google::Apis::FirebasedynamiclinksV1::ManagedShortLink, decorator: Google::Apis::FirebasedynamiclinksV1::ManagedShortLink::Representation
187
+
188
+ property :preview_link, as: 'previewLink'
189
+ collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation
190
+
191
+ end
192
+ end
193
+
153
194
  class CreateShortDynamicLinkRequest
154
195
  # @private
155
196
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -209,6 +250,7 @@ module Google
209
250
 
210
251
  property :desktop_info, as: 'desktopInfo', class: Google::Apis::FirebasedynamiclinksV1::DesktopInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DesktopInfo::Representation
211
252
 
253
+ property :domain_uri_prefix, as: 'domainUriPrefix'
212
254
  property :dynamic_link_domain, as: 'dynamicLinkDomain'
213
255
  property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation
214
256
 
@@ -305,6 +347,19 @@ module Google
305
347
  end
306
348
  end
307
349
 
350
+ class ManagedShortLink
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ property :creation_time, as: 'creationTime'
354
+ collection :flagged_attribute, as: 'flaggedAttribute'
355
+ property :info, as: 'info', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo::Representation
356
+
357
+ property :link, as: 'link'
358
+ property :link_name, as: 'linkName'
359
+ property :visibility, as: 'visibility'
360
+ end
361
+ end
362
+
308
363
  class NavigationInfo
309
364
  # @private
310
365
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -324,6 +379,7 @@ module Google
324
379
  class Suffix
325
380
  # @private
326
381
  class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :custom_suffix, as: 'customSuffix'
327
383
  property :option, as: 'option'
328
384
  end
329
385
  end
@@ -47,6 +47,46 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Creates a managed short Dynamic Link given either a valid long Dynamic Link
51
+ # or details such as Dynamic Link domain, Android and iOS app information.
52
+ # The created short Dynamic Link will not expire.
53
+ # This differs from CreateShortDynamicLink in the following ways:
54
+ # - The request will also contain a name for the link (non unique name
55
+ # for the front end).
56
+ # - The response must be authenticated with an auth token (generated with
57
+ # the admin service account).
58
+ # - The link will appear in the FDL list of links in the console front end.
59
+ # The Dynamic Link domain in the request must be owned by requester's
60
+ # Firebase project.
61
+ # @param [Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkRequest] create_managed_short_link_request_object
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def create_managed_short_link(create_managed_short_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:post, 'v1/managedShortLinks:create', options)
81
+ command.request_representation = Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkRequest::Representation
82
+ command.request_object = create_managed_short_link_request_object
83
+ command.response_representation = Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse::Representation
84
+ command.response_class = Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ execute_or_queue_command(command, &block)
88
+ end
89
+
50
90
  # Creates a short Dynamic Link given either a valid long Dynamic Link or
51
91
  # details such as Dynamic Link domain, Android and iOS app information.
52
92
  # The created short Dynamic Link will not expire.