Class: Google::Apis::AndroidmanagementV1::Enterprise
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::Enterprise
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb
Overview
The configuration applied to an enterprise.
Instance Attribute Summary collapse
-
#app_auto_approval_enabled ⇒ Boolean
(also: #app_auto_approval_enabled?)
Whether app auto-approval is enabled.
-
#enabled_notification_types ⇒ Array<String>
The notification types to enable via Google Cloud Pub/Sub.
-
#enterprise_display_name ⇒ String
The name of the enterprise as it will appear to users.
-
#logo ⇒ Google::Apis::AndroidmanagementV1::ExternalData
Data hosted at an external location.
-
#name ⇒ String
The name of the enterprise which is generated by the server during creation, in the form enterprises/
enterpriseId
Corresponds to the JSON propertyname
. -
#primary_color ⇒ Fixnum
A color in RGB format indicating the predominant color to display in the device management app UI.
-
#pubsub_topic ⇒ String
When Cloud Pub/Sub notifications are enabled, this field is required to indicate the topic to which the notifications will be published.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Enterprise
constructor
A new instance of Enterprise.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Enterprise
Returns a new instance of Enterprise
667 668 669 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_auto_approval_enabled ⇒ Boolean Also known as: app_auto_approval_enabled?
Whether app auto-approval is enabled. When enabled, apps installed via policy
for this enterprise have all permissions automatically approved. When enabled,
it is the caller's responsibility to display the permissions required by an
app to the enterprise admin before setting the app to be installed in a policy.
Corresponds to the JSON property appAutoApprovalEnabled
625 626 627 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 625 def app_auto_approval_enabled @app_auto_approval_enabled end |
#enabled_notification_types ⇒ Array<String>
The notification types to enable via Google Cloud Pub/Sub.
Corresponds to the JSON property enabledNotificationTypes
631 632 633 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 631 def enabled_notification_types @enabled_notification_types end |
#enterprise_display_name ⇒ String
The name of the enterprise as it will appear to users.
Corresponds to the JSON property enterpriseDisplayName
636 637 638 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 636 def enterprise_display_name @enterprise_display_name end |
#logo ⇒ Google::Apis::AndroidmanagementV1::ExternalData
Data hosted at an external location. The data is to be downloaded by Android
Device Policy and verified against the hash.
Corresponds to the JSON property logo
642 643 644 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 642 def logo @logo end |
#name ⇒ String
The name of the enterprise which is generated by the server during creation,
in the form enterprises/enterpriseId
Corresponds to the JSON property name
648 649 650 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 648 def name @name end |
#primary_color ⇒ Fixnum
A color in RGB format indicating the predominant color to display in the
device management app UI. The color components are stored as follows: (red <<
16) | (green << 8) | blue, where each component may take a value between 0 and
255 inclusive.
Corresponds to the JSON property primaryColor
656 657 658 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 656 def primary_color @primary_color end |
#pubsub_topic ⇒ String
When Cloud Pub/Sub notifications are enabled, this field is required to
indicate the topic to which the notifications will be published. The format of
this field is projects/project
/topics/topic
. You must have granted the
publish permission on this topic to android-cloud-policy@system.
gserviceaccount.com
Corresponds to the JSON property pubsubTopic
665 666 667 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 665 def pubsub_topic @pubsub_topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
672 673 674 675 676 677 678 679 680 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 672 def update!(**args) @app_auto_approval_enabled = args[:app_auto_approval_enabled] if args.key?(:app_auto_approval_enabled) @enabled_notification_types = args[:enabled_notification_types] if args.key?(:enabled_notification_types) @enterprise_display_name = args[:enterprise_display_name] if args.key?(:enterprise_display_name) @logo = args[:logo] if args.key?(:logo) @name = args[:name] if args.key?(:name) @primary_color = args[:primary_color] if args.key?(:primary_color) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) end |